Ansicht
Dokumentation

RFM_SGT_STRATEGY_MAINTAIN_RFC - Segmentation Strategy Maintenance

RFM_SGT_STRATEGY_MAINTAIN_RFC - Segmentation Strategy Maintenance

BAL Application Log Documentation   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to define, change and delete segmentation strategies. It includes the definition of segmentation strategy options, such as valid segment combinations, requirement to stock allocation during Arun/MRP, pool segment and check level during ATP, planned independent requirements consumption, and requirement to stock conversion.

Create a new segmentation strategy

Use parameters IS_SGT_STRATEGY_HEADand IS_SGT_STRATEGY_HEADXto specify for which segmentation structure the segmentation strategy should be maintained. Enter the segmentation scope and a description within the function module input structure. Use Ias the update indicator. Now choose the appropriate input parameter based on the segmentation strategy option you want to maintain. For each segmentation strategy, there are two table structures that need to be maintained. One table structure containing the actual data and the other table structure mostly containing indicators that shows which fields to use. The second structure also contains an update indicator field that must be set to I. Both structures must be linked manually by inserting a common value in the NUMERIC_LINKfield.

Update an existing segmentation strategy

Use parameters IS_SGT_STRATEGY_HEADand IS_SGT_STRATEGY_HEADXto specify for which segmentation structure the segmentation strategy should be updated. Use Uas the update indicator. You can now select for each segmentation strategy whether you want to insert new values, update existing values, or delete existing values.

Delete an existing segmentation strategy

Use parameters IS_SGT_STRATEGY_HEADand IS_SGT_STRATEGY_HEADXto specify for which segmentation structure the segmentation strategy should be deleted. Use Das the update indicator.

Input Parameters

The input parameters of function module RFM_SGT_STRATEGY_MAINTAIN_RFC are as follows:

  • IS_SGT_STRATEGY_HEAD:Defines the relationship of the segmentation strategy to a segmentation structure including some basic settings.
  • IS_SGT_STRATEGY_HEADX: Determines which fields should be read from the parameter IS_SGT_STRATEGY_HEADwhen changes are made.
  • IT_SGT_STRATEGY_VALUES:Maintain valid segmentation values
  • IT_SGT_STRATEGY_VALUESX:Determines which fields should be read from the parameter IT_SGT_STRATEGY_VALUESwhen changes are made. The input of both structures must be linked by a common value in the field NUMERIC_LINK.
  • IT_SGT_STRATEGY_MRP:Maintain MRP information for the segmentation strategy
  • IT_SGT_STRATEGY_MRPX:Determines which fields should be read from the parameter IT_SGT_STRATEGY_MRPwhen changes are made. The input of both structures must be linked by a common value in the field NUMERIC_LINK.
  • IT_SGT_STRATEGY_ATP:Maintain pool segments and check level for ATP
  • IT_SGT_STRATEGY_ATPX:Determines which fields should be read from the parameter IT_SGT_STRATEGY_ATPwhen changes are made. The input of both structures must be linked by a common value in the field NUMERIC_LINK.
  • IT_SGT_STRAT_S2R_CONV:Maintain stock to requirement conversion
  • IT_SGT_STRAT_S2R_CONVX:Determines which fields should be read from the parameter IT_SGT_STRAT_S2R_CONVwhen changes are made. The input of both structures must be linked by a common value in the field NUMERIC_LINK.
  • IT_SGT_STRAT_R2S_CONV:Maintain requirement to stock conversion
  • IT_SGT_STRAT_R2S_CONVX:Determines which fields should be read from the parameter IT_SGT_STRAT_R2S_CONVwhen changes are made. The input of both structures must be linked by a common value in the field NUMERIC_LINK.
  • IT_SGT_STRAT_PIR_CONSUMPTION: Maintain planned independent requirements consumption
  • IT_SGT_STRAT_PIR_CONSUMPTIONX:Determines which fields should be read from the parameter IT_SGT_STRAT_PIR_CONSUMPTIONwhen changes are made. The input of both structures must be linked by a common value in the field NUMERIC_LINK.
  • IV_COMMIT:Indicator whether the database changes should be made persistent or if the BAPI is called in the test mode.

Exporting Parameters

  • ET_RETURN:Specifies the return parameters.

Example

Let’s assume you want to create segmentation strategy STRAT_01for segmentation structure STRC. The requirement and stock segments should be considered during planning. For the segmentation strategy, the values Q1, Q2, and Q3represent valid segment values. In addition, orders with requirement segment Q1can consume planned independent requirements of all segments.

The input of the function module looks as follows:

IS_SGT_STRATEGY_HEAD:

segmentation_structure   segmentation_strategy   segmentation_strategy_desc   segmentation_scope
STRC   STRAT_01   Some description   1

IS_SGT_STRATEGY_HEADX:

updateflag
I

IT_SGT_STRATEGY_VALUES:

segmentation_value   numeric_link
Q1   0
Q2   0
Q3   0

IT_SGT_STRATEGY_VALUESX:

numeric_link   updateflag
0   I

IT_SGT_STRAT_PIR_CONSUMPTION:

requirement_segment   pir_segment   numeric_link
Q1   **   0

IT_SGT_STRAT_PIR_CONSUMPTIONX:

numeric_link   updateflag
0   I

Notes

Further information





Parameters

ET_RETURN
IS_SGT_STRATEGY_HEAD
IS_SGT_STRATEGY_HEADX
IT_SGT_STRATEGY_ATP
IT_SGT_STRATEGY_ATPX
IT_SGT_STRATEGY_MRP
IT_SGT_STRATEGY_MRPX
IT_SGT_STRATEGY_VALUES
IT_SGT_STRATEGY_VALUESX
IT_SGT_STRAT_PIR_CONSUMPTION
IT_SGT_STRAT_PIR_CONSUMPTIONX
IT_SGT_STRAT_R2S_CONV
IT_SGT_STRAT_R2S_CONVX
IT_SGT_STRAT_S2R_CONV
IT_SGT_STRAT_S2R_CONVX
IV_COMMIT

Exceptions

Function Group

RFM_SEGMENTATION_MAINTAIN

Addresses (Business Address Services)   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 11722 Date: 20240523 Time: 153439     sap01-206 ( 136 ms )