Single Popup Instead Multiple Popup for BAPI Return and Custom Messages

Single Popup Instead Multiple Popup for BAPI Return and Custom Messages

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 popular expressions for ABAP Designers in 2021. However, while working in real task, you actually need the premise ABAP which are straightforward yet extremely valuable. Furthermore, 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. Single Popup Instead Multiple Popup for BAPI Return and Custom Messages.

Situation: Necessity was to make a client program which will make outbound conveyance or change the outbound conveyance and do the post merchandise 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 document only one popup box should have been shown for numerous blunder/achievement 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 Merchandise Issue (PGI). The return messages will get caught in beneath featured interior tables – LT_RETURNS, LT_PROT

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

Gather all message from featured inner tables LT_RETURNS, LT_PROT and set up the last inward table LT_MSG_TAB in configuration of ESP1_MESSAGE_TAB_TYPE. Affix to last interior table LT_MSG_TAB

Coming back to our topic. What to pass in message id and message number in case of custom message? There is a trick. Pass ‘E4’ as message id and 000 as message number and we are done.

Last step is to pass interior 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 entry. I get it, this is an exceptionally basic post for some, however I trust fledglings 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 LIKE THIS

FBl1n tcode in SAP

Your Definitive Guide to Becoming a SAP ABAP Developer

10 Real-World SAP ABAP Programming Examples (with Code!)

X
WhatsApp WhatsApp us