2008 Jun 04 6:40 AM
hi all,
i have one internal table, in that i am extracting sales details, for one sales order there are N no of materials. now i need the count of the materials with respect to the sales order how i should proceed
thanks in advance.
2008 Jun 04 6:43 AM
Hi,
Loop the internal table, and read all the materials for the particular sales order into another internal table, and then use the command describe table and get the count of your materials.
Thanks
Nayan
hi all,
i have one internal table, in that i am extracting sales details, for one sales order there are N no of materials. now i need the count of the materials with respect to the sales order how i should proceed
thanks in advance.
2008 Jun 04 6:43 AM
Hi,
Loop the internal table, and read all the materials for the particular sales order into another internal table, and then use the command describe table and get the count of your materials.
Thanks
Nayan
2008 Jun 04 6:44 AM
just use a counter and loop the table and increase the counter at new matnr.
data: count type i.
loop at itab where VBELN = 'value'.
at new matnr.
count = count + 1.
endat.
endloop.
2008 Jun 04 12:20 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |