Display Popup Window in WebDynpro Abap

This is a step by step tutorial how to create and display Popup Window in WebDynpro Abap. Build Popup Window in Webdynpro abap

Step by Step to Create PopUp in WebDynPro

Create a new view with text

and UI elements to display in the popup.

Create a new WINDOW

(type WND_POPUP) to embed into the view

Add ABAP code to create to manage the popup window

Button Kind : Action

here the different Button Kind you can add:

Check also   SAP Invoice IDoc INVOIC2 - Structure, Enhancement (exit and BADI)

CO_BUTTONS_OK : OK
CO_BUTTONS_CLOSE : Close
CO_BUTTONS_OKCANCEL : OK, Cancel
CO_BUTTONS_YESNO : Yes, No
CO_BUTTONS_YESNOCANCEL : Yes, No, Close
CO_BUTTON_ABORT : Cancel
CO_BUTTON_RETRY : Repeat
CO_BUTTON_IGNORE : Ignore
CO_BUTTON_OK : Ok
CO_BUTTON_CLOSE : Close
CO_BUTTON_CANCEL : Cancel
CO_BUTTON_YES : Yes
CO_BUTTON_NO : No
CO_BUTTONS_ABORTRETRYIGNORE : Cancel, Repeat, Ignore
CO_BUTTONS_NONE : No Buttons displayed

Set MESSAGE_TYPE

parameter:Message Type : Action

CO_MSG_TYPE_NONE : No message type
CO_MSG_TYPE_WARNING : Warning
CO_MSG_TYPE_INFORMATION : Information
CO_MSG_TYPE_QUESTION : Question
CO_MSG_TYPE_ERROR : Error
CO_MSG_TYPE_STOPP : Cancel

The Result will be something like that Modal WindowPopUp ABAP WebDynPro

More Ressource on ABAP WebdynPro PopUp

The Official documentation on Calling a Confirmation Dialog Box on help sap com.

The quickest way to create confirmation Dialog box in ABAP Webdynpro calling the CREATE_POPUP_TO_CONFIRM method of the IF_WD_WINDOW_MANAGER. Without a need to create a separated window, the runtime will do it for you automatically.
( I recommend this method )

– This is an other method to display popup with messages in ABAP WebDynPro using the standard Message_Manager

Check also   ABAP PopUp: Types and Samples codes

– A great post explains, step by step, how to integrate a popup in ABAP Webdynpro.
I recommand reading ( btw, it inspires me writing this post ).
Display popup screen within ABAP Web dynpro

– Here an other excellent scn documents handling PopUp within ABAP WebdynPro
The Four Types of Popup Window

Web Dynpro application to display a Pop-up window on the browser

– If you prefer video tutorials, check this excellent

Sab125

Hi. I have been working as SAP Technical and functional for a decade. Through this blog, I am trying to share with you my experience. Hopefull, it makes your ways easier path ... Sab