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

CALLING SELECTION SCREEN.

Former Member
0 Likes
455

Hi All,

My requirement is whenever i am clicking check box on selection screen one window selection screen shu apper where i will enter some data.After pushing execute button it should go to standard selection screen.

code i hav wirtten as...

                                                                          • Program *********************************************

SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-003 .

PARAMETERS: pa_ls1 AS CHECKBOX,

pa_ls2 AS CHECKBOX USER-COMMAND flag.

SELECTION-SCREEN END OF BLOCK 1.

SELECTION-SCREEN BEGIN OF SCREEN 2000 TITLE text-004.

SELECT-OPTIONS: pa_vkorg FOR vbak-vkorg NO INTERVALS NO-EXTENSION.

SELECTION-SCREEN END OF SCREEN 2000.

at selection-screen.

IF pa_ls2 = 'X'.

do.

CALL SELECTION-SCREEN '2000'

STARTING AT 10 10.

exit.

enddo.

ENDIF.

***********************************************************************************************

with this code i am able to call the screen but cant go back to standard screen.

3 REPLIES 3
Read only

Former Member
0 Likes
417

Hi

Write at selection screen commnd and call first screen with screen number 1000. fist selectin screen number should be 1000 by default.

Reward if it dose

Thanks

Siva Kumar

Read only

Former Member
0 Likes
417

Here is what you have to do.

data : wa_ucomm like syst-ucomm.

parameters : pa_ls1 as checkbox user-command chk1.

at selection-screen.

move syst-ucomm to wa_ucomm.

  • You check skip the wa_ucomm and check the syst-ucomm here and do your stuff, but using the global variable is better for additional functions, if you have.

at selection-screen output.

if wa_ucomm = 'CHK1'.

  • Do your stuff.

endif.

Albert

Read only

0 Likes
417

HI RUSHIKESH,

MODIFICATION HAS BEEN MADE INTO YOUR CODE.SEE THE BOLD PART.

REPORT ZCLICK.

tables : vbak.

SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-003 .

PARAMETERS: pa_ls1 AS CHECKBOX,

pa_ls2 AS CHECKBOX USER-COMMAND CLICK.

SELECTION-SCREEN END OF BLOCK 1.

SELECTION-SCREEN BEGIN OF SCREEN 2000 TITLE text-004.

SELECT-OPTIONS: pa_vkorg FOR vbak-vkorg NO INTERVALS NO-EXTENSION.

SELECTION-SCREEN END OF SCREEN 2000.

at selection-screen.

IF pa_ls2 = 'X'.

<b>PA_LS2 = ''.</b>

CALL SELECTION-SCREEN '2000'

STARTING AT 10 10.

ENDIF.