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

PTRA_WEB_GLOBAL_GENERAL_FORMS SAP ABAP INCLUDE - PTRAWEBGLOBALGENERALFORMS







PTRA_WEB_GLOBAL_GENERAL_FORMS 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_WEB_GLOBAL_GENERAL_FORMS 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_WEB_GLOBAL_GENERAL_FORMS. "Basic submit
SUBMIT PTRA_WEB_GLOBAL_GENERAL_FORMS AND RETURN. "Return to original report after report execution complete
SUBMIT PTRA_WEB_GLOBAL_GENERAL_FORMS 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_WEB_GLOBAL_GENERAL_FORMS

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:

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '085' "Geben Sie eine Personalnummer ein i_field = gc_employeenumber.

PTRA_UTIL_MEM_KEY_GET CALL FUNCTION 'PTRA_UTIL_MEM_KEY_GET' IMPORTING e_employeenumber = m_i_employeenumber e_tripnumber = m_i_tripnumber e_periodnumber = m_i_periodnumber e_periodversion = m_i_periodversion e_current_version = m_i_current_version.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '085' "Geben Sie eine Personalnummer ein i_field = gc_employeenumber.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '148' " Geben Sie eine gültige Reisenummer ein i_field = gc_tripnumber.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '072' " Geben Sie keine Periode ein i_field = gc_periodnumber.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '072' " Geben Sie keine Periode ein i_field = gc_periodversion.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '148' " Geben Sie eine gültige Reisenummer ein i_field = gc_tripnumber.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '148' " Geben Sie eine gültige Reisenummer ein i_field = gc_periodnumber.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '148' " Geben Sie eine gültige Reisenummer ein i_field = gc_periodversion.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '148' i_field = gc_periodversion." Geben Sie eine gültige Reisenummer ein

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '148' i_field = gc_periodversion." Geben Sie eine gültige Reisenummer ein

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '122'. "Die Daten dieser Reise können nur

PTRA_UTIL_MEM_CCC_KEY_GET CALL FUNCTION 'PTRA_UTIL_MEM_CCC_KEY_GET' IMPORTING e_ccc_key_pernr = lf_ccc_key_pernr e_ccc_key_tripno = lf_ccc_key_tripno e_ccc_key_trip_action = lf_ccc_key_trip_action.

PTRA_UTIL_MEM_CCC_GET CALL FUNCTION 'PTRA_UTIL_MEM_CCC_GET' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_trip_action = p_trip_action i_language = p_language EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '016' "&&&& * i_msgv1 = lwa_ccc_textpool1-entry * i_msgv2 = lwa_ccc_textpool2-entry.

PTRA_UTIL_GENERAL_DATA_FIELDS CALL FUNCTION 'PTRA_UTIL_GENERAL_DATA_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = p_trip_tcode i_head = p_head i_language = p_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_ADVANCES_FIELDS CALL FUNCTION 'PTRA_UTIL_ADVANCES_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = p_trip_tcode i_language = p_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_MILEAGE_FIELDS CALL FUNCTION 'PTRA_UTIL_MILEAGE_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = p_trip_tcode i_language = p_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_ITINERARY_FIELDS





CALL FUNCTION 'PTRA_UTIL_ITINERARY_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = p_trip_tcode i_language = p_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_DEDUCTIONS_FIELDS CALL FUNCTION 'PTRA_UTIL_DEDUCTIONS_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = p_trip_tcode i_language = p_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_COSTDIST_TRIP_FIELDS CALL FUNCTION 'PTRA_UTIL_COSTDIST_TRIP_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = pf_tcode i_language = p_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_COSTDIST_ITIN_FIELDS CALL FUNCTION 'PTRA_UTIL_COSTDIST_ITIN_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = p_trip_tcode IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_COSTDIST_RECE_FIELDS CALL FUNCTION 'PTRA_UTIL_COSTDIST_RECE_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = pf_tcode i_language = p_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_COSTDIST_MILE_FIELDS CALL FUNCTION 'PTRA_UTIL_COSTDIST_MILE_FIELDS' EXPORTING i_employeenumber = p_employeenumber i_tripnumber = p_tripnumber i_periodnumber = p_periodnumber i_periodversion = p_periodversion i_trip_schema = p_trip_schema i_trip_action = p_trip_action i_trip_component = p_trip_component i_trip_tcode = pf_tcode i_language = p_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

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.

PTRA_UTIL_MEM_DESCRIPTION_GET CALL FUNCTION 'PTRA_UTIL_MEM_DESCRIPTION_GET' EXPORTING name = p_tabname TABLES * dd03p_tab = lt_web_field_name "MAWK017862 dfies = lt_web_field_name "MAWK017862 EXCEPTIONS illegal_input = 1 OTHERS = 2.

PTRM_UTIL_MESSAGE_APPEND CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND' EXPORTING i_msgtype = 'E' i_msgid = '56' i_msgnumber = '001' "Kein Eintrag in Tabelle & Argument i_msgv1 = 'DDIC' i_msgv2 = l_name.

