Application Development 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: 

Dynamic change the name of button

Former Member
0 Kudos

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.

0 REPLIES 0