cancel
Showing results for 
Search instead for 
Did you mean: 

Function for Invoice total conversion

former_member586438
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member586438
Participant
0 Kudos

The program is running succesfully now ,but I'm not getting any output values for my Total field.

Any ideas please?

Many thanks

Gerhard

former_member586438
Participant
0 Kudos

Solved