Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Some questions of BAPI_ACC_POST_DOCUMENT

Dear Friends,

I want to use FM: BAPI_ACC_DOCUMENT_POST to Create the FI Document from the external system and I have used obj_type: bkpff and obj_key: $, but I found the return error message as "Type:E/ ID: RW/ NUMBER: 628/ Message: Incorrect entry in field OBJ_TYPE: BKPFF".

So I went to see the source code of this FM and found that the "PERFORM check and_fill_acc_document" has some code like the following:


IF document_header-obj_type = 'BKPFF'.

PERFORM append_msg_to_return


'RW' "ID

'628' "NUMBER




1 "ROW




I'm not sure that SAP ECC6 not allowed to use this obj_type or not ?, because I don't found this code in the previous version.

The last I have changed to use the obj_type: VBRR instead, and it was posted successfully. I can see the document from FB03. But I cannot find the field which is refers to the Posted doc in this FM, so I cannot send it return to the external system.

How can I do? Please helps,

Thanks in advances,


Former Member
Not what you were looking for? View more on this topic or Ask a question