on 05-03-2007 6:51 AM
Hello Friends,
I am modifying standard SAPSCRIPT of packing slip. My client wants a subtotal and total in Main Window of Script for Eg. (They want Material Number wise Subtotal and finally Grandtotal at bottom in Main Window)
Now i got stucked up here how to do it ?
here is my sample code.
LOOP AT XVBPLP WHERE VENUM = SHENR.
IF XVBPLP-POSNR IS INITIAL.
Versandelement
PERFORM PACKING_TREE USING XVBPLP-UNVEL.
ELSE.
Lieferposition (Anteil)
VBPLP = XVBPLP.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DELPOS'. "Main Window call
clear vbplp.
ENDLOOP.
Pls guide me for the same.
HI,
For the Line items, put a ELEMENT in the Smartform, and you will call this with in the LOOP and ENDLOOP, so here with in the LOOP count the TOTAL value.
then create new element after the Line item Element, and call this Element after the Line items prints,
/E LINE_ITEM
&1& &2 & &3& " This will be in the loop and you need to caliculate the totla here
/E SUB_TOTAL.
&SUb_TOTAL& " After all the line items pritns then call this Element
Regards
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.