2007 Jun 12 3:26 PM
How to set Traffic lights in Module pool programing.
If all the items are processed then i need to set Green signal,
if partial then Yello
if nothing then red.
2007 Jun 12 3:36 PM
just use the function module create_icon........importing the icon_name into a status_icon.....declare a field with name as status icon. do this in pbo....
2007 Jun 12 3:33 PM
It depend on what your UI looks like. Do you have a table control which is in your screen? And you want to set a light for each row of the table control? If so, all you need to do is set the column in the table control as a status field, then in your program you can write the icon to the internal table field.
type-pools: icon.
* This example simply writes the icon to the status field for all records.
loop at itab.
write icon_green_light as icon to itab-status.
modify itab.
endloop.
Regads,
Rich Heilman
2007 Jun 12 3:36 PM
just use the function module create_icon........importing the icon_name into a status_icon.....declare a field with name as status icon. do this in pbo....
2007 Jun 12 3:36 PM
I am not using Table control.
I am just having a screen with 4 fields which will have Contract number
If i give the contract number value, and save, it has to do some process and has to display the lighjt option
2007 Jun 12 3:40 PM
2007 Jun 12 3:54 PM
2007 Jun 12 3:38 PM
2007 Jun 12 3:43 PM
2007 Jun 12 3:45 PM
Hi Sumi,
You can find values corresponding to ICONs in the type group ICON.
CONSTANTS: c_err(4) TYPE c VALUE '@0A@'.
CONCATENATE
c_inf
text-082
into v_field separated by space.
pass the v_field to the screen, this will display the icon and the text following it.
Regards,
George
2024 Mar 18 9:10 AM