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

at selection screen output

Former Member
0 Likes
1,415

I hav a check box. whenever user click that check box screen should get modify. It should show extra parametrs if not it wont show . Check box is 5th parameter. If i click that 6 and 7 th parameter should be appear on the screen.

Let me know the coding pl its urgent.

I hav a check box. whenever user click that check box screen should get modify. It should show extra parametrs if not it wont show . Check box is 5th parameter. If i click that 6 and 7 th parameter should be appear on the screen.

Let me know the coding pl its urgent.

10 REPLIES 10
Read only

Former Member
0 Likes
1,356

hi

Please refer.

when the checkbox ch_addtn is clicked, the below radiobuttons get disabled.

SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: ch_addtn AS CHECKBOX USER-COMMAND uc1,

rb_rev RADIOBUTTON GROUP rb1 USER-COMMAND uc2, Invoice

rb_state RADIOBUTTON GROUP rb1.

SELECTION-SCREEN: END OF BLOCK b1.

LOOP AT SCREEN.

IF ch_addtn NE c_true AND

( screen-name = 'RB_REV' OR screen-name = 'RB_LIAB').

screen-invisible = 1.

MODIFY SCREEN.

ENDIF.

<b>reward points for useful ans</b>

Regards

Ankit

Message was edited by:

ankit harjai

Read only

Former Member
0 Likes
1,356

at the selection screen output

loop at screen.

if screen-name eq field_name

screen-visible = 0.

modify screen

endif

endloop.

hope this helps u

regards,

Prashant

  • reward if helpful

Read only

Former Member
0 Likes
1,356

Hi Ram

AT SELECTION-SCREEN OUTPUT.

if chk_5 = 'x'.

loop at screen.

if screen-name eq 'chk_6' or screen-name eq 'chk_6'.

screen-active = 0.

endif.

modify screen.

endloop.

endif.

reward points to all helpful answers

kiran.M

Read only

Former Member
0 Likes
1,356

hi

you would have to use

at selection screen output.

if <check box function code> = 'X'.

<screen area for the parameter >-active = 1.

modify screen.

endif.

hope it works

regards

ankit

Read only

Former Member
0 Likes
1,356

Hi Ramesh,

try this:

  • Selection/Parameters mit variablem INPUT-Möglichkeir

PARAMETERS: P1 DEFAULT 'X' RADIOBUTTON GROUP PR1 USER-COMMAND DUMMY.

PARAMETERS: P2 RADIOBUTTON GROUP PR1.

PARAMETERS: VAL1(10) MODIF ID DI1.

PARAMETERS: VAL2(10) MODIF ID DI2.

*

AT SELECTION-SCREEN OUTPUT.

*

IF P1 = 'X'.

LOOP AT SCREEN.

IF SCREEN-GROUP1 EQ 'DI1'.

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '1'.

MODIFY SCREEN.

CLEAR: VAL2.

ENDIF.

IF SCREEN-GROUP1 EQ 'DI2'.

SCREEN-ACTIVE = '0'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

*

IF P2 = 'X'.

LOOP AT SCREEN.

IF SCREEN-GROUP1 EQ 'DI1'.

SCREEN-ACTIVE = '0'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

CLEAR: VAL1.

ENDIF.

IF SCREEN-GROUP1 EQ 'DI2'.

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

*

regards, Dieter

Read only

Former Member
0 Likes
1,356

Hi

SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: ch_addtn AS CHECKBOX USER-COMMAND uc1,

PARAMETERS: f1 modif id s1

PARAMETERS: f2 modif id s1

PARAMETERS: f3 modif id s1

PARAMETERS: f4 modif id s1

PARAMETERS: f5 modif id s1

PARAMETERS: f6 modif id s2

PARAMETERS: f7 modif id s2

SELECTION-SCREEN: END OF BLOCK b1.

AT SELECTION SCREEN OUTPUT

LOOP AR SCREEN.

IF ch_addtn = 'X' AND SCREEN-GROUP1 = S2

SCREEN-INPUT = 0

MODIFY SCREEN

ENDIF.

IF ch_addtn = ' ' AND SCREEN-GROUP1 = S1

SCREEN- INPUT = 0

MODIFY SCREEN

ENDIF.

ENDLOOP.

I AM WRITING THIS CODE PLZ CHECK IIF THERE SOME ERRORS CORRECT IT

REWARD IF USEFULL

Read only

Former Member
0 Likes
1,356

hi! Ramesh

Create Modif Id for the parameters you have Declared. This ID is used to refer to make the Particular parameter Enable or Disable.

according to yours, let the Parameters 6 & 7 Modif ID be - PR6 & PR7.

AT SELECTION-SCREEN OUTPUT.

If chk_p5 = 'X'.

loop at screen.

if screen-group1 = 'PR6'.

SCREEN-ACTIVE = '0'.

endif.

if screen-group1 = 'PR7'.

SCREEN-ACTIVE = '0'.

endif.

modify screen.

endloop.

If its Useful for you Reward for it.

Regards,

Nagulan.

Read only

Former Member
0 Likes
1,356

hi! Ramesh

Create Modif Id for the parameters you have Declared. This ID is used to refer to make the Particular parameter Enable or Disable.

according to yours, let the Parameters 6 & 7 Modif ID be - PR6 & PR7.

AT SELECTION-SCREEN OUTPUT.

If chk_p5 = 'X'.

loop at screen.

if screen-group1 = 'PR6'.

SCREEN-ACTIVE = '0'.

endif.

if screen-group1 = 'PR7'.

SCREEN-ACTIVE = '0'.

endif.

modify screen.

endloop.

endif.

If its Useful for you Reward for it.

Regards,

Nagulan.

Read only

Former Member
0 Likes
1,356

hi,

Selection-screen : Begin of screen 2000 title text-100.

parameters : A as CHECKBOX USER-COMMAND check,

IN1(20) modif id gp1 No-display,

IN2(20) modif id gp1 No-display.

Selection-screen : End of screen 2000 .

AT selection-screen.

if A eq 'X' .

loop at screen.

if screen-group1 = gp1.

screen-invisible = 0.

modify screen.

endif.

endloop.

endif.

Read only

Former Member
0 Likes
1,356

Hi,

solved?!?!

Regards, Dieter