Some questions of BAPI_ACC_DOCUMENT_POST

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Posts: 53
Joined: Sun Feb 15, 2004 10:14 pm

Some questions of BAPI_ACC_DOCUMENT_POST

Post by SeMs » Thu Sep 25, 2008 10:44 am

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,

Posts: 365
Joined: Thu Aug 04, 2005 7:16 pm
Location: Australia

Re: Some questions of BAPI_ACC_DOCUMENT_POST

Post by Grogan » Thu Sep 25, 2008 9:07 pm

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.

Award cash if useful.

Posts: 2
Joined: Fri Mar 14, 2008 2:07 am

Re: Some questions of BAPI_ACC_DOCUMENT_POST

Post by k.abdulbari » Mon Dec 29, 2008 8:14 am

I got the same error as you have, could you please share the solution, all your help will be highly appreciated, Many thanks.

Posts: 222
Joined: Sat Nov 11, 2006 9:57 am
Location: France

Re: Some questions of BAPI_ACC_DOCUMENT_POST

Post by ssii » Sat Jan 03, 2009 12:49 pm

if you don't entry any thing in these fields, the system will put the right value.
SSII is back

Post Reply