‎2007 Aug 10 4:52 AM
Hi all,
Currently iam doing data upload for FB01 using BAPI_ACC_DOCUMENT_POST. My problem is iam able to transfer the data to the BAPI and the data is posting, but at the program level it is asking for the OBJ_KEY OBJ_TYPE and OBJ_SYS.
Even if i enter data in the OBJ_KEY OBJ_TYPE and OBJ_SYS of the header. Internally it is generating other new Object key(Document number). But at importing parametrs of FM in the program iam getting the Object key which i have given in the header.
Iam using 4.7 patch 28.
When i do the same thing in 4.7 patch 20 it did not ask any OBJ_KEY OBJ_TYPE and OBJ_SYS the system is generating these things.
Please go thru the probelm and do the needful. Its urgent.
Thanks in advance....
Regards,
Krishna.
‎2007 Aug 10 5:01 AM
Use this after the BAPI Call:
DATA : BEGIN OF t_belnr OCCURS 0.
INCLUDE STRUCTURE rf048_d.
DATA : END OF t_belnr.
move the object key to the fi doc parameter
CALL FUNCTION 'FI_ACCBELNR_GET'
TABLES
t_belnr = t_belnr.
CLEAR t_belnr.
READ TABLE t_belnr INDEX 1.
write : / t_belnr-belnr_e.
Message was edited by:
Karthikeyan Pandurangan
‎2007 Aug 10 7:21 AM
Hi Karthikeyan,
I have generated a document number using NUMBER_GET_NEXT function module and Iam linking this Doc num with Company code and Fiscal year and generating an object key. Iam passing this Object key to header information. and created a 'ZAAA' object key in ttyp with FM as FI_DOCUMENT_SENDER and STRUC as blank and I am passing object key in document header.
But internally the BAPI is generating a new document number and posting it. and the document number i have passed is wasted. In the import parameters it is giving the Obj key which i have passed at header level. What should be done to retrive the object key that system has generated.
Regards,
Krishna