‎2006 Jul 12 8:23 PM
Hello
We have set up an interface to post invoices.
We use the bapi BAPI_ACC_DOCUMENT_POST to do this. The logic has already been programmed.
This BAPI takes the FC (foreign currency amount) (out of our sourcefile) + exchange rate and calculates via this infomation the LC(local currency amount).
In latest tests, it appears that for financial & internal reasons we also need to take the Local currency amount out of our source file & not calculated via SAP.
Problem: There is no field foreseen in this BAPI to do this (to add the LC amounts).
How could we solve this?
Could we use a second BAPI to update the LC amounts (LC tax base amounts need to be updated also, in fact all LC amounts on invoice need to be updated)??
Would this have no neg concequences?
What BAPI can we use for this?
First we thought to update the fields that come out of the BAPI just before they go into the BKPF/BSEG/BSET tables, but the programmer says this is not possible...
Many thanks!!
Message was edited by: Boiler
‎2006 Jul 12 8:55 PM
‎2006 Jul 12 11:31 PM
‎2006 Jul 12 11:56 PM
Use FM AC_DOCUMENT_DIRECT_INPUT. You can pass lot of information in this FM.
‎2006 Jul 13 6:06 AM
Hi
Try using FM 'POSTING_INTERFACE_DOCUMENT'. This is the FM used by FB01 txn as well. It can take both local and global currency.
Cheers,
Vikram
Pls reward for helpful replies!!
‎2006 Jul 14 8:50 AM
Hi Guys, thx for your answer.
This is Boiler with an account of a collegue, since mine was blocked due to an error.
Is it not possible to use our existing BAPI and then use some CHANGE or UPDATE BAPI to change the Local Currency Amount of the invoice?
Is it possible to change the Local Currency Amount of an invoice??
If we have to use the BAPI's that you guys are suggesting, this would mean that we have to do the programming all over again...
We would like to keep using our existing BAPI, but use a second BAPI to update the LOCAL CURRENCY AMOUNT in the invoice that was booked.
Any idea's please??
Thanks for your reply's!
Kr,
Boiler
‎2006 Jul 14 4:28 PM
OK - have a look at transactions:
F04N Vendor Foreign Currency Valuation
F05N Customer Foreign Currency Valuation
F06N Foreign Currency Val. (G/L Accounts)
They run standard SAP program SAPF100. I believe this program recalulates after the documents are posted. The program is documented.
Rob