Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Production Order release problem about 'Bapi_Prodord_create_from_plord' function?

Hi;

I'm using 'BAPI_PRODORD_CREATE_FROM_PLORD' function with this code


call function 'BAPI_PRODORD_CREATE_FROM_PLORD'

       exporting

         planned_order    = itab-plnum

         order_type       = 'OSTS'

       importing

         production_order = lv_aufnr

         return           = lv_bapiret.



Function was alright After that production_order created but when i go to tcode 'CO02' with production_order  this flag must be active ?

How can i do this ?

Please help;


Tags:
replied

Hi.

You should see two different record with same plant and different order type or two record with different order type and same plant.

Pay attention to Business Function : (1 or 2)

1          Check availability during order creation

2          Check availability during order release

Anyway check your plant-order type' rules with a double click on plant field.

Then in 'Material availability', there's "Release Material" rule. There you can have:

1         User decides on release if parts are missing

2         Release permitted despite missing parts

3         No release if parts are missing

If 3, check CO24 transaction to see if your order number has missing parts. If yes you can't release.

Hope to help.

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question