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: 

Internal Table Operation Help Required

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

can u please tel me the format of output u want??

0 Kudos

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.