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

Former Member
0 Likes
619

Hello All,

I am using the FM BAPI_ACC_DOCUMENT_CHECK in my object and i receive the message "Inconsistent currency information" in RETURN[].

Please let me know in what scenarios we get this message. When looked into the Documentation of BAPI_ACC_DOCUMENT_CHECK i could not get any info on the RETURN table.

Your pointers are welcome.

Regards,

-PSK

4 REPLIES 4
Read only

Former Member
0 Likes
526

better to create a custom fn module like BAPI_ACC_DOCUMENT_CHECK the u can chage in export parameter.

Read only

Former Member
0 Likes
526

Hi,

you are not passing some imp info to the<b> CURRENCYAMOUNT</b> table paramter.

check the documentation on it.

Currency Items

Description

This parameter describes the currency fields for a particular line item.

The parameter is a required field for the method POST. If the parameter is not maintained for the method CHECK, only a general account assignment check is carried out. Individual line items or several documents can be checked at once in this way.

The following fields must be filled out:

CURRENCY Currency key

AMT_DOCCUR Currency amount

Value range

The field CURR_TYPE (currency type) describes the role played by a currency in the SAP System.

The currency type can take on the following values, for example:

00 Transaction currency

10 Company code currency

20 Controlling area currency

30 Group currency

40 Hard currency

50 Index-based currency

60 Global company currency

If an entry is not made in the field CURR_TYPE, the default value "00" is retained.

If only one data record is transferred in transaction currency for each line item, the field CURR_TYPE does not need to be filled out. If several data records are transferred for each line item, the currency type must be entered for each record.

regards

vijay

Read only

0 Likes
526

Hi Vijay,

Thanks for the posting.

The CURRENCYAMOUNT is filled in this way:


ITEMNO_ACC CURR_TYPE CURRENCY AMT_DOCCUR 
0000000001|00       |HUF     |1000000.0000 |
0000000002|00       |HUF     |1000000.0000-|
0000000003|00       |HUF     |1000000.0000 |
0000000003|10       |EUR     |6813.7400 |
0000000004|00       |HUF     |1000000.0000-|
0000000004|10       |EUR     |6813.7400-|
0000000005|00       |HUF     |1000000.0000 |
0000000005|10       |EUR     |757.0800 |
0000000006|00       |HUF     |1000000.0000-|
0000000006|10       |EUR     |757.0800-|
0000000007|00       |HUF     |1000000.0000 |
0000000007|30       |USD     |8256.8900 |
0000000008|00       |HUF     |1000000.0000-|
0000000008|30       |USD     |8256.8900-|

Is this an valid file and could you please point out at the line items which do not obey the process.

Regards,

- PSK

Read only

0 Likes
526

ITEMNO_ACC CURRENCY AMT_DOCCUR

I guess the negative signs in the AMT_DOCCUR are not supported try by changing the negative signs