SAP SRET_EXAMPLE_EXIT_GET_DATA Function Module for
SRET_EXAMPLE_EXIT_GET_DATA is a standard sret example exit get data 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 example exit get data FM, simply by entering the name SRET_EXAMPLE_EXIT_GET_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SRIN
Program Name: SAPLSRIN
Main Program: SAPLSRIN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SRET_EXAMPLE_EXIT_GET_DATA 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_EXAMPLE_EXIT_GET_DATA'".
EXPORTING
CATID = "Index category identification
DOCID = "Document ID
* MANDT = SY-MANDT "Client
* CLT_DEP = 'N' "Client Dependence
APPLKEY = "Application Key
IMPORTING
CONTTYPE = "Document content ID
FILETYPE = "File type (3 characters)
MIMETYPE = "Document type (MIME type)
BINLEN = "Length of a binary document
TABLES
DOCATTRTAB = "Document Attribute with Value for Indexing/De-indexing
DOCCONTTAB = "Document content - data stream ASCII TEXT / URL / file
BINCONTTAB = "Document content as binary data stream
CATATTRTAB = "Category Attributes of Index Category
EXCEPTIONS
NOT_EXISTING = 1 NO_ACCESS = 2
IMPORTING Parameters details for SRET_EXAMPLE_EXIT_GET_DATA
CATID - Index category identification
Data type: SRET_CATIDOptional: No
Call by Reference: Yes
DOCID - Document ID
Data type: SRET_DOCIDOptional: No
Call by Reference: Yes
MANDT - Client
Data type: MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: Yes
CLT_DEP - Client Dependence
Data type: SRETCLTDEPDefault: 'N'
Optional: Yes
Call by Reference: Yes
APPLKEY - Application Key
Data type: SRETIDCTAT-APPLKEYOptional: No
Call by Reference: Yes
EXPORTING Parameters details for SRET_EXAMPLE_EXIT_GET_DATA
CONTTYPE - Document content ID
Data type: SRET_CONFLOptional: No
Call by Reference: Yes
FILETYPE - File type (3 characters)
Data type: SRET_FILETOptional: No
Call by Reference: Yes
MIMETYPE - Document type (MIME type)
Data type: SRET_MIMETOptional: No
Call by Reference: Yes
BINLEN - Length of a binary document
Data type: SRET_BLENOptional: No
Call by Reference: Yes
TABLES Parameters details for SRET_EXAMPLE_EXIT_GET_DATA
DOCATTRTAB - Document Attribute with Value for Indexing/De-indexing
Data type: SRETDCATVIOptional: No
Call by Reference: No ( called with pass by value option)
DOCCONTTAB - Document content - data stream ASCII TEXT / URL / file
Data type: SRETDOCCONOptional: No
Call by Reference: No ( called with pass by value option)
BINCONTTAB - Document content as binary data stream
Data type: SRETBINCONOptional: No
Call by Reference: No ( called with pass by value option)
CATATTRTAB - Category Attributes of Index Category
Data type: SRETIDCTATOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_EXISTING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ACCESS - Access Not allowed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SRET_EXAMPLE_EXIT_GET_DATA 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 SRET_CATID, " | |||
| lv_conttype | TYPE SRET_CONFL, " | |||
| lt_docattrtab | TYPE STANDARD TABLE OF SRETDCATVI, " | |||
| lv_not_existing | TYPE SRETDCATVI, " | |||
| lv_docid | TYPE SRET_DOCID, " | |||
| lv_filetype | TYPE SRET_FILET, " | |||
| lv_no_access | TYPE SRET_FILET, " | |||
| lt_docconttab | TYPE STANDARD TABLE OF SRETDOCCON, " | |||
| lv_mandt | TYPE MANDT, " SY-MANDT | |||
| lv_mimetype | TYPE SRET_MIMET, " | |||
| lt_binconttab | TYPE STANDARD TABLE OF SRETBINCON, " | |||
| lv_binlen | TYPE SRET_BLEN, " | |||
| lv_clt_dep | TYPE SRETCLTDEP, " 'N' | |||
| lt_catattrtab | TYPE STANDARD TABLE OF SRETIDCTAT, " | |||
| lv_applkey | TYPE SRETIDCTAT-APPLKEY. " |
|   CALL FUNCTION 'SRET_EXAMPLE_EXIT_GET_DATA' " |
| EXPORTING | ||
| CATID | = lv_catid | |
| DOCID | = lv_docid | |
| MANDT | = lv_mandt | |
| CLT_DEP | = lv_clt_dep | |
| APPLKEY | = lv_applkey | |
| IMPORTING | ||
| CONTTYPE | = lv_conttype | |
| FILETYPE | = lv_filetype | |
| MIMETYPE | = lv_mimetype | |
| BINLEN | = lv_binlen | |
| TABLES | ||
| DOCATTRTAB | = lt_docattrtab | |
| DOCCONTTAB | = lt_docconttab | |
| BINCONTTAB | = lt_binconttab | |
| CATATTRTAB | = lt_catattrtab | |
| EXCEPTIONS | ||
| NOT_EXISTING = 1 | ||
| NO_ACCESS = 2 | ||
| . " SRET_EXAMPLE_EXIT_GET_DATA | ||
ABAP code using 7.40 inline data declarations to call FM SRET_EXAMPLE_EXIT_GET_DATA
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_mandt) | = SY-MANDT. | |||
| DATA(ld_clt_dep) | = 'N'. | |||
| "SELECT single APPLKEY FROM SRETIDCTAT INTO @DATA(ld_applkey). | ||||
Search for further information about these or an SAP related objects