SAP RS_FUNCTION_POOL_ADD Function Module for









RS_FUNCTION_POOL_ADD is a standard rs function pool add 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 rs function pool add FM, simply by entering the name RS_FUNCTION_POOL_ADD into the relevant SAP transaction such as SE37 or SE38.

Function Group: SEUF
Program Name: SAPLSEUF
Main Program: SAPLSEUF
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RS_FUNCTION_POOL_ADD 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 'RS_FUNCTION_POOL_ADD'"
EXPORTING
* AKTION = 'SHOW' "
* AREA = ' ' "
* CORRNUM = ' ' "
* TEXT = ' ' "
* UNAME = ' ' "
* WITH_KORR = 'X' "Flag for correction entry
* WITH_MONITOR = ' ' "
* SAVE_ACTIVE = ' ' "
* WB_FB_MANAGER = "

IMPORTING
NEW_NAME = "New name

EXCEPTIONS
CANCELED_IN_CORR = 1 ENQUEUE_SYSTEM_FAILURE = 2 FUNCTION_POOL_EXIST = 3 NOT_EXECUTED = 4 NO_MODIFY_PERMISSION = 5 NO_SHOW_PERMISSION = 6 PERMISSION_FAILURE = 7
.



IMPORTING Parameters details for RS_FUNCTION_POOL_ADD

AKTION -

Data type: SY-UCOMM
Default: 'SHOW'
Optional: Yes
Call by Reference: No ( called with pass by value option)

AREA -

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

CORRNUM -

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

TEXT -

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

UNAME -

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

WITH_KORR - Flag for correction entry

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

WITH_MONITOR -

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

SAVE_ACTIVE -

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

WB_FB_MANAGER -

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

EXPORTING Parameters details for RS_FUNCTION_POOL_ADD

NEW_NAME - New name

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

EXCEPTIONS details

CANCELED_IN_CORR - Cancellation in the correction system

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

ENQUEUE_SYSTEM_FAILURE - System error when blocking

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

FUNCTION_POOL_EXIST - The function group already exists

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

NOT_EXECUTED - Function was not carried out

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

NO_MODIFY_PERMISSION - No change permission

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

NO_SHOW_PERMISSION - No display authorization

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

PERMISSION_FAILURE -

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

Copy and paste ABAP code example for RS_FUNCTION_POOL_ADD 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_aktion  TYPE SY-UCOMM, "   'SHOW'
lv_new_name  TYPE SY, "   
lv_canceled_in_corr  TYPE SY, "   
lv_area  TYPE RS38L-AREA, "   SPACE
lv_enqueue_system_failure  TYPE RS38L, "   
lv_corrnum  TYPE E070-TRKORR, "   SPACE
lv_function_pool_exist  TYPE E070, "   
lv_text  TYPE TLIBT-AREAT, "   SPACE
lv_not_executed  TYPE TLIBT, "   
lv_uname  TYPE TLIBV-UNAME, "   SPACE
lv_no_modify_permission  TYPE TLIBV, "   
lv_with_korr  TYPE RS38L-FREE, "   'X'
lv_no_show_permission  TYPE RS38L, "   
lv_with_monitor  TYPE RS38L-FREE, "   ' '
lv_permission_failure  TYPE RS38L, "   
lv_save_active  TYPE RS38L-HEAD, "   SPACE
lv_wb_fb_manager  TYPE CL_FUNCTION_BUILDER_POOL. "   

  CALL FUNCTION 'RS_FUNCTION_POOL_ADD'  "
    EXPORTING
         AKTION = lv_aktion
         AREA = lv_area
         CORRNUM = lv_corrnum
         TEXT = lv_text
         UNAME = lv_uname
         WITH_KORR = lv_with_korr
         WITH_MONITOR = lv_with_monitor
         SAVE_ACTIVE = lv_save_active
         WB_FB_MANAGER = lv_wb_fb_manager
    IMPORTING
         NEW_NAME = lv_new_name
    EXCEPTIONS
        CANCELED_IN_CORR = 1
        ENQUEUE_SYSTEM_FAILURE = 2
        FUNCTION_POOL_EXIST = 3
        NOT_EXECUTED = 4
        NO_MODIFY_PERMISSION = 5
        NO_SHOW_PERMISSION = 6
        PERMISSION_FAILURE = 7
. " RS_FUNCTION_POOL_ADD




ABAP code using 7.40 inline data declarations to call FM RS_FUNCTION_POOL_ADD

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 UCOMM FROM SY INTO @DATA(ld_aktion).
DATA(ld_aktion) = 'SHOW'.
 
 
 
"SELECT single AREA FROM RS38L INTO @DATA(ld_area).
DATA(ld_area) = ' '.
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_corrnum).
DATA(ld_corrnum) = ' '.
 
 
"SELECT single AREAT FROM TLIBT INTO @DATA(ld_text).
DATA(ld_text) = ' '.
 
 
"SELECT single UNAME FROM TLIBV INTO @DATA(ld_uname).
DATA(ld_uname) = ' '.
 
 
"SELECT single FREE FROM RS38L INTO @DATA(ld_with_korr).
DATA(ld_with_korr) = 'X'.
 
 
"SELECT single FREE FROM RS38L INTO @DATA(ld_with_monitor).
DATA(ld_with_monitor) = ' '.
 
 
"SELECT single HEAD FROM RS38L INTO @DATA(ld_save_active).
DATA(ld_save_active) = ' '.
 
 


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!