cancel
Showing results for 
Search instead for 
Did you mean: 

Currency JPY is stored in Decimals in Table BSEG

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member194797
Active Contributor
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

Check this T.code OY04 There Select currency give Decimals 0

Regards

Surya

Former Member
0 Kudos

Hai Srinu,

Check it once OY01, OY04, t.codes

Regards

Madhu I