Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help using /AFS/BAPI_PO_CREATE with multiple schedule lines

Former Member
0 Likes
455

I'm using /AFS/BAPI_PO_CREATE to create POs and everything works fine until I pass an item with multiple schedule lines.

When you pass multiple schedules it is giving each of the schedule lines under an item the same grid value! So if I want to order one black, one white shirt... both grid values are changed to black when the PO is created.

I'm wondering if you need to pass some sort of sequence value into the BAPI when you have multiple schedule lines for an item. Does anyone know?

2 REPLIES 2
Read only

Former Member
0 Likes
368

Hi Justin

Please make sure that you are specifying the <b>item number</b> while passing the ITEM Details and their correponding SCHEDULE lines.

Though i couldnt find FM: /AFS/BAPI_PO_CREATE in our system, i guess it is similar to BAPI_PO_CREATE.

Kind Regards

Eswar

Read only

0 Likes
368

I am definitely passing <b>item number</b> on both the schedule and item lines. I'm wondering if there is some sort of sequence number required in the schedule line table.

Message was edited by:

Justin Pepin