Creating Orders You can use this function to create
orders in
SAP background processing based on the planning results in
Media Product Sales and Distribution
or
Press Distribution
. The orders in
Media Product Sales and Distribution
or
Press Distribution
contain the data for logistics processing for each media issue.
The following graphic illustrates the sources of order generation (contract, quantity plan, issue mix) and the possible processing functions.
You can adjust
plant determination
, which is executed as standard during order generation, to meet your specific requirements in
Media Product Sales and Distribution
or
Press Distribution
. This allows you to determine the supplying plant for each ship-to party, for example
for specific weekdays
.
The system does not create orders for media issues that are not allowed to be sold on the delivery date.
You can use the following Business Add-Ins (BAdIs) to make company-specific adjustments to order generation:
Edit partner data at header or item level using the methods CHANGE_HEAD or CHANGE_POS of the BAdI ISM_PARTNER
Change the purchase order number in the order using the method ORDER_GENERATION_GET of the BAdI ISM_PURCHASENR
For order generation, you will need the
authorization C_STUE_BER with BOM usage
5
and category
M
You should have made the following settings in Customizing:
Sales document type
The sales document types should be defined in Customizing for
Sales and Distribution
(SD)
under
Sales and Distribution
→
Sales
→
Sales Documents
→
Sales Document Header
→
Define Sales Document Types

The standard delivery of SAP Media contains the sales document type Media Product Order (JTA) as an example for automatic order generation.
Item categories and item category groups
The standard delivery contains the sample item categories
JTAN
(main item, no returns) and
JTAR
(main item, returnable). These categories are assigned to the item category groups
JRM
(for returnable media issues) and
JNRM
(for non-returnable media issues).
The partner determination procedure that is assigned to the item category determines whether or not the order item is
returnable (see Customizing for
Media Product Sales and Distribution
under
SAP Media
→
Media Sales and Distribution
→
Media Product Sales and Distribution (Retail)
→
Sales
→
Define SD Partner Determination
or Customizing for
Press Distribution
under
SAP Media
→
Media Sales and Distribution
→
Press Distribution
→
General Settings in SD
→
Define SD Partner Determination
):
Item can be returned: role
RM
appears at header level in the partner determination procedure for the item category. The standard delivery contains partner determination procedure
J010
for this purpose.
Item cannot be returned: role
RM
does not appear in the partner determination procedure for the item category. The standard delivery contains partner determination procedure
J011
for this purpose.

Role
RM
must
not appear at header level in the partner determination procedure recorded for the order type to be created. Otherwise, the system would copy the role
RM
to all items during order generation if there were no alternative business partners with the role
RM
in the contract.
The system checks that this is not the case in automatic order creation but this check is not performed when you create an order manually.
Pricing
The standard delivery contains the pricing procedure
MVAA01
and the corresponding customer pricing procedure
J
(see Customizing for
Media Product Sales and Distribution
under
SAP Media
→
Media Sales and Distribution
→
Media Product Sales and Distribution
(Retail)
→
Sales
→
Define SD Pricing
or Customizing for
Press Distribution
under
SAP Media
→
Media Sales and Distribution
→
Press Distribution
→
General Settings in SD
→
Define SD Pricing
).
You should have created the required contracts and quantity plans.
You can also generate order items for quantities of zero – depending on the Customizing settings.
If required, you should have planned
visit dates using the
visit planning functions
in the
Direct Store Delivery Backend
. These visit dates are taken into account in the order items as delivery dates.
The issue mix must have been created for all media issues that are included in order creation.
You should have made the settings for
order generation with a quantity of zero in Customizing for
Media Product Sales and Distribution
under
SAP Media
→
Media Sales and Distribution
→
Media Product Sales and Distribution
(Retail)
→
Sales
→
Order Generation
→
Settings for Order Generation with Quantity Zero
or in Customizing for
Press Distribution
under
SAP Media
→
Media Sales and Distribution
→
Press Distribution
→
Order Generation
→
Settings for Order Generation with Quantity Zero
If you wish, you can create orders with a quantity of zero. The advantage of this is that, for example, when transferring data to
SAP BI
, the sequence of figures is not interrupted (that is, it also includes the orders with a quantity of zero).
Technical settings for order generation
You can change the RFC parameters for order generation by making the following settings in Customizing for
Media Product Sales and Distribution
under
SAP Media
→
Media Sales and Distribution
→
Media Product Sales and Distribution
(Retail)
→
Sales
→
Order Generation
→
Technical Settings for Order Generation
or in Customizing for
Press Distribution
under
SAP Media
→
Media Sales and Distribution
→
Press Distribution
→
Order Generation
→
Technical Settings for Order Generation
Parameter |
Description |
|---|---|
Package size for issue determination |
Package size for RFC call to determine the issues for a contract item
If you select very large package sizes, this may result in a timeout. This error is displayed in the order generation log. In this case, you must reduce the package size. |
Number of parallel RFC calls for issue determination |
Maximum number of parallel RFC calls for issue determination in
Please note that the work processes used by the order generation function are not available to other users, for example a call center. |
Package size for creating orders |
Package size for creating orders (processing
If you select very large package sizes, this may result in a timeout. This error is displayed in the order generation log. In this case, you must reduce the package size. |
Number of parallel RFC calls for creating orders |
Maximum number of parallel RFC calls for order creation in
Please note that the work processes used by the order generation function are not available to other users, for example a call center. |

Please note that the RFC settings for the system have priority over the Customizing settings.
Log
You should have made the necessary settings for the log .
You can
select the worklist based on
contracts
,
media issues
, and
phase models.

If you specify the media product but do not specify a media issue, the system takes into account each media issue for which a delivery quantity is entered in the quantity plan.
Controlof order generation by specifying sales document type
order
(e.g.
JTA
)
Optional:
Requested delivery date
If there is no requested delivery date specified, the system uses the current date.
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).

The setting for the
server group
is only relevant if you do
not perform
order generation
sequentially.
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.
Order creationaccording to selection criteria
The following procedures are of particular importance in order creation:
Determining
returning retailer
(role
RM
) from the contract item
If this is unsuccessful, the system searches for the
returning retailer
in the following sequence:
Contract header data
Master data on the ship-to party from the contract item
Master data on the ship-to party from the contract header
If the system does not find a
returning retailer
and the media issue is returnable, it displays a warning message. The order is created.
Copying contract data to the order (for example, according to
SD
copying control):
Explode function for the assigned issue mix (one item for each insert)
Optional: Display of a detailed log
Test options:
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.

You should not use the
test options
in productive operations, since they can have an adverse effect on the runtime for
order generation.
To access the
order generation
function, choose
Logistics
→
Media Sales and Distribution
→
Media Product Sales and Distribution
→
Sales
→
Order
→
Automatic Processing
→
Create Orders for Contracts
or
Logistics
→
Media Sales and Distribution
→
Press Distribution
→
Order
→
Create Orders for Contracts
on the
SAP Easy Access
screen

For optimum system performance, you should schedule order generation in background processing.
To access the
logof the function, choose
Logistics
→
Media Sales and Distribution
→
Media Product Sales and Distribution
→
Sales
→
Order
→
Automatic Processing
→
Logs
→
Create Orders for Contracts
or
Logistics
→
Media Sales and Distribution
→
Press Distribution
→
Order
→
Logs
→
Create Orders for Contracts
on the
SAP Easy Access
screen