‎2008 Nov 18 9:39 AM
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
‎2008 Nov 18 9:47 AM
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
‎2008 Nov 18 9:52 AM
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.
‎2008 Nov 18 10:01 AM
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
‎2008 Nov 18 10:07 AM