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

Multiple mesages in same box?

Former Member
0 Likes
734

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
712

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

5 REPLIES 5
Read only

Former Member
0 Likes
713

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

Read only

Former Member
0 Likes
712

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

Read only

Former Member
0 Likes
712

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

Read only

0 Likes
712

You can use the function module REUSE_ALV_POPUP_TO_SELECT. Just turn off the "SELECT" part. Setup the fieldcatalog, and pass the data with icons. It will show an ALV grid in a popup dialog box.

Regards,

Rich Heilman

Read only

0 Likes
712

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.