Example:
Table MSEG contains these fields
EBELN(Po No) BWART(MovementType) MENGE ( QUANTITY)
MBLNR(GoodsReceiptno)
450000001 101 1000 500000001
450000001 101 200 500000002
450000001 102 1000 500000003
450000001 101 400 500000004
Subtotal : 600
450000002 101 200 500000005
450000002 102 200 500000006
450000002 101 100 500000007
Subtotal : 100
This is the ALV output of my report should be...
I have to develope the report in this way.....i have to Add the quantities of
101 movement type of a particular Purchase order EBELN and should subtract it from the
102 movement type quanity ....Result should be Displayed at the End of every EBELN in a
seperate line......
I have Developed the Report completly......But I just Need the Logic to apply on the Movement types......
My final internal table contains all the fields.....which i have mentioned Above....
If you can help me the Complete Coding...i will be thankful.
please help me seniors.....
Urgent please.....
Thanks,
Nalini
Edited by: nalini sap on Jan 2, 2008 1:52 PM