SAP RSSM_APO_REQUEST_FINISH Function Module for Finish an APO-Request
RSSM_APO_REQUEST_FINISH is a standard rssm apo request finish SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Finish an APO-Request 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 rssm apo request finish FM, simply by entering the name RSSM_APO_REQUEST_FINISH into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSSM
Program Name: SAPLRSSM
Main Program: SAPLRSSM
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSSM_APO_REQUEST_FINISH 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 'RSSM_APO_REQUEST_FINISH'"Finish an APO-Request.
EXPORTING
I_RNR = "
* I_TRANSACT = ' ' "
* I_CALLER_PC = ' ' "Boolean
* I_OK_FLAG = 'X' "
* I_RECORDS = "
* I_INFOCUBE = ' ' "
* I_INIT_SIMU = ' ' "
* I_ONLY_INFO = RS_C_FALSE "Only simulate InfoPackage, NO Processing
* I_WITH_SCHEDULER = RS_C_FALSE "Simulate also Scheduler
* I_T_DATAPAKS = "InfoIDoc: Data packet segment
* I_ERROR_HANDLER = ' ' "Boolean
TABLES
* I_T_INFOCUBES = "
EXCEPTIONS
UNCORRECT_REQUEST = 1 UNCORRECT_CUBE = 2 ERROR = 3
IMPORTING Parameters details for RSSM_APO_REQUEST_FINISH
I_RNR -
Data type: RSREQDONE-RNROptional: No
Call by Reference: No ( called with pass by value option)
I_TRANSACT -
Data type: RS_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_CALLER_PC - Boolean
Data type: RS_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_OK_FLAG -
Data type: RS_BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RECORDS -
Data type: RSMONVIEW-RQRECORDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_INFOCUBE -
Data type: RSICCONT-ICUBEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INIT_SIMU -
Data type: RSLDPSEL-INIT_SIMUDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_ONLY_INFO - Only simulate InfoPackage, NO Processing
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_WITH_SCHEDULER - Simulate also Scheduler
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_T_DATAPAKS - InfoIDoc: Data packet segment
Data type: RSARR_T_INFO_DATAOptional: Yes
Call by Reference: Yes
I_ERROR_HANDLER - Boolean
Data type: RS_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for RSSM_APO_REQUEST_FINISH
I_T_INFOCUBES -
Data type: RSSM_T_ICUBEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
UNCORRECT_REQUEST -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNCORRECT_CUBE -
Data type:Optional: No
Call by Reference: Yes
ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSSM_APO_REQUEST_FINISH 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_i_rnr | TYPE RSREQDONE-RNR, " | |||
| lt_i_t_infocubes | TYPE STANDARD TABLE OF RSSM_T_ICUBE, " | |||
| lv_uncorrect_request | TYPE RSSM_T_ICUBE, " | |||
| lv_i_transact | TYPE RS_BOOL, " SPACE | |||
| lv_i_caller_pc | TYPE RS_BOOL, " SPACE | |||
| lv_i_ok_flag | TYPE RS_BOOL, " 'X' | |||
| lv_uncorrect_cube | TYPE RS_BOOL, " | |||
| lv_error | TYPE RS_BOOL, " | |||
| lv_i_records | TYPE RSMONVIEW-RQRECORD, " | |||
| lv_i_infocube | TYPE RSICCONT-ICUBE, " SPACE | |||
| lv_i_init_simu | TYPE RSLDPSEL-INIT_SIMU, " SPACE | |||
| lv_i_only_info | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_with_scheduler | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_t_datapaks | TYPE RSARR_T_INFO_DATA, " | |||
| lv_i_error_handler | TYPE RS_BOOL. " SPACE |
|   CALL FUNCTION 'RSSM_APO_REQUEST_FINISH' "Finish an APO-Request |
| EXPORTING | ||
| I_RNR | = lv_i_rnr | |
| I_TRANSACT | = lv_i_transact | |
| I_CALLER_PC | = lv_i_caller_pc | |
| I_OK_FLAG | = lv_i_ok_flag | |
| I_RECORDS | = lv_i_records | |
| I_INFOCUBE | = lv_i_infocube | |
| I_INIT_SIMU | = lv_i_init_simu | |
| I_ONLY_INFO | = lv_i_only_info | |
| I_WITH_SCHEDULER | = lv_i_with_scheduler | |
| I_T_DATAPAKS | = lv_i_t_datapaks | |
| I_ERROR_HANDLER | = lv_i_error_handler | |
| TABLES | ||
| I_T_INFOCUBES | = lt_i_t_infocubes | |
| EXCEPTIONS | ||
| UNCORRECT_REQUEST = 1 | ||
| UNCORRECT_CUBE = 2 | ||
| ERROR = 3 | ||
| . " RSSM_APO_REQUEST_FINISH | ||
ABAP code using 7.40 inline data declarations to call FM RSSM_APO_REQUEST_FINISH
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 RNR FROM RSREQDONE INTO @DATA(ld_i_rnr). | ||||
| DATA(ld_i_transact) | = ' '. | |||
| DATA(ld_i_caller_pc) | = ' '. | |||
| DATA(ld_i_ok_flag) | = 'X'. | |||
| "SELECT single RQRECORD FROM RSMONVIEW INTO @DATA(ld_i_records). | ||||
| "SELECT single ICUBE FROM RSICCONT INTO @DATA(ld_i_infocube). | ||||
| DATA(ld_i_infocube) | = ' '. | |||
| "SELECT single INIT_SIMU FROM RSLDPSEL INTO @DATA(ld_i_init_simu). | ||||
| DATA(ld_i_init_simu) | = ' '. | |||
| DATA(ld_i_only_info) | = RS_C_FALSE. | |||
| DATA(ld_i_with_scheduler) | = RS_C_FALSE. | |||
| DATA(ld_i_error_handler) | = ' '. | |||
Search for further information about these or an SAP related objects