Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8150

Errors with BAPI_ACC_DOCUMENT_CHECK

$
0
0

Dear Experts,

 

I've been having errors with my codes for executing BAPI_ACC_DOCUMENT_CHECK.

Eventually, I will also need to run the same codes for BAPI_ACC_DOCUMENT_POST too.

 

Here is how I have populated the input parameters for the BAPI_ACC_DOCUMENT_CHECK:-

 

1) Input parameter, DOCUMENTHEADER:-

 

USERNAME = 'SY-UNAME'

HEADER_TXT = 700/003350

COMP_CODE = 8000

DOC_DATE = 05.03.2015

PSTNG_DATE = 19.01.2015

 

(Other fields are left blank here.)

 

2) Input parameter, ACCOUNTGL:-

 

ITEMNO_ACC = 1

ACCT_TYPE = D

FIS_PERIOD = 01

FIS_YEAR = 2015

CUSTOMER = 10005

 

(Other fields are left blank here.

Only 1 data record is populated for this internal table.)


Executing the BAPI with just these two input parameters above will not return any error messages at all.

 

3) Input parameter, CURRENCYAMOUNT:-

 

ITEMNO_ACC = 1

CURR_TYPE = 00

CURRENCY = GBP

AMT_DOCCUR = 40.2500

 

(Other fields are left blank here.

Only 1 data record is populated for this internal table.)

 

But, when I add the third input parameter as shown above, these error messages will be returned:-


RW 609: Error in document: BKPFF

RW 022: FI/CO interface: Balance in transaction currency

 

If I change the data value for CURRENCYAMOUNT-CURR_TYPE to 10, these error messages will be returned:-

 

RW 609: Error in document: BKPFF

RW 021: FI/CO line item without transaction currency information

 

P/S:

I have also tried adding another data record to the input parameter, CURRENCYAMOUNT as follows, but the same errors still persist:-

 

ITEMNO_ACC = 2

CURR_TYPE = 00

CURRENCY = GBP

AMT_DOCCUR = 40.2500-

 

How may I pass this BAPI execution successfully, with currency amounts?

 

Please do advise. Appreciate any inputs at all.

 

Thanks in advance.

 

 

Deborah


Viewing all articles
Browse latest Browse all 8150

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>