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

Select-options grade out

Former Member
0 Likes
917

I want to gradeout select-options high limit gradeout when i select radiobutton 3

How to write the logic can any one tell me

thank you,

Pradeep Reddy M.

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
865

Hi...

Check this code.

TABLE : mara,

SSCRFIELDS.

DATA : V_UCOMM TYPE SSCRFIELDS-UCOMM.

SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.

PARAMETERS : R1 RADIOBUTTON GROUP G1 USER-COMMAND RB,

R2 RADIOBUTTON GROUP G1,

R3 RADIOBUTTON GROUP G1.

AT SELECTION-SCREEN OUTPUT.

IF V_UCOMM = 'RB'.

IF R3 = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'S_MATNR-HIGH'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDIF.

AT SELECTION-SCREEN .

V_UCOMM = SSCRFIELDS-UCOMM.

try the above code. you will find the solution.

<b>Reward if Helpful</b>

I want to gradeout select-options high limit gradeout when i select radiobutton 3

How to write the logic can any one tell me

thank you,

Pradeep Reddy M.

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
866

Hi...

Check this code.

TABLE : mara,

SSCRFIELDS.

DATA : V_UCOMM TYPE SSCRFIELDS-UCOMM.

SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.

PARAMETERS : R1 RADIOBUTTON GROUP G1 USER-COMMAND RB,

R2 RADIOBUTTON GROUP G1,

R3 RADIOBUTTON GROUP G1.

AT SELECTION-SCREEN OUTPUT.

IF V_UCOMM = 'RB'.

IF R3 = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'S_MATNR-HIGH'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDIF.

AT SELECTION-SCREEN .

V_UCOMM = SSCRFIELDS-UCOMM.

try the above code. you will find the solution.

<b>Reward if Helpful</b>

Read only

Former Member
0 Likes
865

Hi Pradeep,

Why you need it to be grayed out.

you can hide it.

will it work.

If yes then create two select options

one with range and one without range.

then change them according to radio button.

reward if helpful.

Regards

Azad.

Read only

Former Member
0 Likes
865

Hi pradeep,

1. Choose radiobuton C (3rd)

and the HIGH field will be greyed out.

2. Just copy paste.

3.

REPORT ABC.

TABLES : T001.

PARAMETERS : A RADIOBUTTON GROUP G1 USER-COMMAND RAD,

B RADIOBUTTON GROUP G1 ,

C RADIOBUTTON GROUP G1 ,

D RADIOBUTTON GROUP G1 .

SELECT-OPTIONS : BUKRS FOR T001-BUKRS.

AT SELECTION-SCREEN OUTPUT.

IF C = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'BUKRS-HIGH'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

regards,

amit m.

Read only

Former Member
0 Likes
865

Thank you Narayana and Amith it is working according to u