10-28-2007 11:24 AM
Hi
I have to insert 8 counters p1-p8 in a field BANFN of ITAB1.
Like this their are 3 more fileds.I have to show the no. for PR released frm JAN-DEC in ALV format.I had doen the calualation,but unable to insert these conters in ITAB1 to do final calculation & display the result.
Please help me.
I had used : insert p1 into itab1-banfn where sy-index 1.
Like this I had tried out many comands,but al in vain.PLZ help me in this regard.
Regards.
Vipin
10-28-2007 11:52 AM
10-28-2007 12:05 PM
There are 8 fileds in my internal table,in which 1st one is for MONTH(JAN-DEC).
The ALV is only suppose to display 12 rows,containing each month per row.
Now for each month I have to display the PR converted to PO & the avg lead time for each month.So I had calu all the data ,but now I have to insert 12 counters in 4 fields.one for No of PR converted to PO in each month,than one for AVG LEAD TIME for each month.so there has to be 12 + 12 counters for each row.Similar operation I have to perform for the PR pending fo PO.So there has to be 24 more counters for again 2 diff fileds.Now I had calcuated the data,but the problem is this ,,,,,how to insert each ctr in each row.
EG: insert ctr1 into itab1-banfn where itab1-mmyy = 'January' or sy-index = 1.
insert ctr2 into itab1-banfn where itab1-mmyy = 'Febuary' or sy-index = 2.
move crt1 to itab1-banfn where sy-index = 1.
None of the operation is working.
Like this i have to insert 48 counters in all rows for these 4 diff fileds.
Pl help me in thsi regard ,if possible.
regards.