RFC problem with
GOS_ATTACHMENT_LIST_POPUP:
I try to call up the SAP function module "GOS_ATTACHMENT_LIST_POPUP" which
displays the attachments for a given object. When I test this in transaction
SE37 it works fine, but the Call in my script aborts with "RFC_ERROR_SYSTEM_FAILURE".
What could be the reason?
Add the "-dialog" option in your Call statement. Since this
function module displays a popup window the RFC needs to be
connected to SAP GUI, which normally is not the case, but can be
triggered with the "-dialog" option.