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

Hi,

I am trying to re-post for a given set of GL Accounts using this BAPI.

I am passing the header data for the BAPI Call from "BKPF" Table.

On BAPI Call, my return table gets filled with 3 lines of errors.

1. Error in document

2. Object Type "BKPF" not expected. wrong object type passed to the Parameter OBJ_TYPE of Header (something like this...)

3. Parameter OBJ_SYS not filled in the structure passed to the Header during BAPI Call.

I am filling the OBJ_TYPE and OBJ_SYS Parameters from BKPF-AWTYP and BKPF-AWSYS.

They are values taken from the Table records only.

Any ideas on what the problem could be? Any help in this direction is appreciated.

Thanks in advance.

Regards,

Keerthi

3 REPLIES 3

Former Member
0 Kudos

Check this sample code...

Former Member
0 Kudos

Hi,

The Link you had sent had a suggestion but it was not helpful.

But i managed to clear that error. I am getting a different error now.

When i call the BAPI, it returns the error "Balance in transaction currency". The message number is 702 and message ID is F5.

Please help me in the same.

Thanks in advance.

Regards,

Keerthi

0 Kudos

check these links