‎2009 Jun 15 7:12 PM
on The return of this BAPI gt_return has this error in it.
Error in document: BKPFF $ ECDCLNT200
CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
EXPORTING
documentheader = gv_doc_header
IMPORTING
OBJ_TYPE = gv_doc_header-obj_type
OBJ_KEY = gv_doc_header-obj_key
OBJ_SYS = gv_doc_header-obj_sys
TABLES
accountgl = gt_doc_item
currencyamount = gt_doc_values
return = gt_return
EXTENSION1 = gt_EXTENSION1.
LOOP AT gt_return WHERE type = 'E'.
EXIT.
ENDLOOP.
any ideas?
‎2009 Jun 16 2:09 AM
hello K ,
u can cross check G/L code in tcode FS00 , if its exists then try to pass full length value to the BAPI i.e 0000000006666666.
if not then u need to create in FS00.
regards
Prabhu
‎2009 Jun 15 7:18 PM
check ur internal table values before BAPI call in debug mode ...
‎2009 Jun 15 7:28 PM
well what is strange is these are the values coming back from the BAPI for
OBJ_TYPE = BKPFF
OBJ_KEY = $
OBJ_SYS = ECDCLNT200
‎2009 Jun 15 7:30 PM
then just check the entries in gv_doc_header before calling the BAPI
‎2009 Jun 15 7:25 PM
Look at the entire contents of the return table. There's probably more messages.
Rob
‎2009 Jun 15 7:30 PM
yup, there were more errors, I thought if I get this one fixed it might help the others.
G/L account 652010 is not defined in chart of accounts MLF
Account 652010 does not exist in chart of accounts MLF
unfortunately I am not sure how to fix these?
thanks
‎2009 Jun 15 7:35 PM
>
> G/L account 652010 is not defined in chart of accounts MLF
> Account 652010 does not exist in chart of accounts MLF
Well, that is the error. The GL is missing in the chart of accounts you are posting against. You can:
Create the GL in the chart of accounts
Use a different GL/Chart of accounts combination (one that exists)
Rob
‎2009 Jun 16 2:09 AM
hello K ,
u can cross check G/L code in tcode FS00 , if its exists then try to pass full length value to the BAPI i.e 0000000006666666.
if not then u need to create in FS00.
regards
Prabhu