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: 

light in display for the ALV hierarchial list

Former Member
0 Kudos

Hi,

I have a requirement in which the scenario is like this,

The output of the display must have sales order number, batch, delivery number , shippment number, etc.

If the delivery is created for the particular sales order, then on the left corner, green signal has to display, if not red light.

Can any one help me out in finishing this task?

What code to be written and what events to be called in the display?

Points for useful answers.

Regards,

kumar

8 REPLIES 8

Former Member
0 Kudos

Create one column and based on the condition put

ICON_GREEN_LIGHT

ICON_YELLOW_LIGHT

ICON_RED_LIGHT

Regards

Sasi

Former Member
0 Kudos

Hi Kumar,

Check this standard code BCALV_GRID_04

and you are not supposed to mention

Points for useful answers.

Regards

0 Kudos

Hi,

I have created a report and it is displayed in ALV Hierarchial display. In the application tool bar, i have some buttons like SELECT, DESELECT, Sort in ascending , sort in descending.

When I do sorting in ascending or descending order, its functioning well.

But when I click the select/deselect button for the first time, its not changing, but when clicked 2nd time, its selected/deselected.

When i go to the debug mode, I see the following things happening,

my code is Case sy-ucomm.

when 'SELECT'.

clear : wa_table.

loop i_table into wa_table.

wa_table-checkbox = 'X'.

modify i_table from wa_table transporting checkbox where checkbox = ' '.

endloop.

clear : wa_table.

when 'DESELECT'.

loop i_table into wa_table.

wa_table-checkbox = ' ' .

modify i_table from wa_table transporting checkbox where checkbox = 'X'.

endloop.

endcase.

So, my requirement is, when i click the select or deselect once, it has to select/ deselect all the checkboxes, but when i click the buttons second time, the functionality is reached.

Former Member
0 Kudos

Hi,

Create one column named "Lights" and do the folowing steps:

1) in the starting of the program use include INCLUDE <icon>.

2) check for the order is created or not

if created the pass as below.

wa_final-lights = '@08@'. "its green color

if not created pass as below:

wa_final-lights = '@09@'. " Its yellow color

3) and append to the final internal table while showing.

Hope it will useful to you.

0 Kudos

Do we need to call any function module or any event in a function module like ZEBRA = 'X'

some thing like that?

0 Kudos

Not required, Just pass the Icon value to the particular column

Regards

Sasi

0 Kudos

Hi Friend,

The code was really useful.

Thanks for it.

You can register yourself in it and earn points for it.

Former Member
0 Kudos

hi kumar

check this site:

http://saptechnical.com/Tutorials/ALV/Lights/ALV.htm

hope it helps you.

thanks

Sachin