SAP Function Modules

SWUO_CHECK_TEMPLATES_API SAP Function module







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

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


Pattern for FM SWUO_CHECK_TEMPLATES_API - SWUO CHECK TEMPLATES API





CALL FUNCTION 'SWUO_CHECK_TEMPLATES_API' "
  EXPORTING
    wf_id_def =                 " swd_wfd_id
*   wf_version = 0000           " swd_versio
  TABLES
    templates =                 " sdokobject
    .  "  SWUO_CHECK_TEMPLATES_API

ABAP code example for Function Module SWUO_CHECK_TEMPLATES_API





The ABAP code below is a full code listing to execute function module SWUO_CHECK_TEMPLATES_API 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_templates  TYPE STANDARD TABLE OF SDOKOBJECT,"TABLES PARAM
wa_templates  LIKE LINE OF it_templates .

DATA(ld_wf_id_def) = 'Check type of data required'.
DATA(ld_wf_version) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_templates to it_templates. . CALL FUNCTION 'SWUO_CHECK_TEMPLATES_API' EXPORTING wf_id_def = ld_wf_id_def * wf_version = ld_wf_version TABLES templates = it_templates . " SWUO_CHECK_TEMPLATES_API
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_wf_id_def  TYPE SWD_WFD_ID ,
it_templates  TYPE STANDARD TABLE OF SDOKOBJECT ,
wa_templates  LIKE LINE OF it_templates,
ld_wf_version  TYPE SWD_VERSIO .

ld_wf_id_def = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_templates to it_templates.
ld_wf_version = 'Check type of data required'.

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