SAP DX_LOA_BAPI_GET_RESTART_INFO Function Module for









DX_LOA_BAPI_GET_RESTART_INFO is a standard dx loa bapi get restart info 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 dx loa bapi get restart info FM, simply by entering the name DX_LOA_BAPI_GET_RESTART_INFO into the relevant SAP transaction such as SE37 or SE38.

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



Function DX_LOA_BAPI_GET_RESTART_INFO 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 'DX_LOA_BAPI_GET_RESTART_INFO'"
EXPORTING
PROJECT = "Data Transfer Project
SUBPROJECT = "Data Transfer Subproject
RUNDEF = "Data Transfer - Run Definition
TASK = "Data transfer task
RUNID = "Data Transfer Run
THREAD = "Number of Parallel Threads When Loading via BAPI
ERRORS_IN_DB = "If errors occur generate IDocs in database?

IMPORTING
RESTART = "New input values
EDFI2 = "EDI: Last processed document in file
LOADFILE_READ = "New input values
ERRORFILE_OK = "New input values
TOTAL_NO_OF_IDOCS = "Number of IDocs Processed
TOTAL_NO_OF_ERRORS = "Number of IDocs with Errors

EXCEPTIONS
FILE_ERROR = 1 DB_ERROR = 2 NO_AUTHORITY = 3
.



IMPORTING Parameters details for DX_LOA_BAPI_GET_RESTART_INFO

PROJECT - Data Transfer Project

Data type: DXRUN-PROJECT
Optional: No
Call by Reference: Yes

SUBPROJECT - Data Transfer Subproject

Data type: DXRUN-SUBPROJECT
Optional: No
Call by Reference: Yes

RUNDEF - Data Transfer - Run Definition

Data type: DXRUN-RUNDEF
Optional: No
Call by Reference: Yes

TASK - Data transfer task

Data type: DXTASKS-TASK
Optional: No
Call by Reference: Yes

RUNID - Data Transfer Run

Data type: DXRUN-RUNID
Optional: No
Call by Reference: Yes

THREAD - Number of Parallel Threads When Loading via BAPI

Data type: DXLOASTAT-THREADNO
Optional: No
Call by Reference: Yes

ERRORS_IN_DB - If errors occur generate IDocs in database?

Data type: DXATTRIB-XDBIDOC
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for DX_LOA_BAPI_GET_RESTART_INFO

RESTART - New input values

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

EDFI2 - EDI: Last processed document in file

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

LOADFILE_READ - New input values

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

ERRORFILE_OK - New input values

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

TOTAL_NO_OF_IDOCS - Number of IDocs Processed

Data type: DXLOASTAT-IDOCSPROC
Optional: No
Call by Reference: Yes

TOTAL_NO_OF_ERRORS - Number of IDocs with Errors

Data type: DXLOASTAT-IDOCSERR
Optional: No
Call by Reference: Yes

EXCEPTIONS details

FILE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

DB_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for DX_LOA_BAPI_GET_RESTART_INFO 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_project  TYPE DXRUN-PROJECT, "   
lv_restart  TYPE XFLAG, "   
lv_file_error  TYPE XFLAG, "   
lv_edfi2  TYPE EDFI2, "   
lv_db_error  TYPE EDFI2, "   
lv_subproject  TYPE DXRUN-SUBPROJECT, "   
lv_rundef  TYPE DXRUN-RUNDEF, "   
lv_no_authority  TYPE DXRUN, "   
lv_loadfile_read  TYPE XFLAG, "   
lv_task  TYPE DXTASKS-TASK, "   
lv_errorfile_ok  TYPE XFLAG, "   
lv_runid  TYPE DXRUN-RUNID, "   
lv_total_no_of_idocs  TYPE DXLOASTAT-IDOCSPROC, "   
lv_thread  TYPE DXLOASTAT-THREADNO, "   
lv_total_no_of_errors  TYPE DXLOASTAT-IDOCSERR, "   
lv_errors_in_db  TYPE DXATTRIB-XDBIDOC. "   

  CALL FUNCTION 'DX_LOA_BAPI_GET_RESTART_INFO'  "
    EXPORTING
         PROJECT = lv_project
         SUBPROJECT = lv_subproject
         RUNDEF = lv_rundef
         TASK = lv_task
         RUNID = lv_runid
         THREAD = lv_thread
         ERRORS_IN_DB = lv_errors_in_db
    IMPORTING
         RESTART = lv_restart
         EDFI2 = lv_edfi2
         LOADFILE_READ = lv_loadfile_read
         ERRORFILE_OK = lv_errorfile_ok
         TOTAL_NO_OF_IDOCS = lv_total_no_of_idocs
         TOTAL_NO_OF_ERRORS = lv_total_no_of_errors
    EXCEPTIONS
        FILE_ERROR = 1
        DB_ERROR = 2
        NO_AUTHORITY = 3
. " DX_LOA_BAPI_GET_RESTART_INFO




ABAP code using 7.40 inline data declarations to call FM DX_LOA_BAPI_GET_RESTART_INFO

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 PROJECT FROM DXRUN INTO @DATA(ld_project).
 
 
 
 
 
"SELECT single SUBPROJECT FROM DXRUN INTO @DATA(ld_subproject).
 
"SELECT single RUNDEF FROM DXRUN INTO @DATA(ld_rundef).
 
 
 
"SELECT single TASK FROM DXTASKS INTO @DATA(ld_task).
 
 
"SELECT single RUNID FROM DXRUN INTO @DATA(ld_runid).
 
"SELECT single IDOCSPROC FROM DXLOASTAT INTO @DATA(ld_total_no_of_idocs).
 
"SELECT single THREADNO FROM DXLOASTAT INTO @DATA(ld_thread).
 
"SELECT single IDOCSERR FROM DXLOASTAT INTO @DATA(ld_total_no_of_errors).
 
"SELECT single XDBIDOC FROM DXATTRIB INTO @DATA(ld_errors_in_db).
 


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!