Application Development 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: 

regarding the checkbox and the parameter field

Former Member
0 Kudos
95

Hi Abap Experts,

i have two fields in my selection screen they are

1. number range which is check box

2. year which is parameter field

my requirement is if i check the marked in the first field then only second field should be enable. what is the logic should i proceed?

3 REPLIES 3

Former Member
0 Kudos
46

Hello

Try like this:


parameters: check as checkbox user-command US1.
parameters: year type mjahr modif id MJH.

AT SELECTION-SCREEN OUTPUT.

IF NOT check IS INITIAL.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'MJH'.
      SCREEN-INVISIBLE = '0'.
      SCREEN-INPUT = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ELSE.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'MJH'.
      SCREEN-INVISIBLE = '1'.
      SCREEN-INPUT = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDIF.

Former Member
0 Kudos
46

Hi,

You have to define the check box with addition USER-COMMAND fcode.

and parameters with addition MODIF ID modid .

Then check the value of your check box in AT SELECTION-SCREEN OUTPUT event.


if check_box = 'X'.
loop at screen.
* modify the screen attribute of the 2nd parameter.
endloop.

Hope this will help you...

Regards

Dillip

Former Member
0 Kudos
46

Moderator message - Please search before asking - post locked Please see and before posting. Rob