Skip to Content
0

Material Availability check in production order

Apr 21, 2017 at 01:01 PM

301

avatar image
Former Member

Hi,

We have a custom transaction to create production order. After creating production order, we have to release it in the same custom transaction. We required the material availability check functionality similar in standard CO01. Please suggest how to get the functionality in the custom.

Thanks,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

sap sap Apr 21, 2017 at 01:41 PM
0

HI Gopi,

Custom transaction means generally do some enhancement without disturbing standard functionality , can you provide details what you done.

Regards,

Mahesh.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Mahesh,

We have a custom program which will create production orders using set of BAPI's. Once order is created we release the order. I need to implement the Material Availability check while i release the order.

0
Tuncay Karaca Apr 21, 2017 at 08:54 PM
0

Hi Gopinathan,

There is a BAPI - BAPI_MATERIAL_AVAILABILITY, check this: https://blogs.sap.com/2007/04/26/function-module-bapimaterialavailability/

Use it in your custom program...

Share
10 |10000 characters needed characters left characters exceeded
Evgeny Gubenko Apr 24, 2017 at 08:04 AM
0

Hi!

You can also use FM AVAILABILITY_CHECK_CONTROLLER. Put the break-point on it and check, what parameters you need to set in your custom transaction. Keep in mind that the FM can also lock available quantity.

Hope it's helpful.

Evgeny

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Apr 24, 2017 at 12:31 PM
0

Hi Gopinathan,

If you only wanted to release the production order at the time of create, it is also possible with the configurations of order type.

Is there any other reason you opted with custom transaction for creating production order??

For Material availability check, there is standard BAPI BAPI_MATERIAL_AVAILABILITY which you can use.

Thanks,

Dheeraj

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Dheeraj,

I dont want to release the PO at the time of create. I'm not sure why we have the custom program to create PO, i am a technical consultant. We have this custom program to create PO and assign some serial numbers to it. Once PO is created, we have the PO number in the screen and a push button[Release]. When i click that button, it will be released. Before releasing, i want to do Material Availability check and if there is any error or message in the check i want to display in a pop-up dialog box.

On further analysis and seach in SCN, I found that BAPI_MATERIAL_AVAILABILITY is more like for Sales order and BAPI BAPI_PRODORD_CHECK_MAT_AVAIL is for production order. And i get exact the result in second bapi.

0
Former Member

Yes you are right for the material availability check BAPI.

and for releasing the order, you can use another BAPI 'BAPI_PRODORD_RELEASE'.

So, is your requirement addressed then as you are clear about the material availability and also of release?

0