SAP Reports / Programs

PUTMFRU0 SAP ABAP INCLUDE - Common modules for Travel Management Forms in HR-RU







PUTMFRU0 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 PUTMFRU0 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 PUTMFRU0. "Basic submit
SUBMIT PUTMFRU0 AND RETURN. "Return to original report after report execution complete
SUBMIT PUTMFRU0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Common modules for Travel Management Forms in HR-RU


INCLUDES used within this REPORT PUTMFRU0

INCLUDE PUTRVRU1. " TRAVEL SPECIFIC FORMS


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_RU_GET_ORGTEXTS CALL FUNCTION 'HR_RU_GET_ORGTEXTS' EXPORTING pruorgdata = orgdat sprsl = gv_lang IMPORTING pruorgtext = l_s_orgtxt CHANGING cc_longname_o = l_string_o cc_longname_s = l_string_s.

HR_RU_GET_MANAGER_DATA_IT0298 CALL FUNCTION 'HR_RU_GET_MANAGER_DATA_IT0298' EXPORTING i0298 = p0298 IMPORTING e_cname = cs_head-mannam e_plans = cs_head-manpos.

BAPI_TRIP_GET_DETAILS CALL FUNCTION 'BAPI_TRIP_GET_DETAILS' DESTINATION gv_rfc_dest "#EC ENHOK EXPORTING employeenumber = iv_pernr tripnumber = iv_reinr language = gv_lang IMPORTING return = ls_return framedata = gs_trmain status = ls_trstao .

PTRA_WEB_EXPENSE_REPORT_GET CALL FUNCTION 'PTRA_WEB_EXPENSE_REPORT_GET' DESTINATION gv_rfc_dest "#EC ENHOK EXPORTING i_employeenumber = iv_pernr i_tripnumber = iv_reinr i_periodnumber = '000' i_language = gv_lang i_trip_component = 'R' IMPORTING e_general_data = gs_trext et_itinerary = gt_itin et_costdist_trip = gt_cost TABLES et_return = lt_retweb.

FITP_WEB_REQUEST_FORM_DATA_GET CALL FUNCTION 'FITP_WEB_REQUEST_FORM_DATA_GET' DESTINATION gv_rfc_dest "#EC ENHOK EXPORTING i_employeenumber = iv_pernr i_tripnumber = iv_reinr i_language = gv_lang IMPORTING e_form_header_data_employee = gs_employee et_account = gt_account et_request = gt_request TABLES et_return = lt_retweb .

FP_JOB_OPEN CALL FUNCTION 'FP_JOB_OPEN' CHANGING ie_outputparams = fp_outputparams EXCEPTIONS cancel = 1 usage_error = 2 system_error = 3 internal_error = 4 OTHERS = 5.

HR_RU_ORDER_ARCH_INDEX CALL FUNCTION 'HR_RU_ORDER_ARCH_INDEX' EXPORTING iv_version = arver * IV_PERNR = IMPORTING es_arch_para = ls_arch_indx CHANGING cv_doc_id = pv_guid.

FP_JOB_CLOSE CALL FUNCTION 'FP_JOB_CLOSE' EXCEPTIONS usage_error = 1 system_error = 2 internal_error = 3 OTHERS = 4.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' " get Field Label of the Data element EXPORTING tabname = 'PTRV_WEB_COSTDIST_TRIP_EXT' langu = gv_lang lfieldname = iv_field_name IMPORTING dfies_wa = lv_flddescr EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

HRCA_CONTROLLINGAREA_FIND CALL FUNCTION 'HRCA_CONTROLLINGAREA_FIND' EXPORTING companycode = iv_bukrs businessarea = space IMPORTING contrlarea = lv_kokrs EXCEPTIONS not_found = 1 OTHERS = 2.

HR_READ_FOREIGN_OBJECT_TEXT CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT' EXPORTING otype = 'K' costcenter = iv_kostl controllingarea = lv_kokrs begda = iv_begda endda = iv_endda langu = gv_lang IMPORTING costcenter_name = lv_kotxt EXCEPTIONS nothing_found = 1 wrong_objecttype = 2 missing_costcenter_data = 3 missing_object_id = 4 OTHERS = 5.



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