‎2009 May 04 5:17 AM
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
‎2009 May 04 7:14 AM
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.