Application Development 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: 

BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos
548

Hi

I am facing problem in using BAPI_CC_DOCUMENT_POST for transaction FB01 ..Only GL Entries...

I have given input for Obj_Type - BKPF

OBJ_SYS - SE1CLNT500

OBJ_KEY - $

I got Error in document: BKPF SE1CLNT500.

I tried some of the forum inputs also.. Can any one help to suggest what is the exact obj_type and obj_key for posting the document using FB01 transaction.

How to find the exact object type and object key for particular transaction.

Thanking you

Arunachala.G

4 REPLIES 4

Former Member
0 Kudos
59

Hi

Do not pass any value to those 2 fields, if it is empty system will automatically assign values inside the BAPI.

If you want to pass than you have to pass, Obj_Type = BKPFF and OBJ_KEY = $.

Regards

Madhan D

Former Member
0 Kudos
59

U no need to pass any values for Obj_Type, OBJ_SYS, OBJ_KEY

Just pass doc_date, doc_type, comp_code and bus_act = 'RFBU'.

Remaining things as per ur source fields.

Former Member
0 Kudos
59

Hi

If you've an internal range number ,u don't need to transfer any data to those fields:

OBJ_TYPE

OBJ_KEY

OBJ_SYS

All header fields u should fill are:

BAPIACHE09-BUS_ACT = 'RFBU'.

BAPIACHE09-USERNAME = SY-UNAME.

BAPIACHE09-COMP_CODE = <company code>.

BAPIACHE09-DOC_DATE = <document date>.

BAPIACHE09-PSTNG_DATE = <posting date>.

BAPIACHE09-DOC_TYPE = <document type.

and perhaps u need to fill the reference too:

BAPIACHE09-REF_DOC_NO = .............

Max

Former Member
0 Kudos
59

Thanks Madhan. I 've given points.