2010 Jun 17 11:06 AM
Hi All,
I am posting with reference to Accounting document (Transaction FBR2) using BAPI_ACC_DOCUMENT_POST, but Iam getting some errors,( Incorrect entry in field OBJ_TYPE: IBKPF) . I used BAPI_ACC_GL_POSTING_POST(using existing document 5100000009) as well, here Iam getting status message as Document posted successfully: IBKPF 5100000009X2402010 ECDCLNT140, but I want a new document to be created.
Please let me know whether Iam using correct BAPI?
What is the value to be passed to field OBJ_TYPE ?
Appreciate your help.
Thanks and Regards
RK
2010 Jun 17 11:17 AM
Hi,
From what i understand from your error, you are passing incorrect entry to OBJ_TYPE. GO to Se37 and in the Export parameters, in front of the OBJ_TYPE, below the column for Long text, click on the green button.
It would open a popup window with all details of what needs to be given.
Actually, its an exporting parameter, so you dont need to pass anything, the BAPI would return that value.
In your program just declare a variable L_OBJ_TYPE of type BAPIACHE09-OBJ_TYPE and pass it to BAPI. On Execution, that BAPI would return value of OBJ_TYPE which you can pass further.
Hope its clear.
Regards,
Mansi.
2010 Jun 17 11:17 AM
Hi,
From what i understand from your error, you are passing incorrect entry to OBJ_TYPE. GO to Se37 and in the Export parameters, in front of the OBJ_TYPE, below the column for Long text, click on the green button.
It would open a popup window with all details of what needs to be given.
Actually, its an exporting parameter, so you dont need to pass anything, the BAPI would return that value.
In your program just declare a variable L_OBJ_TYPE of type BAPIACHE09-OBJ_TYPE and pass it to BAPI. On Execution, that BAPI would return value of OBJ_TYPE which you can pass further.
Hope its clear.
Regards,
Mansi.
2010 Jun 17 11:43 AM
@ SAP USER
As per the BAPI documentation , Do i need to maintain separate value in the OBJ_TYPE field (reference transaction) in table TTYP, then what is function module associated to this.
Please help me.
Thanks
RK
2010 Jun 22 6:36 AM
Hi,
Check if you have the authorisation to maintain the table TTYP. If Not consult some Functional Consultant in this domain to know details about maintaining this table.
I dont think there would be any specific function module to maintain the table TTYP. If i am able to find one, will pass on the information to you.
Regards,
Mansi.
2010 Jun 22 7:55 AM
try to findout how excatly the error message is comming' trhough debugging.
zashok
2010 Jun 17 11:26 AM
Hi,
Use the BAPI "BAPI_ACC_DOCUMENT_POST". Dont pass value to the parameters "OBJ_TYPE","OBJ_KEY",'OBJ_SYS".
Regards
Vinod
2010 Jun 17 11:31 AM
Hi Vinod,
When I didn't pass values for above parameters, Iam getting the follwing errors, these are mandatory fields.
Error in document:
Required field OBJ_TYPE was not transferred in parameter DOCUMENTHEADER
Required field OBJ_KEY was not transferred in parameter DOCUMENTHEADER
Required field OBJ_SYS was not transferred in parameter DOCUMENTHEADER
Thanks
RK