SAP Reports / Programs

RPR_TEST_REQUEST SAP ABAP Report - Test report for travel request RFC services







RPR_TEST_REQUEST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Test report for RFC services for Travel Request @ Duet This report simulates the UI of the Travel Request inside an MS Outlook appointment and allows understanding/testing the RFC services used by th e Duet platform...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RPR_TEST_REQUEST 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 RPR_TEST_REQUEST. "Basic submit
SUBMIT RPR_TEST_REQUEST AND RETURN. "Return to original report after report execution complete
SUBMIT RPR_TEST_REQUEST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PERS_NR = D .
Selection Text: RFCDEST = D .
Selection Text: TRIP_NR = D .
Title: Test report for travel request RFC services


INCLUDES used within this REPORT RPR_TEST_REQUEST

INCLUDE RPR_TEST_REQUEST_TOP. " GLOBAL DATA
INCLUDE RPR_TEST_REQUEST_O01.
INCLUDE RPR_TEST_REQUEST_I01.
INCLUDE RPR_TEST_REQUEST_F01.
INCLUDE RPR_TEST_REQUEST_O02.
INCLUDE RPR_TEST_REQUEST_F02.
INCLUDE RPR_TEST_REQUEST_I02.


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:

BAPI_USR01DOHR_GETEMPLOYEE CALL FUNCTION 'BAPI_USR01DOHR_GETEMPLOYEE' EXPORTING id = sy-uname IMPORTING * return = l_bapi_return employeenumber = pers_nr.

PTRM_TRIP_INIT CALL FUNCTION 'PTRM_TRIP_INIT' DESTINATION g_rfc_destination EXPORTING i_employeenumber = g_employeenumber i_tripnumber = g_tripnumber i_trip_component = g_trip_component i_customizing_date = l_cust_date i_language = sy-langu IMPORTING e_general_data = g_general_data e_trip_scheme = g_trip_scheme e_cd_cost_dist_text = g_cost_dist_text e_cd_cost_dist_trip_default = e_costdist_trip_default * E_PLAN_FAST_BOOKING_ACTIVE = * E_PLAN_DATA = et_employee_data = gt_emp_info et_vh_countries = gt_trip_country_1201_h * ET_VH_PLAN_COUNTRIES = * ET_VH_PLAN_REGIONS = et_vh_destination_addresses = gt_dest_addresses et_vh_predef_addrs_categories = gt_vh_predef_addrs_categories et_vh_destinations = gt_vh_destinations et_vh_trip_reasons = gt_vh_trip_reasons et_vh_activity_types = gt_plan_activity_types et_cd_company_codes = gt_company_codes et_cd_business_areas = gt_business_areas et_cd_vh_costcenter = gt_costcenter et_cd_vh_order = gt_order et_cd_vh_costobject = gt_costobject et_cd_vh_wbselement = gt_wbselement et_cd_vh_network = gt_network et_cd_vh_vornr = gt_vornr et_cd_vh_salesorder = gt_salesorder et_cd_vh_fistl = gt_fistl et_cd_vh_grant = gt_grant et_cd_vh_fkber = gt_fkber et_cd_vh_cprojects = gt_cprojects et_cd_cost_dist_trip = gt_costdist_trip et_cd_mastercost_trip_default = gt_mastercost_default et_field_control = gt_field_control et_field_control_costdist_trip = gt_field_control_trip_ca * ET_PLAN_AGENCY_STATUS = * ET_PLAN_ITEM_SERVICES = * ET_PLAN_FLIGHT_FARES = * ET_PLAN_FLIGHT_FARE_NOTES = et_return = et_return.

PTRM_TEST_MESSAGES_SHOW_PBO CALL FUNCTION 'PTRM_TEST_MESSAGES_SHOW_PBO' CHANGING it_return = et_return.

PTRM_WEB_CUSTOMIZING_GET CALL FUNCTION 'PTRM_WEB_CUSTOMIZING_GET' DESTINATION g_rfc_destination EXPORTING i_employeenumber = g_employeenumber i_date = l_cust_date i_language = g_language IMPORTING e_recurring_dest_active = g_recurring_dest_active TABLES et_emp_into = gt_emp_info et_countries = gt_trip_country_1201_h "all countries incl. regions

