Hi colleagues,
If you work with the BAPI BAPI_POCREATE1 I hope you will find useful the following KBA:
2226222 - Subcontracting Components with BAPI_PO_CREATE1
In this KBA it is explained how the components must be filled in the tables of the BAPI in case of subcontracting and other fields like storage location and batch number (LGORT , CHARG).
Br
Maria