2008 Sep 20 7:46 AM
Dear Techis ,
The requirment is that i am havin three line items for a particular document.
I need to shw amount of all dese line item at Header level , it means of thr line item i will jus pick Amount and will shw it in one single row with in three differen colums .
is it possible ?
Thanks&Regards
Santo
2008 Sep 21 5:39 AM
Hello Santhosh,
Are you going to use ALV/ classical reporting. Will not the subtotaling function in the ALV will help you? In that the case the total amount will be shown in the line end.
Otherwise you can use the hierarchical ALV display to attain this functionality.
Regards
Farzan
2008 Sep 20 7:48 AM
2008 Sep 20 8:02 AM
Hi Santosh,
So you must be having items in a internal table, loop at that internal table and sum the amount field using a variable inside the loop and print the value.
If you are dealing with Purchase Order or Sales Order , you can get the value directly from the header tables(EKKO or VBAK).
Revert back if u have any doubts.
Regards
Karthik D
2008 Sep 20 8:23 AM
Thanks karthik of immediate reply actually my requirment is m using table BKPF(Header) and BSEG (Line item)
Now break of line item amount i need to show in different columns so i cant go for summing them i want to shw line item amt in different columns
2008 Sep 20 10:27 AM
Hi,
Populate the header details in the final table leaving the columns empty for the amount for the line items.
Then using field symbols amount for line items can be populated by looping at the BSEG table.
Regarsd,
Prasana.
2008 Sep 21 5:39 AM
Hello Santhosh,
Are you going to use ALV/ classical reporting. Will not the subtotaling function in the ALV will help you? In that the case the total amount will be shown in the line end.
Otherwise you can use the hierarchical ALV display to attain this functionality.
Regards
Farzan
2008 Sep 23 10:23 AM