Some questions of BAPI_ACC_DOCUMENT_POST

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
SeMs
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
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

Grogan
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.
Grogan

Award cash if useful.

k.abdulbari
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

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

ssii
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