cancel
Showing results for 
Search instead for 
Did you mean: 

Production Order Header - Committed Quantity

Former Member
0 Kudos

Hi Team,

I have created the production order with quantity 2. In order to produce the 2 header item, i need to 2 components (BOM item). But currently i have only 1 quantity of  BOM item in stock. With this condition, i am performing the ATP check in my production order. Since i have only one BOM item in stock, i can able to produce only one header item. So after executing ATP check in my production order, i am expecting the below field to be updated as "ONE" (refer the screen shot). But it is not getting updated. Why? When this field will be updated?

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member200568
Active Participant
0 Kudos

I am facing same scenario as you are facing. In my observation i have found one solution if its feasible to you than let me know.

In INCLUDE: ZXCO1U06-----> EXIT_SAPLCOZV_001

so here you can write code with the help of abaper.

Since every order creates its reservation, You can compare with RESB qty for that order with MARD table of component of BOM of P.O. ( Unrestricted Stock ). If the stock is avlbl than allow release or reject if you want.

Table Relation

1) RESB-AUFNR

2) MARD-MATNR-LABST.

Hope this will solve your issue. Reward Point if found helpful.

Former Member
0 Kudos

Hi All,

Thank you for all your valuable information.

I have found the issue. The issue is because of the "Alternate Item Group" which is set in BOM components (CS03). The "Alternate item group" has been set for my BOM item as "Strategy 2 (100% check). Because of that, the "Committed Qty" has been not set for my header item. After removing the "Alternate item group" for my BOM item, the 'Committed Qty" is getting updated properly.

Thanks

former_member223981
Active Contributor
0 Kudos

The AFPOD-VFMNG field will take the value of the lowest committed quantity in your components.

For example:

Production Order has 2 components. Component 1 has required quantity of 100. Component 2 has required quantity of 100.

Availability check will confirm 100 of component 1 is available. Availability check will confirm 0 of component 2 is available.

In the above situation, AFPOS-VFMNG = 0.

In your example, do you have a component where committed quantity = 0?

From technical viewpoint, the value is calcuated in function CONFIRMATION_CALCULATE during the ATP check and value then passed to the PP field.

Former Member
0 Kudos

Hi Noel,

Thank you for the information. In my production order, i have only ONE component. For that component i have stock of 102 (refer the above MD04 screen shot). But still the field "AFPOD-VFMNG" is not getting updated properly.

The current stock of BOM component is 102.

If create the production order with quantity less than or equal to 102, the field "AFPOD-VFMNG" is getting updated properly. But If i create the production order with more than 102 qty (example: 104), i am expecting that the field "AFPOD-VFMNG" to be updated as 102. But it is getting updated as ZERO. I do not know the reason. Can you help me?

Also this is happening for one particular material (header material).

Thanks

former_member184737
Active Contributor
0 Kudos

Hi Selva kumar,

        Stock qty may differ than ATP qty. Instead of check stock of that specific component's qty in MMBE, you have to check the confirmed qty column in production order's materials (BOM) section. You can come to know that whether you have enough component qty to confirm this production order. Please check and revert back.

Thanks

former_member223981
Active Contributor
0 Kudos

Do you have custom code maintained in user exit EXIT_SAPLATPC_002? Maybe, you are changing the value to 0 in your own code here?

If this is not useful, can you post a screenshot of CO09. Ensure you enter the correct checking rule (PP according to your earlier screenshot)

Former Member
0 Kudos

Hi Noel,

Please find the CO09 screen shot

former_member184737
Active Contributor
0 Kudos

Hi Selva,

    As per your screen shot, ATP qty of that component on a specific requirement date as 100 only. If your BOM structure is 1 to 1 means you need 1 component to make 1 qty of parent material, then you can able to create production order with 100 or less than qty. Did you check the confirmed qty column in production material's section as per my earlier reply? please check and share the material section screen shot also with the column requirement date & confirmed qty.

Thanks

Former Member
0 Kudos

Hi AKS,

Please find the BOM component screen shot.

Also, no exit been implemented (ATP00001)

EXIT_SAPLATPC_001

EXIT_SAPLATPC_002

former_member184737
Active Contributor
0 Kudos

Hi Selva,

    Can you share the screen shot of material section in that specific Production order which you are facing issue now? Display with component requirement date and confirmed qty column values.

Try to change the order qty with 100 qty or less and check whether the field is updated or not? and also try to create with new order and check the update status

Is that order having any other component other than this component?

Thanks

former_member223981
Active Contributor
0 Kudos

I have tried testing this in various ways on my system but I cannot get the committed quantity to 0 unless there is 0 available. The quantity is always updated for me.

Can you do the following?

Set a breakpoint here:

Function AVAILABILITY_CHECK_CONTROLLER

*****************************************************

CALL FUNCTION 'AVAILABILITY_CHECK'  <<<<<<<< Breakpoint here


       EXPORTING


            P_SCHEDSH     = P_SCHEDSH


            P_SCHEDTR     = P_SCHEDTR

*****************************************************

When your breakpoint is hit during the availability check, hit "F6" and then check the values in table P_MDVEX. If possible, post the results back here; ensure that you have included the MNG01 and MNG01 fields.

This internal table holds the result of the availability check. By looking at this, we might be able to narrow down if this is an availability or PP issue.

former_member185379
Active Participant
0 Kudos

Hi, In OPJK if you set no check for material avl when creating an order. Then it wont check unless and until you check material avl for production order. Check and get back to us if any concern.\ Thanks prashant

Former Member
0 Kudos

Hi Prashant,

In OPJK, i have enabled the ATP check during order creation & order release. While creating the production order,i am executing the ATP check & i am getting the MSPT status. But the above highlighted field is NOT getting updated in "Production Order Header Level".

Thanks

dejoy
Active Contributor
0 Kudos

Hello Selva,

yes it must update.But check few things

1.Committed qty will be filled

    >(opjk ATP check enabled on creation)

    >And component available to produce few or whole qty.

2.Committed qty will be filled

    >(opjk ATP check enabled on release)

    >And component available to produce few or whole qty.

Have you released order after ATP check?Check after order release.

Regards,

dejoy
Active Contributor
0 Kudos

Hello Selva,

Please share OPJK/OPJJ screens.

Regards,

Former Member
0 Kudos

Hi Dee joy,

Please find the OPJK & OPJJ screen shots

dejoy
Active Contributor
0 Kudos

Hello,

Your OPJK is fine.So check in test system with different  OPJJ settings(viz check all production order/all reservations) and check also if component assigned already to some other created order etc.Determination depends on scope of check OPJJ and the component available/component assigned to different objects.

        

Regards,

Former Member
0 Kudos

Hi Dee Joy,

Please find the MD04 screen shot of my header item & BOM item (production order component). I do not have any production orders for header items & reservations for my components (BOM item). But still the 'Commited Quantity" is not getting updated at header level. But if FULL quantity is available for the BOM components, then this field is getting updated. This field is NOT getting updated only if the partial quantity of BOM components are available in stock. very strange know?

dejoy
Active Contributor
0 Kudos

Ok,please try to release the order and see if it updates

or try to manual ATP check(ctrl+f4) in the order and see if it updates committed qty.

Regards,

Former Member
0 Kudos

Hi Dee joy,

If i release also, it is not updating.And also , if i manually perform the ATP in CO02 , it is NOT updating. Very Very STRANGE?

Also, i have observed that, only for ONE particular material, it is behaving like this. For other material, it is updating this field after ATP check

Thanks