SAP FUNCTION_INCLUDE_SPLIT Function Module for Get Function Modules and Includes Belonging to a Function Group









FUNCTION_INCLUDE_SPLIT is a standard function include split SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Function Modules and Includes Belonging to a Function Group 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 function include split FM, simply by entering the name FUNCTION_INCLUDE_SPLIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: SUNI
Program Name: SAPLSUNI
Main Program: SAPLSUNI
Appliation area: S
Release date: 26-Mar-1997
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FUNCTION_INCLUDE_SPLIT 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 'FUNCTION_INCLUDE_SPLIT'"Get Function Modules and Includes Belonging to a Function Group
EXPORTING
* PROGRAM = "Name of a program with namespace
* SUPPRESS_SELECT = 'X' "No access to TFDIR
* COMPLETE_AREA = ' ' "Full name of group with namespace

IMPORTING
NAME' ' = "Namespace
TOO_MANY_DELIMITERS = "Too many namespace delimiters in name
RESERVED_FOR_EXITS = "Name is reserved for exit modules
HIDDEN_NAME = "Function Builder: For internal use
FUNCTION_NOT_EXISTS = "The specified function module does not exist
GROUP = "Name of function group
FUNCNAME = "Function module name
INCLUDE_NUMBER = "Number of the function module include according to TFDIR
NO_FUNCTION_INCLUDE = "Not a include of a function group
NO_FUNCTION_MODULE = "Not a function module include
SUFFIX = "3 characters suffix
RESERVED_NAME = "Name is reserved for the Function Builder

CHANGING
* INCLUDE = "Name of include

EXCEPTIONS
INCLUDE_NOT_EXISTS = 1 NAMESPACE_TOO_LONG = 10 AREA_LENGTH_ERROR = 11 GROUP_NOT_EXISTS = 2 NO_SELECTIONS = 3 NO_FUNCTION_INCLUDE = 4 NO_FUNCTION_POOL = 5 DELIMITER_WRONG_POSITION = 6 NO_CUSTOMER_FUNCTION_GROUP = 7 NO_CUSTOMER_FUNCTION_INCLUDE = 8 RESERVED_NAME_CUSTOMER = 9
.



IMPORTING Parameters details for FUNCTION_INCLUDE_SPLIT

PROGRAM - Name of a program with namespace

Data type: RS38L-INCLUDE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUPPRESS_SELECT - No access to TFDIR

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPLETE_AREA - Full name of group with namespace

Data type: RS38L-AREA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FUNCTION_INCLUDE_SPLIT

NAMESPACE - Namespace

Data type: RS38L-NAMESPACE
Optional: No
Call by Reference: No ( called with pass by value option)

TOO_MANY_DELIMITERS - Too many namespace delimiters in name

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

RESERVED_FOR_EXITS - Name is reserved for exit modules

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

HIDDEN_NAME - Function Builder: For internal use

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

FUNCTION_NOT_EXISTS - The specified function module does not exist

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

GROUP - Name of function group

Data type: RS38L-AREA
Optional: No
Call by Reference: No ( called with pass by value option)

FUNCNAME - Function module name

Data type: RS38L-NAME
Optional: No
Call by Reference: No ( called with pass by value option)

INCLUDE_NUMBER - Number of the function module include according to TFDIR

Data type: TFDIR-INCLUDE
Optional: No
Call by Reference: No ( called with pass by value option)

NO_FUNCTION_INCLUDE - Not a include of a function group

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

NO_FUNCTION_MODULE - Not a function module include

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

SUFFIX - 3 characters suffix

Data type: RS38L-SUFFIX
Optional: No
Call by Reference: No ( called with pass by value option)

RESERVED_NAME - Name is reserved for the Function Builder

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for FUNCTION_INCLUDE_SPLIT

INCLUDE - Name of include

Data type: RS38L-INCLUDE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INCLUDE_NOT_EXISTS - Include does not exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NAMESPACE_TOO_LONG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

AREA_LENGTH_ERROR -

Data type:
Optional: No
Call by Reference: Yes

