‎2009 Jan 23 10:38 AM
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.
‎2009 Jan 23 10:42 AM
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
‎2009 Jan 23 10:42 AM
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
‎2009 Jan 23 11:33 AM
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.
‎2009 Jan 23 12:30 PM