PTRA_UTIL_RECEIPTS_FIELDS CALL FUNCTION 'PTRA_UTIL_RECEIPTS_FIELDS' EXPORTING i_employeenumber = p_i_employeenumber i_tripnumber = p_i_tripnumber i_periodnumber = p_i_periodnumber i_periodversion = p_i_periodversion i_trip_schema = p_i_trip_schema i_trip_action = p_i_trip_action i_trip_component = p_i_trip_component i_trip_tcode = p_i_trip_tcode i_language = p_i_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRA_UTIL_MEM_FIELDS_GET CALL FUNCTION 'PTRA_UTIL_MEM_FIELDS_GET' EXPORTING i_employeenumber = pv_employeenumber i_tripnumber = pv_tripnumber i_periodnumber = pv_periodnumber i_periodversion = pv_periodversion i_trip_schema = pv_trip_schema i_rece_guest_fields = 'X' i_trip_action = pv_trip_action i_trip_component = pv_trip_component i_trip_tcode = pv_trip_tcode i_language = pv_language IMPORTING et_field_control = lt_field_control EXCEPTIONS error_occurred = 1 OTHERS = 2.

PTRM_UTIL_CUSTOMIZING_GET * CALL FUNCTION 'PTRM_UTIL_CUSTOMIZING_GET' * EXPORTING * i_employeenumber = employee_number * i_date = sy-datum * i_language = sy-langu * TABLES ** ET_FIELD_SELECTION_GENERAL = * et_field_selection_trip_ca = lt_field_select_trip * et_field_selection_receipt_ca = lt_field_select_rece * et_field_selection_stopover_ca = lt_field_select_itin * et_field_selection_mileage_ca = lt_field_select_mile * et_return = return_table * EXCEPTIONS * error_feature = 1 * OTHERS = 2.

PTRM_UTIL_CUSTOMIZING_GET CALL FUNCTION 'PTRM_UTIL_CUSTOMIZING_GET' EXPORTING i_employeenumber = employee_number * i_date = sy-datum "MAWK020816 i_date = pv_datv1 i_language = sy-langu TABLES * ET_FIELD_SELECTION_GENERAL = et_field_selection_trip_ca = lt_field_select_trip et_field_selection_receipt_ca = lt_field_select_rece et_field_selection_stopover_ca = lt_field_select_itin et_field_selection_mileage_ca = lt_field_select_mile et_return = return_table EXCEPTIONS error_feature = 1 OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = pv_date foreign_amount = 1 foreign_currency = pv_foreign_currency local_currency = pv_local_currency type_of_rate = pv_kurst IMPORTING exchange_rate = lv_rate foreign_factor = ls_tcurr-f_factor local_factor = ls_tcurr-t_factor EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

KURS_IN_PREISNOTATION CALL FUNCTION 'KURS_IN_PREISNOTATION' EXPORTING date = pv_date type_of_rate = pv_kurst foreign_currency = pv_foreign_currency local_currency = pv_local_currency rate = lv_rate IMPORTING ratep = ls_tcurr-rate EXCEPTIONS no_factors_found = 1 derived_2_times = 2 no_spread_found = 3 overflow = 4 OTHERS = 5.

KURS_IN_MENGENNOTATION CALL FUNCTION 'KURS_IN_MENGENNOTATION' EXPORTING date = pv_date type_of_rate = pv_kurst foreign_currency = pv_foreign_currency local_currency = pv_local_currency rate = lv_rate IMPORTING ratem = ls_tcurr-rate_cm EXCEPTIONS no_factors_found = 1 derived_2_times = 2 no_spread_found = 3 overflow = 4 OTHERS = 5.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = pv_date foreign_currency = pv_foreign_currency local_amount = 1 local_currency = pv_local_currency type_of_rate = pv_kurst IMPORTING exchange_rate = lv_rate foreign_factor = ls_tcurr-t_factor local_factor = ls_tcurr-f_factor EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

KURS_IN_PREISNOTATION CALL FUNCTION 'KURS_IN_PREISNOTATION' EXPORTING date = pv_date type_of_rate = pv_kurst foreign_currency = pv_foreign_currency local_currency = pv_local_currency rate = lv_rate IMPORTING ratep = ls_tcurr-rate_cm EXCEPTIONS no_factors_found = 1 derived_2_times = 2 no_spread_found = 3 overflow = 4 OTHERS = 5.

KURS_IN_MENGENNOTATION CALL FUNCTION 'KURS_IN_MENGENNOTATION' EXPORTING date = pv_date type_of_rate = pv_kurst foreign_currency = pv_foreign_currency local_currency = pv_local_currency rate = lv_rate IMPORTING ratem = ls_tcurr-rate EXCEPTIONS no_factors_found = 1 derived_2_times = 2 no_spread_found = 3 overflow = 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 PTRA_WEB_GLOBAL_GENERAL_FORMS or its description.