SAP Function Modules

HR_GB_XML_SCHEMA SAP Function module - HR-GB: Output customized XML Schema







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

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


Pattern for FM HR_GB_XML_SCHEMA - HR GB XML SCHEMA





CALL FUNCTION 'HR_GB_XML_SCHEMA' "HR-GB: Output customized XML Schema
  EXPORTING
    molga = '08'                " molga         Country Grouping
    sagrp =                     " pcal_sagrp    Code Group - Coding
    docty =                     " t50v_xml-docty  Application
    dstyp =                     " p_dtype       Document Subtype
    date = '18000101'           " begda         Start Date
    check_only = ' '            " xfeld         Output XML schema on screen
*   browser = 'X'               " xfeld         Output XML schema on screen
* CHANGING
*   fullpath =                  " rlgrap-filename  Local file for upload/download
  EXCEPTIONS
    RUNTIME_ERROR = 1           "               Runtime error
    SCHEMA_NOT_FOUND = 2        "               Schema valid in the time period not found
    SUBSCHEMA_NOT_FOUND = 3     "               A subschema is not available
    .  "  HR_GB_XML_SCHEMA

ABAP code example for Function Module HR_GB_XML_SCHEMA





The ABAP code below is a full code listing to execute function module HR_GB_XML_SCHEMA 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_fullpath) = some text here
DATA(ld_molga) = 'Check type of data required'.
DATA(ld_sagrp) = 'Check type of data required'.

SELECT single DOCTY
FROM T50V_XML
INTO @DATA(ld_docty).

DATA(ld_dstyp) = 'Check type of data required'.
DATA(ld_date) = 'Check type of data required'.
DATA(ld_check_only) = 'Check type of data required'.
DATA(ld_browser) = 'Check type of data required'. . CALL FUNCTION 'HR_GB_XML_SCHEMA' EXPORTING molga = ld_molga sagrp = ld_sagrp docty = ld_docty dstyp = ld_dstyp date = ld_date check_only = ld_check_only * browser = ld_browser * CHANGING * fullpath = ld_fullpath EXCEPTIONS RUNTIME_ERROR = 1 SCHEMA_NOT_FOUND = 2 SUBSCHEMA_NOT_FOUND = 3 . " HR_GB_XML_SCHEMA
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 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_fullpath  TYPE RLGRAP-FILENAME ,
ld_molga  TYPE MOLGA ,
ld_sagrp  TYPE PCAL_SAGRP ,
ld_docty  TYPE T50V_XML-DOCTY ,
ld_dstyp  TYPE P_DTYPE ,
ld_date  TYPE BEGDA ,
ld_check_only  TYPE XFELD ,
ld_browser  TYPE XFELD .


ld_fullpath = some text here
ld_molga = 'Check type of data required'.
ld_sagrp = 'Check type of data required'.

SELECT single DOCTY
FROM T50V_XML
INTO ld_docty.

ld_dstyp = 'Check type of data required'.
ld_date = 'Check type of data required'.
ld_check_only = 'Check type of data required'.
ld_browser = 'Check type of data required'.

SAP Documentation for FM HR_GB_XML_SCHEMA


The module is part of the E-Filing Framework. The intention behind this function module originates in the desiderative facility of the ABAP ...See here for full SAP fm documentation

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