SAP Function Modules

OXT_TASKSEQ_CREATE_RECURSIVE SAP Function module







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

Associated Function Group: OXT_TASK_API
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM OXT_TASKSEQ_CREATE_RECURSIVE - OXT TASKSEQ CREATE RECURSIVE





CALL FUNCTION 'OXT_TASKSEQ_CREATE_RECURSIVE' "
  EXPORTING
    iv_taskseq =                " oxt_taskseq   Task sequence for OXT extension
    iv_extensionid =            " oxt_extensionid  OXT Object GUID
    iv_extversion =             " oxt_extversion  Version of an extension
*   is_sysinfo =                " oxt_systab    OXT Tool System Table
*   is_busdef_container =       " eew_busdef_container
  TABLES
    t_taskinfo =                " oxt_taskinfo  Task Information
    t_taskinfo_old =            " oxt_taskinfo  Task Information
    t_extensiondef =            " oxt_parameter  List of parameters
    t_taskparamlist =           " oxt_parameter  List of parameters
    t_postproc =                " oxt_rt_tf_pproc  Postprocessing Information
*   t_devclass =                " oxt_rt_devclass
    t_return =                  " bapiret2      Return Parameters
* CHANGING
*   cv_next_taskorder =         " oxt_objectorder  Sequence for OXT objects
    .  "  OXT_TASKSEQ_CREATE_RECURSIVE

ABAP code example for Function Module OXT_TASKSEQ_CREATE_RECURSIVE





The ABAP code below is a full code listing to execute function module OXT_TASKSEQ_CREATE_RECURSIVE 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:
it_t_taskinfo  TYPE STANDARD TABLE OF OXT_TASKINFO,"TABLES PARAM
wa_t_taskinfo  LIKE LINE OF it_t_taskinfo ,
it_t_taskinfo_old  TYPE STANDARD TABLE OF OXT_TASKINFO,"TABLES PARAM
wa_t_taskinfo_old  LIKE LINE OF it_t_taskinfo_old ,
it_t_extensiondef  TYPE STANDARD TABLE OF OXT_PARAMETER,"TABLES PARAM
wa_t_extensiondef  LIKE LINE OF it_t_extensiondef ,
it_t_taskparamlist  TYPE STANDARD TABLE OF OXT_PARAMETER,"TABLES PARAM
wa_t_taskparamlist  LIKE LINE OF it_t_taskparamlist ,
it_t_postproc  TYPE STANDARD TABLE OF OXT_RT_TF_PPROC,"TABLES PARAM
wa_t_postproc  LIKE LINE OF it_t_postproc ,
it_t_devclass  TYPE STANDARD TABLE OF OXT_RT_DEVCLASS,"TABLES PARAM
wa_t_devclass  LIKE LINE OF it_t_devclass ,
it_t_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_t_return  LIKE LINE OF it_t_return .

DATA(ld_cv_next_taskorder) = 'Check type of data required'.
DATA(ld_iv_taskseq) = 'Check type of data required'.
DATA(ld_iv_extensionid) = 'Check type of data required'.
DATA(ld_iv_extversion) = 'Check type of data required'.
DATA(ld_is_sysinfo) = '123 '.
DATA(ld_is_busdef_container) = '123 '.

"populate fields of struture and append to itab
append wa_t_taskinfo to it_t_taskinfo.

"populate fields of struture and append to itab
append wa_t_taskinfo_old to it_t_taskinfo_old.

"populate fields of struture and append to itab
append wa_t_extensiondef to it_t_extensiondef.

"populate fields of struture and append to itab
append wa_t_taskparamlist to it_t_taskparamlist.

"populate fields of struture and append to itab
append wa_t_postproc to it_t_postproc.

"populate fields of struture and append to itab
append wa_t_devclass to it_t_devclass.

"populate fields of struture and append to itab
append wa_t_return to it_t_return. . CALL FUNCTION 'OXT_TASKSEQ_CREATE_RECURSIVE' EXPORTING iv_taskseq = ld_iv_taskseq iv_extensionid = ld_iv_extensionid iv_extversion = ld_iv_extversion * is_sysinfo = ld_is_sysinfo * is_busdef_container = ld_is_busdef_container TABLES t_taskinfo = it_t_taskinfo t_taskinfo_old = it_t_taskinfo_old t_extensiondef = it_t_extensiondef t_taskparamlist = it_t_taskparamlist t_postproc = it_t_postproc * t_devclass = it_t_devclass t_return = it_t_return * CHANGING * cv_next_taskorder = ld_cv_next_taskorder . " OXT_TASKSEQ_CREATE_RECURSIVE
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_cv_next_taskorder  TYPE OXT_OBJECTORDER ,
ld_iv_taskseq  TYPE OXT_TASKSEQ ,
it_t_taskinfo  TYPE STANDARD TABLE OF OXT_TASKINFO ,
wa_t_taskinfo  LIKE LINE OF it_t_taskinfo,
ld_iv_extensionid  TYPE OXT_EXTENSIONID ,
it_t_taskinfo_old  TYPE STANDARD TABLE OF OXT_TASKINFO ,
wa_t_taskinfo_old  LIKE LINE OF it_t_taskinfo_old,
ld_iv_extversion  TYPE OXT_EXTVERSION ,
it_t_extensiondef  TYPE STANDARD TABLE OF OXT_PARAMETER ,
wa_t_extensiondef  LIKE LINE OF it_t_extensiondef,
ld_is_sysinfo  TYPE OXT_SYSTAB ,
it_t_taskparamlist  TYPE STANDARD TABLE OF OXT_PARAMETER ,
wa_t_taskparamlist  LIKE LINE OF it_t_taskparamlist,
ld_is_busdef_container  TYPE EEW_BUSDEF_CONTAINER ,
it_t_postproc  TYPE STANDARD TABLE OF OXT_RT_TF_PPROC ,
wa_t_postproc  LIKE LINE OF it_t_postproc,
it_t_devclass  TYPE STANDARD TABLE OF OXT_RT_DEVCLASS ,
wa_t_devclass  LIKE LINE OF it_t_devclass,
it_t_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_t_return  LIKE LINE OF it_t_return.

ld_cv_next_taskorder = '123 '.
ld_iv_taskseq = '123 '.

"populate fields of struture and append to itab
append wa_t_taskinfo to it_t_taskinfo.
ld_iv_extensionid = '123 '.

"populate fields of struture and append to itab
append wa_t_taskinfo_old to it_t_taskinfo_old.
ld_iv_extversion = '123 '.

"populate fields of struture and append to itab
append wa_t_extensiondef to it_t_extensiondef.
ld_is_sysinfo = '123 '.

"populate fields of struture and append to itab
append wa_t_taskparamlist to it_t_taskparamlist.
ld_is_busdef_container = '123 '.

"populate fields of struture and append to itab
append wa_t_postproc to it_t_postproc.

"populate fields of struture and append to itab
append wa_t_devclass to it_t_devclass.

"populate fields of struture and append to itab
append wa_t_return to it_t_return.

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