Skip to Content
0
Former Member
Jan 04, 2008 at 05:56 PM

Selection screen scenario

55 Views

Hi friends,

here is my scenario....

i have a parameter p1.

and then i have a selection screen block

with a checkbox c1 and a parameter p2 in it.

the requirement is ......when i select the checkbox,

the cursor has to be placed in the parameter p2.

by default the parameter is placed in p1.

please run the code i have written.

i ran my code and selected the checkbox......nothing happened... 😔

however, when i clicked on the 'execute ' button the cursor did get placed in parameter p2.

my requirement is ..the cursor has to be placed in p2 the moment i select the checkbox c1.

please let me know where i am wrong...

thanking u all in advance,

Hari Kiran

here is the code i wrote.......

code

*****

REPORT ZSELESCREEN .

PARAMETER: P1(10) MODIF ID SC1.

selection-screen BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

PARAMETERS: C1 AS CHECKBOX MODIF ID SC2,

P2(10) MODIF ID SC2.

SELECTION-SCREEN END OF BLOCK B1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 ='SC2'.

IF C1 = 'X'.

SET CURSOR FIELD 'P2' .

ENDIF.

ENDIF.

ENDLOOP.