SAP MGSKU_STRUCT_SINGLE_READ Function Module for Read Node Description
MGSKU_STRUCT_SINGLE_READ is a standard mgsku struct single read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Node Description processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for mgsku struct single read FM, simply by entering the name MGSKU_STRUCT_SINGLE_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: WRF_MATGRP_SKU
Program Name: SAPLWRF_MATGRP_SKU
Main Program: SAPLWRF_MATGRP_SKU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MGSKU_STRUCT_SINGLE_READ pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'MGSKU_STRUCT_SINGLE_READ'"Read Node Description.
EXPORTING
* I_KZRFB = ' ' "Indicator: reset buffer for Material_Pre_Fetch
I_HIER_ID = "Hierarchy
I_NODE = "Hierarchy Node
* I_SPRAS = SY-LANGU "SAP System, Current Language
IMPORTING
ES_NODE_TEXT = "Category Structure
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for MGSKU_STRUCT_SINGLE_READ
I_KZRFB - Indicator: reset buffer for Material_Pre_Fetch
Data type: KZRFBDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_HIER_ID - Hierarchy
Data type: WRF_HIER_CNTOptional: No
Call by Reference: Yes
I_NODE - Hierarchy Node
Data type: WRF_STRUC_NODEOptional: No
Call by Reference: Yes
I_SPRAS - SAP System, Current Language
Data type: SYLANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for MGSKU_STRUCT_SINGLE_READ
ES_NODE_TEXT - Category Structure
Data type: WRF_MATGRP_STRCTOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - Text not found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MGSKU_STRUCT_SINGLE_READ Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_kzrfb | TYPE KZRFB, " SPACE | |||
| lv_not_found | TYPE KZRFB, " | |||
| lv_es_node_text | TYPE WRF_MATGRP_STRCT, " | |||
| lv_i_hier_id | TYPE WRF_HIER_CNT, " | |||
| lv_i_node | TYPE WRF_STRUC_NODE, " | |||
| lv_i_spras | TYPE SYLANGU. " SY-LANGU |
|   CALL FUNCTION 'MGSKU_STRUCT_SINGLE_READ' "Read Node Description |
| EXPORTING | ||
| I_KZRFB | = lv_i_kzrfb | |
| I_HIER_ID | = lv_i_hier_id | |
| I_NODE | = lv_i_node | |
| I_SPRAS | = lv_i_spras | |
| IMPORTING | ||
| ES_NODE_TEXT | = lv_es_node_text | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " MGSKU_STRUCT_SINGLE_READ | ||
ABAP code using 7.40 inline data declarations to call FM MGSKU_STRUCT_SINGLE_READ
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_i_kzrfb) | = ' '. | |||
| DATA(ld_i_spras) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects