DX_LOA_BAPI_THREAD is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name DX_LOA_BAPI_THREAD into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
DX_LOA_BAPI
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'DX_LOA_BAPI_THREAD' "
EXPORTING
project = " dxrun-project Data Transfer Project
subproject = " dxrun-subproject Data Transfer Subproject
rundef = " dxrun-rundef Data Transfer - Run Definition
task = " dxtasks-task Data transfer task
runid = " dxrun-runid Data Transfer Run
loadfile = " dxfilen-filename Physical file name
* pcksiz = '1' " dxattrib-pcksiz Number of objects per LUW
* maxerror = '1' " dxattrib-maxerror Maximum Number of Errors Before Data Transfer is Terminated
* errorfile = " dxfilen-filename Physical file name
* errors_in_db = ' ' " dxattrib-xdbidoc If errors occur generate IDocs in database?
* prod_run = ' ' " dxattrib-xprodrun Delete Input Files
objecttype = " dxattrib-objecttype Object Type
progtype = " dxattrib-progtype Program Type
progname = " dxattrib-progname Data transfer program/method
thread = " dxfields-threadno Number of Parallel Threads When Loading via BAPI
* ignore_unknown_segments = " dxfields-checkbox Checkbox: 'X' = True, ' ' = False
* short_protocol = " dxattrib-shortprot Checkbox: 'X' = True, ' ' = False
IMPORTING
return = " dxreturn Return Parameters For Data Transfer Workbench
no_of_idocs = " dxloastat-idocsproc Client
no_of_errors = " dxloastat-idocserr Status of 'Load via BAPI'
no_of_lines = " edfi2-lstrec Last record processed when a file was processed
. " DX_LOA_BAPI_THREAD
The ABAP code below is a full code listing to execute function module DX_LOA_BAPI_THREAD including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_return | TYPE DXRETURN , |
| ld_no_of_idocs | TYPE DXLOASTAT-IDOCSPROC , |
| ld_no_of_errors | TYPE DXLOASTAT-IDOCSERR , |
| ld_no_of_lines | TYPE EDFI2-LSTREC . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_return | TYPE DXRETURN , |
| ld_project | TYPE DXRUN-PROJECT , |
| ld_no_of_idocs | TYPE DXLOASTAT-IDOCSPROC , |
| ld_subproject | TYPE DXRUN-SUBPROJECT , |
| ld_no_of_errors | TYPE DXLOASTAT-IDOCSERR , |
| ld_rundef | TYPE DXRUN-RUNDEF , |
| ld_no_of_lines | TYPE EDFI2-LSTREC , |
| ld_task | TYPE DXTASKS-TASK , |
| ld_runid | TYPE DXRUN-RUNID , |
| ld_loadfile | TYPE DXFILEN-FILENAME , |
| ld_pcksiz | TYPE DXATTRIB-PCKSIZ , |
| ld_maxerror | TYPE DXATTRIB-MAXERROR , |
| ld_errorfile | TYPE DXFILEN-FILENAME , |
| ld_errors_in_db | TYPE DXATTRIB-XDBIDOC , |
| ld_prod_run | TYPE DXATTRIB-XPRODRUN , |
| ld_objecttype | TYPE DXATTRIB-OBJECTTYPE , |
| ld_progtype | TYPE DXATTRIB-PROGTYPE , |
| ld_progname | TYPE DXATTRIB-PROGNAME , |
| ld_thread | TYPE DXFIELDS-THREADNO , |
| ld_ignore_unknown_segments | TYPE DXFIELDS-CHECKBOX , |
| ld_short_protocol | TYPE DXATTRIB-SHORTPROT . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DX_LOA_BAPI_THREAD or its description.