GROUP_NOT_EXISTS - Function group does not exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_SELECTIONS - Nothing was selected

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_FUNCTION_INCLUDE - Not a include of a function group

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_FUNCTION_POOL - Not a function group

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DELIMITER_WRONG_POSITION - Namespace delimiters are in the wrong position

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_CUSTOMER_FUNCTION_GROUP - Not a customer exit group

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_CUSTOMER_FUNCTION_INCLUDE - Not a customer exit include

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RESERVED_NAME_CUSTOMER - Reserved for customer exits

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FUNCTION_INCLUDE_SPLIT 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_include  TYPE RS38L-INCLUDE, "   
lv_program  TYPE RS38L-INCLUDE, "   
lv_namespace  TYPE RS38L-NAMESPACE, "   
lv_include_not_exists  TYPE RS38L, "   
lv_namespace_too_long  TYPE RS38L, "   
lv_too_many_delimiters  TYPE C, "   
lv_area_length_error  TYPE C, "   
lv_reserved_for_exits  TYPE C, "   
lv_hidden_name  TYPE C, "   
lv_suppress_select  TYPE C, "   'X'
lv_group_not_exists  TYPE C, "   
lv_function_not_exists  TYPE C, "   
lv_group  TYPE RS38L-AREA, "   
lv_complete_area  TYPE RS38L-AREA, "   SPACE
lv_no_selections  TYPE RS38L, "   
lv_funcname  TYPE RS38L-NAME, "   
lv_no_function_include  TYPE RS38L, "   
lv_include_number  TYPE TFDIR-INCLUDE, "   
lv_no_function_pool  TYPE TFDIR, "   
lv_no_function_include  TYPE C, "   
lv_delimiter_wrong_position  TYPE C, "   
lv_no_function_module  TYPE C, "   
lv_no_customer_function_group  TYPE C, "   
lv_suffix  TYPE RS38L-SUFFIX, "   
lv_no_customer_function_include  TYPE RS38L, "   
lv_reserved_name  TYPE C, "   
lv_reserved_name_customer  TYPE C. "   

  CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT'  "Get Function Modules and Includes Belonging to a Function Group
    EXPORTING
         PROGRAM = lv_program
         SUPPRESS_SELECT = lv_suppress_select
         COMPLETE_AREA = lv_complete_area
    IMPORTING
         NAMESPACE = lv_namespace
         TOO_MANY_DELIMITERS = lv_too_many_delimiters
         RESERVED_FOR_EXITS = lv_reserved_for_exits
         HIDDEN_NAME = lv_hidden_name
         FUNCTION_NOT_EXISTS = lv_function_not_exists
         GROUP = lv_group
         FUNCNAME = lv_funcname
         INCLUDE_NUMBER = lv_include_number
         NO_FUNCTION_INCLUDE = lv_no_function_include
         NO_FUNCTION_MODULE = lv_no_function_module
         SUFFIX = lv_suffix
         RESERVED_NAME = lv_reserved_name
    CHANGING
         INCLUDE = lv_include
    EXCEPTIONS
        INCLUDE_NOT_EXISTS = 1
        NAMESPACE_TOO_LONG = 10
        AREA_LENGTH_ERROR = 11
        GROUP_NOT_EXISTS = 2
        NO_SELECTIONS = 3
        NO_FUNCTION_INCLUDE = 4
        NO_FUNCTION_POOL = 5
        DELIMITER_WRONG_POSITION = 6
        NO_CUSTOMER_FUNCTION_GROUP = 7
        NO_CUSTOMER_FUNCTION_INCLUDE = 8
        RESERVED_NAME_CUSTOMER = 9
. " FUNCTION_INCLUDE_SPLIT




ABAP code using 7.40 inline data declarations to call FM FUNCTION_INCLUDE_SPLIT

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 INCLUDE FROM RS38L INTO @DATA(ld_include).
 
"SELECT single INCLUDE FROM RS38L INTO @DATA(ld_program).
 
"SELECT single NAME' ' FROM RS38L INTO @DATA(ld_namespace).
 
 
 
 
 
 
 
DATA(ld_suppress_select) = 'X'.
 
 
 
"SELECT single AREA FROM RS38L INTO @DATA(ld_group).
 
"SELECT single AREA FROM RS38L INTO @DATA(ld_complete_area).
DATA(ld_complete_area) = ' '.
 
 
"SELECT single NAME FROM RS38L INTO @DATA(ld_funcname).
 
 
"SELECT single INCLUDE FROM TFDIR INTO @DATA(ld_include_number).
 
 
 
 
 
 
"SELECT single SUFFIX FROM RS38L INTO @DATA(ld_suffix).
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!