PTRM_WEB_CPROJECTS CALL FUNCTION 'PTRM_WEB_CPROJECTS' DESTINATION g_rfc_destination EXPORTING i_employeenumber = g_employeenumber * I_DATE_FROM = SY-DATUM * I_DATE_TO = SY-DATUM * I_LANGUAGE = sy-langu IMPORTING et_cprojects = gt_cprojects "My cProcets * ET_RETURN = .

PTRM_WEB_PREDEF_ADDRS_GET_LIST CALL FUNCTION 'PTRM_WEB_PREDEF_ADDRS_GET_LIST' DESTINATION g_rfc_destination EXPORTING i_category_id = space i_country = space i_city = space i_address_name = space i_language = sy-langu TABLES et_predef_adrs = gt_predef_adrs. "predefined addresses V_TA23ADR

PTRA_WEB_EXPENSE_REPORT_GET CALL FUNCTION 'PTRA_WEB_EXPENSE_REPORT_GET' DESTINATION g_rfc_destination EXPORTING i_employeenumber = g_employeenumber i_tripnumber = g_tripnumber i_periodnumber = g_periodnumber i_periodversion = g_periodversion i_language = g_language i_trip_schema = g_schema i_trip_action = g_trip_action i_trip_component = g_trip_component IMPORTING e_general_data = g_general_data * ET_RECEIPTS = * E_RECEIPTS_DEFAULT = * ET_RECEIPTS_DEFAULT = * ET_ADVANCES = * E_ADVANCES_DEFAULT = * ET_MILEAGE = * E_MILEAGE_DEFAULT = * ET_ITINERARY = * E_ITINERARY_DEFAULT = * ET_DEDUCTIONS = * E_DEDUCTIONS_DEFAULT = et_costdist_trip = gt_costdist_trip e_costdist_trip_default = e_costdist_trip_default * ET_COSTDIST_ITIN = * ET_COSTDIST_ITIN_DEFAULT = * ET_COSTDIST_RECE = * ET_COSTDIST_RECE_DEFAULT = * ET_COSTDIST_MILE = * ET_COSTDIST_MILE_DEFAULT = et_mastercost_default = gt_mastercost_default "et_costdist_trip * ET_HISTORY = TABLES et_field_control = gt_field_control "#EC ENHOK et_return = et_return.

PTRA_WEB_GENERAL_DATA_GET * CALL FUNCTION 'PTRA_WEB_GENERAL_DATA_GET' * DESTINATION g_rfc_destination * EXPORTING * i_employeenumber = g_employeenumber * i_tripnumber = g_tripnumber * * i_periodnumber = g_periodnumber * * i_periodversion = g_periodversion * i_language = g_language * i_trip_schema = g_schema * i_trip_action = g_trip_action * i_trip_component = g_trip_component * IMPORTING * e_general_data = e_general_data "#EC ENHOK * e_cost_dist_text = e_cost_dist_text * * et_advances_sums = gt_advances_sums * TABLES * et_field_control = et_field_control "#EC ENHOK * et_return = et_return.

PTRM_TEST_MESSAGES_SHOW_PBO CALL FUNCTION 'PTRM_TEST_MESSAGES_SHOW_PBO' CHANGING it_return = et_return.

PTRA_WEB_COSTDIST_TRIP_GET * CALL FUNCTION 'PTRA_WEB_COSTDIST_TRIP_GET' * DESTINATION g_rfc_destination * EXPORTING * i_employeenumber = g_employeenumber * i_tripnumber = g_tripnumber * i_periodnumber = g_periodnumber * i_periodversion = g_periodversion * i_language = g_language * i_trip_schema = g_schema * i_trip_action = 'MOD' "'INS' * i_trip_component = g_trip_component * IMPORTING * et_costdist_trip = et_costdist_trip "#EC ENHOK * e_costdist_trip_default = e_costdist_trip_default "#EC ENHOK * TABLES * et_field_control = et_field_control "#EC ENHOK * et_return = et_return. "#EC ENHOK

PTRM_TEST_MESSAGES_SHOW_PBO * CALL FUNCTION 'PTRM_TEST_MESSAGES_SHOW_PBO' * CHANGING * it_return = et_return.



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