on 2011 Aug 23 1:20 PM
Hi
I need to display the total of the AR Invoice in SAPScript
I'm using the following code but the program crash due to conversion
I searced the SAP forum but cant find the function to use in my program
Can someone please help?
/:DEFINE &TOT_PRICE&
/:PERFORM F_GET_PRICE IN PROGRAM Z000TOTL
/:USING &BSEG-MWSTS&
/:CHANGING &TOT_PRICE&
/:ENDPERFORM
/&TOT_PRICE&
-
PROGRAM Z000TOTL.
FORM F_GET_PRICE TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
DATA: VALUE type MWSTS.
STATICS VALUE1 TYPE MWSTS.
READ TABLE IN_TAB INDEX 1.
MOVE IN_TAB-VALUE TO VALUE.
VALUE1 = VALUE1 + VALUE.
READ TABLE OUT_TAB INDEX 1.
MOVE VALUE1 TO OUT_TAB-VALUE.
MODIFY OUT_TAB INDEX 1.
ENDFORM.
Many thanks
The program is running succesfully now ,but I'm not getting any output values for my Total field.
Any ideas please?
Many thanks
Gerhard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.