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

bapi_prodord_create

Former Member
0 Likes
1,379

Hi all,

I'm using BAPI_PRODORD_CREATE  with the parameters

  • MATERIAL:
  • PLANT
  • ORDER_TYPE
  • QUANTITY
  • BASIC_END_DATE
  • ROUTING_TYPE
  • ROUTING_GROUP
  • ROUTING_COUNTER

A production order will be created but with the wrong routing. Does anybody know, how to do correctly?

thank you.

Best Regards

Achim

5 REPLIES 5
Read only

VXLozano
Active Contributor
0 Likes
1,008

Sounds like a customization thing. Can you check your production orders customizing? I guess there are some fixed things that force the BAPI to ignore your parameters.

Read only

Former Member
0 Likes
1,008

I did not found anything in customizing what could influences the selection of routings in the bapi

Read only

0 Likes
1,008

I'm so sorry then, because I'm as lost as you are. I've used that BAPI to create production orders, and all went fine. I had to change to BI just only once because we had to change some data the BAPI didn't allowed us to do, but if the routing is in the parameters list, I cannot understand why it's ignored if there is no customization involved.

Did you checked for an OSS Note?

Read only

0 Likes
1,008

I searched in OSS-Notes and in WWW without success. My problem is that the routing-counter will not be selected.

Read only

0 Likes
1,008

Did you tried to debug the BAPI call? Do it adding a watchpoint to the FM parameter ROUTING_COUNTER asking the system to stop when it changes. If the process ends without stopping there, it will mean that parameter is no taking into account to continue the process...

I'm sorry, but at the moment I cannot spend time looking for more information... maybe you will be lucky and someone falls here with more information.