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_ACC_DOCUMENT_CHECK / POST FBB1

Former Member
0 Likes
4,711

Hi guys,

we are using BAPI_ACC_DOCUMENT_CHECK / POST to create postings in FI and it works.

The only problem we have is concerning documents with 0 in Local Currency (as if posted with FBB1. Below there is an example of the internal table CURRENCYAMOUNT of the document we are trying to post.


ITEMNO_ACC   |CURR_TYPE  |CURRENCY|CURRENCY_ISO|AMT_DOCCUR
000000001    |00         |USD     |            |       100
000000001    |10         |EUR     |            |         0
000000002    |00         |USD     |            |      -100
000000002    |10         |EUR     |            |         0

We receive the error message F5 800 "Inconsistent currency information"

Did anyboby of you experienced such a problem?

Many thanks in advance

GFV

Hi guys,

we are using BAPI_ACC_DOCUMENT_CHECK / POST to create postings in FI and it works.

The only problem we have is concerning documents with 0 in Local Currency (as if posted with FBB1. Below there is an example of the internal table CURRENCYAMOUNT of the document we are trying to post.


ITEMNO_ACC   |CURR_TYPE  |CURRENCY|CURRENCY_ISO|AMT_DOCCUR
000000001    |00         |USD     |            |       100
000000001    |10         |EUR     |            |         0
000000002    |00         |USD     |            |      -100
000000002    |10         |EUR     |            |         0

We receive the error message F5 800 "Inconsistent currency information"

Did anyboby of you experienced such a problem?

Many thanks in advance

GFV

5 REPLIES 5
Read only

vyende
Active Participant
0 Likes
2,803

Hi

This is not the BAPI error per se. It is an error from Function Module CONVERT_TO_LOCAL_CURRENCY (called in the BAPI). Make sure that your settings are correct in your configuration Transaction OB08

Read only

GFV
Active Contributor
0 Likes
2,803

Hi Vyerah,

I see that the FM CONVERT_TO_LOCAL_CURRENCY is called in the FORM FI_DOCUMENT_COLLECT, with the following parameters


        CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
             EXPORTING
                  LOCAL_CURRENCY   = 'EUR'
                  FOREIGN_CURRENCY = 'USD'
                  FOREIGN_AMOUNT   = '100'
                  DATE             = SY-DATUM
                  RATE             = '0.8...'
*               TYPE_OF_RATE     = P_ACC-KURST
             IMPORTING
                  LOCAL_AMOUNT     = H_DMBTR.

Then, since the fact that H_DMBTR isn't space this FORM raises MESSAGE E800. I guess that's because the Local Currency "calculated" isn't zero, as the value I pass in the internal table.

Which settings should I make in OB08?

Many thatnks in advance.

GFV

Read only

GFV
Active Contributor
0 Likes
2,803

Hi All,

the problem gets solved with OSS Note 1040798 - BAPI_ACC_DOCUMENT_POST: Error message F5 800. It adds an additional check :


IF ...
      AND P_ACC-AWTYP NE 'BKPFF'                          "note 1040798
...

that prevents the FM CONVERT_TO_LOCAL_CURRENCY execution.

Best regards

GFV

Read only

GFV
Active Contributor
0 Likes
2,803

OSS Note

Read only

Former Member
0 Likes
2,802

Hi Gianfranco Vallese,

i got the same issue for the Fourth currency.

issue:

While posting JE invoice getting an error in BAPI_ACC_DOCUMENT_CHECK in s/4 Hana.

There only a problem with Functional/Fourth Currency. Below there is an example of the internal table CURRENCYAMOUNT of the document we are trying to post.

we receive the error F5 800 "Inconsistent currency information".

While search SCN found a similar question discussion but not related to Fourth Currency.

While testing some other Functional currency type we are not getting an error. test cases below example.

sucess: