SAP Reports / Programs | Payroll(PY) SAP PY

HROUSFP2 SAP ABAP INCLUDE - Include HROUSFP2







HROUSFP2 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter HROUSFP2 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT HROUSFP2. "Basic submit
SUBMIT HROUSFP2 AND RETURN. "Return to original report after report execution complete
SUBMIT HROUSFP2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include HROUSFP2


INCLUDES used within this REPORT HROUSFP2

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

HR_RO_SFP_DISPLAY_FORM_XDP CALL FUNCTION 'HR_RO_SFP_DISPLAY_FORM_XDP' EXPORTING objid = pa_objpf logical_path = pa_logph * display_xdp = 'X' form_per_row = pa_formx TABLES data_table = pt_data EXCEPTIONS dir_not_found = 1 download_mime_error = 2 data_to_xml_error = 3 xdp_to_html_error = 4 no_xdp_data = 5 OTHERS = 6.

FUNCTION_GET CALL FUNCTION 'FUNCTION_GET' EXPORTING funcname = lv_fm_name TABLES prmtab = lt_catfu EXCEPTIONS fm_not_found = 1 nametab_fault = 2 ref_field_missing = 3 ref_structure_missing = 4 OTHERS = 5.

FUNCTION_GET CALL FUNCTION 'FUNCTION_GET' EXPORTING funcname = lv_fm_name TABLES prmtab = lt_catfu EXCEPTIONS fm_not_found = 1 nametab_fault = 2 ref_field_missing = 3 ref_structure_missing = 4 OTHERS = 5.

HR_RO_SFP_DATA_TO_DOM CALL FUNCTION 'HR_RO_SFP_DATA_TO_DOM' EXPORTING name = 'DATA' dataobject = pt_data IMPORTING data_as_dom = lo_dom CHANGING document = lo_document EXCEPTIONS illegal_name = 1 OTHERS = 2.

SDIXML_DOM_TO_XML CALL FUNCTION 'SDIXML_DOM_TO_XML' EXPORTING document = lo_document pretty_print = 'X' IMPORTING xml_as_string = pv_xml EXCEPTIONS no_document = 1 OTHERS = 2.

FUNCTION_GET CALL FUNCTION 'FUNCTION_GET' EXPORTING funcname = pv_fm_name TABLES prmtab = lt_catfu EXCEPTIONS fm_not_found = 1 nametab_fault = 2 ref_field_missing = 3 ref_structure_missing = 4 OTHERS = 5.

FUNCTION_GET CALL FUNCTION 'FUNCTION_GET' EXPORTING funcname = lv_fm_name TABLES prmtab = lt_catfu EXCEPTIONS fm_not_found = 1 nametab_fault = 2 ref_field_missing = 3 ref_structure_missing = 4 OTHERS = 5.

SDIXML_DATA_TO_DOM CALL FUNCTION 'SDIXML_DATA_TO_DOM' EXPORTING name = 'DATA' dataobject = it_data[] IMPORTING data_as_dom = lo_dom CHANGING document = lo_document EXCEPTIONS illegal_name = 1 OTHERS = 2.

SDIXML_DOM_TO_XML CALL FUNCTION 'SDIXML_DOM_TO_XML' EXPORTING document = lo_document pretty_print = 'X' IMPORTING xml_as_string = w_string size = w_size TABLES xml_as_table = it_xml EXCEPTIONS no_document = 1 OTHERS = 2.

DOWNLOAD CALL FUNCTION 'DOWNLOAD' EXPORTING bin_filesize = w_size filename = 'c:\temp\test2.xml'

SDIXML_DOM_TO_SCREEN CALL FUNCTION 'SDIXML_DOM_TO_SCREEN' EXPORTING document = lo_document EXCEPTIONS no_document = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name HROUSFP2 or its description.