09-05-2017 11:46 AM
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.