SAP EHPRC_CP_LB13_FILE_MOVE Function Module for









EHPRC_CP_LB13_FILE_MOVE is a standard ehprc cp lb13 file move 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 lb13 file move FM, simply by entering the name EHPRC_CP_LB13_FILE_MOVE into the relevant SAP transaction such as SE37 or SE38.

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



Function EHPRC_CP_LB13_FILE_MOVE 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_LB13_FILE_MOVE'"
EXPORTING
I_SOURCE_DIR = "
I_DESTINATION_DIR = "
* I_FILE_DELETE = 'X' "
* IV_LOGFILENAME_SRC = 'EHPRC_IMPORT_DIR' "Logical file name
* IV_LOGFILENAME_DST = 'EHPRC_ARCHIVE_DIR' "Logical file name

IMPORTING
E_MESSAGE = "

EXCEPTIONS
OPEN_FAILED = 1 NO_AUTHORITY = 2
.



IMPORTING Parameters details for EHPRC_CP_LB13_FILE_MOVE

I_SOURCE_DIR -

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

I_DESTINATION_DIR -

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

I_FILE_DELETE -

Data type: ESEBOOLE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_LOGFILENAME_SRC - Logical file name

Data type: FILEINTERN
Default: 'EHPRC_IMPORT_DIR'
Optional: Yes
Call by Reference: Yes

IV_LOGFILENAME_DST - Logical file name

Data type: FILEINTERN
Default: 'EHPRC_ARCHIVE_DIR'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for EHPRC_CP_LB13_FILE_MOVE

E_MESSAGE -

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

EXCEPTIONS details

OPEN_FAILED -

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

NO_AUTHORITY -

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

Copy and paste ABAP code example for EHPRC_CP_LB13_FILE_MOVE 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_message  TYPE C, "   
lv_open_failed  TYPE C, "   
lv_i_source_dir  TYPE TEXT200, "   
lv_no_authority  TYPE TEXT200, "   
lv_i_destination_dir  TYPE TEXT200, "   
lv_i_file_delete  TYPE ESEBOOLE, "   'X'
lv_iv_logfilename_src  TYPE FILEINTERN, "   'EHPRC_IMPORT_DIR'
lv_iv_logfilename_dst  TYPE FILEINTERN. "   'EHPRC_ARCHIVE_DIR'

  CALL FUNCTION 'EHPRC_CP_LB13_FILE_MOVE'  "
    EXPORTING
         I_SOURCE_DIR = lv_i_source_dir
         I_DESTINATION_DIR = lv_i_destination_dir
         I_FILE_DELETE = lv_i_file_delete
         IV_LOGFILENAME_SRC = lv_iv_logfilename_src
         IV_LOGFILENAME_DST = lv_iv_logfilename_dst
    IMPORTING
         E_MESSAGE = lv_e_message
    EXCEPTIONS
        OPEN_FAILED = 1
        NO_AUTHORITY = 2
. " EHPRC_CP_LB13_FILE_MOVE




ABAP code using 7.40 inline data declarations to call FM EHPRC_CP_LB13_FILE_MOVE

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_i_file_delete) = 'X'.
 
DATA(ld_iv_logfilename_src) = 'EHPRC_IMPORT_DIR'.
 
DATA(ld_iv_logfilename_dst) = 'EHPRC_ARCHIVE_DIR'.
 


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!