‎2005 Nov 11 12:41 AM
Hello frnds,
i want to show all messges occurs in my report at one time in one single box with Red/Yellow/Green light buttons against them to identified if it was an error/warning/info message.
For example how we get in Purchase Order(ME21N).
is there anyway to do it...like some function module or class???
waiting for your replies...
Regards,
Arpit
‎2005 Nov 11 12:49 AM
Hi,
You can use Exceptions (LEDs or Traffic Lights) similar to ME21n.
I am providing you a ALV demo program using Exceptions (LEDs or Traffic Lights) it may help if you are ALV report.
Sample Program :
BCALV_GRID_04
‎2005 Nov 11 12:49 AM
Hi,
You can use Exceptions (LEDs or Traffic Lights) similar to ME21n.
I am providing you a ALV demo program using Exceptions (LEDs or Traffic Lights) it may help if you are ALV report.
Sample Program :
BCALV_GRID_04
‎2005 Nov 11 12:50 AM
I think probably you have create your own popup screen with a steploop with two fields like lights and message and you need to populate it and when need to show it whenever you want.
There should be some class also available because Me21n will show that means SAP people would have made it reusable.
Cheers,
Satya
‎2005 Nov 11 12:58 AM
Mine is an Include report and is called in USEREXIT at SAVE for VA01/02. So I dont think I can use ALV solution.
if anyone knows the class or function module for that, it will be great help
regards,
Arpit
‎2005 Nov 11 1:12 AM
‎2005 Nov 11 2:29 AM
Try this :
I am passing Trafic light to my field MARA-FLAG
in my program
Define a flag(4) type C in your internal table.
LOOP AT IT_MARA.
IF IT_MARA-vpsta = 'KELVZX'.
IT_MARA-FLAG = '@08@'.
ELSEIF IT_MARA-vpsta = 'KEBVGX'.
IT_MARA-FLAG = '@09@'.
ELSE.
IT_MARA-FLAG = '@0A@'.
ENDIF.
MODIFY IT_MARA INDEX SY-TABIX.
ENDLOOP.
populate Filed catalogue and use ALV grid display function.