Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

POPUP for BAPIRET2

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor

May be you can build it using fm POPUP_FOR_INTERACTION or POPUP_TO_INFORM

7 REPLIES 7

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

You would need to use BAPI RETURN internal table & then pass it to the above function module...

kesavadas_thekkillath
Active Contributor

May be you can build it using fm POPUP_FOR_INTERACTION or POPUP_TO_INFORM

0 Kudos

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.

0 Kudos

Hi gaurav,

thanks, that's it.

Regards, Dieter

Former Member

FM RSCRMBW_DISPLAY_BAPIRET2

cl_rmsl_message=>display( lt_bapiret2 ).