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

Query Regarding BAPI_CONTRACT_CREATE

Former Member
0 Likes
311

Hello All,

I need to create contracts by uploading data from a flat file. I am trying to use the BAPI_CONTRACT_CREATE FM to do the same, but there seems to be an issue here. When I am filling the header and items and passing the same to the FM the output return table is giving me errors like the Purchase organization and purchase group are blank, when I debug the program it seems that the header is getting cleared inside the BAPI, am I missing something ? The parameters rhat I am filling are HEADER,PURCHASINGDOCUMENT,RETURN,ITEM,ITEMX.

Please suggest if any one has faced a similiar kind of problem.

Thanksa nd Regards,

Sachin

1 REPLY 1
Read only

Former Member
0 Likes
276

Sachin,

You need to make sure that you also populate the structure HEADERX with an 'X' against all fields that are populated otherwise the BAPI will assume that the fields in the structure HEADER are blank.

That should, in theory, fix your problem.

Cheers,

Neil.