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

How to get selection-screen name for pushbutton ?

Former Member
0 Likes
1,688

Hello Guys,

I'm trying to get Screen name but i'm not able to find, can you please help me.

SELECTION-SCREEN PUSHBUTTON (4) icon1 USER-COMMAND uc_icon1.
SELECTION-SCREEN PUSHBUTTON (4) icon2 USER-COMMAND uc_icon2.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-NAME = 'icon16'.            "Not finding
     SCREEN-INVISIBLE = '0'.
     MODIFY SCREEN.
    ENDIF.
  ENDLoOP.
1 ACCEPTED SOLUTION
Read only

Florian
SAP Champion
SAP Champion
0 Likes
1,341

Hi Harshal Kulkarni,

make sure you put all in uppercase letter in your condition. I think this will solve your issue...

SELECTION-SCREENPUSHBUTTON(4) icon1 USER-COMMAND uc_icon1.
SELECTION-SCREENPUSHBUTTON(4) icon2 USER-COMMAND uc_icon2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF SCREEN-NAME= 'ICON1'.  "Not finding
SCREEN-INVISIBLE ='0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Hello Guys,

I'm trying to get Screen name but i'm not able to find, can you please help me.

SELECTION-SCREEN PUSHBUTTON (4) icon1 USER-COMMAND uc_icon1.
SELECTION-SCREEN PUSHBUTTON (4) icon2 USER-COMMAND uc_icon2.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-NAME = 'icon16'.            "Not finding
     SCREEN-INVISIBLE = '0'.
     MODIFY SCREEN.
    ENDIF.
  ENDLoOP.
3 REPLIES 3
Read only

SimoneMilesi
Active Contributor
0 Likes
1,341

Hello!

It's not really clear which is your issue: you are checking for 'icon16' but i see icon1 and icon2 in your pushbuttons' declaration.

Read only

Florian
SAP Champion
SAP Champion
0 Likes
1,342

Hi Harshal Kulkarni,

make sure you put all in uppercase letter in your condition. I think this will solve your issue...

SELECTION-SCREENPUSHBUTTON(4) icon1 USER-COMMAND uc_icon1.
SELECTION-SCREENPUSHBUTTON(4) icon2 USER-COMMAND uc_icon2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF SCREEN-NAME= 'ICON1'.  "Not finding
SCREEN-INVISIBLE ='0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.

Read only

Former Member
0 Likes
1,341

Thanks Florian for help 🙂