on 09-14-2007 2:31 PM
Experts,
I'm using file to IDoc scenario for GL posting(transaction FB01) with message type ACC_GL_POSTING and idoc type ACC_GL_POSTING01. Also tried acc_document with acc_document01 but I have the following error from the IDoc:
Status record: error code 51 Error in document: BKPF
Required field OBJ_KEY was not transferred in parameter DOCUMENTHEADER
Incorrect entry in field OBJ_TYPE: BKPF
Required field OBJ_SYS was not transferred in parameter DOCUMENTHEADER
I've checked the table ttyp and it has an entry for BKPF, BKPFF & IBKPF. I've expacted the system to generate these automatically as it does for the manually created docuements.
Would someone please guide me to fix this problem, points will rewarded generously for helpful suggestions.
systems info:
XI version 3.0
SAP 4.6C
Thank you, Taj
Hi,
Provide a value for OBJ_KEY from this table : TTYP (Object Types for Accounting)
and a value for OBJ_SYS from this table: TBDLS (Logical system)
then your idoc should be posted successfully.
Regards,
Jakub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not an XI related error
IDocs with status 51 means there is error in application system i.e R/3. According to the error, ur Idoc holds incorrect data at the field OBJ_TYPE: BKPF.
How r u actually triggering the idocs? Through change pointers or any custom reports?
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've tried the data that I've used to create a document successfully using manual transaction FB01therefore data is correct the only problem are the object keys and these I've tried the followings
BKPF, BKPFF & IBKPF for OBJ_TYPE
OBJ_KEY left blank as system is supose to populate with generated document no. and posting date
OBJ_SYS is populated with system info i.e FQA_410
Hi Taj,
Try to repost your fail idoc using WE19 with posting function module....here you can debug the code and check exact location of failure..
As suggested above it might b a mandatory field..probably you can assign some constant value in mapping and check if its posting sucessfully.
Let us know the result.
Nilesh
Hi Taj,
Function module "BAPI_IDOC_INPUT1" is common FM for processing inbound idocs...
If you try to debug this FM then you will find code something like "CALL FUNCTION FUNCTION_NAME" inside which is actual function module attached to your process code..you can call this function module directly in WE19 while processing inbound idocs..
From there you can debug for next error.
Meanwhile map some constant value in Message mapping to this field and check if it is posting idoc.
Nilesh
Nilesh,
I've debugged the FM and it seems like the obj_typ and obj_key are mandatory. My understanding is that obj_key is made of document no. and posting date, I have posting date but document no. is to be generated by the system. Do I need some sort of config that it generates the document itself or should I be using another FM to pickup next avialble doc num and use it in the obj_key.
thanks!
Taj,
Let us do one small test...assign some constant value to OBJ_KEY in your XI messsage mapping and check if it is giving any error.
But I have a feeling that there should be some field in idoc which would tell that document number would be generated internally.
Did you try to assign some value to OBJ_KEY in debug mode? check out whats happen if you assign in Message mapping / at run time.
Nilesh
Taj,
Notice, that this idoc type has been generated based on BAPI <i>BAPI_ACC_GL_POSTING_POST</i> via transaction BDBG - Generate ALE interface for BAPI.
If I were you I would:
1) read the BAPI documentation regarding the import/export/etc. parameters
se37->Function Module Documentation
2) try to use transaction se37 to call <i>BAPI_ACC_GL_POSTING_POST</i> and post some accounting document, at the begining fill as little as possible fields then you will find out which are mandatory and which are not. Then you will gain knowledge which fields have to be mapped in XI in order to post your IDoc successfully.
If you want to read more about ALE interface for BAPI take a look at this doc: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2a1dd5d3-0801-0010-ed8d-bd797ed922cb">Asynchronous BAPI-ALE Communication</a>
Regards,
Jakub
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.