Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFBIBL00: Amount field problem

Former Member
0 Likes
509

Hi,

I am using RFBIBL00 for uploading opening balances.

When I am giving amount as 1000 it's working fine, but when I am giving 1000.00 it showing amount in Accouting Doc as 100000.00.

Means when I am giving amount with decimal, it adding additional zeros at the right.

I am using this code for asigning field to BBSEG:

WRITE wa_itab-wrbtr TO bbseg-wrbtr

CURRENCY wa_itab-waers. "Amount in Doc Currency

Please guide me on the same.

Thanks.

Vinod.

Hi,

I am using RFBIBL00 for uploading opening balances.

When I am giving amount as 1000 it's working fine, but when I am giving 1000.00 it showing amount in Accouting Doc as 100000.00.

Means when I am giving amount with decimal, it adding additional zeros at the right.

I am using this code for asigning field to BBSEG:

WRITE wa_itab-wrbtr TO bbseg-wrbtr

CURRENCY wa_itab-waers. "Amount in Doc Currency

Please guide me on the same.

Thanks.

Vinod.

1 REPLY 1
Read only

Former Member
0 Likes
438

What is your currency ? Is it a currency without decimals ?

When a currency has no decimals, SAP stores the amounts divided by 100.

The "CURRENCY" option of the WRITE statement has the effect of multiplying the amount by 100 for these currencies.

You should use the "CURRENCY" option only if your amounts are stored as in SAP, divided by 100 for currencies without decimals.

If you have "normal" amounts, you should not use this option.