Skip to Content

Function for Invoice total conversion

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 24, 2011 at 09:24 AM

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

    Any ideas please?

    Many thanks

    Gerhard

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.