Skip to Content
Author's profile photo Anson John Abraham

How to display messages in a popup window in SAP

There are different methods available in ABAP to display messages in a popup window. In this article, one simple method is introduced by using the function module C14Z_MESSAGES_SHOW_AS_POPUP. This function module will accept an internal table populated with messages and will display the same as a popup window.

Calling the function module C14Z_MESSAGES_SHOW_AS_POPUP

CALL FUNCTION ‘C14Z_MESSAGES_SHOW_AS_POPUP’

      TABLES

        i_message_tab = itab_messages.

Here the internal table ‘itab_messages’ should be populated with the messages for display.

Structure of the itab_messages internal table

Structure of the itab_messages contains the following 8 fields. We have to populate these fields to display each message in the popup.

MSGID – Message Class

MSGTY – Message Type

MSGNO – Message Number

MSGV1 – Message variable

MSGV2 – Message variable

MSGV3 – Message variable

MSGV4 – Message variable

LINENO – Line number

Popup window  after calling the function module C14Z_MESSAGES_SHOW_AS_POPUP

/wp-content/uploads/2013/04/popup_203254.png

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      thanks for sharing

      Author's profile photo Anson John Abraham
      Anson John Abraham
      Blog Post Author

      Welcome Abhishek

      Author's profile photo Former Member
      Former Member

      I think it's easier to use the module: FINB_BAPIRET2_DISPLAY - compatible parameters with the standard structure BAPIRET2. Example of use: http://sapforum.biz/index.php/topic, 223.msg12061.html # msg12061

      Author's profile photo Former Member
      Former Member

      Instead of using these unreleased FMs you can use the standard Application Log to display the log as a popup.

      Refer to the demo programs - SBAL_DEMO_04_POPUP & SBAL_DEMO_04_POPUP_S.

      BR,

      Suhas

      Author's profile photo Anson John Abraham
      Anson John Abraham
      Blog Post Author

      Thank you Suhas for providing another method to show popup logs.

      Author's profile photo Former Member
      Former Member

      BAL_DSP_LOG_DISPLAY >> better