Page 1 of 1

Some questions of BAPI_ACC_DOCUMENT_POST

Posted: Thu Sep 25, 2008 10:44 am
by SeMs
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
USING 'E' "TYPE
'RW' "ID
'628' "NUMBER
'BKPFF' "MESSAGE_ONE
'DOCUMENTHEADER' "MESSAGE_TWO
'DOCUMENTHEADER' "PARAMETER
1 "ROW
'OBJ_TYPE'. "FIELD
ENDIF.
*******************************

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,
Sams

Re: Some questions of BAPI_ACC_DOCUMENT_POST

Posted: Thu Sep 25, 2008 9:07 pm
by Grogan
This check was implemented with OSS Note 938165 "Incorrect document number for OBJ_TYPE= 'BKPFF'". The Note also gives some pointers if you do need to use BKPFF docs.

Re: Some questions of BAPI_ACC_DOCUMENT_POST

Posted: Mon Dec 29, 2008 8:14 am
by k.abdulbari
HI,
I got the same error as you have, could you please share the solution, all your help will be highly appreciated, Many thanks.

Re: Some questions of BAPI_ACC_DOCUMENT_POST

Posted: Sat Jan 03, 2009 12:49 pm
by ssii
if you don't entry any thing in these fields, the system will put the right value.