SAP RTMATGRP_STRUCT_BUFFER_UPDATE Function Module for Update to Buffer MATGRP_STRUCT_BUFFER
RTMATGRP_STRUCT_BUFFER_UPDATE is a standard rtmatgrp struct buffer update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update to Buffer MATGRP_STRUCT_BUFFER 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 rtmatgrp struct buffer update FM, simply by entering the name RTMATGRP_STRUCT_BUFFER_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RTMATGRP_FU01
Program Name: SAPLRTMATGRP_FU01
Main Program: SAPLRTMATGRP_FU01
Appliation area:
Release date: 06-Mar-2007
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RTMATGRP_STRUCT_BUFFER_UPDATE 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 'RTMATGRP_STRUCT_BUFFER_UPDATE'"Update to Buffer MATGRP_STRUCT_BUFFER.
EXPORTING
HIERID = "Hierarchy ID
NODE = "New Structure Items
* SPRAS = SY-LANGU "Language Key
* LTEXT = ' ' "Name
* LTEXTLG = "Long name
CHANGE_MODE = "Change flag (I_nsert, U_pdate, D_elete, ' ')
* DEL_ALL_OF_NODE = ' ' "Set All Node Descriptions for a Node in the Buffer to 'To Be Deleted'
CHANGING
MATGRP_STRUCT_BUFFER = "Buffer Table for Article Hierarchy Assignments
MATGRP_STRUCT_BUFFER_WA = "Work Area for Buffer Table of Article Hierarchy Assignments
EXCEPTIONS
OPERATION_NOT_POSSIBLE = 1
IMPORTING Parameters details for RTMATGRP_STRUCT_BUFFER_UPDATE
HIERID - Hierarchy ID
Data type: WRF_MATGRP_SKU-HIER_IDOptional: No
Call by Reference: No ( called with pass by value option)
NODE - New Structure Items
Data type: WRF_MATGRP_STRUC-NODEOptional: No
Call by Reference: No ( called with pass by value option)
SPRAS - Language Key
Data type: SPRASDefault: SY-LANGU
Optional: No
Call by Reference: No ( called with pass by value option)
LTEXT - Name
Data type: WRF_MATGRP_TEXTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LTEXTLG - Long name
Data type: WRF_MATGRP_TEXTLOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_MODE - Change flag (I_nsert, U_pdate, D_elete, SPACE)
Data type: WRF_CHANGE_MODEOptional: No
Call by Reference: No ( called with pass by value option)
DEL_ALL_OF_NODE - Set All Node Descriptions for a Node in the Buffer to 'To Be Deleted'
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RTMATGRP_STRUCT_BUFFER_UPDATE
MATGRP_STRUCT_BUFFER - Buffer Table for Article Hierarchy Assignments
Data type: WRF_NODE_DESCRIPTION_TTYOptional: No
Call by Reference: Yes
MATGRP_STRUCT_BUFFER_WA - Work Area for Buffer Table of Article Hierarchy Assignments
Data type: WRF_NODE_DESCRIPTION_STYOptional: No
Call by Reference: Yes
EXCEPTIONS details
OPERATION_NOT_POSSIBLE - Case may not Arise or else Incorrect Call-Up
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RTMATGRP_STRUCT_BUFFER_UPDATE 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_hierid | TYPE WRF_MATGRP_SKU-HIER_ID, " | |||
| lv_matgrp_struct_buffer | TYPE WRF_NODE_DESCRIPTION_TTY, " | |||
| lv_operation_not_possible | TYPE WRF_NODE_DESCRIPTION_TTY, " | |||
| lv_node | TYPE WRF_MATGRP_STRUC-NODE, " | |||
| lv_matgrp_struct_buffer_wa | TYPE WRF_NODE_DESCRIPTION_STY, " | |||
| lv_spras | TYPE SPRAS, " SY-LANGU | |||
| lv_ltext | TYPE WRF_MATGRP_TEXT, " SPACE | |||
| lv_ltextlg | TYPE WRF_MATGRP_TEXTL, " | |||
| lv_change_mode | TYPE WRF_CHANGE_MODE, " | |||
| lv_del_all_of_node | TYPE CHAR1. " SPACE |
|   CALL FUNCTION 'RTMATGRP_STRUCT_BUFFER_UPDATE' "Update to Buffer MATGRP_STRUCT_BUFFER |
| EXPORTING | ||
| HIERID | = lv_hierid | |
| NODE | = lv_node | |
| SPRAS | = lv_spras | |
| LTEXT | = lv_ltext | |
| LTEXTLG | = lv_ltextlg | |
| CHANGE_MODE | = lv_change_mode | |
| DEL_ALL_OF_NODE | = lv_del_all_of_node | |
| CHANGING | ||
| MATGRP_STRUCT_BUFFER | = lv_matgrp_struct_buffer | |
| MATGRP_STRUCT_BUFFER_WA | = lv_matgrp_struct_buffer_wa | |
| EXCEPTIONS | ||
| OPERATION_NOT_POSSIBLE = 1 | ||
| . " RTMATGRP_STRUCT_BUFFER_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM RTMATGRP_STRUCT_BUFFER_UPDATE
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.| "SELECT single HIER_ID FROM WRF_MATGRP_SKU INTO @DATA(ld_hierid). | ||||
| "SELECT single NODE FROM WRF_MATGRP_STRUC INTO @DATA(ld_node). | ||||
| DATA(ld_spras) | = SY-LANGU. | |||
| DATA(ld_ltext) | = ' '. | |||
| DATA(ld_del_all_of_node) | = ' '. | |||
Search for further information about these or an SAP related objects