Ansicht
Dokumentation

SGT_MRP_CONS_RULE_GENERATE - Generate Consolidated Segmentation Rules

SGT_MRP_CONS_RULE_GENERATE - Generate Consolidated Segmentation Rules

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Purpose

The Segmentation Strategy determines business rules for applications such as availability checks, PIR consumption, or Requirement Segment determination. These rules may contain wildcards, for example "A*" can stand for any two-character value starting with the letter "A".

You use this report to explode wildcard entries and generate the segmentation rules.

Note

The segmentation rules are automatically generated when you save the segmentation strategy. You can generate the rules via this report, in case automatic generation fails for unknown reasons.

Integration

Prerequisites

Before generating the segmentation rules, you must enter the segmentation strategy using the transaction Segmentation Strategy Maintenance.

Features

When you execute this report to generate the segmentation rules, the system does the following:

  1. Checks the segmentation rules for all the applications.
  2. If a rule does not contain a wildcard (* character), the system updates the rule in the consolidated rules table.
  3. If a rule contains wildcard, the system collects all segment combinations that match the wildcard pattern. Matching segment values are updated to the consolidated rules table.

You can use the additional settings for parallel processing, batch insert, and no output display to reduce the runtime for the maintenance of segmentation combinations.

Selection

Standard Variants

Output

Activities

  1. Enter the segmentation strategy, for which you want to generate the segmentation rules.
  2. Select the Update Database? checkbox to save the rules to the database. If you do not select the Update Database? checkbox the rules are displayed on the results screen.
  3. Select Additional Settings.
You can use this checkbox to trigger additional settings for parallel processing, inserting generated rules into the database in batches, and controlling the display of consolidated segmentation rules generated for the segmentation strategy.
  1. Select Do not Display Output if the consolidated segmentation rules generated for the segmentation strategy are not to be displayed.
  2. Enter No. of records for Batch Insert to control the number of records per batch that the system must insert into the database.
  3. Enter Server Group for Parallel Proc to specify which application server and instance are used by the transaction.
  4. Choose Execute.

Note

You can display the generated rules using the transaction Display Consolidated Segmentation Rules.

Example

Let’s assume you’ve maintained the segmentation strategy as follows:

  1. Segment Combinations
    1. K1USKIT 1, USA
    2. K1EUKIT 1, EUROPE
    3. K2USKIT 2, USA

Note: Please note, that KIT 2 is not allowed in EUROPE.

  1. ARun/MRP/ATP: Requirement/Stock Allocation
    1. Requirement **** can be covered by Stock ****
    2. Requirement K1** can be covered by Stock K2**

When you execute the report the following entries are generated:

  1. K1US to K1US
  2. K1EU to K1EU
  3. K2US to K2US
  4. K1US to K2US





General Material Data   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 5176 Date: 20240601 Time: 075905     sap01-206 ( 59 ms )