Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in using BAPI_ACC_DOCUMENT_POST (urgent!!)

Former Member
0 Likes
2,274

Hi, all!!

While I'm trying to test the BAPI_ACC_DOCUMENT_POST for AR/AP postings, I faced 'obj*' errors.

For the BAPI_ACC_GL_POSTING_CHECK, I've tested it successfully without no 'obj' parameters. But this time, the BAPI_ACC_DOCUMENT_POST does not work without 'obj' parameters.

So I've filled 'obj*' parameters like belows:

doc_head-obj_type = 'BKPFF'.

doc_head-obj_key = '$'.

CONCATENATE SY-SYSID 'CLNT' SY-MANDT INTO DOC_HEAD-OBJ_SYS.

But, there was an error occurred: 'Incorrect entry in field OBJ_TYPE: BKPFF'.

Object type 'BKPFF' exists in the TTYP table.

What was wrong in this FM. Please let me know it.

Message was edited by: Jong-woon Lee

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
504

Can you try with the below statement...

DOCUMENTHEADER-OBJ_TYPE = 'FKKSU'.

Thanks & Regards,

Govind.

3 REPLIES 3
Read only

Former Member
0 Likes
505

Can you try with the below statement...

DOCUMENTHEADER-OBJ_TYPE = 'FKKSU'.

Thanks & Regards,

Govind.

Read only

0 Likes
504

Thanks, Govind.

You showed me another side of this FM what I'm not knowing. Very helpful. Thank you.

Regards,

Lee.

Message was edited by: Jong-woon Lee

Read only

Former Member
0 Likes
504

Lee

Can you please share the solution, i have got a similar problem, Thanks.