Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Strange difference between Function and Class Method

Funny  I execute the function

FUNCTION Z_MM_0530_AMOUNT.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     REFERENCE(IV_PRICE) TYPE  NETWR

*"     REFERENCE(IV_CURRENCY) TYPE  WAERS

*"  EXPORTING

*"     REFERENCE(ES_AMOUNT) TYPE  FDT_S_AMOUNT

*"----------------------------------------------------------------------

ES_AMOUNT-NUMBER = IV_PRICE.

ES_AMOUNT-CURRENCY = IV_CURRENCY.

Entering as parameter 20,00 EUR I get 20,00 EUR

If I do the same in class method I get 2.000EUR

Can someone explain the difference ?

Cheers

Stephane

Not what you were looking for? View more on this topic or Ask a question