Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem with collect

how i do 2 lines instead of 3

matnr ............ menge

11111 10 4 3 3 3 3 10

22222 10 3 3 3 3 3 5

22222 10 3 3 3 3 3 10

Tags:
replied

Hi Rani,

Am assuming menge is the last field in itab

loop at itab. 
  at end of menge.
  SUM.
  endat.
endloop.

or declarare all other fields as char and menge as numeric and then use

loop at itab.
collect itab.
endloop.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question