Skip to Content
0

Dynamic change the name of button

Sep 05, 2017 at 10:46 AM

32

avatar image
Former Member

Hi,

Is it possible to dynamically change the button name ? For example on the screen i have 20 buttons:

Data:   pier_v2 type icons_text,
P1    type    icons-text,
...    .....     .......,
P20  type   icons-text.

And now in PAI:

case sy-ucomm.
  when NR.  (<-- one of 20 buttons, dynamic condition .)
call function 'ICON_CREATE'
	EXPORTING name = 'ICON_LOCKED' 
	IMPORTING RESULT = pier_v2.
And now is it possible to dynamically select one of the 20 buttons    and assign to it pier_v2.
For example:
P8 = pier_v2
and other case
p9 = pier_v2 I don't want 20 conditions, but one dynamic.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers