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 display an status Icon in Table UI web dynpro ABAP?

laeeqsiddique
Participant
0 Kudos
405

Hi Experts ,

How to display an status Icon ( Traffic light ) in Table UI web dynpro ABAP? can somebody tell with a coding example. also I need to update status on condition so whats the best way?

Thanks in advance.

Regards,

1 REPLY 1

Former Member
0 Kudos
80

Hi Laeeq,

click on table cntrol n place it on the screen..

now click on the icon button n place it in the table control area.. a column of icons get created. name it (say) ICON.

in the PBO..

loop at internal table and call module in the loop (say) .

MODULE ICON_DISP.

now in the module try the foll code :

module icon_display output.

  • check some condition and assign the icon to the variable icon_r

icon_R = 'ICON_GREEN_LIGHT'.

CALL FUNCTION 'ICON_CREATE'

EXPORTING

name = ICON_R

  • TEXT = ' '

  • INFO = ' '

  • ADD_STDINF = 'X'

IMPORTING

RESULT = ICON

  • EXCEPTIONS

  • ICON_NOT_FOUND = 1

  • OUTPUTFIELD_TOO_SHORT = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

endmodule.

where icon(35) and icon_r(35) type c .

hope this helps u..

Regards

Aparna