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 on BAPI Return BAPI_ACC_GL_POSTING_POST

Former Member
0 Likes
989

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
888

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

7 REPLIES 7
Read only

Former Member
0 Likes
888

check ur internal table values before BAPI call in debug mode ...

Read only

0 Likes
888

well what is strange is these are the values coming back from the BAPI for

OBJ_TYPE = BKPFF

OBJ_KEY = $

OBJ_SYS = ECDCLNT200

Read only

0 Likes
888

then just check the entries in gv_doc_header before calling the BAPI

Read only

Former Member
0 Likes
888

Look at the entire contents of the return table. There's probably more messages.

Rob

Read only

0 Likes
888

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

Read only

0 Likes
888

>

> 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

Read only

Former Member
0 Likes
889

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