WRF_MATGRP_SIMU_CHECK is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name WRF_MATGRP_SIMU_CHECK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RTMATGRP_SIM
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'WRF_MATGRP_SIMU_CHECK' "Simulation Checks
EXPORTING
is_wrf_matgrp_hier_source = " wrf_hier_sty Article Hierarchy Properties
* is_wrf_matgrp_struc_source = " wrf_matgrp_struc_sty Category Structure
* i_hier_id_target = " wrf_hier_cnt Hierarchy ID
* i_node_target = " wrf_struc_node Hierarchy Node
* i_flg_delta_source = " xfeld Checkbox
i_flg_delta_node_source = " xfeld Checkbox
* i_flg_delta_target = " xfeld Checkbox
* i_flg_delta_node_target = " xfeld Checkbox
* i_flg_pre_article_source = " xfeld Checkbox
* i_flg_pre_node_source = " xfeld Checkbox
* it_wrf_matgrp_struc_source = " wrf_matgrp_struc_tty Category Structure
* it_wrf_matgrp_struct_source = " wrf_matgrp_struct_tty Language-Dependent Name of a Hierarchy Node
* it_wrf_matgrp_sku_source = " wrf_matgrp_sku_tty Article Assignments Table
* it_wrf_matgrp_struc_target = " wrf_matgrp_struc_tty Category Structure
* it_wrf_matgrp_struct_target = " wrf_matgrp_struct_tty Language-Dependent Name of a Hierarchy Node
* it_wrf_matgrp_sku_target = " wrf_matgrp_sku_tty Article Assignments Table
* CHANGING
* xt_material_message = " wcdt_alv Structure CDT - ALV
* xt_structure_message = " wcdt_node_alv
EXCEPTIONS
ERROR = 1 " Error
. " WRF_MATGRP_SIMU_CHECK
The ABAP code below is a full code listing to execute function module WRF_MATGRP_SIMU_CHECK including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
DATA(ld_xt_material_message) = 'Check type of data required'.
DATA(ld_xt_structure_message) = 'Check type of data required'.
DATA(ld_is_wrf_matgrp_hier_source) = 'Check type of data required'.
DATA(ld_is_wrf_matgrp_struc_source) = 'Check type of data required'.
DATA(ld_i_hier_id_target) = 'Check type of data required'.
DATA(ld_i_node_target) = 'Check type of data required'.
DATA(ld_i_flg_delta_source) = 'Check type of data required'.
DATA(ld_i_flg_delta_node_source) = 'Check type of data required'.
DATA(ld_i_flg_delta_target) = 'Check type of data required'.
DATA(ld_i_flg_delta_node_target) = 'Check type of data required'.
DATA(ld_i_flg_pre_article_source) = 'Check type of data required'.
DATA(ld_i_flg_pre_node_source) = 'Check type of data required'.
DATA(ld_it_wrf_matgrp_struc_source) = 'Check type of data required'.
DATA(ld_it_wrf_matgrp_struct_source) = 'Check type of data required'.
DATA(ld_it_wrf_matgrp_sku_source) = 'Check type of data required'.
DATA(ld_it_wrf_matgrp_struc_target) = 'Check type of data required'.
DATA(ld_it_wrf_matgrp_struct_target) = 'Check type of data required'.
DATA(ld_it_wrf_matgrp_sku_target) = 'Check type of data required'. . CALL FUNCTION 'WRF_MATGRP_SIMU_CHECK' EXPORTING is_wrf_matgrp_hier_source = ld_is_wrf_matgrp_hier_source * is_wrf_matgrp_struc_source = ld_is_wrf_matgrp_struc_source * i_hier_id_target = ld_i_hier_id_target * i_node_target = ld_i_node_target * i_flg_delta_source = ld_i_flg_delta_source i_flg_delta_node_source = ld_i_flg_delta_node_source * i_flg_delta_target = ld_i_flg_delta_target * i_flg_delta_node_target = ld_i_flg_delta_node_target * i_flg_pre_article_source = ld_i_flg_pre_article_source * i_flg_pre_node_source = ld_i_flg_pre_node_source * it_wrf_matgrp_struc_source = ld_it_wrf_matgrp_struc_source * it_wrf_matgrp_struct_source = ld_it_wrf_matgrp_struct_source * it_wrf_matgrp_sku_source = ld_it_wrf_matgrp_sku_source * it_wrf_matgrp_struc_target = ld_it_wrf_matgrp_struc_target * it_wrf_matgrp_struct_target = ld_it_wrf_matgrp_struct_target * it_wrf_matgrp_sku_target = ld_it_wrf_matgrp_sku_target * CHANGING * xt_material_message = ld_xt_material_message * xt_structure_message = ld_xt_structure_message EXCEPTIONS ERROR = 1 . " WRF_MATGRP_SIMU_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_xt_material_message | TYPE WCDT_ALV , |
| ld_is_wrf_matgrp_hier_source | TYPE WRF_HIER_STY , |
| ld_xt_structure_message | TYPE WCDT_NODE_ALV , |
| ld_is_wrf_matgrp_struc_source | TYPE WRF_MATGRP_STRUC_STY , |
| ld_i_hier_id_target | TYPE WRF_HIER_CNT , |
| ld_i_node_target | TYPE WRF_STRUC_NODE , |
| ld_i_flg_delta_source | TYPE XFELD , |
| ld_i_flg_delta_node_source | TYPE XFELD , |
| ld_i_flg_delta_target | TYPE XFELD , |
| ld_i_flg_delta_node_target | TYPE XFELD , |
| ld_i_flg_pre_article_source | TYPE XFELD , |
| ld_i_flg_pre_node_source | TYPE XFELD , |
| ld_it_wrf_matgrp_struc_source | TYPE WRF_MATGRP_STRUC_TTY , |
| ld_it_wrf_matgrp_struct_source | TYPE WRF_MATGRP_STRUCT_TTY , |
| ld_it_wrf_matgrp_sku_source | TYPE WRF_MATGRP_SKU_TTY , |
| ld_it_wrf_matgrp_struc_target | TYPE WRF_MATGRP_STRUC_TTY , |
| ld_it_wrf_matgrp_struct_target | TYPE WRF_MATGRP_STRUCT_TTY , |
| ld_it_wrf_matgrp_sku_target | TYPE WRF_MATGRP_SKU_TTY . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name WRF_MATGRP_SIMU_CHECK or its description.
WRF_MATGRP_SIMU_CHECK - Simulation Checks WRF_MATGRP_SELECT_DATA - Comparison of Plan Version with Active Version WRF_MATGRP_READ_VALID_PARENT - Read Parent Node WRF_MATGRP_READ_INTO_TREE_BUF2 - Read from Database to Buffer TREE_BUFFER WRF_MATGRP_READ_INTO_TREE_BUF - Read from Database to Buffer TREE_BUFFER WRF_MATGRP_PRE_CHECK - Check Article Hierarchy Properties