Order Generation

Use

You can use this function to create orders ( SD orders) for contracts in accordance with shipping planning.

Note Note

You can only create an order once for each shipping schedule record and contract item. If you execute the function Delete Order Items , you can generate the order again.

End of the note.

Caution Caution

Order generation is only performed at maximum speed if executed in background processing. We therefore advise you not to execute the function in the foreground in a productive system.

End of the caution.

Prerequisites

Before you can use the Order Generation function, the following prerequisites must be fulfilled:

  • There must be active contracts in the system.

  • There must be shipping schedule records that have the status Create Orders or Creating Orders.

  • You should have defined the system resources available for the Order Generation function (see RFC Settings ).

  • Order Generation executes RFC calls, both when determining the next issue and when creating the orders.

    You can change the RFC parameters for order generation using the following Customizing settings for Series Sales and Distribution under Start of the navigation path SAP Media Next navigation step Media Sales and Distribution Next navigation step Series Sales and Distribution Next navigation step Sales Next navigation step Order Generation Next navigation step Technical Settings for Order Generation End of the navigation path :

    Parameter

    Description

    Package size for issue determination

    Package size for RFC call to determine the issues for a contract item

    Note Note

    If you select very large package sizes, this may result in a timeout. This error is listed in the order generation log . In this case, you must reduce the package size.

    End of the note.

    Number of parallel RFC calls for issue determination

    Maximum number of parallel RFC calls for issue determination in order generation

    Caution Caution

    Please note that the work processes used by the order generation function are not available to other users, for example a call center.

    End of the caution.

    Package size for creating orders

    Package size for creating orders (processing SAPMV45A including update)

    Note Note

    If you select very large package sizes, this may result in a timeout. This error is listed in the order generation log . In this case, you must reduce the package size.

    End of the note.

    Number of parallel RFC calls for creating orders

    Maximum number of parallel RFC calls for creating orders in order generation

    Caution Caution

    Please note that the work processes used by the order generation function are not available to other users, for example a call center.

    End of the caution.

    Caution Caution

    Please note that the RFC settings have priority over the Customizing settings.

    End of the caution.

Features

Order Generation includes the following functions:

Group box

Field / indicator

Description

Select Series Contracts

Contract Generation Group

Order Generation is locked based on the generation group. You can use the generation group to group contracts for which orders are to be created in one generation run. You can specify how the generation rule is to be determined for a contract in method GET_GENERATION_GROUP of the Business Add-In ISM_GERATIONGROUP. The method is accessed automatically when you:

  • Change a contract

  • Execute the program Set Up Contract Index (RJKSECREATEINDEX-CONTRACT)

Settings for Order Creation

Create Current Orders

If this indicator is selected, the system creates orders for shipping schedule records with the shipping schedule type Initial Shipping.

Create Backdated Orders

If this indicator is selected, the system creates orders for shipping schedule records with the shipping schedule type Backdated Orders.

Trace Mode

If this indicator is selected, all the messages for issue determination are included in the log.

Caution Caution

Since the trace mode can have an adverse effect on performance, we do not recommend selecting this indicator in productive operations.

End of the caution.

Detailed Log

If the Detailed Log indicator is selected, the system logs all activities performed, so that you can follow each step in the order creation process .

If you do not select the Detailed Log indicator, the system only logs errors that occur during order generation.

Caution Caution

Please note that the detailed log can have an adverse effect on the runtime of the order generation function. We therefore do not recommend creating a detailed log in productive operations.

End of the caution.

Server Group for Order Creation

Order Generation creates the orders in parallel background processing. You can specify a server group, on which the orders are to be created. You can define server groups using the RFC Server Group Maintenance function (transaction RZ12).

If you do not specify a server group, the system can use all the servers with dialog processes for order creation, so as to distribute the load.

Orders in Update Mode

Test Run

No orders are created in the test run. Order creation is merely simulated. The system creates a log, whether you execute the function as an update run or as a test run.

Test Options

Caution Caution

You should not use the test options in productive operations, since they can have an adverse effect on the runtime for order generation.

End of the caution.

Switch On Debugging Mode

Switches to the debugger after the RFC call for order generation. This allows you to check for errors in the coding accessed in the RFC module.

Create Orders Sequentially

If you have runtime problems, we recommend performing a runtime analysis (transaction SE30).

The analysis indicates how much time is required at which points in the program. The functions executed in the RFC call are only included in the runtime analysis if you select the option Create Orders Sequentially.

Enhancements Using Business Add-Ins (BAdIs)

Methods of the following BAdIs are available in Order Generation :

BAdI

Method

Description

ISM_SE_ORDERCREATION

SET_FIELDS_R3

You can use this method to copy additional fields to the order being generated, over and above the fields copied from the standard.

Note Note

You can only copy additional fields to the order if you create orders without copying control.

End of the note.

CHANGE_DATA_BEFORE_RFC

This method is used to change the order data before the RFC processes for order creation are accessed.

You can use this method, for example, to split the order items being generated between different orders.

BUFFER_DATA_FOR_FRAMEWORK

Method for buffering data that is evaluated in the order generation framework.

Note Note

If performance problems arise while processing the framework, you should buffer the tables that are accessed individually in a memory (see Framework ). This buffer can be set up in the method BUFFER_DATA_FOR_FRAMEWORK.

End of the note.

ISM_SE_ORDER

SET_STARTORDER

This method is accessed when an order has been generated.

Activities

Choose Start of the navigation path Logistics Next navigation step Media Sales and Distribution Next navigation step Series Sales and Distribution Next navigation step Order Next navigation step Automatic Order Creation Next navigation step Generate Orders for Contractson theSAP Easy Access End of the navigation path screen.