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

dynamic icon on screen

Former Member
0 Likes
2,197

Hi members,

is there any option in screen painter through which we can display icon dynamically on a screen?

Regards,

Subhendu Gouda

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,220

Hi,

If you are asking regarding the runtime display of status icons, please refer to the following link and go through the documentation of the function module icon_create for further reference.

http://help.sap.com/saphelp_nw04/helpdata/en/59/348efa61c611d295750000e8353423/content.htm

Regards,

Ram.

Hi members,

is there any option in screen painter through which we can display icon dynamically on a screen?

Regards,

Subhendu Gouda

3 REPLIES 3
Read only

Former Member
0 Likes
1,220

Hi,

There is no such option in screen painter,

But in the PBO of the screen, You can code it to appear or make it invisible..using

LOOP at SCREEN.

if screen-name = ... "Screen field name- icon in your case.

SCREEN-INVISIBLE = 1. (set to 0 for visible)

MODIFY SCREEN.

endif.

ENDLOOP.

Regards

Shiva

Read only

Former Member
0 Likes
1,221

Hi,

If you are asking regarding the runtime display of status icons, please refer to the following link and go through the documentation of the function module icon_create for further reference.

http://help.sap.com/saphelp_nw04/helpdata/en/59/348efa61c611d295750000e8353423/content.htm

Regards,

Ram.

Read only

0 Likes
1,220

Hi Subhendu

There are 2 ways to do creating dynamic icons

one is like this

1.You can create icons dynamically you can use "ICON_CREATE" fm

2.you can go for layout say field (pushbutton ,input,button)

any field in screen select as a output field with icon(check box).

move the data accordingly with you icon.

say

in pbo

module screen_icon_change

module screen_icon_change.

data:screen field type c(20).

data:icon1 type icon-id.

data:icon2 type icon-id.

if flag = 'X'.

CONCATENATE TEXT-000 ICON1 into screen field.

else.

CONCATENATE TEXT-000 ICON2 into screen field.

endif.

like that you can do it

Thanks

Ravi