SAP Function Modules

SDOK_LOIO_XML_RUN_XSLT SAP Function module







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

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


Pattern for FM SDOK_LOIO_XML_RUN_XSLT - SDOK LOIO XML RUN XSLT





CALL FUNCTION 'SDOK_LOIO_XML_RUN_XSLT' "
  EXPORTING
    loio =                      " sdokobject
    xslt_loio =                 " sdokobject
*   context =                   " sdokproptys   Context
*   stowaway =                  " object
*   xslt_context =              " sdokproptys
*   client = SY-MANDT           " sy-mandt      Client
*   resolution_mode = 'X'       " sdok_xml_resolution_mode
*   link_mode = 'ENTITY'        " sdok_xml_link_mode
*   xsl_params =                " sxsltpars
  IMPORTING
    content =                   " xstring
    unresolved_loios =          " sdokobjects
  EXCEPTIONS
    NOT_EXISTING = 1            "               Document does not exist
    NOT_AUTHORIZED = 2          "               No Authorization
    EXCEPTION_IN_EXIT = 3       "               Exception in Application Exit
    XML_ERROR = 4               "
    NO_STRUCTURE = 5            "
    NO_PHYSICAL_OBJECT = 6      "
    NO_CONTENT = 7              "               Document is blank
    .  "  SDOK_LOIO_XML_RUN_XSLT

ABAP code example for Function Module SDOK_LOIO_XML_RUN_XSLT





The ABAP code below is a full code listing to execute function module SDOK_LOIO_XML_RUN_XSLT 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_content  TYPE XSTRING ,
ld_unresolved_loios  TYPE SDOKOBJECTS .

DATA(ld_loio) = 'Check type of data required'.
DATA(ld_xslt_loio) = 'Check type of data required'.
DATA(ld_context) = 'Check type of data required'.
DATA(ld_stowaway) = 'Check type of data required'.
DATA(ld_xslt_context) = 'Check type of data required'.
DATA(ld_client) = 'Check type of data required'.
DATA(ld_resolution_mode) = 'Check type of data required'.
DATA(ld_link_mode) = 'Check type of data required'.
DATA(ld_xsl_params) = 'Check type of data required'. . CALL FUNCTION 'SDOK_LOIO_XML_RUN_XSLT' EXPORTING loio = ld_loio xslt_loio = ld_xslt_loio * context = ld_context * stowaway = ld_stowaway * xslt_context = ld_xslt_context * client = ld_client * resolution_mode = ld_resolution_mode * link_mode = ld_link_mode * xsl_params = ld_xsl_params IMPORTING content = ld_content unresolved_loios = ld_unresolved_loios EXCEPTIONS NOT_EXISTING = 1 NOT_AUTHORIZED = 2 EXCEPTION_IN_EXIT = 3 XML_ERROR = 4 NO_STRUCTURE = 5 NO_PHYSICAL_OBJECT = 6 NO_CONTENT = 7 . " SDOK_LOIO_XML_RUN_XSLT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here 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_content  TYPE XSTRING ,
ld_loio  TYPE SDOKOBJECT ,
ld_unresolved_loios  TYPE SDOKOBJECTS ,
ld_xslt_loio  TYPE SDOKOBJECT ,
ld_context  TYPE SDOKPROPTYS ,
ld_stowaway  TYPE OBJECT ,
ld_xslt_context  TYPE SDOKPROPTYS ,
ld_client  TYPE SY-MANDT ,
ld_resolution_mode  TYPE SDOK_XML_RESOLUTION_MODE ,
ld_link_mode  TYPE SDOK_XML_LINK_MODE ,
ld_xsl_params  TYPE SXSLTPARS .

ld_loio = 'Check type of data required'.
ld_xslt_loio = 'Check type of data required'.
ld_context = 'Check type of data required'.
ld_stowaway = 'Check type of data required'.
ld_xslt_context = 'Check type of data required'.
ld_client = 'Check type of data required'.
ld_resolution_mode = 'Check type of data required'.
ld_link_mode = 'Check type of data required'.
ld_xsl_params = '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 SDOK_LOIO_XML_RUN_XSLT or its description.