Application Development 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: 

Post in local currency with BAPI_ACC_GL_POSTING_POST

Former Member
0 Kudos

Hi,

BAPI_ACC_GL_POSTING_POST works with document currency - can it post with local currency?

Thks,

William

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Yes you can do that:

BAPIACCR08-CURR_TYPE = 10

Neha

3 REPLIES 3

JozsefSzikszai
Active Contributor
0 Kudos

Local currency is the currency of the company code, right? Every single document is posted in local currency (as well), the translation is done automatically in the system if you post in foreign currency. You don't need to do anything, the BAPI just works like the standard transaction.

Former Member
0 Kudos

Hi

Yes you can do that:

BAPIACCR08-CURR_TYPE = 10

Neha

looks like there is some misunderstanding around this...

let's say the company code currency (=local currency) is EUR.

-If you want to post in EUR, just give EUR into BAPIACCR08-CURRENCY (you don't need BAPIACCR08-CURR_TYPE )

-If you want to post in a foreign currency (anything which is not EUR) and you want SAP to calculate the exchange rate for you than give the foreign currency into BAPIACCR08-CURRENCY (again: you don't need BAPIACCR08-CURR_TYPE )

-If you want to post in a foreign currency and you DON'T want SAP to calculate the exchange rate for you, than it is the case when you need to use BAPIACCR08-CURR_TYPE the following way:

for each single item, you'll need two lines in BAPIACCR08:

BAPIACCR08-CURR_TYPE = '00'

BAPIACCR08-CURRENCY = 'USD'

BAPIACCR08-CURR_TYPE = '10'

BAPIACCR08-CURRENCY = 'EUR'

of course amount will be added for both lines

(it is clearly written down in the documentation of the BAPI)