SAP G_SET_ENDNODES Function Module for
G_SET_ENDNODES is a standard g set endnodes SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 g set endnodes FM, simply by entering the name G_SET_ENDNODES into the relevant SAP transaction such as SE37 or SE38.
Function Group: KIKS
Program Name: SAPLKIKS
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function G_SET_ENDNODES 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 'G_SET_ENDNODES'".
EXPORTING
* CLASS = ' ' "
* LANGU = SY-LANGU "
* NO_AUTHORITY_CHECK = ' ' "
SETNR = "
* SOURCE_CLIENT = SY-MANDT "
TABLE = "
IMPORTING
SET_HEADER = "
TABLES
SET_END_NODES = "
EXCEPTIONS
NO_AUTHORITY = 1 SET_IS_BROKEN = 2 SET_NOT_FOUND = 3 ERRORS_OCCURED = 4
IMPORTING Parameters details for G_SET_ENDNODES
CLASS -
Data type: RGSBS-CLASSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_CHECK -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SETNR -
Data type: RGSBS-SETNROptional: No
Call by Reference: No ( called with pass by value option)
SOURCE_CLIENT -
Data type: SY-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE -
Data type: RGSBS-TABLEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for G_SET_ENDNODES
SET_HEADER -
Data type: RGSBSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for G_SET_ENDNODES
SET_END_NODES -
Data type: RGSB1Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SET_IS_BROKEN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SET_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERRORS_OCCURED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for G_SET_ENDNODES 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_class | TYPE RGSBS-CLASS, " SPACE | |||
lv_set_header | TYPE RGSBS, " | |||
lv_no_authority | TYPE RGSBS, " | |||
lt_set_end_nodes | TYPE STANDARD TABLE OF RGSB1, " | |||
lv_langu | TYPE SY-LANGU, " SY-LANGU | |||
lv_set_is_broken | TYPE SY, " | |||
lv_set_not_found | TYPE SY, " | |||
lv_no_authority_check | TYPE SY, " SPACE | |||
lv_setnr | TYPE RGSBS-SETNR, " | |||
lv_errors_occured | TYPE RGSBS, " | |||
lv_source_client | TYPE SY-MANDT, " SY-MANDT | |||
lv_table | TYPE RGSBS-TABLE. " |
  CALL FUNCTION 'G_SET_ENDNODES' " |
EXPORTING | ||
CLASS | = lv_class | |
LANGU | = lv_langu | |
NO_AUTHORITY_CHECK | = lv_no_authority_check | |
SETNR | = lv_setnr | |
SOURCE_CLIENT | = lv_source_client | |
TABLE | = lv_table | |
IMPORTING | ||
SET_HEADER | = lv_set_header | |
TABLES | ||
SET_END_NODES | = lt_set_end_nodes | |
EXCEPTIONS | ||
NO_AUTHORITY = 1 | ||
SET_IS_BROKEN = 2 | ||
SET_NOT_FOUND = 3 | ||
ERRORS_OCCURED = 4 | ||
. " G_SET_ENDNODES |
ABAP code using 7.40 inline data declarations to call FM G_SET_ENDNODES
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 CLASS FROM RGSBS INTO @DATA(ld_class). | ||||
DATA(ld_class) | = ' '. | |||
"SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
DATA(ld_langu) | = SY-LANGU. | |||
DATA(ld_no_authority_check) | = ' '. | |||
"SELECT single SETNR FROM RGSBS INTO @DATA(ld_setnr). | ||||
"SELECT single MANDT FROM SY INTO @DATA(ld_source_client). | ||||
DATA(ld_source_client) | = SY-MANDT. | |||
"SELECT single TABLE FROM RGSBS INTO @DATA(ld_table). | ||||
Search for further information about these or an SAP related objects