SAP HR_FI_XML_DATA_INPUT Function Module for HR-GB: Create XML data
HR_FI_XML_DATA_INPUT is a standard hr fi xml data input SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for HR-GB: Create XML data processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for hr fi xml data input FM, simply by entering the name HR_FI_XML_DATA_INPUT into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR_FI_XML
Program Name: SAPLHR_FI_XML
Main Program: SAPLHR_FI_XML
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_FI_XML_DATA_INPUT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'HR_FI_XML_DATA_INPUT'"HR-GB: Create XML data.
EXPORTING
MOLGA = "Country Grouping
SAGRP = "Code Group - Coding
APPLI = "R/2 table
DSTYP = "Document Subtype
DATE = "Start Date
* ZIPMODULE = "Gzip function module
* RFCDEST = "Gzip-server destination
* KEY = "Gzip key
CHANGING
* FULLPATH = "Local file for upload/download
P_XML_HANDLER = "Special XML-Handler1
* TREE_STREAM = "
TABLES
ITABS = "TYPE ref_itabn_type
BUSINESS_ERRORS = "Error collection structure
EXCEPTIONS
RUNTIME_ERROR = 1 SCHEMA_NOT_FOUND = 2 SUBSCHEMA_NOT_FOUND = 3
IMPORTING Parameters details for HR_FI_XML_DATA_INPUT
MOLGA - Country Grouping
Data type: MOLGAOptional: No
Call by Reference: No ( called with pass by value option)
SAGRP - Code Group - Coding
Data type: PCAL_SAGRPOptional: No
Call by Reference: No ( called with pass by value option)
APPLI - R/2 table
Data type: T50V_XML-DOCTYOptional: No
Call by Reference: No ( called with pass by value option)
DSTYP - Document Subtype
Data type: P_DTYPEOptional: No
Call by Reference: No ( called with pass by value option)
DATE - Start Date
Data type: BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
ZIPMODULE - Gzip function module
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
RFCDEST - Gzip-server destination
Data type: RFCDESTOptional: Yes
Call by Reference: No ( called with pass by value option)
KEY - Gzip key
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for HR_FI_XML_DATA_INPUT
FULLPATH - Local file for upload/download
Data type: RLGRAP-FILENAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
P_XML_HANDLER - Special XML-Handler1
Data type: CL_HR99S00_XML_HANDLER_SPEC1Optional: No
Call by Reference: Yes
TREE_STREAM -
Data type: P99SG_XML_OUT_TABLE_TOptional: Yes
Call by Reference: Yes
TABLES Parameters details for HR_FI_XML_DATA_INPUT
ITABS - TYPE ref_itabn_type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BUSINESS_ERRORS - Error collection structure
Data type: HRFI_XML_ERROROptional: No
Call by Reference: Yes
EXCEPTIONS details
RUNTIME_ERROR - Runtime error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SCHEMA_NOT_FOUND - Schema valid in the time period not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SUBSCHEMA_NOT_FOUND - A subschema is not available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_FI_XML_DATA_INPUT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_itabs | TYPE STANDARD TABLE OF STRING, " | |||
| lv_molga | TYPE MOLGA, " | |||
| lv_fullpath | TYPE RLGRAP-FILENAME, " | |||
| lv_runtime_error | TYPE RLGRAP, " | |||
| lv_sagrp | TYPE PCAL_SAGRP, " | |||
| lv_p_xml_handler | TYPE CL_HR99S00_XML_HANDLER_SPEC1, " | |||
| lt_business_errors | TYPE STANDARD TABLE OF HRFI_XML_ERROR, " | |||
| lv_schema_not_found | TYPE HRFI_XML_ERROR, " | |||
| lv_appli | TYPE T50V_XML-DOCTY, " | |||
| lv_tree_stream | TYPE P99SG_XML_OUT_TABLE_T, " | |||
| lv_subschema_not_found | TYPE P99SG_XML_OUT_TABLE_T, " | |||
| lv_dstyp | TYPE P_DTYPE, " | |||
| lv_date | TYPE BEGDA, " | |||
| lv_zipmodule | TYPE BEGDA, " | |||
| lv_rfcdest | TYPE RFCDEST, " | |||
| lv_key | TYPE I. " |
|   CALL FUNCTION 'HR_FI_XML_DATA_INPUT' "HR-GB: Create XML data |
| EXPORTING | ||
| MOLGA | = lv_molga | |
| SAGRP | = lv_sagrp | |
| APPLI | = lv_appli | |
| DSTYP | = lv_dstyp | |
| DATE | = lv_date | |
| ZIPMODULE | = lv_zipmodule | |
| RFCDEST | = lv_rfcdest | |
| KEY | = lv_key | |
| CHANGING | ||
| FULLPATH | = lv_fullpath | |
| P_XML_HANDLER | = lv_p_xml_handler | |
| TREE_STREAM | = lv_tree_stream | |
| TABLES | ||
| ITABS | = lt_itabs | |
| BUSINESS_ERRORS | = lt_business_errors | |
| EXCEPTIONS | ||
| RUNTIME_ERROR = 1 | ||
| SCHEMA_NOT_FOUND = 2 | ||
| SUBSCHEMA_NOT_FOUND = 3 | ||
| . " HR_FI_XML_DATA_INPUT | ||
ABAP code using 7.40 inline data declarations to call FM HR_FI_XML_DATA_INPUT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single FILENAME FROM RLGRAP INTO @DATA(ld_fullpath). | ||||
| "SELECT single DOCTY FROM T50V_XML INTO @DATA(ld_appli). | ||||
Search for further information about these or an SAP related objects