SAP Reports / Programs | Financial Accounting | Travel Management | Travel Expenses(FI-TV-COS) SAP FI

PTRA_UTIL_GLOBAL_FIELDS SAP ABAP INCLUDE - PTRAUTILGLOBALFIELDS







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


INCLUDES used within this REPORT PTRA_UTIL_GLOBAL_FIELDS

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:

TRIP_GET_AUTOHIDE CALL FUNCTION 'TRIP_GET_AUTOHIDE' EXPORTING provision_variant = p_morei IMPORTING autohide = lwa_ptrv_autohide.

PTRV_DETERMINE_AUTHP CALL FUNCTION 'PTRV_DETERMINE_AUTHP' EXPORTING current_pernr = p_pernr IMPORTING authp = authp.

PTRM_UTIL_INFOTYPES_GET CALL FUNCTION 'PTRM_UTIL_INFOTYPES_GET' EXPORTING i_employeenumber = pwa_head-pernr i_datum_von = lwa_date_with_fieldname i_datum_bis = lwa_date_with_fieldname i_ppnnn = 'P0008' i_create_error_msg = space IMPORTING infotype = lwa_p0008 EXCEPTIONS error_occurred = 1 OTHERS = 2.

RP_COBL_GET_ITAB CALL FUNCTION 'RP_COBL_GET_ITAB' EXPORTING function_name = l_function_name pme27_in = lwa_pme27 input = 'X' TABLES * COBL_FIELDS enthaelt die Felder fuer den Kontierungsblock (Subscreen) * -> Alle entsprechenden Felder aus der T588N mit 'COBL-...'

PTRA_UTIL_MEM_GLOBALS_GET CALL FUNCTION 'PTRA_UTIL_MEM_GLOBALS_GET' EXPORTING i_employeenumber = pwa_head-pernr i_date = lv_date_with_fieldname i_trip_schema = pwa_head-schem IMPORTING e_pubsec_country = lv_pubsec_country EXCEPTIONS error_occurred = 1 OTHERS = 2.

PA_TRV_GET_PS_FLAG CALL FUNCTION 'PA_TRV_GET_PS_FLAG' EXPORTING i_morei = pwa_head-morei i_molga = pwa_head-molga IMPORTING e_public_sector_austria = pubsec_austria.

PTRM_UTIL_INFOTYPES_GET CALL FUNCTION 'PTRM_UTIL_INFOTYPES_GET' EXPORTING i_employeenumber = pwa_head-pernr i_datum_von = lwa_date_with_fieldname_1 i_datum_bis = lwa_date_with_fieldname_2 i_ppnnn = 'P0001' i_create_error_msg = 'X' IMPORTING infotype = lwa_p0001 EXCEPTIONS error_occurred = 1 OTHERS = 2.

HRCA_COMPANYCODE_GETDETAIL CALL FUNCTION 'HRCA_COMPANYCODE_GETDETAIL' EXPORTING companycode = lwa_p0001-bukrs language = sy-langu IMPORTING comp_name = pwa_t001-butxt city = pwa_t001-ort01 country = pwa_t001-land1 currency = pwa_t001-waers langu = pwa_t001-spras chrt_accts = pwa_t001-ktopl fy_variant = pwa_t001-periv rate_deviation = pwa_t001-waabw jurisdiction = pwa_t001-txjcd EXCEPTIONS not_found = 1 OTHERS = 2.

PTRV_GET_CALC_HOUR_MOLGA_03 CALL FUNCTION 'PTRV_GET_CALC_HOUR_MOLGA_03' EXPORTING morei = pwa_head-morei home_country = pwa_t001-land1 trip_country = pwa_head-zland trip_begin_date = pwa_head-datv1 IMPORTING calc_new = austria_24.

HRCA_CHECK_JURISDICTION_ACTIVE * CALL FUNCTION 'HRCA_CHECK_JURISDICTION_ACTIVE' * EXPORTING * i_bukrs = pwa_p0001-bukrs * IMPORTING * e_txjcd_active = l_jurisdiction_active * EXCEPTIONS * input_incomplete = 1 * input_inconsistent = 2 * other_error = 3 * OTHERS = 4.

PTRA_UTIL_MEM_JURISDICTION_ACT CALL FUNCTION 'PTRA_UTIL_MEM_JURISDICTION_ACT' EXPORTING i_bukrs = pwa_p0001-bukrs IMPORTING e_txjcd_active = l_jurisdiction_active EXCEPTIONS input_incomplete = 1 input_inconsistent = 2 other_error = 3 OTHERS = 4.

HRCA_DC_ACTIVE_CHECK CALL FUNCTION 'HRCA_DC_ACTIVE_CHECK' EXPORTING i_bukrs = pwa_p0001-bukrs IMPORTING e_cac_active = obligo_active TABLES return_table = return_table.

PTRA_UTIL_MEM_TRIP_GET CALL FUNCTION 'PTRA_UTIL_MEM_TRIP_GET' EXPORTING i_employeenumber = pwa_head-pernr i_tripnumber = pwa_head-reinr i_periodnumber = pwa_head-perio i_periodversion = pwa_head-pdvrs i_language = p_langu i_trip_component = p_trip_component "OCA IMPORTING et_comm_itm = lt_comm_itm EXCEPTIONS error_occurred = 1.

FITP_REQUEST_TABLES_READ CALL FUNCTION 'FITP_REQUEST_TABLES_READ' EXPORTING pernr = pwa_head-pernr reinr = pwa_head-reinr plan_request = 'R' IMPORTING wa_req_head = ls_req_head.

