SAP Function Modules

DX_IDOC_SYNTAX_CHECK_TASK SAP Function module







DX_IDOC_SYNTAX_CHECK_TASK 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_IDOC_SYNTAX_CHECK_TASK into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: S_DX_TASKS
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM DX_IDOC_SYNTAX_CHECK_TASK - DX IDOC SYNTAX CHECK TASK





CALL FUNCTION 'DX_IDOC_SYNTAX_CHECK_TASK' "
  EXPORTING
*   project =                   " dxrun-project
*   subproject =                " dxrun-subproject
*   rundef =                    " dxrun-rundef
*   task =                      " dxtasks-task
*   runid =                     " dxrun-runid
    objecttype =                " tdxloadp-objecttype
    progtype =                  " tdxloadp-progtype  Program Type
    loadprg =                   " tdxloadp-progname
  IMPORTING
    return =                    " dxreturn
* TABLES
*   i_files =                   " dxfilen
*   o_files =                   " dxfilen
    .  "  DX_IDOC_SYNTAX_CHECK_TASK

ABAP code example for Function Module DX_IDOC_SYNTAX_CHECK_TASK





The ABAP code below is a full code listing to execute function module DX_IDOC_SYNTAX_CHECK_TASK 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).

DATA:
ld_return  TYPE DXRETURN ,
it_i_files  TYPE STANDARD TABLE OF DXFILEN,"TABLES PARAM
wa_i_files  LIKE LINE OF it_i_files ,
it_o_files  TYPE STANDARD TABLE OF DXFILEN,"TABLES PARAM
wa_o_files  LIKE LINE OF it_o_files .


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 OBJECTTYPE
FROM TDXLOADP
INTO @DATA(ld_objecttype).


SELECT single PROGTYPE
FROM TDXLOADP
INTO @DATA(ld_progtype).


SELECT single PROGNAME
FROM TDXLOADP
INTO @DATA(ld_loadprg).


"populate fields of struture and append to itab
append wa_i_files to it_i_files.

"populate fields of struture and append to itab
append wa_o_files to it_o_files. . CALL FUNCTION 'DX_IDOC_SYNTAX_CHECK_TASK' EXPORTING * project = ld_project * subproject = ld_subproject * rundef = ld_rundef * task = ld_task * runid = ld_runid objecttype = ld_objecttype progtype = ld_progtype loadprg = ld_loadprg IMPORTING return = ld_return * TABLES * i_files = it_i_files * o_files = it_o_files . " DX_IDOC_SYNTAX_CHECK_TASK
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 ,
it_i_files  TYPE STANDARD TABLE OF DXFILEN ,
wa_i_files  LIKE LINE OF it_i_files,
ld_subproject  TYPE DXRUN-SUBPROJECT ,
it_o_files  TYPE STANDARD TABLE OF DXFILEN ,
wa_o_files  LIKE LINE OF it_o_files,
ld_rundef  TYPE DXRUN-RUNDEF ,
ld_task  TYPE DXTASKS-TASK ,
ld_runid  TYPE DXRUN-RUNID ,
ld_objecttype  TYPE TDXLOADP-OBJECTTYPE ,
ld_progtype  TYPE TDXLOADP-PROGTYPE ,
ld_loadprg  TYPE TDXLOADP-PROGNAME .


SELECT single PROJECT
FROM DXRUN
INTO ld_project.


"populate fields of struture and append to itab
append wa_i_files to it_i_files.

SELECT single SUBPROJECT
FROM DXRUN
INTO ld_subproject.


"populate fields of struture and append to itab
append wa_o_files to it_o_files.

SELECT single RUNDEF
FROM DXRUN
INTO ld_rundef.


SELECT single TASK
FROM DXTASKS
INTO ld_task.


SELECT single RUNID
FROM DXRUN
INTO ld_runid.


SELECT single OBJECTTYPE
FROM TDXLOADP
INTO ld_objecttype.


SELECT single PROGTYPE
FROM TDXLOADP
INTO ld_progtype.


SELECT single PROGNAME
FROM TDXLOADP
INTO ld_loadprg.

Contribute (Add Comments)

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_IDOC_SYNTAX_CHECK_TASK or its description.