SAP FM_FIRO_FS_GET_XML_DATA Function Module for OBSOLETE: RO Financial Statement: Get XML Data
FM_FIRO_FS_GET_XML_DATA is a standard fm firo fs get xml data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for OBSOLETE: RO Financial Statement: Get 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 fm firo fs get xml data FM, simply by entering the name FM_FIRO_FS_GET_XML_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: FIRO_FS_RETRIEVE_DATA
Program Name: SAPLFIRO_FS_RETRIEVE_DATA
Main Program: SAPLFIRO_FS_RETRIEVE_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_FIRO_FS_GET_XML_DATA 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 'FM_FIRO_FS_GET_XML_DATA'"OBSOLETE: RO Financial Statement: Get XML Data.
EXPORTING
* IV_COMPANYCODE = "Company Code
* IV_FSV2 = "Financial Statement Version(30)
* IV_SIGNDISPLAY = "Parameter for determination, how to display values
* IV_ALTERNATIVPERIODSEL = "Alternative period selection
* IV_ITEMWITHZEROBAL = "Items with zero balances
* IV_CUMULATE = "Cumulate current result
* IV_EXCLDOCTYPE = "Exclude Document Type
* IT_NOTEXCLACCT = "Not Excluding Account
* IV_EMPLCURRY = "Actual num.of employees curr.Year
* IV_EMPLPREVY = "Actual num.of employees prev.Year
* IV_AVGCURRY = "Average num.of employees for curr.Year
* IV_CHARTOFACCT = "Chart of Accounts
* IV_AVGPREVY = "Average num.of employees for prev.Year
* IV_LOSSUNITS = "Number of units with loss
* IV_PRFTUNITS = "Number of units with profit
* IV_NORECDUN = "Units that did not record either profit or loss
* IV_FSVTYPE = "RO: FSV types
* IT_CALENDARREPORTINGPERIOD = "Calendar Reporting Period
* IT_COMPARISONCALENDARPERIOD = "Comparison Calendar Period
* IV_CODEOFFUNCTION = "Code of Functions
* IV_NUMEINTOCMIT = "Name and surname of Person
* IV_NUMEADMIN = "Name and surname of admin
* IV_REPORTINGYEAR = "Reporting Year
* IV_REGISTERNUM = "Register num. for person BS
* IV_BIGENTITY = "Big Entity
* IV_KEYFIGURESET = "Key Figure Group
* IV_DEPRECIATIONAREA = "Real Depreciation Area
* IV_CURRENCYROLE = "Currency Type
* IT_ASSET_CLASS = "Asset Class
* IT_MASTERFIXEDASSET = "Master Fixed Asset
* IT_FIXEDASSET = "Fixed Asset
* IT_FIXEDASSETGROUP = "Fixed Asset Group
* IT_ASSETCOSTCENTER = "Fixed Asset Cost Center
* IV_COMPARISONYEAR = "Comparison Year
* IT_ASSETBUSINESSAREA = "Fixed Asset Business Area
* IT_DEPRECIATIONKEY = "Depreciation Key
* IT_ASSETCAPITALIZATIONDATE = "AssetCapitalizationDate
* IT_ASSETLOCATION = "Fixed Asset Location
* IV_ALTERNATIVEACCOUNTNUMBER = "Issue Alternative Account Number
* IV_REP_CAT_ID = "Report Category ID
* IV_REPORTING_ENTITY = "Reporting Entity
* IV_REPORT_RUN_ID = "Report Run ID
* IV_REPORT_TYPE = "Report Type
* IV_CURRENCYTYPE = "Currency type and valuation view
* IT_BUSINESSAREA = "Business Area
* IV_LEDGER = "Ledger
* IV_SCALING = "Scaling
* IV_FSV1 = "Financial Statement Version(10,20,40)
IMPORTING
ET_DATA = "Romania Financial Statement GAAP All
IMPORTING Parameters details for FM_FIRO_FS_GET_XML_DATA
IV_COMPANYCODE - Company Code
Data type: BUKRSOptional: Yes
Call by Reference: Yes
IV_FSV2 - Financial Statement Version(30)
Data type: FIRO_FS_FSV_30Optional: Yes
Call by Reference: Yes
IV_SIGNDISPLAY - Parameter for determination, how to display values
Data type: FIRO_FS_SIGNDISPOptional: Yes
Call by Reference: Yes
IV_ALTERNATIVPERIODSEL - Alternative period selection
Data type: FIRO_FS_XALTPERIODOptional: Yes
Call by Reference: Yes
IV_ITEMWITHZEROBAL - Items with zero balances
Data type: FIRO_FS_XZEROBALOptional: Yes
Call by Reference: Yes
IV_CUMULATE - Cumulate current result
Data type: FIRO_FS_XCUMULATEOptional: Yes
Call by Reference: Yes
IV_EXCLDOCTYPE - Exclude Document Type
Data type: FIRO_FS_EXCLDOCTYPEOptional: Yes
Call by Reference: Yes
IT_NOTEXCLACCT - Not Excluding Account
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IV_EMPLCURRY - Actual num.of employees curr.Year
Data type: FIRO_FS_ACTLEMPL_CURYEAROptional: Yes
Call by Reference: Yes
IV_EMPLPREVY - Actual num.of employees prev.Year
Data type: FIRO_FS_ACTLEMPL_PREVYEAROptional: Yes
Call by Reference: Yes
IV_AVGCURRY - Average num.of employees for curr.Year
Data type: FIRO_FS_AVGEMPL_CURYEAROptional: Yes
Call by Reference: Yes
IV_CHARTOFACCT - Chart of Accounts
Data type: KTOPLOptional: Yes
Call by Reference: Yes
IV_AVGPREVY - Average num.of employees for prev.Year
Data type: FIRO_FS_AVGEMPL_PREVYEAROptional: Yes
Call by Reference: Yes
IV_LOSSUNITS - Number of units with loss
Data type: FIRO_FS_UNITSWTHLOSSOptional: Yes
Call by Reference: Yes
IV_PRFTUNITS - Number of units with profit
Data type: FIRO_FS_UNITSWTHPRFTOptional: Yes
Call by Reference: Yes
IV_NORECDUN - Units that did not record either profit or loss
Data type: FIRO_FS_NORECORDUNITSOptional: Yes
Call by Reference: Yes
IV_FSVTYPE - RO: FSV types
Data type: FIRO_FS_FSV_TYPEOptional: Yes
Call by Reference: Yes
IT_CALENDARREPORTINGPERIOD - Calendar Reporting Period
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IT_COMPARISONCALENDARPERIOD - Comparison Calendar Period
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IV_CODEOFFUNCTION - Code of Functions
Data type: FIRO_FS_FUNCTION_CODEOptional: Yes
Call by Reference: Yes
IV_NUMEINTOCMIT - Name and surname of Person
Data type: FIRO_FS_NUME_INTOCMITOptional: Yes
Call by Reference: Yes
IV_NUMEADMIN - Name and surname of admin
Data type: FIRO_FS_NUME_ADMINOptional: Yes
Call by Reference: Yes
IV_REPORTINGYEAR - Reporting Year
Data type: FIRO_FS_REPORTYEAROptional: Yes
Call by Reference: Yes
IV_REGISTERNUM - Register num. for person BS
Data type: FIRO_FS_NRI_INTOCMITOptional: Yes
Call by Reference: Yes
IV_BIGENTITY - Big Entity
Data type: FIRO_FS_BIG_ENTITYOptional: Yes
Call by Reference: Yes
IV_KEYFIGURESET - Key Figure Group
Data type: FAA_KEY_FIGURE_SETOptional: Yes
Call by Reference: Yes
IV_DEPRECIATIONAREA - Real Depreciation Area
Data type: FIS_AFABEOptional: Yes
Call by Reference: Yes
IV_CURRENCYROLE - Currency Type
Data type: FIS_CURTPOptional: Yes
Call by Reference: Yes
IT_ASSET_CLASS - Asset Class
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IT_MASTERFIXEDASSET - Master Fixed Asset
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IT_FIXEDASSET - Fixed Asset
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IT_FIXEDASSETGROUP - Fixed Asset Group
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IT_ASSETCOSTCENTER - Fixed Asset Cost Center
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IV_COMPARISONYEAR - Comparison Year
Data type: FIRO_FS_COMPARISONYEAROptional: Yes
Call by Reference: Yes
IT_ASSETBUSINESSAREA - Fixed Asset Business Area
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IT_DEPRECIATIONKEY - Depreciation Key
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IT_ASSETCAPITALIZATIONDATE - AssetCapitalizationDate
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IT_ASSETLOCATION - Fixed Asset Location
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IV_ALTERNATIVEACCOUNTNUMBER - Issue Alternative Account Number
Data type: FIRO_FS_ALTERNATIVE_ACCOUNTOptional: Yes
Call by Reference: Yes
IV_REP_CAT_ID - Report Category ID
Data type: SRF_REP_CAT_IDOptional: Yes
Call by Reference: Yes
IV_REPORTING_ENTITY - Reporting Entity
Data type: SRF_REPORTING_ENTITYOptional: Yes
Call by Reference: Yes
IV_REPORT_RUN_ID - Report Run ID
Data type: SRF_REPORT_RUN_IDOptional: Yes
Call by Reference: Yes
IV_REPORT_TYPE - Report Type
Data type: FIRO_FS_REPORT_TYPEOptional: Yes
Call by Reference: Yes
IV_CURRENCYTYPE - Currency type and valuation view
Data type: CURTPOptional: Yes
Call by Reference: Yes
IT_BUSINESSAREA - Business Area
Data type: SRFT_LONG_SELOPTOptional: Yes
Call by Reference: Yes
IV_LEDGER - Ledger
Data type: FIS_RLDNROptional: Yes
Call by Reference: Yes
IV_SCALING - Scaling
Data type: FIRO_FS_SCALINGOptional: Yes
Call by Reference: Yes
IV_FSV1 - Financial Statement Version(10,20,40)
Data type: FIRO_FS_FSV_102040Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FM_FIRO_FS_GET_XML_DATA
ET_DATA - Romania Financial Statement GAAP All
Data type: FIRO_FS_T_GAAPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FM_FIRO_FS_GET_XML_DATA 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: | ||||
| lv_et_data | TYPE FIRO_FS_T_GAAP, " | |||
| lv_iv_companycode | TYPE BUKRS, " | |||
| lv_iv_fsv2 | TYPE FIRO_FS_FSV_30, " | |||
| lv_iv_signdisplay | TYPE FIRO_FS_SIGNDISP, " | |||
| lv_iv_alternativperiodsel | TYPE FIRO_FS_XALTPERIOD, " | |||
| lv_iv_itemwithzerobal | TYPE FIRO_FS_XZEROBAL, " | |||
| lv_iv_cumulate | TYPE FIRO_FS_XCUMULATE, " | |||
| lv_iv_excldoctype | TYPE FIRO_FS_EXCLDOCTYPE, " | |||
| lv_it_notexclacct | TYPE SRFT_LONG_SELOPT, " | |||
| lv_iv_emplcurry | TYPE FIRO_FS_ACTLEMPL_CURYEAR, " | |||
| lv_iv_emplprevy | TYPE FIRO_FS_ACTLEMPL_PREVYEAR, " | |||
| lv_iv_avgcurry | TYPE FIRO_FS_AVGEMPL_CURYEAR, " | |||
| lv_iv_chartofacct | TYPE KTOPL, " | |||
| lv_iv_avgprevy | TYPE FIRO_FS_AVGEMPL_PREVYEAR, " | |||
| lv_iv_lossunits | TYPE FIRO_FS_UNITSWTHLOSS, " | |||
| lv_iv_prftunits | TYPE FIRO_FS_UNITSWTHPRFT, " | |||
| lv_iv_norecdun | TYPE FIRO_FS_NORECORDUNITS, " | |||
| lv_iv_fsvtype | TYPE FIRO_FS_FSV_TYPE, " | |||
| lv_it_calendarreportingperiod | TYPE SRFT_LONG_SELOPT, " | |||
| lv_it_comparisoncalendarperiod | TYPE SRFT_LONG_SELOPT, " | |||
| lv_iv_codeoffunction | TYPE FIRO_FS_FUNCTION_CODE, " | |||
| lv_iv_numeintocmit | TYPE FIRO_FS_NUME_INTOCMIT, " | |||
| lv_iv_numeadmin | TYPE FIRO_FS_NUME_ADMIN, " | |||
| lv_iv_reportingyear | TYPE FIRO_FS_REPORTYEAR, " | |||
| lv_iv_registernum | TYPE FIRO_FS_NRI_INTOCMIT, " | |||
| lv_iv_bigentity | TYPE FIRO_FS_BIG_ENTITY, " | |||
| lv_iv_keyfigureset | TYPE FAA_KEY_FIGURE_SET, " | |||
| lv_iv_depreciationarea | TYPE FIS_AFABE, " | |||
| lv_iv_currencyrole | TYPE FIS_CURTP, " | |||
| lv_it_asset_class | TYPE SRFT_LONG_SELOPT, " | |||
| lv_it_masterfixedasset | TYPE SRFT_LONG_SELOPT, " | |||
| lv_it_fixedasset | TYPE SRFT_LONG_SELOPT, " | |||
| lv_it_fixedassetgroup | TYPE SRFT_LONG_SELOPT, " | |||
| lv_it_assetcostcenter | TYPE SRFT_LONG_SELOPT, " | |||
| lv_iv_comparisonyear | TYPE FIRO_FS_COMPARISONYEAR, " | |||
| lv_it_assetbusinessarea | TYPE SRFT_LONG_SELOPT, " | |||
| lv_it_depreciationkey | TYPE SRFT_LONG_SELOPT, " | |||
| lv_it_assetcapitalizationdate | TYPE SRFT_LONG_SELOPT, " | |||
| lv_it_assetlocation | TYPE SRFT_LONG_SELOPT, " | |||
| lv_iv_alternativeaccountnumber | TYPE FIRO_FS_ALTERNATIVE_ACCOUNT, " | |||
| lv_iv_rep_cat_id | TYPE SRF_REP_CAT_ID, " | |||
| lv_iv_reporting_entity | TYPE SRF_REPORTING_ENTITY, " | |||
| lv_iv_report_run_id | TYPE SRF_REPORT_RUN_ID, " | |||
| lv_iv_report_type | TYPE FIRO_FS_REPORT_TYPE, " | |||
| lv_iv_currencytype | TYPE CURTP, " | |||
| lv_it_businessarea | TYPE SRFT_LONG_SELOPT, " | |||
| lv_iv_ledger | TYPE FIS_RLDNR, " | |||
| lv_iv_scaling | TYPE FIRO_FS_SCALING, " | |||
| lv_iv_fsv1 | TYPE FIRO_FS_FSV_102040. " |
|   CALL FUNCTION 'FM_FIRO_FS_GET_XML_DATA' "OBSOLETE: RO Financial Statement: Get XML Data |
| EXPORTING | ||
| IV_COMPANYCODE | = lv_iv_companycode | |
| IV_FSV2 | = lv_iv_fsv2 | |
| IV_SIGNDISPLAY | = lv_iv_signdisplay | |
| IV_ALTERNATIVPERIODSEL | = lv_iv_alternativperiodsel | |
| IV_ITEMWITHZEROBAL | = lv_iv_itemwithzerobal | |
| IV_CUMULATE | = lv_iv_cumulate | |
| IV_EXCLDOCTYPE | = lv_iv_excldoctype | |
| IT_NOTEXCLACCT | = lv_it_notexclacct | |
| IV_EMPLCURRY | = lv_iv_emplcurry | |
| IV_EMPLPREVY | = lv_iv_emplprevy | |
| IV_AVGCURRY | = lv_iv_avgcurry | |
| IV_CHARTOFACCT | = lv_iv_chartofacct | |
| IV_AVGPREVY | = lv_iv_avgprevy | |
| IV_LOSSUNITS | = lv_iv_lossunits | |
| IV_PRFTUNITS | = lv_iv_prftunits | |
| IV_NORECDUN | = lv_iv_norecdun | |
| IV_FSVTYPE | = lv_iv_fsvtype | |
| IT_CALENDARREPORTINGPERIOD | = lv_it_calendarreportingperiod | |
| IT_COMPARISONCALENDARPERIOD | = lv_it_comparisoncalendarperiod | |
| IV_CODEOFFUNCTION | = lv_iv_codeoffunction | |
| IV_NUMEINTOCMIT | = lv_iv_numeintocmit | |
| IV_NUMEADMIN | = lv_iv_numeadmin | |
| IV_REPORTINGYEAR | = lv_iv_reportingyear | |
| IV_REGISTERNUM | = lv_iv_registernum | |
| IV_BIGENTITY | = lv_iv_bigentity | |
| IV_KEYFIGURESET | = lv_iv_keyfigureset | |
| IV_DEPRECIATIONAREA | = lv_iv_depreciationarea | |
| IV_CURRENCYROLE | = lv_iv_currencyrole | |
| IT_ASSET_CLASS | = lv_it_asset_class | |
| IT_MASTERFIXEDASSET | = lv_it_masterfixedasset | |
| IT_FIXEDASSET | = lv_it_fixedasset | |
| IT_FIXEDASSETGROUP | = lv_it_fixedassetgroup | |
| IT_ASSETCOSTCENTER | = lv_it_assetcostcenter | |
| IV_COMPARISONYEAR | = lv_iv_comparisonyear | |
| IT_ASSETBUSINESSAREA | = lv_it_assetbusinessarea | |
| IT_DEPRECIATIONKEY | = lv_it_depreciationkey | |
| IT_ASSETCAPITALIZATIONDATE | = lv_it_assetcapitalizationdate | |
| IT_ASSETLOCATION | = lv_it_assetlocation | |
| IV_ALTERNATIVEACCOUNTNUMBER | = lv_iv_alternativeaccountnumber | |
| IV_REP_CAT_ID | = lv_iv_rep_cat_id | |
| IV_REPORTING_ENTITY | = lv_iv_reporting_entity | |
| IV_REPORT_RUN_ID | = lv_iv_report_run_id | |
| IV_REPORT_TYPE | = lv_iv_report_type | |
| IV_CURRENCYTYPE | = lv_iv_currencytype | |
| IT_BUSINESSAREA | = lv_it_businessarea | |
| IV_LEDGER | = lv_iv_ledger | |
| IV_SCALING | = lv_iv_scaling | |
| IV_FSV1 | = lv_iv_fsv1 | |
| IMPORTING | ||
| ET_DATA | = lv_et_data | |
| . " FM_FIRO_FS_GET_XML_DATA | ||
ABAP code using 7.40 inline data declarations to call FM FM_FIRO_FS_GET_XML_DATA
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.Search for further information about these or an SAP related objects