SAP DD_DB_IMIG_PREP_FILES Function Module for Handling all R3SETUP/R3load Files









DD_DB_IMIG_PREP_FILES is a standard dd db imig prep files SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Handling all R3SETUP/R3load Files 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 dd db imig prep files FM, simply by entering the name DD_DB_IMIG_PREP_FILES into the relevant SAP transaction such as SE37 or SE38.

Function Group: SDBM
Program Name: SAPLSDBM
Main Program: SAPLSDBM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function DD_DB_IMIG_PREP_FILES 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 'DD_DB_IMIG_PREP_FILES'"Handling all R3SETUP/R3load Files
EXPORTING
* PRID0 = -1 "Internal Tables, Current Row Index
* TABNAME0 = ' ' "Table for incremental conversion
* MIGDEST = ' ' "Logical Destination (Specified in Function Call)
MODE = "Internal Tables, Current Row Index
* SAPRL = ' ' "R/3 System, system release
* DIR_EXPO = ' ' "
* FILE_COUNT_TARGET = "
* SELMOD = "
* QUANT_FILE = "

IMPORTING
FILE_COUNT_SOURCE = "

EXCEPTIONS
OP_FAILURE = 1 IMPORT_NOT_FINISHED = 2
.



IMPORTING Parameters details for DD_DB_IMIG_PREP_FILES

PRID0 - Internal Tables, Current Row Index

Data type: SY-TABIX
Default: -1
Optional: No
Call by Reference: No ( called with pass by value option)

TABNAME0 - Table for incremental conversion

Data type: TICNV-TABNAME
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

MIGDEST - Logical Destination (Specified in Function Call)

Data type: TICNV-MIGDEST
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

MODE - Internal Tables, Current Row Index

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

SAPRL - R/3 System, system release

Data type: SY-SAPRL
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

DIR_EXPO -

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

FILE_COUNT_TARGET -

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

SELMOD -

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

QUANT_FILE -

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

EXPORTING Parameters details for DD_DB_IMIG_PREP_FILES

FILE_COUNT_SOURCE -

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

EXCEPTIONS details

OP_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

IMPORT_NOT_FINISHED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DD_DB_IMIG_PREP_FILES 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_prid0  TYPE SY-TABIX, "   -1
lv_op_failure  TYPE SY, "   
lv_file_count_source  TYPE TICNV-CNVSTEP, "   
lv_tabname0  TYPE TICNV-TABNAME, "   SPACE
lv_import_not_finished  TYPE TICNV, "   
lv_migdest  TYPE TICNV-MIGDEST, "   SPACE
lv_mode  TYPE TICNV-CNVSTEP, "   
lv_saprl  TYPE SY-SAPRL, "   SPACE
lv_dir_expo  TYPE TSTRF01-FILE, "   SPACE
lv_file_count_target  TYPE TICNV-CNVSTEP, "   
lv_selmod  TYPE CHAR1, "   
lv_quant_file  TYPE NUM2. "   

  CALL FUNCTION 'DD_DB_IMIG_PREP_FILES'  "Handling all R3SETUP/R3load Files
    EXPORTING
         PRID0 = lv_prid0
         TABNAME0 = lv_tabname0
         MIGDEST = lv_migdest
         MODE = lv_mode
         SAPRL = lv_saprl
         DIR_EXPO = lv_dir_expo
         FILE_COUNT_TARGET = lv_file_count_target
         SELMOD = lv_selmod
         QUANT_FILE = lv_quant_file
    IMPORTING
         FILE_COUNT_SOURCE = lv_file_count_source
    EXCEPTIONS
        OP_FAILURE = 1
        IMPORT_NOT_FINISHED = 2
. " DD_DB_IMIG_PREP_FILES




ABAP code using 7.40 inline data declarations to call FM DD_DB_IMIG_PREP_FILES

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 TABIX FROM SY INTO @DATA(ld_prid0).
DATA(ld_prid0) = -1.
 
 
"SELECT single CNVSTEP FROM TICNV INTO @DATA(ld_file_count_source).
 
"SELECT single TABNAME FROM TICNV INTO @DATA(ld_tabname0).
DATA(ld_tabname0) = ' '.
 
 
"SELECT single MIGDEST FROM TICNV INTO @DATA(ld_migdest).
DATA(ld_migdest) = ' '.
 
"SELECT single CNVSTEP FROM TICNV INTO @DATA(ld_mode).
 
"SELECT single SAPRL FROM SY INTO @DATA(ld_saprl).
DATA(ld_saprl) = ' '.
 
"SELECT single FILE FROM TSTRF01 INTO @DATA(ld_dir_expo).
DATA(ld_dir_expo) = ' '.
 
"SELECT single CNVSTEP FROM TICNV INTO @DATA(ld_file_count_target).
 
 
 


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!