on 11-19-2007 7:49 PM
I want Total in my script
my script design is
Amt disc amt
abc 100
___________________
Total 100
so is there any standard text in sap scriptfor total ?????
or define variable in print prog and also in sap script????
give me suggetion step by step
Vishal
Hi Vishal,
Go through below link
http://sap-img.com/sapscripts/sapscript-how-to-calculate-totals-and-subtotals.htm
Regards,
Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you can define a variabe in your print program and pass it to the SAPScript.
LIKE:
Define L_SUM in the Global data.
DATA: L_SUM TYPE BSEG-DMBTR.
LOOP AT ITAB.
L_SUM = L_SUM + ITAB-AMOUNT.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
WINDOW = 'MAIN'
ELEMENT = 'TOTAL'.
Now, in your SAPScript, create a text element in MAIN window
/E TOTAL
* Total,, &L_SUM&.
Regards,
Naimesh Patel
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.