SAP RSATREE_PSA_DELETE_BATCH Function Module for schedule PSA for deletion
RSATREE_PSA_DELETE_BATCH is a standard rsatree psa delete batch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for schedule PSA for deletion 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 rsatree psa delete batch FM, simply by entering the name RSATREE_PSA_DELETE_BATCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSATREE
Program Name: SAPLRSATREE
Main Program: SAPLRSATREE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSATREE_PSA_DELETE_BATCH 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 'RSATREE_PSA_DELETE_BATCH'"schedule PSA for deletion.
EXPORTING
* I_APPLNM = "Application Component
* I_PSA = "InfoCube
* I_SOURCE = "InfoSource
* I_LOGSYS = "Source System
* I_DS = "InfoSource
* I_ISTYPE = "
* I_COMMAND = 'REFR' "
CHANGING
* C_S_SCREEN = "
TABLES
E_T_2500 = "
EXCEPTIONS
NO_PSA_FOUND = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for RSATREE_PSA_DELETE_BATCH
I_APPLNM - Application Component
Data type: RSAPPL-APPLNMOptional: Yes
Call by Reference: Yes
I_PSA - InfoCube
Data type: RSREQICODS-TABNAMEOptional: Yes
Call by Reference: Yes
I_SOURCE - InfoSource
Data type: RSLDPIO-SOURCEOptional: Yes
Call by Reference: Yes
I_LOGSYS - Source System
Data type: RSLDPIO-LOGSYSOptional: Yes
Call by Reference: Yes
I_DS - InfoSource
Data type: RSLDPIO-OLTPSOURCEOptional: Yes
Call by Reference: Yes
I_ISTYPE -
Data type: RSA_ISTYPEOptional: Yes
Call by Reference: Yes
I_COMMAND -
Data type: RSATR_COMMANDDefault: 'REFR'
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for RSATREE_PSA_DELETE_BATCH
C_S_SCREEN -
Data type: RSSM_S_SCREEN_2500_PSAOptional: Yes
Call by Reference: Yes
TABLES Parameters details for RSATREE_PSA_DELETE_BATCH
E_T_2500 -
Data type: RSSM_T_2500_PSAOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_PSA_FOUND -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSATREE_PSA_DELETE_BATCH 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: | ||||
| lt_e_t_2500 | TYPE STANDARD TABLE OF RSSM_T_2500_PSA, " | |||
| lv_i_applnm | TYPE RSAPPL-APPLNM, " | |||
| lv_c_s_screen | TYPE RSSM_S_SCREEN_2500_PSA, " | |||
| lv_no_psa_found | TYPE RSSM_S_SCREEN_2500_PSA, " | |||
| lv_i_psa | TYPE RSREQICODS-TABNAME, " | |||
| lv_internal_error | TYPE RSREQICODS, " | |||
| lv_i_source | TYPE RSLDPIO-SOURCE, " | |||
| lv_i_logsys | TYPE RSLDPIO-LOGSYS, " | |||
| lv_i_ds | TYPE RSLDPIO-OLTPSOURCE, " | |||
| lv_i_istype | TYPE RSA_ISTYPE, " | |||
| lv_i_command | TYPE RSATR_COMMAND. " 'REFR' |
|   CALL FUNCTION 'RSATREE_PSA_DELETE_BATCH' "schedule PSA for deletion |
| EXPORTING | ||
| I_APPLNM | = lv_i_applnm | |
| I_PSA | = lv_i_psa | |
| I_SOURCE | = lv_i_source | |
| I_LOGSYS | = lv_i_logsys | |
| I_DS | = lv_i_ds | |
| I_ISTYPE | = lv_i_istype | |
| I_COMMAND | = lv_i_command | |
| CHANGING | ||
| C_S_SCREEN | = lv_c_s_screen | |
| TABLES | ||
| E_T_2500 | = lt_e_t_2500 | |
| EXCEPTIONS | ||
| NO_PSA_FOUND = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " RSATREE_PSA_DELETE_BATCH | ||
ABAP code using 7.40 inline data declarations to call FM RSATREE_PSA_DELETE_BATCH
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 APPLNM FROM RSAPPL INTO @DATA(ld_i_applnm). | ||||
| "SELECT single TABNAME FROM RSREQICODS INTO @DATA(ld_i_psa). | ||||
| "SELECT single SOURCE FROM RSLDPIO INTO @DATA(ld_i_source). | ||||
| "SELECT single LOGSYS FROM RSLDPIO INTO @DATA(ld_i_logsys). | ||||
| "SELECT single OLTPSOURCE FROM RSLDPIO INTO @DATA(ld_i_ds). | ||||
| DATA(ld_i_command) | = 'REFR'. | |||
Search for further information about these or an SAP related objects