SAP SRET_DOCS_LS_SYN_DELETE Function Module for
SRET_DOCS_LS_SYN_DELETE is a standard sret docs ls syn delete 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 sret docs ls syn delete FM, simply by entering the name SRET_DOCS_LS_SYN_DELETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SRIN
Program Name: SAPLSRIN
Main Program: SAPLSRIN
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function SRET_DOCS_LS_SYN_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 'SRET_DOCS_LS_SYN_DELETE'".
EXPORTING
CATID = "
* LANGU = "
* LAISO = "Language key according to ISO 639
* CLIENT = "
* SAPCODEPAGE = "
IMPORTING
RCODE = "Error Code
TABLES
DOCIDTAB = "
EXCEPTIONS
CATID_UNKNOWN = 1 XERROR = 10 NO_RFC_DEST = 2 IDXCAT_IS_INACTIVE = 3 NO_DOCS_GIVEN = 4 LANGU_NOT_VALID = 5 CAT_HAS_NO_INDEX = 6 RFC_SYS_FAILURE = 7 RFC_COM_FAILURE = 8 INDEX_COULD_NOT_BE_CHANGED = 9
IMPORTING Parameters details for SRET_DOCS_LS_SYN_DELETE
CATID -
Data type: SRETIDCAT-CATIDOptional: No
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: SRETIDLACI-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
LAISO - Language key according to ISO 639
Data type: SRETIDLACI-LAISOOptional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT -
Data type: SY-MANDTOptional: Yes
Call by Reference: No ( called with pass by value option)
SAPCODEPAGE -
Data type: SRETGSTRUC-SAPCPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SRET_DOCS_LS_SYN_DELETE
RCODE - Error Code
Data type: SRETGSTRUC-RCODEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SRET_DOCS_LS_SYN_DELETE
DOCIDTAB -
Data type: SRETDOCIDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CATID_UNKNOWN -
Data type:Optional: No
Call by Reference: Yes
XERROR -
Data type:Optional: No
Call by Reference: Yes
NO_RFC_DEST -
Data type:Optional: No
Call by Reference: Yes
IDXCAT_IS_INACTIVE -
Data type:Optional: No
Call by Reference: Yes
NO_DOCS_GIVEN -
Data type:Optional: No
Call by Reference: Yes
LANGU_NOT_VALID -
Data type:Optional: No
Call by Reference: Yes
CAT_HAS_NO_INDEX -
Data type:Optional: No
Call by Reference: Yes
RFC_SYS_FAILURE -
Data type:Optional: No
Call by Reference: Yes
RFC_COM_FAILURE -
Data type:Optional: No
Call by Reference: Yes
INDEX_COULD_NOT_BE_CHANGED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SRET_DOCS_LS_SYN_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_catid | TYPE SRETIDCAT-CATID, " | |||
lv_rcode | TYPE SRETGSTRUC-RCODE, " | |||
lt_docidtab | TYPE STANDARD TABLE OF SRETDOCID, " | |||
lv_catid_unknown | TYPE SRETDOCID, " | |||
lv_xerror | TYPE SRETDOCID, " | |||
lv_langu | TYPE SRETIDLACI-LANGU, " | |||
lv_no_rfc_dest | TYPE SRETIDLACI, " | |||
lv_laiso | TYPE SRETIDLACI-LAISO, " | |||
lv_idxcat_is_inactive | TYPE SRETIDLACI, " | |||
lv_client | TYPE SY-MANDT, " | |||
lv_no_docs_given | TYPE SY, " | |||
lv_sapcodepage | TYPE SRETGSTRUC-SAPCP, " | |||
lv_langu_not_valid | TYPE SRETGSTRUC, " | |||
lv_cat_has_no_index | TYPE SRETGSTRUC, " | |||
lv_rfc_sys_failure | TYPE SRETGSTRUC, " | |||
lv_rfc_com_failure | TYPE SRETGSTRUC, " | |||
lv_index_could_not_be_changed | TYPE SRETGSTRUC. " |
  CALL FUNCTION 'SRET_DOCS_LS_SYN_DELETE' " |
EXPORTING | ||
CATID | = lv_catid | |
LANGU | = lv_langu | |
LAISO | = lv_laiso | |
CLIENT | = lv_client | |
SAPCODEPAGE | = lv_sapcodepage | |
IMPORTING | ||
RCODE | = lv_rcode | |
TABLES | ||
DOCIDTAB | = lt_docidtab | |
EXCEPTIONS | ||
CATID_UNKNOWN = 1 | ||
XERROR = 10 | ||
NO_RFC_DEST = 2 | ||
IDXCAT_IS_INACTIVE = 3 | ||
NO_DOCS_GIVEN = 4 | ||
LANGU_NOT_VALID = 5 | ||
CAT_HAS_NO_INDEX = 6 | ||
RFC_SYS_FAILURE = 7 | ||
RFC_COM_FAILURE = 8 | ||
INDEX_COULD_NOT_BE_CHANGED = 9 | ||
. " SRET_DOCS_LS_SYN_DELETE |
ABAP code using 7.40 inline data declarations to call FM SRET_DOCS_LS_SYN_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."SELECT single CATID FROM SRETIDCAT INTO @DATA(ld_catid). | ||||
"SELECT single RCODE FROM SRETGSTRUC INTO @DATA(ld_rcode). | ||||
"SELECT single LANGU FROM SRETIDLACI INTO @DATA(ld_langu). | ||||
"SELECT single LAISO FROM SRETIDLACI INTO @DATA(ld_laiso). | ||||
"SELECT single MANDT FROM SY INTO @DATA(ld_client). | ||||
"SELECT single SAPCP FROM SRETGSTRUC INTO @DATA(ld_sapcodepage). | ||||
Search for further information about these or an SAP related objects