SAP EHPRC_CP_IM52S_PREPROCESS Function Module for CP: Preprocess IMDS Filter









EHPRC_CP_IM52S_PREPROCESS is a standard ehprc cp im52s preprocess SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CP: Preprocess IMDS Filter 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 ehprc cp im52s preprocess FM, simply by entering the name EHPRC_CP_IM52S_PREPROCESS into the relevant SAP transaction such as SE37 or SE38.

Function Group: EHPRC_CP_IM52S
Program Name: SAPLEHPRC_CP_IM52S
Main Program: SAPLEHPRC_CP_IM52S
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EHPRC_CP_IM52S_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_IM52S_PREPROCESS'"CP:  Preprocess IMDS Filter
EXPORTING
I_IMPTYP = "Import type
* I_FILENAME = "Filename (directory and file)
* I_PATH = "Import path (Attachments)
* I_SUPPRESS_DIALOG = ' ' "Truth Value
* I_FLG_DVS_FUNC_OFF = "Truth Value
* I_APPL_LOG_IDENT = "Application Log: External ID
* IS_DVS_DATA = "CP: DMS-Key + Task data
* I_SOURCE = "Import source

IMPORTING
E_PACKET = "
E_ABORT = "

CHANGING
XS_SOURCE_STRUC = "CP: Import Source

TABLES
IT_LINES = "File structure C1000
ET_LINES = "File structure
* ET_ERROR = "Error structure

EXCEPTIONS
FILE_NOT_FOUND = 1
.



IMPORTING Parameters details for EHPRC_CP_IM52S_PREPROCESS

I_IMPTYP - Import type

Data type: EHPRC_IMPTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_FILENAME - Filename (directory and file)

Data type: EHPRC_FILENAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PATH - Import path (Attachments)

Data type: EHPRC_IMPATH
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SUPPRESS_DIALOG - Truth Value

Data type: BAPISTDTYP-BOOLEAN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_DVS_FUNC_OFF - Truth Value

Data type: BAPISTDTYP-BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APPL_LOG_IDENT - Application Log: External ID

Data type: BALNREXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_DVS_DATA - CP: DMS-Key + Task data

Data type: EHPRCS_DVS_DATA
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SOURCE - Import source

Data type: EHPRC_IMSOURCE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EHPRC_CP_IM52S_PREPROCESS

E_PACKET -

Data type: ESP1_BOOLEAN
Optional: No
Call by Reference: No ( called with pass by value option)

E_ABORT -

Data type: ESP1_BOOLEAN
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for EHPRC_CP_IM52S_PREPROCESS

XS_SOURCE_STRUC - CP: Import Source

Data type: EHPRCS_IMSOURCE
Optional: No
Call by Reference: Yes

TABLES Parameters details for EHPRC_CP_IM52S_PREPROCESS

IT_LINES - File structure C1000

Data type: EHPRCS_IMPFILE1000
Optional: No
Call by Reference: No ( called with pass by value option)

ET_LINES - File structure

Data type: EHPRCS_IMPFILE
Optional: No
Call by Reference: No ( called with pass by value option)

ET_ERROR - Error structure

Data type: EHPRCS_IMERROR
Optional: 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_IM52S_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_IMPTYP, "   
lv_file_not_found  TYPE EHPRC_IMPTYP, "   
lv_xs_source_struc  TYPE EHPRCS_IMSOURCE, "   
lv_e_abort  TYPE ESP1_BOOLEAN, "   
lt_et_lines  TYPE STANDARD TABLE OF EHPRCS_IMPFILE, "   
lv_i_filename  TYPE EHPRC_FILENAME, "   
lv_i_path  TYPE EHPRC_IMPATH, "   
lt_et_error  TYPE STANDARD TABLE OF EHPRCS_IMERROR, "   
lv_i_suppress_dialog  TYPE BAPISTDTYP-BOOLEAN, "   SPACE
lv_i_flg_dvs_func_off  TYPE BAPISTDTYP-BOOLEAN, "   
lv_i_appl_log_ident  TYPE BALNREXT, "   
lv_is_dvs_data  TYPE EHPRCS_DVS_DATA, "   
lv_i_source  TYPE EHPRC_IMSOURCE. "   

  CALL FUNCTION 'EHPRC_CP_IM52S_PREPROCESS'  "CP: Preprocess IMDS Filter
    EXPORTING
         I_IMPTYP = lv_i_imptyp
         I_FILENAME = lv_i_filename
         I_PATH = lv_i_path
         I_SUPPRESS_DIALOG = lv_i_suppress_dialog
         I_FLG_DVS_FUNC_OFF = lv_i_flg_dvs_func_off
         I_APPL_LOG_IDENT = lv_i_appl_log_ident
         IS_DVS_DATA = lv_is_dvs_data
         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_IM52S_PREPROCESS




ABAP code using 7.40 inline data declarations to call FM EHPRC_CP_IM52S_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).
DATA(ld_i_suppress_dialog) = ' '.
 
"SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_i_flg_dvs_func_off).
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!