Application Development and Automation 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: 
Read only

adding a popup screen to module pool program

Former Member
0 Likes
1,702

Hi Experts,

I have a module pool program. When this program starts through a transaction code, I want to display a popup screen.

I used CALL SCREEN ______ STARTING AT 10 10. But then I'm not able to close this screen when I click over it.

Please help me.

Regards,

Saurabh.

6 REPLIES 6
Read only

Former Member
0 Likes
999

are you calling a different screen in the PAI of the pop up screen? This should then close this screen and take you to the new screen.

Cheers

Read only

Former Member
0 Likes
999

You need to have a GUI status created and call that PF-STATUS to the pop up screen. You can do the same using SET PF-STATUS 'xxxx' in the PBO of the pop up screen.

Also, you will have to handle the function codes of the menu (pf-status) in the PAI of the pop up screen.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

Former Member
0 Likes
999

hi,

u can do the following in PBO of first screen.

CALL FUNCTION <b>'POPUP_TO_CONFIRM_WITH_MESSAGE'</b>

EXPORTING

defaultoption = 'Y'

diagnosetext1 = 'Hi'

  • DIAGNOSETEXT2 = ' '

  • DIAGNOSETEXT3 = ' '

textline1 = 'Good Morning'

  • TEXTLINE2 = 'Wishes'

titel = p_title

  • START_COLUMN = 25

  • START_ROW = 6

  • CANCEL_DISPLAY = 'X'

IMPORTING

answer = p_answer .

hope that helps...

please reward if useful....

Read only

Former Member
0 Likes
999

hi

good

to close that pou-up status you can create the menu bar using the menu painter and give the appropriate functionality for each button whatever you want to place in the pop up screen.

thanks

mrutyun^

Read only

Former Member
0 Likes
999

In the PAI of the new popup screen you need to code for the EXIT button.

case OK_CODE.

When 'EXIT'.

LEAVE SCREEN.

SET SCREEN <Initial screen #>

endcase.

Hope this helps, if so reward me points!

Sudheer.

Read only

Former Member
0 Likes
999

if you want to pass some values in your popup then use this function mocule

POPUP_GET_VALUES.

If not then

POPUP_TO_CONFIRM_WITH_MESSAGE

Depends on what you want to do.

But both should solve your issue

Prince