SAP DATA_INPUT_SELECT Function Module for Selection of the data sources used (database/archive/...)
DATA_INPUT_SELECT is a standard data input select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selection of the data sources used (database/archive/...) 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 data input select FM, simply by entering the name DATA_INPUT_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: DTIN
Program Name: SAPLDTIN
Main Program: SAPLDTIN
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DATA_INPUT_SELECT 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 'DATA_INPUT_SELECT'"Selection of the data sources used (database/archive/...).
EXPORTING
* XSUPPRESS_DIALOG = "Without dialog, only set variables?!
CHANGING
C_XUSEDB = "Use database?
C_ARCHOBJ = "Archive object used
C_XUSEAR = "Use archive files?
* C_XUSARALL = ' ' "Use all archive files?
* C_XEMUCNV = ' ' "
* C_ARUSETYP = 'READ' "
TABLES
T_ARCH_SEL = "Selection of the archive to be used
EXCEPTIONS
WRONG_USE_OF_PARAMETERS = 1
IMPORTING Parameters details for DATA_INPUT_SELECT
XSUPPRESS_DIALOG - Without dialog, only set variables?!
Data type: DATATYPE-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for DATA_INPUT_SELECT
C_XUSEDB - Use database?
Data type: DTINP-XUSEDBOptional: No
Call by Reference: No ( called with pass by value option)
C_ARCHOBJ - Archive object used
Data type: DTINP-OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
C_XUSEAR - Use archive files?
Data type: DTINP-XUSEAROptional: No
Call by Reference: No ( called with pass by value option)
C_XUSARALL - Use all archive files?
Data type: DTINP-XUSARALLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
C_XEMUCNV -
Data type: DTINP-XEMUCNVDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
C_ARUSETYP -
Data type: DTINP-ARUSETYPDefault: 'READ'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DATA_INPUT_SELECT
T_ARCH_SEL - Selection of the archive to be used
Data type: RNG_ARCHIVOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_USE_OF_PARAMETERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DATA_INPUT_SELECT 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_c_xusedb | TYPE DTINP-XUSEDB, " | |||
| lt_t_arch_sel | TYPE STANDARD TABLE OF RNG_ARCHIV, " | |||
| lv_xsuppress_dialog | TYPE DATATYPE-BOOLEAN, " | |||
| lv_wrong_use_of_parameters | TYPE DATATYPE, " | |||
| lv_c_archobj | TYPE DTINP-OBJECT, " | |||
| lv_c_xusear | TYPE DTINP-XUSEAR, " | |||
| lv_c_xusarall | TYPE DTINP-XUSARALL, " SPACE | |||
| lv_c_xemucnv | TYPE DTINP-XEMUCNV, " SPACE | |||
| lv_c_arusetyp | TYPE DTINP-ARUSETYP. " 'READ' |
|   CALL FUNCTION 'DATA_INPUT_SELECT' "Selection of the data sources used (database/archive/...) |
| EXPORTING | ||
| XSUPPRESS_DIALOG | = lv_xsuppress_dialog | |
| CHANGING | ||
| C_XUSEDB | = lv_c_xusedb | |
| C_ARCHOBJ | = lv_c_archobj | |
| C_XUSEAR | = lv_c_xusear | |
| C_XUSARALL | = lv_c_xusarall | |
| C_XEMUCNV | = lv_c_xemucnv | |
| C_ARUSETYP | = lv_c_arusetyp | |
| TABLES | ||
| T_ARCH_SEL | = lt_t_arch_sel | |
| EXCEPTIONS | ||
| WRONG_USE_OF_PARAMETERS = 1 | ||
| . " DATA_INPUT_SELECT | ||
ABAP code using 7.40 inline data declarations to call FM DATA_INPUT_SELECT
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 XUSEDB FROM DTINP INTO @DATA(ld_c_xusedb). | ||||
| "SELECT single BOOLEAN FROM DATATYPE INTO @DATA(ld_xsuppress_dialog). | ||||
| "SELECT single OBJECT FROM DTINP INTO @DATA(ld_c_archobj). | ||||
| "SELECT single XUSEAR FROM DTINP INTO @DATA(ld_c_xusear). | ||||
| "SELECT single XUSARALL FROM DTINP INTO @DATA(ld_c_xusarall). | ||||
| DATA(ld_c_xusarall) | = ' '. | |||
| "SELECT single XEMUCNV FROM DTINP INTO @DATA(ld_c_xemucnv). | ||||
| DATA(ld_c_xemucnv) | = ' '. | |||
| "SELECT single ARUSETYP FROM DTINP INTO @DATA(ld_c_arusetyp). | ||||
| DATA(ld_c_arusetyp) | = 'READ'. | |||
Search for further information about these or an SAP related objects