10-26-2010 10:55 AM
Hi,
i use some BAPIs which habe an table parameter RETURN.
If there are some error in RETURN i loop on RETURN and write the messages.
Is there an FM to show the content of the RETURN table as an POPUP?
Thanks.
regards Dieter
10-26-2010 12:38 PM
May be you can build it using fm POPUP_FOR_INTERACTION or POPUP_TO_INFORM
10-26-2010 11:33 AM
Haven't seen one before so can't tell if there is one.
But: as an alternative you could get the messages into an internal table and use POPUP_WITH_TABLE_DISPLAY_OK
10-26-2010 11:50 AM
Hi,
You would need to use BAPI RETURN internal table & then pass it to the above function module...
10-26-2010 12:38 PM
May be you can build it using fm POPUP_FOR_INTERACTION or POPUP_TO_INFORM
10-26-2010 1:08 PM
hi,
Look at this FM it is perfect for your requirement
IF bapi_return-type = 'E'.
wa_msg-msgty = 'E'.
wa_msg-msgid = 'ZMM'.
wa_msg-msgno = '011'.
wa_msg-lineno = lineno.
wa_msg-msgv1 = e_msg.
APPEND wa_msg TO it_msg.
CLEAR wa_msg.
ELSEIF bapi_return-type = 'S'.
wa_msg-msgty = 'S'.
wa_msg-msgid = 'ZMM'.
wa_msg-msgno = '011'.
wa_msg-lineno = lineno.
wa_msg-msgv1 = s_msg.
APPEND wa_msg TO it_msg.
ENDIF.
ENDLOOP.
CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
TABLES
i_message_tab = it_msg.
10-26-2010 3:21 PM
12-12-2013 7:23 AM
02-11-2021 6:51 PM