‎2010 Jul 23 3:45 PM
Hi friends! I need some help here to create a contract with reference to some purshase requisition. I found BAPI_CONTRACT_CREATE to do this, but I have no idea how to do to create with reference to pruchase requisition.
Anyone can give me a sample code or an idea how I can do this?
Thanks in advance for any help.
‎2010 Jul 23 4:43 PM
Hi, try to fill PREQ_NO and PREQ_ITEM in table ITEM and ITEMX. this fields refer to PR.
regards
Lquispe
‎2010 Jul 23 6:18 PM
Thanks friend. I filled Header, Headerx, item e itemx but I'm getting this error:
No instance of object type PurchasingContract has been created. External reference: # 1
Item category 9 not supported
I need fill something else?
‎2010 Jul 26 9:07 AM
Hi Fulvio,
Please check the sample code in the Documentation provided by the BAPI -BAPI_CONTRACT_CREATE, that should help you.
After the above function hope you had used BAPI_TRANSACTION_COMMIT
‎2010 Jul 27 2:06 PM
Thanks for answers friends! I made an contact with sap support and they answered to me that this BAPI don't support service items...here category 9 is service items, so I have to find another way.
Regards