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

Selection Screen - Field dehighlight

Former Member
0 Likes
594

Hello All,

How can i make an Selection screen field not as an Input field.

The field is a parameter P_GJAHR which will always be set to 2005. So, i would like to see FY 2005 on the selection screen field as dehighlighted.

Would be glad if views are provided on this.

Regards,

- PSK

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
518
PARAMETERS : P_GJAHR LIKE BKPF-GJAHR MODIF ID SG1.

...

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'SG1'.
      SCREEN-INPUT = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Hope this helps,

Erwan.

3 REPLIES 3
Read only

Former Member
0 Likes
518

Hi Sravan,

Use this code.

PARAMETERS: P_GJAHR TYPE gjahr default ‘2005’ MODIF ID md1,

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'MD1'.

screen-active = 0.

screen-input = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Best Regards

Swagatika

Read only

Former Member
0 Likes
519
PARAMETERS : P_GJAHR LIKE BKPF-GJAHR MODIF ID SG1.

...

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'SG1'.
      SCREEN-INPUT = '0'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Hope this helps,

Erwan.

Read only

0 Likes
518

Hi Erwan & Swagatika,

Thankyou, the issue has been resolved.

At the same time this approach has issues as the Selection Screen parameter can be modified at the Variant level using TVARV Variables.

Regards,

- PSK