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
Some questions of BAPI_ACC_DOCUMENT_POST
Moderators: Snowy, thx4allthefish, YuriT, Gothmog
Re: Some questions of BAPI_ACC_DOCUMENT_POST
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.
Grogan
Award cash if useful.
Award cash if useful.
-
- Posts: 2
- Joined: Fri Mar 14, 2008 2:07 am
Re: Some questions of BAPI_ACC_DOCUMENT_POST
HI,
I got the same error as you have, could you please share the solution, all your help will be highly appreciated, Many thanks.
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
if you don't entry any thing in these fields, the system will put the right value.
SSII is back