SAP KARL_DATA_INPUT_INIT Function Module for
KARL_DATA_INPUT_INIT is a standard karl data input init 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 karl data input init FM, simply by entering the name KARL_DATA_INPUT_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: KARL
Program Name: SAPLKARL
Main Program: SAPLKARL
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KARL_DATA_INPUT_INIT 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 'KARL_DATA_INPUT_INIT'".
EXPORTING
* I_REPORT = "ABAP Program Name
* I_REPORTTYPE = "Report type
IMPORTING
E_XUSEDB = "
E_XUSEAR = "
E_ARCHOBJ = "Archiving Object
E_INFOSYS = "
TABLES
* T_OBJECTS = "
* T_ARCH_SEL = "
EXCEPTIONS
WRONG_ARCHIVE_OBJECT = 1
IMPORTING Parameters details for KARL_DATA_INPUT_INIT
I_REPORT - ABAP Program Name
Data type: PROGNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_REPORTTYPE - Report type
Data type: REPORTTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for KARL_DATA_INPUT_INIT
E_XUSEDB -
Data type: DTINP-XUSEDBOptional: No
Call by Reference: Yes
E_XUSEAR -
Data type: DTINP-XUSEAROptional: No
Call by Reference: Yes
E_ARCHOBJ - Archiving Object
Data type: ADMI_RUN-OBJECTOptional: No
Call by Reference: Yes
E_INFOSYS -
Data type: COptional: No
Call by Reference: Yes
TABLES Parameters details for KARL_DATA_INPUT_INIT
T_OBJECTS -
Data type: OBJECT_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ARCH_SEL -
Data type: RNG_ARCHIVOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_ARCHIVE_OBJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KARL_DATA_INPUT_INIT 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_xusedb | TYPE DTINP-XUSEDB, " | |||
| lv_i_report | TYPE PROGNAME, " | |||
| lt_t_objects | TYPE STANDARD TABLE OF OBJECT_TAB, " | |||
| lv_wrong_archive_object | TYPE OBJECT_TAB, " | |||
| lv_e_xusear | TYPE DTINP-XUSEAR, " | |||
| lt_t_arch_sel | TYPE STANDARD TABLE OF RNG_ARCHIV, " | |||
| lv_i_reporttype | TYPE REPORTTYPE, " | |||
| lv_e_archobj | TYPE ADMI_RUN-OBJECT, " | |||
| lv_e_infosys | TYPE C. " |
|   CALL FUNCTION 'KARL_DATA_INPUT_INIT' " |
| EXPORTING | ||
| I_REPORT | = lv_i_report | |
| I_REPORTTYPE | = lv_i_reporttype | |
| IMPORTING | ||
| E_XUSEDB | = lv_e_xusedb | |
| E_XUSEAR | = lv_e_xusear | |
| E_ARCHOBJ | = lv_e_archobj | |
| E_INFOSYS | = lv_e_infosys | |
| TABLES | ||
| T_OBJECTS | = lt_t_objects | |
| T_ARCH_SEL | = lt_t_arch_sel | |
| EXCEPTIONS | ||
| WRONG_ARCHIVE_OBJECT = 1 | ||
| . " KARL_DATA_INPUT_INIT | ||
ABAP code using 7.40 inline data declarations to call FM KARL_DATA_INPUT_INIT
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_e_xusedb). | ||||
| "SELECT single XUSEAR FROM DTINP INTO @DATA(ld_e_xusear). | ||||
| "SELECT single OBJECT FROM ADMI_RUN INTO @DATA(ld_e_archobj). | ||||
Search for further information about these or an SAP related objects