Application Development and Automation 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: 
Read only

Function Module to POP-UP Bapi messages...!!!

Former Member
0 Likes
2,430

Hi All,

I am getting all the messages from BAPI's in one of the internal table i_retyrn. now i want to show that messages on pop-up screen. is there any function module which populates messages and show it on pop-up screen.

please reply ASAP its kinda urgent and if possible please send sample code.

Thanks,

Dhwanit.

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
838

I really like these function modules for this. You add your messages to the log and then show the log, it is a very nice display.



report zrich_0001.

call function 'MESSAGES_INITIALIZE'
     exceptions
          others = 1.



call function 'MESSAGE_STORE'
     exporting
          arbgb                  = 'M3'
          msgty                  = 'E'
          msgv1                  = space
          msgv2                  = space
          msgv3                  = space
          msgv4                  = space
          txtnr                  = '002'
     exceptions
          message_type_not_valid = 1
          not_active             = 2
          others                 = 3.


call function 'MESSAGES_SHOW'
     exporting
          I_USE_GRID         = 'X'  " Comment for list display
          batch_list_type    = 'L'
     exceptions
          inconsistent_range = 1
          no_messages        = 2
          others             = 3.

Regards,

Rich Heilman

Read only

ferry_lianto
Active Contributor
0 Likes
838

Hi,

Please try this FM.

POPUP_WITH_TABLE_DISPLAY

POPUP_WITH_TABLE

Regards,

Ferry Lianto

Read only

uwe_schieferstein
Active Contributor
0 Likes
838

Hello Dhwanit

Another possibility would be to call function module <b>REUSE_ALV_POPUP_TO_SELECT </b>and suppress the select option.

Regards

Uwe