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