I am using the BAPI_PO_CREATE1, to create Service Purchase Orders from an external system. In other words an external system calls this BAPI to create Service POs.
These POs must be created in reference both to a Purchase Requisition and to an Agreement, and boths have their Service Lines created. The thing is that commonly, the POs must be created for some of the Lines of the Purchase Requesition, and for other lines which are contained in the Agreement but not in the PR.
For Example: Agreement contains Service Lines A, B, C, D. PR contains A, B, C. And the PO should be created with A and D.
My question are:
1 - What should I expect from the BAPI? If I create an Item with reference of a PR and Agreement, should the Service Lines of them, replicated autoamtically? Or do I have to insert them also in the BAPI? This is to know if I have to state directly the Service Lines I need in the BAPI, or I leave the lines in blank, and then erase what I do not need.
2 - Do I have to refer the agreement, if it is already referred in the PR?
Any help will be great!!
Thanks in advace,