‎2007 Jan 02 10:57 AM
Hi all,
i have an internal table it_item with fields it_item-matnr ,it_item-desc and ...
to display in the form i need to get the serial nos dynamically if i have more than one matnr exists.
waiting for reply.
regards
akmal
‎2007 Jan 02 11:00 AM
simply add one more column to ur itab called as SNO and then fetch data from the corresponding fields of ur table ..after tht -
loop at itab.
itab-sno = sy-tabix.
modify itab index sy-tabix.
endloop.
so records will now have serial numbers.
amit
Message was edited by:
Amit Tyagi
‎2007 Jan 02 11:00 AM
simply add one more column to ur itab called as SNO and then fetch data from the corresponding fields of ur table ..after tht -
loop at itab.
itab-sno = sy-tabix.
modify itab index sy-tabix.
endloop.
so records will now have serial numbers.
amit
Message was edited by:
Amit Tyagi
‎2007 Jan 02 11:09 AM
‎2007 Jan 02 11:03 AM
Hi,
What is your requirement, why u need serial number here?....
‎2007 Jan 02 11:28 AM
hi,
i require serial nos to display in my form.if there is one entry it should have a number 1 in the sl.no column n if there are more than one entries it shoukld get it dynamically.hope u got it.
regards
akmal
‎2007 Jan 02 11:05 AM
are you taliking about the repeatation of material no?
then the code
data : counter type i.
sort itab by matnr.
loop at itab.
at new matnr.
clear : counter.
endat.
counter = counter + 1.
itab-slno = counter.
modify itab index sy-tabix.
endloop.
it will show
1 m1
2 m1
3 m1
1 m2
2 m2
like this if you want any other thing let me know.
regards
shiba dutta