Ansicht
Dokumentation
RFM_SGT_STRUCTURE_MAINTAIN_RFC - Maintain Segmentation Structure
CPI1466 during Backup BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
You can use this function module to define, change and delete segmentation structures.
Create a new segmentation structure
Use the input structures IS_SGT_STRUCT_HEADand IS_SGT_STRUCT_HEADXto provide segmentation structure header information like a name and a description. Use I as the update indicator. Then, in the tables IT_SGT_STRUCT_ITEMand IT_SGT_STRUCT_ITEMX, you specify the characteristics that your structure contains. Use I as the update indicator. Entries of IT_SGT_STRUCT_ITEMand IT_SGT_STRUCT_ITEMXare linked by a common value in field NUMERIC_LINK.
Update an existing segmentation structure
Use parameters IS_SGT_STRUCT_HEADand IS_SGT_STRUCT_HEADXto specify which segmentation structure to update. Use U as the update indicator. At the header level, you can only update the lock and the description. Then the tables IT_SGT_STRUCT_ITEMand IT_SGT_STRUCT_ITEMXmust be filled based on the operation you want to execute on the assigned characteristic. You can either insert new characteristics, or update or delete existing characteristics.
Delete an existing segmentation structure
Use parameters IS_SGT_STRUCT_HEADand IS_SGT_STRUCT_HEADXto specify which segmentation structure to delete. Use D as the update indicator.
Input Parameters
The input parameters of the function module RFM_SGT_STRUCTURE_MAINTAIN_RFC are:
- IS_SGT_STRUCT_HEAD: Specifies the header information of the segmentation structure including the lock level and description
- IS_SGT_STRUCT_HEADX: Determines which fields should be read from the parameter IS_SGT_STRUCT_HEADwhen changes are made. Both structures must share a common segmentation structure name.
- IT_SGT_STRUCT_ITEM: Specifies the characteristics for which change operations should be performed.
- IT_SGT_STRUCT_ITEMX: Determines which fields should be read from the parameter IT_SGT_STRUCT_ITEMwhen 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 a new, unlocked segmentation structure STRC. The segmentation structure should consist of two characteristics, namely Qualityand Country. You want to allow empty values for the characteristic Country.
The input of the function module looks as follows:
IS_SGT_STRUCT_HEAD:
segmentation_structure | segmentation_structure_desc | segmentation_structure_lock | ||
---|---|---|---|---|
STRC | Some Description |
IS_SGT_STRUCT_HEADX:
segmentation_structure | updateflag | |
---|---|---|
STRC | I |
IT_SGT_STRUCT_ITEM:
characteristic_name | enable_char_value_blank | numeric_link | ||
---|---|---|---|---|
Quality | 1 | |||
Country | X | 2 |
IT_SGT_STRUCT_ITEMX:
update_flag | numeric_link | |
---|---|---|
I | 1 | |
I | 2 |
IV_COMMIT: X
Notes
Further information
Parameters
ET_RETURNIS_SGT_STRUCT_HEAD
IS_SGT_STRUCT_HEADX
IT_SGT_STRUCT_ITEM
IT_SGT_STRUCT_ITEMX
IV_COMMIT
Exceptions
LOCK_ERRORFunction Group
RFM_SEGMENTATION_MAINTAINBAL Application Log Documentation Vendor Master (General Section)
This documentation is copyright by SAP AG.
Length: 7001 Date: 20240523 Time: 162559 sap01-206 ( 81 ms )