Skip to Content

dialogue box

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 06:10 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 06:28 AM

    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 .

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ce935c111d1829f0000e829fbfe/content.htm>

    Reward points if it is usefull ...

    Girish

    Add comment
    10|10000 characters needed characters exceeded