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

Question on BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
920

Hi

What should be passed for the OBJ_TYPE in DOCUMENTHEADER (one of the Import Parameters) when you call the BAPI - BAPI_ACC_DOCUMENT_POST.

I tried BKPFF, RFBU.. both did not work..

Thanks

Geetha

7 REPLIES 7
Read only

ThomasZloch
Active Contributor
0 Likes
839

Actually, I leave that field blank (I'm calling from within the same SAP system though).

Thomas

Read only

0 Likes
839

It gives me the following return message if I leave the field blank..

"Required field OBJ_TYPE was not transferred in parameter DOCUMENTHEADER"

Read only

RaymondGiuseppi
Active Contributor
0 Likes
839

Look at [ Note 561175 - BAPI posting in accounting with FI as reference|https://service.sap.com/sap/support/notes/561175]

Regards

Read only

0 Likes
839

Looks like the note 561175 has already been applied in the system previously. I see changes with respect to this note in the FM. Also our current SAP_APPL release is 600... So this may not be applicable now.. what do you suggest..

Read only

0 Likes
839

Don't applicate any change; i gave you this note reference for you to read the sample given in it on how to fill fields like OBJ_KEY

Regards

Read only

0 Likes
839

Hi Geeta,

from my experience those three fields should be blank.when the bapi is executed successfully those fields will get populated.

the error message u r getting is because of some other mistake.u may not be passing the field properly.

thanks and regards

Arjun

Read only

0 Likes
839

Guess there is some problem with the data.. I was able to post successfully when I used a different set of data.. Thanks for your replies.. Yeah I left the obj fields blank... it worked..! Thanks