SAP EHPRC_CP_IM54_PREPROCESS Function Module for
EHPRC_CP_IM54_PREPROCESS is a standard ehprc cp im54 preprocess 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 ehprc cp im54 preprocess FM, simply by entering the name EHPRC_CP_IM54_PREPROCESS into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHPRC_CP_IM54
Program Name: SAPLEHPRC_CP_IM54
Main Program: SAPLEHPRC_CP_IM54
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHPRC_CP_IM54_PREPROCESS 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 'EHPRC_CP_IM54_PREPROCESS'".
EXPORTING
I_IMPTYP = "Template Identification
* I_FILE_XSTRING = "Raw string of import file
I_PATH = "
I_FILENAME = "
* I_APPL_LOG_IDENT = "
* I_SUPPRESS_DIALOG = "
* I_FLG_DVS_FUNC = "
IS_DVS_DATA = "
IS_ADDINF = "
I_SOURCE = "
IMPORTING
E_PACKET = "
E_ABORT = "
CHANGING
XS_SOURCE_STRUC = "Import Source
TABLES
IT_LINES = "
ET_LINES = "
* ET_ERROR = "
EXCEPTIONS
FILE_NOT_FOUND = 1
IMPORTING Parameters details for EHPRC_CP_IM54_PREPROCESS
I_IMPTYP - Template Identification
Data type: EHPRC_TEMPLIDOptional: No
Call by Reference: Yes
I_FILE_XSTRING - Raw string of import file
Data type: XSTRINGOptional: Yes
Call by Reference: Yes
I_PATH -
Data type: EHPRC_IMPATHOptional: No
Call by Reference: Yes
I_FILENAME -
Data type: EHPRC_FILENAMEOptional: No
Call by Reference: Yes
I_APPL_LOG_IDENT -
Data type: BALNREXTOptional: Yes
Call by Reference: Yes
I_SUPPRESS_DIALOG -
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: Yes
I_FLG_DVS_FUNC -
Data type: EHPRC_FLG_DVSOptional: Yes
Call by Reference: Yes
IS_DVS_DATA -
Data type: EHPRCS_DVS_DATAOptional: No
Call by Reference: Yes
IS_ADDINF -
Data type: RCGADDINFOptional: No
Call by Reference: Yes
I_SOURCE -
Data type: EHPRC_IMSOURCEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for EHPRC_CP_IM54_PREPROCESS
E_PACKET -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_ABORT -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EHPRC_CP_IM54_PREPROCESS
XS_SOURCE_STRUC - Import Source
Data type: EHPRCS_IMSOURCEOptional: No
Call by Reference: Yes
TABLES Parameters details for EHPRC_CP_IM54_PREPROCESS
IT_LINES -
Data type: EHPRCS_IMPFILE1000Optional: No
Call by Reference: No ( called with pass by value option)
ET_LINES -
Data type: EHPRCS_IMPFILEOptional: No
Call by Reference: No ( called with pass by value option)
ET_ERROR -
Data type: EHPRCS_IMERROROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FILE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHPRC_CP_IM54_PREPROCESS 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_packet | TYPE ESP1_BOOLEAN, " | |||
| lt_it_lines | TYPE STANDARD TABLE OF EHPRCS_IMPFILE1000, " | |||
| lv_i_imptyp | TYPE EHPRC_TEMPLID, " | |||
| lv_file_not_found | TYPE EHPRC_TEMPLID, " | |||
| lv_xs_source_struc | TYPE EHPRCS_IMSOURCE, " | |||
| lv_i_file_xstring | TYPE XSTRING, " | |||
| lv_i_path | TYPE EHPRC_IMPATH, " | |||
| lv_e_abort | TYPE ESP1_BOOLEAN, " | |||
| lt_et_lines | TYPE STANDARD TABLE OF EHPRCS_IMPFILE, " | |||
| lt_et_error | TYPE STANDARD TABLE OF EHPRCS_IMERROR, " | |||
| lv_i_filename | TYPE EHPRC_FILENAME, " | |||
| lv_i_appl_log_ident | TYPE BALNREXT, " | |||
| lv_i_suppress_dialog | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lv_i_flg_dvs_func | TYPE EHPRC_FLG_DVS, " | |||
| lv_is_dvs_data | TYPE EHPRCS_DVS_DATA, " | |||
| lv_is_addinf | TYPE RCGADDINF, " | |||
| lv_i_source | TYPE EHPRC_IMSOURCE. " |
|   CALL FUNCTION 'EHPRC_CP_IM54_PREPROCESS' " |
| EXPORTING | ||
| I_IMPTYP | = lv_i_imptyp | |
| I_FILE_XSTRING | = lv_i_file_xstring | |
| I_PATH | = lv_i_path | |
| I_FILENAME | = lv_i_filename | |
| I_APPL_LOG_IDENT | = lv_i_appl_log_ident | |
| I_SUPPRESS_DIALOG | = lv_i_suppress_dialog | |
| I_FLG_DVS_FUNC | = lv_i_flg_dvs_func | |
| IS_DVS_DATA | = lv_is_dvs_data | |
| IS_ADDINF | = lv_is_addinf | |
| I_SOURCE | = lv_i_source | |
| IMPORTING | ||
| E_PACKET | = lv_e_packet | |
| E_ABORT | = lv_e_abort | |
| CHANGING | ||
| XS_SOURCE_STRUC | = lv_xs_source_struc | |
| TABLES | ||
| IT_LINES | = lt_it_lines | |
| ET_LINES | = lt_et_lines | |
| ET_ERROR | = lt_et_error | |
| EXCEPTIONS | ||
| FILE_NOT_FOUND = 1 | ||
| . " EHPRC_CP_IM54_PREPROCESS | ||
ABAP code using 7.40 inline data declarations to call FM EHPRC_CP_IM54_PREPROCESS
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 BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_i_suppress_dialog). | ||||
Search for further information about these or an SAP related objects