Fonction SAP BAPI_CURRENCY_CONV_TO_INTERN_9 - Conversion of Currency Amounts into Internal Data Format

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AMOUNT_EXTERNAL BAPICURX-BAPICURX P 15 External Currency Amount
CURRENCY TCURC-WAERS C 5 Currency description
MAX_NUMBER_OF_DIGITS I I 4 Maximum Field Length of Internal Domains

Paramètre Reférence Type Long. Description
AMOUNT_INTERNAL 0 Converted Internal Currency Amount
RETURN BAPIRETURN u 452 Return Messages

Functionality
Converts currency amounts from the external format into SAP internalforamt.
The value range is restricted by the parameter "MAX_NUMBER_OF_DIGITS".

Notes
It is used in BAPI interfaces.

Description
Error messages

Value range
The following error situations can occur:
Code Description
-----------------------------------------------------------------------
S& 040 Currency cannot be converted
S& 041 External currency amount too big and cannot be converted
S& 042 Number of decimal places is more than the maximum allowed
S& 044 Transferred currency key is unknown
S& 045 No currency key transferred: No conversion

Description
This parameter is used restrict the value range. The maximum number ofplaces before and after the decimal point is 23 (domain BAPICURR).
Example:
If a domain for an internal field is 11 digits in length, the maximumnumber of places before and after the decimal point is also 11. For allexternal amounts that are longer than 11 digits, the error code HV041"External currency amount is too big, therefore no conversion possible"is output in the parameter return.

Value range
Maximum 23

529159Condition records with the calculation types G/Q/T
518858Interchange of conditions: Problms for percentage conditions
509244Incorrect conversion of percentage display