Skip to Content
0
May 09, 2013 at 09:15 AM

Facing error in bapi BAPI_PO_CREATE1 to create service PO

274 Views

Dear All,

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.

pl. advice.

Thanks all

Amol

Moderator message:

The file is here: https://docs.google.com/file/d/0B4VGSkvGNHAya0ZiTW5JaGFhdVk/edit?usp=sharing

Message was edited by: Jürgen L