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 BAPI_ACC_GL_POSTING_POST

Former Member
0 Likes
876

Hi, I'm using the bapi to create a new document.

I think that obj_type, obj_key and obj_sys are not mandatory, because bapi deduces it (see error message). my code for headers' paramiter is:


documentheader-username = sy-uname.
documentheader-comp_code = 'TES1'.              "BUKRS
documentheader-doc_date = sy-datum.             "BLDAT
documentheader-pstng_date = sy-datum.           "BUDAT
documentheader-ref_doc_no = '0000000000000985'. "XBLNR
documentheader-DOC_TYPE = '01'.                 "BLART
documentheader-header_txt = 'Test using BAPI'.
documentheader-FISC_YEAR = '2008'.

and error'message is:

Errore nel documento: BKPFF $ T90CLNT090

Interfaccia RW: i dati testata doc. sono inconsistenti per l'aggiornam.

i.e.

error in document BKPFF $ T90CLNT090

interface RW: document data header are inconsistent for updating

Where is the problem ?

Thanks.

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
629

I compared with how I'm calling this FM. I am not filling FISC_YEAR, since this is derived from PSTNG_DATE and might give errors if the two don't match. I am additionally filling BUS_ACT = 'RFBU', maybe try adding this.

Thomas

3 REPLIES 3
Read only

ThomasZloch
Active Contributor
0 Likes
630

I compared with how I'm calling this FM. I am not filling FISC_YEAR, since this is derived from PSTNG_DATE and might give errors if the two don't match. I am additionally filling BUS_ACT = 'RFBU', maybe try adding this.

Thomas

Read only

0 Likes
629

I haven't this filed in my type of BAPI_ACC_GL_POSTING_POST function. Type of DOCUMENTHEADER parameter is BAPIACHE08, not BAPIACHE09, my system is SAP ECC 6.0.

Read only

0 Likes
629

Sorry, I mixed it up, I'm using BAPI_ACC_DOCUMENT_POST.

Thomas