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

BAPI (mega URGENT)

Former Member
0 Likes
912

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

6 REPLIES 6
Read only

Former Member
0 Likes
842

Can you use the CURRENCYAMOUNT table parameter?

Rob

Read only

Former Member
0 Likes
842

Try using AC_DOCUMENT_DIRECT_INPUT instead of the BAPI.

Read only

Former Member
0 Likes
842

Use FM AC_DOCUMENT_DIRECT_INPUT. You can pass lot of information in this FM.

Read only

Former Member
0 Likes
842

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!!

Read only

0 Likes
842

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

Read only

0 Likes
842

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