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

  • Related Posts

    How to pass Reversal Date & Reason to BAPI_ACC_DOCUMENT_POST?

    Know How to pass Reversal Date & Reason to BAPI_ACC_DOCUMENT_POST? One motivation behind why the software engineer’s occupation is the most intriguing one is; you learn new stuff consistently. Regardless,…

    Automatically Fill Test Data in FM & BAPIs for SE37 – The Lazy Way

    Automatically Fill Test Data in FM & BAPIs for SE37. We often come across many issues with the upload programs that we develop to facilitate mass upload. The most boring work…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    Single Popup Instead Multiple Popup for BAPI Return and Custom Messages

    • By Varad
    • April 22, 2025
    • 15 views
    Single Popup Instead Multiple Popup for BAPI Return and Custom Messages

    How to pass Reversal Date & Reason to BAPI_ACC_DOCUMENT_POST?

    • By Varad
    • April 21, 2025
    • 36 views
    How to pass Reversal Date & Reason to BAPI_ACC_DOCUMENT_POST?

    Automatically Fill Test Data in FM & BAPIs for SE37 – The Lazy Way

    • By Varad
    • April 20, 2025
    • 42 views
    Automatically Fill Test Data in FM & BAPIs for SE37 – The Lazy Way

    How to Add and Change PO Service Line using BAPI BAPI_PO_CHANGE?

    • By Varad
    • April 19, 2025
    • 47 views
    How to Add and Change PO Service Line using BAPI BAPI_PO_CHANGE?

    How to Get Accurate Pricing in SD for Customer and Material?

    • By Varad
    • April 18, 2025
    • 80 views
    How to Get Accurate Pricing in SD for Customer and Material?

    How to update custom field of PRPS table

    • By Varad
    • April 17, 2025
    • 63 views
    How to update custom field of PRPS table