on 03-25-2009 7:27 AM
Dear all,
When we posted a document in JPY/YEN currency we can see the document say as 815400 yen but in table BSEG-WRBTR the value is stored as 8154.00. We havent maintained any decimals for JPY. But why is it stored as decimals in the table? How to resolve this issue.
I called the function CURRENCY_CONVERTING_FACTOR the factor is 100.
Would be thankful, for early reply.
Regards,
Sri
Edited by: Kommu Srinivas on Mar 25, 2009 8:28 AM
In SAP most of the amounts are stored with 2 decimals, even if the currency has more or less than 2 decimals.
In the programs you have to use the CURRENCY option of the WRITE STATEMENT. This option will convert the internal amount to the right amount for display. You can also use functions like CURRENCY_AMOUNT_DISPLAY_TO_SAP, CURRENCY_AMOUNT_SAP_TO_DISPLAY, CURRENCY_AMOUNT_BAPI_TO_SAP, CURRENCY_AMOUNT_IDOC_TO_SAP, CURRENCY_AMOUNT_SAP_TO_BAPI, CURRENCY_AMOUNT_SAP_TO_IDOC.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear All,
Resolved the issue by calling the call function module in the program
CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
EXPORTING
CURRENCY = WA_BSEG-PSWSL
AMOUNT_INTERNAL = V_AMOUNT_INTERVAL
IMPORTING
AMOUNT_DISPLAY = V_AMOUNT_INTERVAL
EXCEPTIONS
INTERNAL_ERROR = 1
OTHERS = 2
By this, while displaying in the output, the system multiplies internally with 100 and shows the amount. whereby now the amount is shown correctly.
Regards,
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Check this T.code OY04 There Select currency give Decimals 0
Regards
Surya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai Srinu,
Check it once OY01, OY04, t.codes
Regards
Madhu I
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.