12-10-2008 4:22 PM
Hi,
BAPI_ACC_GL_POSTING_POST works with document currency - can it post with local currency?
Thks,
William
12-10-2008 4:34 PM
12-10-2008 4:31 PM
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.
12-10-2008 4:34 PM
12-11-2008 8:17 AM
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)