Single Popup Instead Multiple Popup for BAPI Return and Custom Messages

Single Popup Instead Multiple Popup for BAPI Return and Custom Messages

Get practical on Single Popup Instead Multiple Popup for BAPI Return and Custom Messages. ABAP RAP, ABAP Cloud, ABAP Discs, ABAP Programming interface and so on are the trendy expressions for ABAP Designers in 2021. However, while working in genuine undertaking, you actually need the premise ABAP which are basic yet exceptionally helpful. What’s more, this article is about my learning and discoveries of some valuable capability modules and message types for showing a few messages in the Spring Up.

Situation: Necessity was to make a client program which will make outbound conveyance or change the outbound conveyance and do the post products issues relying on deals request and different information as contribution from record and show the reports with progress and
disappointment messages. In the wake of handling information from record only one popup box should have been shown for various mistake/achievement messages. Single Popup Instead Multiple Popup for BAPI Return and Custom Messages.

Arrangement: BAPI_OUTB_DELIVERY_CREATE_SLS, WS_DELIVERY_UPDATE_2 and BAPI_OUTB_DELIVERY_CHANGE are utilized for creation/change the outbound conveyance and to do the Post Products Issue (PGI). The return messages will get caught in underneath featured interior tables – LT_RETURNS, LT_PROT

To show the mistake message as popup I looked through some capability modules like POPUP_DISPLAY_MESSAGE and OXT_MESSAGE_TO_POPUP yet those didn’t meet my necessities. To show all custom messages I found one appropriate capability module, that is C14Z_MESSAGES_SHOW_AS_POPUP.

Gather all message from featured inside tables LT_RETURNS, LT_PROT and set up the last inner table LT_MSG_TAB in arrangement of ESP1_MESSAGE_TAB_TYPE. Attach to last interior table LT_MSG_TAB

Returning to our subject. What to pass in message id and message number in the event of custom message? There is a stunt. Pass ‘E4’ as message id and 000 as message number and we are finished.

Last step is to pass inner table LT_MSG_TAB with message to work module C14Z_MESSAGES_SHOW_AS_POPUP.

Single Spring Up for different messages is prepared.

This is my most memorable attempt to share my insight in any gateway. I get it, this is an extremely straightforward post for some, yet I trust novices will think that it is helpful. All things considered, each think need not be on-cloud or fiori. Many will in any case make due with the absolute minimum in SAP and ABAP.

 

YOU MAY BE INTERESTED IN

How to Show the ALV Output and the Selection Screen on the same Screen?

Selective Handling of the Buttons in ALV Grid Toolbar

SAP S/4HANA EWM-Advanced Production Integration

Robotic Process Automation for SAP

 

X
WhatsApp WhatsApp us