Skip to Content
author's profile photo Former Member
Former Member

light in display for the ALV hierarchial list

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2008 at 11:58 AM

    Create one column and based on the condition put

    ICON_GREEN_LIGHT

    ICON_YELLOW_LIGHT

    ICON_RED_LIGHT

    Regards

    Sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2008 at 12:03 PM

    Hi Kumar,

    Check this standard code BCALV_GRID_04

    and you are not supposed to mention

    Points for useful answers.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2008 at 12:33 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 31, 2008 at 10:16 AM

    hi kumar

    check this site:

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

    hope it helps you.

    thanks

    Sachin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.