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: 

ALV GRID - display 2 or more in one row

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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