cancel
Showing results for 
Search instead for 
Did you mean: 

Require procedure to block production order.

Former Member
0 Kudos

hi,

IF Sales Order is placed on delivery block then production order is not created. For this I need to update the "Assemble processing routine" that creates the production order from the sales order. Pls help me with getting the process routine that creates Production Order.

Thanks,

Prabhu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Prabhu,

In my current assignment they are handling the same scenario at the SD side. They have implemented some user status and user-exit at sales order level which prevents automatic planned order creation. Please take help of the SD guy.

The other option will be to use the Process order user-exit as explain by other people.

Regards,

Former Member
0 Kudos

This is in whcih scenario....? In normal case you can creeate if the sales order is created and then we can create production order? Is it MTO/MTS/ATO?

Former Member
0 Kudos

hi Rajesh,

It is in the scenario MTO(Make - To -Order). I want to block the Production order creation if the sales Order is on delivery block.....Pls help if you knaow how to do so.......

Thanks in advance,

Prabhu

Former Member
0 Kudos

Dear,

Use user exit during the creation of production order, in which you can make the system to check the data of sales order and give error message before creation of production order?

Come back if you need more help on this.

muthusamy_sankaran
Active Contributor
0 Kudos

Hi,

You can use X-Plant Material Status in basic data 1,

T-code is OMS4, Block the production tabs in the indicator

or

You can use User-Exit

Enhancement when Creating an Order

To predefine fields in the order header when creating production orders

there is the following SAP enhancement available:

o PPCO0006 Enhancement to predefine fields in order header

With this enhancement you can take fields from the order header in your

own programm and process them or define values for them and transfer the

changed data again to the standard system. The transfer to the system

takes place before you reach the order header screen. All processed or

predefined fields can still be changed on the header screen.

The enhancement PPCO0006 contains the following enhancement components:

Function exits:

EXIT_SAPLCOZF_003 Exit for predefining fields in order header

The fields in the order header (structure CAUFVD) are placed in the

function exit. All the fields that you can define or change are

defined in the structure HEADER_CUST. The contents of HEADER_CUST is

transferred back to CAUFVD on leaving the function exit.

Activities

1. Create the enhancement.

Either create a new project or use an existing project.

2. Process the enhancement component:

Extend the program coding for the function exit EXIT_SAPLCOZF_003.

It copies data from the SAP standard program to the individual part

of your program and later copies you data back to the SAP standard

program. If certain fields in the structure are already filled

during the import in the enhancement carefully check the effect of

changing a field (if in doubt leave the contents defined by SAP

unchanged).

Call up the function module and double-click on the include line.

Create the include module. If you define internal work structures

you should always do this using ABAP language elements LIKE so that

later structure enhancements from SAP do not lead to changes in your

coding.

3. Activate the project.

The enhancement does not take effect until you activate the project.

Regards,

Sankaran