Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10313

Re: How to restrict users from changing process order type (COR1/COR7)?

$
0
0

Hi Wagner.

The Rajen Method is good but i prefer to use exit PPCO0006 because i can include special customer logic if needed. Its trigger both in PP or PP-Pi orders. Ask the help of your abap partner, he spend 20 minutes implementing this stuff.

 

The key points are:

 

Validate the order type in the initial screen of order creation HEADER_CUST_EXP-AUART against order type asigned to the production scheduler profile S_TCO43-AUART.

 

You get S_TCO43-AUART with the following select.

  Select SINGLE  * into corresponding fields of S_TCO43

  from TCO43

  where

  WERKS EQ CAUFVD_IMP-werks AND

  CO_PRODPRF EQ CAUFVD_IMP-SFCPF.

 

 

The validation is:

IF     HEADER_CUST_EXP-AUART = S_TCO43-AUART.....

 

 

 

Arturo.


Viewing all articles
Browse latest Browse all 10313