Skip to Content
Former Member
Mar 26, 2010 at 12:36 PM

BAPI_ACC_DOCUMENT_POST is giving error due to some fields


Dear Gurus,

For transaction code FB70 i have to use the "BAPI_ACC_DOCUMENT_POST"

There are about 15 fields i am entering out of them some fields are for header data.

afeter mapping these fields if I execute the bapi system giving me error for following three fields.

OBJ_TYPE - Reference Transaction

OBJ_KEY - Reference Key

OBJ_SYS - Logical system of source document

for these three fields I enter following values

OBJ_TYPE --> BKPF (this value i found from table BKPF for the transactions I had posted manually )

OBJ_KEY --> 0000000000000 (I tried it with blank and then with all zeros because This value is generated by the system automatically which will be the combination of accounting document number plus company code plus fiscal year)

OBJ_SYS --> Blank

After trying number of combinations also system shows error with the values of above three fields only.

But when I enter


OBJ_KEY --> 0000000000000

OBJ_SYS --> Blank

error comes for OBJ_TYPE --> BKPF only.

So please suggest me what values I should to enter to complete the transaction successfully.

Please let me know the right combination.

thanks in advance.