cancel
Showing results for 
Search instead for 
Did you mean: 

Material only can be used for one kind of production order type

Former Member
0 Kudos

Dear expert

           There are 2 different production order types in our factory, testing order and normal production order. As our procedure, we must complete test order first and open normal order, but our planner made some mistakes .So ,can we set the material, only available for testing order type but can’t using  normal production order type? After we close testing order, then we can release this material to normal production order

Thanks

Linfeng

Accepted Solutions (1)

Accepted Solutions (1)

former_member189817
Active Contributor
0 Kudos

Hello ,

            I suggest you to maintain two diffrent Prod scheduling profile.One is for  test phase and another one is for  normal prod.You can default Order type for Production scheduling profile in OPKP. Using screen variant you hide the Order type in CO01 tcode, so that Order type will bw determined automatically based on Prd sched profile.Once you have gone for normal production change the Prd sched profile from rest to normal.

Regards,

Velmurugan S

Answers (2)

Answers (2)

svs_sap
Active Contributor
0 Kudos

Hi

You can control by the way suggested by Mr. Velmurugan.

Create 2 different production scheduling profile. And maintain default order type in transaction OPKP.

You can hide the order type with creation of transaction variant in transaction SHDO.

And when the material is in test phase, maintain test production scheduling profile in work schedulng view of the material master. And once you decide to use it for normal production then change over to normal production scheduling profile.

Best Regards,

Sharat

sjeevan
Active Contributor
0 Kudos

Take a look at this solution:

1. First go to MM03 of the materials which are released to normal production. Go to MRP1 and look at plant specific material status.

2. Go to Go to OMS4, double click on the material status from step 1. Now on the top click on Copy as and make a copy of the status and give it a name T with description Materials is in Testing Phase.

3. Now, take help of your ABAP developer, implement enhancement PPCO0007, function module EXIT_SAPLCOZV_001, include ZXCO1U06, write ABAP code to check if the material status if MARC-MMSTA = T and CAUFVD-AUART = your test order type (eg PT01), then give an error message and do not save the order (NO_UPDATE = 'X').

ABAP code should be something like this:

select single MARC-MMSTA from MARC where MATNR = CAUFVD-PLNBEZ

                                    and  WERKS = CAUFVD-WERKS.

if sy-subrc = 0 and MARC-MMSTA = 'T' and CAUFVD-AUART ne 'PT01'.

message 'This material is in test phase, choose order type PT01' type 'E'.

no_update = 'X'.

endif.

Process: When the material is in test phase for production you need to maintain the plant specific status as T. Else system has no way of knowing that it's in test phase.