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

Function RSOSC_APPEND_DELETE 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 'RSOSC_APPEND_DELETE'"Delete an append.
EXPORTING
I_APPENDNM = "Name of append
* I_NO_POPUP = RS_C_FALSE "'X' - popups are suppressed, errors passed in itab
* I_NEVERTHELESS_DELETE = RS_C_FALSE "='X': delete in case of errors never the less
IMPORTING
E_T_ERRMSG = "BW: Table with Messages (Application Log)
EXCEPTIONS
DELETE_ERROR = 1 DELETE_CANCELLED = 2 APPEND_LOCKED = 3 APPEND_NOT_FOUND = 4 MAIN_OBJECT_NOT_FOUND = 5
IMPORTING Parameters details for RSOSC_APPEND_DELETE
I_APPENDNM - Name of append
Data type: RSAPPENDNMOptional: No
Call by Reference: No ( called with pass by value option)
I_NO_POPUP - 'X' - popups are suppressed, errors passed in itab
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: No
Call by Reference: No ( called with pass by value option)
I_NEVERTHELESS_DELETE - ='X': delete in case of errors never the less
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for RSOSC_APPEND_DELETE
E_T_ERRMSG - BW: Table with Messages (Application Log)
Data type: RS_T_MSGOptional: No
Call by Reference: Yes
EXCEPTIONS details
DELETE_ERROR - Error during deletion
Data type:Optional: No
Call by Reference: Yes
DELETE_CANCELLED - Delete operation was cancelled in the confirmation popup
Data type:Optional: No
Call by Reference: Yes
APPEND_LOCKED - The append is locked by another process
Data type:Optional: No
Call by Reference: Yes
APPEND_NOT_FOUND - The append does not exist
Data type:Optional: No
Call by Reference: Yes
MAIN_OBJECT_NOT_FOUND - The main object of the append was not found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSOSC_APPEND_DELETE 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_e_t_errmsg | TYPE RS_T_MSG, " | |||
| lv_i_appendnm | TYPE RSAPPENDNM, " | |||
| lv_delete_error | TYPE RSAPPENDNM, " | |||
| lv_i_no_popup | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_delete_cancelled | TYPE RS_BOOL, " | |||
| lv_append_locked | TYPE RS_BOOL, " | |||
| lv_i_nevertheless_delete | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_append_not_found | TYPE RS_BOOL, " | |||
| lv_main_object_not_found | TYPE RS_BOOL. " |
|   CALL FUNCTION 'RSOSC_APPEND_DELETE' "Delete an append |
| EXPORTING | ||
| I_APPENDNM | = lv_i_appendnm | |
| I_NO_POPUP | = lv_i_no_popup | |
| I_NEVERTHELESS_DELETE | = lv_i_nevertheless_delete | |
| IMPORTING | ||
| E_T_ERRMSG | = lv_e_t_errmsg | |
| EXCEPTIONS | ||
| DELETE_ERROR = 1 | ||
| DELETE_CANCELLED = 2 | ||
| APPEND_LOCKED = 3 | ||
| APPEND_NOT_FOUND = 4 | ||
| MAIN_OBJECT_NOT_FOUND = 5 | ||
| . " RSOSC_APPEND_DELETE | ||
ABAP code using 7.40 inline data declarations to call FM RSOSC_APPEND_DELETE
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.| DATA(ld_i_no_popup) | = RS_C_FALSE. | |||
| DATA(ld_i_nevertheless_delete) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects