Skip to Content
avatar image
Former Member

Dynamic change the name of button

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers