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

Highlight Pushbutton

Former Member
0 Likes
1,148

Hi fellow ABAPer's

I am trying to highlight a pushbutton to remind the users that they have clicked on it. Is there a way to do it? I tried defining the pushbutton as 'Output' field and set the screen attribute 'INTENSIFIED' in the PBO and it doesn't work.

Any helpful ideas??

Thanks!

8 REPLIES 8
Read only

Former Member
0 Likes
976

You could change the icon text or you could de-activate the icon. If you want, you could create another gui with a different icon.

Rob

Read only

0 Likes
976

Currently I do not have an icon, only text. What do you mean by de-activate the icon ? Make it invisible?

Thanks!

Read only

0 Likes
976

data exclude_pf type table of sy-ucomm.

In the PBO fill exclude_pf with the ok codes you don't want to see and:

set pf-status 'OVERVIEW' excluding exclude_pf.

This will grey out the icon, but it will be visible.

Rob

Message was edited by: Rob Burbank

Read only

0 Likes
976

Thanks Rob. But this will work for GUI status. But the pushbutton is not part of GUI status. It is stand alone on the screen. I didn't think there was a way I can grey out or highlight the pushbutton, but if you think it is possible please let me know.

Read only

0 Likes
976

If i m not wrong u have pushbutton in table control and u want to highligh the clicked line. If is it so let me know i will provide u the workout.

Read only

0 Likes
976

Sorry - I realized later that the button wan't part of the GUI. In this case you can create a field with the same name as the ok code. Then in the PBO, assign a new value to it. For example:

DATA: more(10) value 'Unpushed'.
MODULE user_command_0100 INPUT.
  CASE save_ok.
    WHEN 'MORE'.
      more = 'Pushed'.
  ENDCASE.
ENDMODULE. 

Read only

0 Likes
976

Rob,

I do not want to change the text. I was trying to see if there is a way to somehow highlight or make the pushbutton appear as if it has been pushed. If I am not wrong, I think some of the SAP standard screens set them this way to indicate on which tab you are currently on.

Read only

0 Likes
976

I think SAP uses subscreens for this. I suppose you could create another screen without the pushbutton. I don't use subscreens, so thre's not much more I can tell you.

Of course, you could move the button to the GUI.

Rob