Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

dialogue box

vijy_mukunthan
Active Contributor
0 Kudos

hi friends!

How to create a dialogue box in module pool programming and how to code.help me in step by step process. I have already created a dialogue box but it does not open as dialogue box inseated it open as a new session. so plz help in figure out the process of creation.

Regards

vijay

2 REPLIES 2

Former Member
0 Kudos

Hi Vijay,

>> In the Screen Painter (SE51) attribute check the screen type as

modal dialog box.

>> In this modal Dialog Box the text to be displayed or the logic to be

incorporated into this will be written in PAI Event as explained below.

>> You can have a application toolbar for you modal dialog box, when

creating the gui status, just select the radiobutton for "Model Dialog

Box".

>> You need to create a GUI STATUS for the dialog box screen, then it

will give you an option to create an exit option.

>> In the GUI status by default you get an icon 'X' for that add 'ANYNAME

ASYOUWISH' as the FCODE and in your PAI add a module and then

for coding give

-


Sample Coding----


data:ok_code like sy-ucomm.

ok_code = 'ANYNAMEASYOUWISH'.

LEAVE SCREEN or LEAVE PROGRAM.

call screen 100 starting at 1 1

ending at 10 10. "For placing the modal dialog Box

-


>> Dont for get to add SET PF-STATUS in the PBO module.

>> You can also refer the standard help.sap.com for further informations

in the following link.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba4e635c111d1829f0000e829fbfe/content.htm

Hope it helps..

In case of any doubts please feel free to revert back...

Regards,

Dhayanandh.S

Former Member
0 Kudos

Tcode : DEMO_TRANSACTION which is Demo of Dialog Program with Dialog box .

Inputs in the screen For " Airline carrier Dialog box Appears .

Airline carrier :LH

Flight number : 402

Please go through this link for example Code and screen shots .

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm</a>

Reward points if it is usefull ...

Girish