Skip to Content

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

using control break statement

Hi ,

can anybody help me on this issue.......

using control break statement i want to sum price field at the end of every page i need total....

here i am sending some code what i have written...

LOOP AT it_final INTO wa_final.

AT FIRST.

WRITE: / 'NUMBER RECORDS SELECTED:' , V_LINE.

ENDAT.

AT NEW VBELN.

WRITE: /2 wa_final-vbeln.

ENDAT.

WRITE: /10 wa_final-erdat,

30 wa_final-ernam,

45 wa_final-posnr,

60 wa_final-matnr,

75 wa_final-ntgew,

90 wa_final-netwr.

V_NETWR = V_NETWR + WA_FINAL-NETWR.

AT END OF VBELN.

WRITE: /70 'NET VALUE SALESORDER:',V_NETWR.

ENDAT.

AT LAST.

WRITE: / 'END OF REPORT'.

ENDAT.

ENDLOOP.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question