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

ALV GRID - display 2 or more in one row

Hi all,

My problem. One Sales Order has more than 2 Invoices.

Until Invoice Number I want to display in separate rows and from Total Invoice Qty I want to display in one row for that sales order no.

Please Help me .

__________________________________________________________

order no l inv qty l invoice no l tot inv qty l returns l

__________________________________________________________

500001---- 5


210444 -
10--


5

-


500001---- 5


210455 -
10--


5

-


I want it in this way

__________________________________________________________

order no l inv qty l invoice no l tot inv qty l returns l

__________________________________________________________

500001-------5 -


210444

-


10 -


5

500001-------5 -


210455

-


Thank u.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2006 at 04:27 PM

    Hi Balaji,

    You have to populate the field catalog accordingly changin the row position for the last two fields....

    wa_fieldcat-tabname= 'ITAB'.

    wa_fieldcat-fieldname= 'VBELN'.

    wa_fieldcat-row_pos = 1.

    wa_fieldcat-clo_pos = 3.

    wa_fieldcat-seltext_m = 'Invoice No'.

    append wa_fieldcat to it_fieldcat.

    wa_fieldcat-tabname= 'ITAB'.

    wa_fieldcat-fieldname= 'BWENG'.

    wa_fieldcat-row_pos = 2.

    wa_fieldcat-clo_pos = 4.

    wa_fieldcat-seltext_m = 'Total Qty'.

    append wa_fieldcat to it_fieldcat.

    Regards,

    Vidya.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 29, 2006 at 05:02 PM

    You can not do this using standard ALV Grid. You can however subtotal on the order number which will give you totals for the "tot inv qty".

    Regards

    Rich Heilman

    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.