DDIF_DOMA_GET CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = 'PTRV_RELATION' TABLES dd07v_tab = lt_guest_relation EXCEPTIONS illegal_input = 1 OTHERS = 2.

PTRA_UTIL_MEM_KEY_GET CALL FUNCTION 'PTRA_UTIL_MEM_KEY_GET' IMPORTING e_request_items_exist = l_request_items_exist.

PTRM_UTIL_PLAN_ACTIVITY_GET CALL FUNCTION 'PTRM_UTIL_PLAN_ACTIVITY_GET' EXPORTING i_employeenumber = pwa_head-pernr i_tripnumber = pwa_head-reinr i_date = pwa_head-datv1 IMPORTING plan_activity_visible = lwa_field_control-visible plan_activity_input = lwa_field_control-input plan_activity_required = lwa_field_control-required.

PTRA_UTIL_MEM_GLOBALS_GET CALL FUNCTION 'PTRA_UTIL_MEM_GLOBALS_GET' EXPORTING i_employeenumber = pwa_head-pernr i_date = lwa_date_with_fieldnamb IMPORTING e_trvpa = lwa_trvpa EXCEPTIONS error_occurred = 1.

PTRM_UTIL_PLAN_ACTIVITY_GET





* CALL FUNCTION 'PTRM_UTIL_PLAN_ACTIVITY_GET' * EXPORTING * i_employeenumber = pwa_head-pernr * i_tripnumber = pwa_head-reinr * i_date = pwa_head-datv1 * IMPORTING * plan_activity_visible = lwa_field_control-visible * plan_activity_input = lwa_field_control-input * plan_activity_required = lwa_field_control-required.

PTRA_UTIL_MEM_FIELD_CONV_GET CALL FUNCTION 'PTRA_UTIL_MEM_FIELD_CONV_GET' EXPORTING tabname = p_tabname IMPORTING field_conversion = lt_field_conversion EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRM_UTIL_INFOTYPES_GET CALL FUNCTION 'PTRM_UTIL_INFOTYPES_GET' EXPORTING i_employeenumber = p_employeenumber i_datum_von = lwa_date i_datum_bis = lwa_date i_ppnnn = 'P0017' i_create_error_msg = 'X' IMPORTING infotype = lwa_p0017 EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRM_UTIL_INFOTYPES_GET CALL FUNCTION 'PTRM_UTIL_INFOTYPES_GET' EXPORTING i_employeenumber = p_employeenumber i_datum_von = lwa_date i_datum_bis = lwa_date i_ppnnn = 'P0017' i_create_error_msg = 'X' IMPORTING infotype = lwa_p0017 EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_MEM_GLOBALS_GET CALL FUNCTION 'PTRA_UTIL_MEM_GLOBALS_GET' EXPORTING i_employeenumber = p_head-pernr i_date = lv_date_with_fieldname i_trip_schema = p_head-schem IMPORTING e_pubsec_country = lv_pubsec_country EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_MEM_FIELD_CONV_GET CALL FUNCTION 'PTRA_UTIL_MEM_FIELD_CONV_GET' EXPORTING tabname = l_new_structure fieldname = l_field IMPORTING field_conversion = lt_field_conversion EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRM_UTIL_INFOTYPES_GET CALL FUNCTION 'PTRM_UTIL_INFOTYPES_GET' EXPORTING i_employeenumber = p_employeenumber i_datum_von = lwa_date i_datum_bis = lwa_date i_ppnnn = 'P0017' i_create_error_msg = 'X' IMPORTING infotype = lwa_p0017 EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRM_UTIL_INFOTYPES_GET CALL FUNCTION 'PTRM_UTIL_INFOTYPES_GET' EXPORTING i_employeenumber = pwa_head-pernr i_datum_von = lwa_date_with_fieldname i_datum_bis = lwa_date_with_fieldname i_ppnnn = 'P0008' i_create_error_msg = space IMPORTING infotype = lwa_p0008 EXCEPTIONS error_occurred = 1 OTHERS = 2.

RP_COBL_GET_ITAB CALL FUNCTION 'RP_COBL_GET_ITAB' EXPORTING function_name = l_function_name pme27_in = lwa_pme27 input = 'X' TABLES cobl_out = lt_cobl_fields itab_out = lt_itab2.

PTRA_SCREEN_MEM_TRIP_GET_UTIL CALL FUNCTION 'PTRA_SCREEN_MEM_TRIP_GET_UTIL' EXPORTING i_employeenumber = pwa_head-pernr i_tripnumber = pwa_head-reinr i_periodnumber = pwa_head-perio i_trip_tcode = gc_trip_tcode_ees IMPORTING et_rsplit = lt_rsplit EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRM_UTIL_INFOTYPES_GET CALL FUNCTION 'PTRM_UTIL_INFOTYPES_GET' EXPORTING i_employeenumber = p_employeenumber i_datum_von = lwa_date i_datum_bis = lwa_date i_ppnnn = 'P0017' i_create_error_msg = 'X' IMPORTING infotype = lwa_p0017 EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = 'PTRA_WEB_INTERFACE' i_msgnumber = '295'.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = 'PTRA_WEB_INTERFACE' i_msgnumber = '296' i_msgv1 = 'PTRV_FUEL_TYP_PR' i_msgv2 = lwa_p0017-fuel_type i_msgv3 = lv_date_for_message.

HRCA_COMPANYCODE_GETDETAIL * CALL FUNCTION 'HRCA_COMPANYCODE_GETDETAIL' * EXPORTING * companycode = comp_code * IMPORTING * country = home_country * EXCEPTIONS * communication_failure = 1 * system_failure = 2 * OTHERS = 3.



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