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: 

How to show icon(traffic lights) into table control in dialog program?

Former Member
0 Kudos

I want to show icons in my table control according to record status ,how i will do this.Code example definitely

helps a lot.

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

In your internal table, have a field called "STATUS" which is a character field with a length of 4.

When filling your internal table, depending on your logic, write the icon into the field.

WRITE ICON_GREEN_LIGHT as ICON into ITAB-STATUS.

You may need to add the type statement in your TOP include.

type-pools: icon.

Thats pretty much it.

Regards,

Rich Heilman

Former Member
0 Kudos

Hi Ablert,

try this:

declarations in TOP-Include:

data: hlp_icon(23) type c,

hlp_quick type iconquick.

then in PBO-Module during steploop:

move 'ICON_GREEN_LIGHT' to hlp_icon.

move 'go!' to hlp_quick.

call function 'ICON_CREATE'

exporting

name = hlp_icon

info = hlp_quick

importing

result = your_dynpro_field

exceptions

icon_not_found = 1

outputfield_too_short = 2

others = 3.

if sy-subrc <> 0.

clear your_dynpro_field

endif.

hope this helps, regards, Kathrin!

Former Member
0 Kudos

Hi,

In my table control only single line getting updated in the date base instead of multiple lines.