2014 Feb 24 9:43 PM
Hello experts,
I would like a way to quickly handle the BAPI return table (TYPE TABLE OF bapiret2). I would like to pass the table into a function module or helper method to popup all the messages at once. This is the same way MIGO (and many other programs) do a popup of messages with little red, yellow, and green icons to the left. Currently I am using a series of calls to function module BAL_LOG_... and I feel there has to be a better way.
I tried searching for the answer to this question, but if the answer exists, it is buried within the noise of a million people saying use 'POPUP_TO_CONFIRM' and other function modules. To clarify: I do not want buttons to confirm. I want a popup of a list of messages with red, yellow, and green icons on the left.
Whoever answers my question correctly will henceforth be referred to by me as "the Magnificent."
2014 Feb 24 10:34 PM
Hi Eric,
you can call in sequence FMs MESSAGES_INITIALIZE, MESSAGE_STORE (for every message to show in the popup windows) and MESSAGES_SHOW.
You can easily set up a little test, but if you need you can search in SCN: there's a lot of examples.
Marco
2014 Feb 24 10:34 PM
Hi Eric,
you can call in sequence FMs MESSAGES_INITIALIZE, MESSAGE_STORE (for every message to show in the popup windows) and MESSAGES_SHOW.
You can easily set up a little test, but if you need you can search in SCN: there's a lot of examples.
Marco
2014 Feb 25 6:50 PM
2014 Feb 25 6:01 AM
Hi Eric,
You can use the function module " MRM_PROT_FILL" to populate the messages into message tab.
Below is the source code:
* Set error message
ls_err-msgty = c_msgty.
ls_err-msgid = c_msgid.
ls_err-msgno = c_msgno.
ls_err-msgv1 = ls_drseg-ebelp.
ls_err-source = c_source.
ls_err-rblgp = ls_drseg-rblgp.
ls_err-shown = c_shown.
APPEND ls_err TO lt_err.
* Populate the message into message tab
CALL FUNCTION 'MRM_PROT_FILL'
TABLES
t_errprot = lt_err.
Append all your messages to lt_err . It works well.
Thanks
Gangadhar
2014 Feb 25 6:53 PM
I'm not sure how those constants work, and when I tried this nothing happened. More explanation might be helpful.
2014 Feb 26 4:35 AM
Hi Eric,
you can use the FM FINB_BAPIRET2_DISPLAY.
It accepts as internal table of type BAPIRET2 and pops it to the screen.
Cheers!
Regards,
Vamsi
2014 Feb 26 5:27 PM
That is even simpler than Gangadhar's answer, but it doesn't allow me to set the SEND_IF_ONE parameter.
2014 Feb 26 10:38 PM
My 2 cents ...
IF_RECA_MESSAGE_LIST is the most convenient message handler i have used so far So i would use it in this way -
BR,
Suhas
2015 Jul 13 12:45 PM
Hi Eric,
Can you tell me how did you manage to store multiple messages and show them in a single display pop up.
Thanks,
Sree