We are using bapi BAPI_PO_CREATE1 to create Service POs.
In followin scenarios, I am facing errors.
Scenario 1 : Single po with 2 line item - first planned and other unplanned
Result : Program is not able to create po.
If reversed these line items, program is creating po
Scenario 2 : Multiple po with planned and unplanned in sequence.
Result : program is creating planned pos which are at the top and not creating unplanned pos.
if reversed these lines, i.e. at the top unplanned and below that planned lines, program is creating both types of pos.
I think this is due to some code error while passing the package and subpackage number but not able to fix the problem.
Kindly throw some light on coding part.
Also see the attached excel file (Sheet 4 where all scenarios are listed. The column result shows the po number where program is working fine and error where program is not supporting.
Message was edited by: Jürgen L