SAP PTRA_WEB_EXPENSE_FORM_DATA_GET Function Module for
PTRA_WEB_EXPENSE_FORM_DATA_GET is a standard ptra web expense form data get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ptra web expense form data get FM, simply by entering the name PTRA_WEB_EXPENSE_FORM_DATA_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: PTRA_WEB_MAIN
Program Name: SAPLPTRA_WEB_MAIN
Main Program: SAPLPTRA_WEB_MAIN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function PTRA_WEB_EXPENSE_FORM_DATA_GET pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'PTRA_WEB_EXPENSE_FORM_DATA_GET'".
EXPORTING
I_EMPLOYEENUMBER = "Personnel Number
I_TRIPNUMBER = "Trip Number
I_PERIODNUMBER = "Number of Trip Period
* I_PERIODVERSION = "Sequential Number of Period
* IV_VERSION_TRIP_COMPONENT = "Plan/Request/Expense Report (Indicator)
* IV_VERSION_NUMBER = "Sequential Version Number of Table PTRV_VERSION
* I_TRIP_DATA_SOURCE = 'DB' "Source of Trip for Form
* I_LANGUAGE = SY-LANGU "Language Key
* I_NO_HEADER_DATA = "Boolean Variable (X=True, -=False, Space=Unknown)
IMPORTING
E_FORM_CONTROL = "Control Bar for Travel Expense Form (Adobe)
ET_COSTDIST_RECE = "Cost Assignment of a Trip Receipt
ET_COSTDIST_PDF = "Adobe Form - Table for PTRV_WEB_COSTDIST_RECE_PDF
ET_COSTDIST_MILE = "Cost Assignment of a Leg of Trip
ET_MASTERCOST_DEFAULT = "Cost Distribution of Trip
ET_HISTORY = "History of Database Updates of Trip
ET_MEALS_PER_DIEMS = "Trip Reimbursement Amounts for Meals
ET_MEALS_PER_DIEMS_TOTALS = "Trip Reimbursement Amounts for Meals
ET_ACCOM_PER_DIEMS = "Trip Reimbursement Amounts for Overnights
ET_ACCOM_PER_DIEMS_TOTALS = "Trip Reimbursement Amounts for Overnights
ET_TRAVEL_FLAT_RATES = "Travel Reimbursement Amounts for Mileage
E_FORM_HEADER_DATA_EMPLOYEE = "Data for Header of Travel Form
ET_TRAVEL_FLAT_RATES_TOTALS = "Travel Reimbursement Amounts for Mileage
ET_MILEAGE_ADD_INFO = "Additional Receipt Information for Travel Expense Statement
ET_MILEAGE_DETAIL = "Adobe Form: Table for Additional Information of Trip Segment
ET_RECEIPTS_TAX_FREE = "Receipts of a Trip for the Travel Expense Statement
ET_RECEIPTS_TAX_FREE_TOTALS = "Receipts of a Trip for the Travel Expense Statement
ET_RECEIPTS_TAXABLE = "Receipts of a Trip for the Travel Expense Statement
ET_RECEIPTS_TAXABLE_TOTALS = "Receipts of a Trip for the Travel Expense Statement, Totals
ET_RECEIPTS_VS_MAX_AMT = "Receipts of a Trip for the Travel Expense Statement
ET_RECEIPTS_VS_MAX_AMT_TOTALS = "Receipts of a Trip for the Travel Expense Statement, Totals
ET_RECEIPTS_ADD_INFO = "Receipts of a Trip for the Travel Expense Statement
E_FORM_HEADER_DATA_EMPLOYER = "Data for Header of Travel Form
ET_RES_REC_VS_MAX_AMT = "Receipt Settlement with Comparison Against a Daily Maximum Rate
ET_RES_REC_VS_MAX_AMT_TLS = "Receipt Settlement, Comparison Against Daily Maximum Rate, Totals Line
ET_ADVANCES_FORM = "Trip Advances for the Travel Expense Statement
ET_ADVANCES_FORM_TOTALS = "Trip Advances for the Travel Expense Statement
ET_TOTALS = "Totals of a Trip
ET_COST_ALLOC = "Trip Results - Cost Assignment
ET_HINZ_WERB_S_FORM = "Additional Amounts and Incidental Costs for Settlement
ET_HINZ_WERB_S_FORM_SUMS = "Additional Amounts and Incidental Costs for Settlement
E_PS_FORM_HEADING_CAT = "Special Headings for Public Sector
E_TRIP_SUMMARY = "PDF - Trip Summary
ET_FORM_ADDRESS_EMPLOYEE = "Addresses in Adobe Forms
E_POLICY_VIOLATION = "
ET_TRIP_BREAK = "Trip Breaks
ET_ADD_DEST = "Table of Additional Destinations
ET_RECEIPTS_VIOLATIONS = "Receipt Violations for Travel Expense Statement
ET_USER = "
ET_POCKET_MONEY = "Trip Reimbursement Amounts for Meals
ET_POCKET_MONEY_TOTALS = "Trip Reimbursement Amounts for Meals, Totals Lines
EV_MAX_DIFF_VIOLATION = "Editor in Web Structures
ET_PUB_TRANSPORT = "
ET_PUB_TRANSPORT_TOTALS = "
ET_FORM_ADDRESS_EMPLOYER = "Addresses in Adobe Forms
ET_LOC_TRANSPORT = "
ET_LOC_TRANSPORT_TOTALS = "
ET_EXCHANGE_RATES = "
E_PERIO_DATA_PS = "
E_GENERAL_DATA = "General Trip Data for External Display
ET_ITINERARY = "Destinations of Trip
ET_COSTDIST_TRIP = "Cost Distribution of Trip
ET_COSTDIST_ITIN = "Cost Assignment of a Trip Destination
TABLES
ET_RETURN = "Table with BAPI Return Information
IMPORTING Parameters details for PTRA_WEB_EXPENSE_FORM_DATA_GET
I_EMPLOYEENUMBER - Personnel Number
Data type: BAPIEMPL-PERNROptional: No
Call by Reference: No ( called with pass by value option)
I_TRIPNUMBER - Trip Number
Data type: BAPITRIP-TRIPNOOptional: No
Call by Reference: No ( called with pass by value option)
I_PERIODNUMBER - Number of Trip Period
Data type: BAPITRVXXX-PERIODOptional: No
Call by Reference: No ( called with pass by value option)
I_PERIODVERSION - Sequential Number of Period
Data type: PTRV_PERIO-PDVRSOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_VERSION_TRIP_COMPONENT - Plan/Request/Expense Report (Indicator)
Data type: PTRV_TRIP_COMPONENTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_VERSION_NUMBER - Sequential Version Number of Table PTRV_VERSION
Data type: PTRV_VERSION_NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_TRIP_DATA_SOURCE - Source of Trip for Form
Data type: PTRV_WEB_SOURCEDefault: 'DB'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGUAGE - Language Key
Data type: BAPITRVXXX-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_HEADER_DATA - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PTRA_WEB_EXPENSE_FORM_DATA_GET
E_FORM_CONTROL - Control Bar for Travel Expense Form (Adobe)
Data type: PTRA_WEB_FORM_CONTROLOptional: No
Call by Reference: No ( called with pass by value option)
ET_COSTDIST_RECE - Cost Assignment of a Trip Receipt
Data type: PTRV_WEB_COSTDIST_RECE_EXT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_COSTDIST_PDF - Adobe Form - Table for PTRV_WEB_COSTDIST_RECE_PDF
Data type: PTRV_WEB_COSTDIST_RECE_PDF_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_COSTDIST_MILE - Cost Assignment of a Leg of Trip
Data type: PTRV_WEB_COSTDIST_MILE_EXT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_MASTERCOST_DEFAULT - Cost Distribution of Trip
Data type: PTRV_WEB_COSTDIST_TRIP_EXT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_HISTORY - History of Database Updates of Trip
Data type: PTRV_WEB_HISTORY_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_MEALS_PER_DIEMS - Trip Reimbursement Amounts for Meals
Data type: PTRV_WEB_MEALS_PER_DIEMS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_MEALS_PER_DIEMS_TOTALS - Trip Reimbursement Amounts for Meals
Data type: PTRV_WEB_MEALS_PER_DIEMS_TLS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_ACCOM_PER_DIEMS - Trip Reimbursement Amounts for Overnights
Data type: PTRV_WEB_ACCOM_PER_DIEMS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_ACCOM_PER_DIEMS_TOTALS - Trip Reimbursement Amounts for Overnights
Data type: PTRV_WEB_ACCOM_PER_DIEMS_TLS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_TRAVEL_FLAT_RATES - Travel Reimbursement Amounts for Mileage
Data type: PTRV_WEB_TRAVEL_FLAT_RATES_TOptional: No
Call by Reference: No ( called with pass by value option)
E_FORM_HEADER_DATA_EMPLOYEE - Data for Header of Travel Form
Data type: PTRV_WEB_FORM_HEADER_EMPLOYEEOptional: No
Call by Reference: No ( called with pass by value option)
ET_TRAVEL_FLAT_RATES_TOTALS - Travel Reimbursement Amounts for Mileage
Data type: PTRV_WEB_TRAVEL_FLAT_RATES_T_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_MILEAGE_ADD_INFO - Additional Receipt Information for Travel Expense Statement
Data type: PTRV_WEB_MIL_ADD_INFO_FORM_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_MILEAGE_DETAIL - Adobe Form: Table for Additional Information of Trip Segment
Data type: PTRV_WEB_MILEAGE_DETAIL_PDF_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RECEIPTS_TAX_FREE - Receipts of a Trip for the Travel Expense Statement
Data type: PTRV_WEB_RECEIPTS_FORM_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RECEIPTS_TAX_FREE_TOTALS - Receipts of a Trip for the Travel Expense Statement
Data type: PTRV_WEB_RECEIPTS_FORM_TLS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RECEIPTS_TAXABLE - Receipts of a Trip for the Travel Expense Statement
Data type: PTRV_WEB_RECEIPTS_FORM_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RECEIPTS_TAXABLE_TOTALS - Receipts of a Trip for the Travel Expense Statement, Totals
Data type: PTRV_WEB_RECEIPTS_FORM_TLS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RECEIPTS_VS_MAX_AMT - Receipts of a Trip for the Travel Expense Statement
Data type: PTRV_WEB_RECEIPTS_FORM_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RECEIPTS_VS_MAX_AMT_TOTALS - Receipts of a Trip for the Travel Expense Statement, Totals
Data type: PTRV_WEB_RECEIPTS_FORM_TLS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RECEIPTS_ADD_INFO - Receipts of a Trip for the Travel Expense Statement
Data type: PTRV_WEB_REC_ADD_INFO_FORM_TOptional: No
Call by Reference: No ( called with pass by value option)
E_FORM_HEADER_DATA_EMPLOYER - Data for Header of Travel Form
Data type: PTRV_WEB_FORM_HEADER_EMPLOYEROptional: No
Call by Reference: No ( called with pass by value option)
ET_RES_REC_VS_MAX_AMT - Receipt Settlement with Comparison Against a Daily Maximum Rate
Data type: PTRV_WEB_RES_RECS_VS_MAX_AMT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RES_REC_VS_MAX_AMT_TLS - Receipt Settlement, Comparison Against Daily Maximum Rate, Totals Line
Data type: PTRV_WEB_RES_RECS_MAX_AMT_TS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_ADVANCES_FORM - Trip Advances for the Travel Expense Statement
Data type: PTRV_WEB_ADVANCES_FORM_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_ADVANCES_FORM_TOTALS - Trip Advances for the Travel Expense Statement
Data type: PTRV_WEB_ADVANCES_FORM_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_TOTALS - Totals of a Trip
Data type: PTRV_WEB_TOTALS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_COST_ALLOC - Trip Results - Cost Assignment
Data type: PTRV_COSTDIST_RESULTS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_HINZ_WERB_S_FORM - Additional Amounts and Incidental Costs for Settlement
Data type: PTRV_WEB_ADD_AMT_INC_REL_EXP_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_HINZ_WERB_S_FORM_SUMS - Additional Amounts and Incidental Costs for Settlement
Data type: PTRV_WEB_ADD_AMT_INC_REL_EXP_TOptional: No
Call by Reference: No ( called with pass by value option)
E_PS_FORM_HEADING_CAT - Special Headings for Public Sector
Data type: PTRA_WEB_PDF_TITLE_HEADINGSOptional: No
Call by Reference: No ( called with pass by value option)
E_TRIP_SUMMARY - PDF - Trip Summary
Data type: PTRV_WEB_EES_TRIP_SUMMARYOptional: No
Call by Reference: No ( called with pass by value option)
ET_FORM_ADDRESS_EMPLOYEE - Addresses in Adobe Forms
Data type: PTRV_WEB_FORM_ADDRESS_TOptional: No
Call by Reference: No ( called with pass by value option)
E_POLICY_VIOLATION -
Data type: BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
ET_TRIP_BREAK - Trip Breaks
Data type: PTRV_WEB_TRIP_BREAK_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_ADD_DEST - Table of Additional Destinations
Data type: PTRV_WEB_ADD_DEST_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RECEIPTS_VIOLATIONS - Receipt Violations for Travel Expense Statement
Data type: PTRV_WEB_REC_VIOLATIONS_FORM_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_USER -
Data type: PTK99_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_POCKET_MONEY - Trip Reimbursement Amounts for Meals
Data type: PTRV_WEB_MEALS_PER_DIEMS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_POCKET_MONEY_TOTALS - Trip Reimbursement Amounts for Meals, Totals Lines
Data type: PTRV_WEB_MEALS_PER_DIEMS_TLS_TOptional: No
Call by Reference: No ( called with pass by value option)
EV_MAX_DIFF_VIOLATION - Editor in Web Structures
Data type: PTRV_WEB_EDITOROptional: No
Call by Reference: No ( called with pass by value option)
ET_PUB_TRANSPORT -
Data type: GLO_PTRV_WEB_TRANSPORT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_PUB_TRANSPORT_TOTALS -
Data type: GLO_PTRV_WEB_TRANSPORT_TLS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_FORM_ADDRESS_EMPLOYER - Addresses in Adobe Forms
Data type: PTRV_WEB_FORM_ADDRESS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_LOC_TRANSPORT -
Data type: GLO_PTRV_WEB_TRANSPORT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_LOC_TRANSPORT_TOTALS -
Data type: GLO_PTRV_WEB_TRANSPORT_TLS_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_EXCHANGE_RATES -
Data type: GLO_PTRV_WEB_EXCHANGE_RATES_TOptional: No
Call by Reference: No ( called with pass by value option)
E_PERIO_DATA_PS -
Data type: PTRV_WEB_PERIO_DATA_PSOptional: No
Call by Reference: No ( called with pass by value option)
E_GENERAL_DATA - General Trip Data for External Display
Data type: PTRV_WEB_GENERAL_DATA_EXTOptional: No
Call by Reference: No ( called with pass by value option)
ET_ITINERARY - Destinations of Trip
Data type: PTRV_WEB_ITINERARY_EXT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_COSTDIST_TRIP - Cost Distribution of Trip
Data type: PTRV_WEB_COSTDIST_TRIP_EXT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_COSTDIST_ITIN - Cost Assignment of a Trip Destination
Data type: PTRV_WEB_COSTDIST_ITIN_EXT_TOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PTRA_WEB_EXPENSE_FORM_DATA_GET
ET_RETURN - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for PTRA_WEB_EXPENSE_FORM_DATA_GET Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRETTAB, " | |||
| lv_e_form_control | TYPE PTRA_WEB_FORM_CONTROL, " | |||
| lv_i_employeenumber | TYPE BAPIEMPL-PERNR, " | |||
| lv_et_costdist_rece | TYPE PTRV_WEB_COSTDIST_RECE_EXT_T, " | |||
| lv_et_costdist_pdf | TYPE PTRV_WEB_COSTDIST_RECE_PDF_T, " | |||
| lv_et_costdist_mile | TYPE PTRV_WEB_COSTDIST_MILE_EXT_T, " | |||
| lv_et_mastercost_default | TYPE PTRV_WEB_COSTDIST_TRIP_EXT_T, " | |||
| lv_et_history | TYPE PTRV_WEB_HISTORY_T, " | |||
| lv_et_meals_per_diems | TYPE PTRV_WEB_MEALS_PER_DIEMS_T, " | |||
| lv_et_meals_per_diems_totals | TYPE PTRV_WEB_MEALS_PER_DIEMS_TLS_T, " | |||
| lv_et_accom_per_diems | TYPE PTRV_WEB_ACCOM_PER_DIEMS_T, " | |||
| lv_et_accom_per_diems_totals | TYPE PTRV_WEB_ACCOM_PER_DIEMS_TLS_T, " | |||
| lv_et_travel_flat_rates | TYPE PTRV_WEB_TRAVEL_FLAT_RATES_T, " | |||
| lv_i_tripnumber | TYPE BAPITRIP-TRIPNO, " | |||
| lv_e_form_header_data_employee | TYPE PTRV_WEB_FORM_HEADER_EMPLOYEE, " | |||
| lv_et_travel_flat_rates_totals | TYPE PTRV_WEB_TRAVEL_FLAT_RATES_T_T, " | |||
| lv_et_mileage_add_info | TYPE PTRV_WEB_MIL_ADD_INFO_FORM_T, " | |||
| lv_et_mileage_detail | TYPE PTRV_WEB_MILEAGE_DETAIL_PDF_T, " | |||
| lv_et_receipts_tax_free | TYPE PTRV_WEB_RECEIPTS_FORM_T, " | |||
| lv_et_receipts_tax_free_totals | TYPE PTRV_WEB_RECEIPTS_FORM_TLS_T, " | |||
| lv_et_receipts_taxable | TYPE PTRV_WEB_RECEIPTS_FORM_T, " | |||
| lv_et_receipts_taxable_totals | TYPE PTRV_WEB_RECEIPTS_FORM_TLS_T, " | |||
| lv_et_receipts_vs_max_amt | TYPE PTRV_WEB_RECEIPTS_FORM_T, " | |||
| lv_et_receipts_vs_max_amt_totals | TYPE PTRV_WEB_RECEIPTS_FORM_TLS_T, " | |||
| lv_et_receipts_add_info | TYPE PTRV_WEB_REC_ADD_INFO_FORM_T, " | |||
| lv_i_periodnumber | TYPE BAPITRVXXX-PERIOD, " | |||
| lv_e_form_header_data_employer | TYPE PTRV_WEB_FORM_HEADER_EMPLOYER, " | |||
| lv_et_res_rec_vs_max_amt | TYPE PTRV_WEB_RES_RECS_VS_MAX_AMT_T, " | |||
| lv_et_res_rec_vs_max_amt_tls | TYPE PTRV_WEB_RES_RECS_MAX_AMT_TS_T, " | |||
| lv_et_advances_form | TYPE PTRV_WEB_ADVANCES_FORM_T, " | |||
| lv_et_advances_form_totals | TYPE PTRV_WEB_ADVANCES_FORM_T, " | |||
| lv_et_totals | TYPE PTRV_WEB_TOTALS_T, " | |||
| lv_et_cost_alloc | TYPE PTRV_COSTDIST_RESULTS_T, " | |||
| lv_et_hinz_werb_s_form | TYPE PTRV_WEB_ADD_AMT_INC_REL_EXP_T, " | |||
| lv_et_hinz_werb_s_form_sums | TYPE PTRV_WEB_ADD_AMT_INC_REL_EXP_T, " | |||
| lv_e_ps_form_heading_cat | TYPE PTRA_WEB_PDF_TITLE_HEADINGS, " | |||
| lv_e_trip_summary | TYPE PTRV_WEB_EES_TRIP_SUMMARY, " | |||
| lv_i_periodversion | TYPE PTRV_PERIO-PDVRS, " | |||
| lv_et_form_address_employee | TYPE PTRV_WEB_FORM_ADDRESS_T, " | |||
| lv_e_policy_violation | TYPE BOOLEAN, " | |||
| lv_et_trip_break | TYPE PTRV_WEB_TRIP_BREAK_T, " | |||
| lv_et_add_dest | TYPE PTRV_WEB_ADD_DEST_T, " | |||
| lv_et_receipts_violations | TYPE PTRV_WEB_REC_VIOLATIONS_FORM_T, " | |||
| lv_et_user | TYPE PTK99_T, " | |||
| lv_et_pocket_money | TYPE PTRV_WEB_MEALS_PER_DIEMS_T, " | |||
| lv_et_pocket_money_totals | TYPE PTRV_WEB_MEALS_PER_DIEMS_TLS_T, " | |||
| lv_ev_max_diff_violation | TYPE PTRV_WEB_EDITOR, " | |||
| lv_et_pub_transport | TYPE GLO_PTRV_WEB_TRANSPORT_T, " | |||
| lv_et_pub_transport_totals | TYPE GLO_PTRV_WEB_TRANSPORT_TLS_T, " | |||
| lv_et_form_address_employer | TYPE PTRV_WEB_FORM_ADDRESS_T, " | |||
| lv_iv_version_trip_component | TYPE PTRV_TRIP_COMPONENT, " | |||
| lv_et_loc_transport | TYPE GLO_PTRV_WEB_TRANSPORT_T, " | |||
| lv_et_loc_transport_totals | TYPE GLO_PTRV_WEB_TRANSPORT_TLS_T, " | |||
| lv_et_exchange_rates | TYPE GLO_PTRV_WEB_EXCHANGE_RATES_T, " | |||
| lv_e_perio_data_ps | TYPE PTRV_WEB_PERIO_DATA_PS, " | |||
| lv_e_general_data | TYPE PTRV_WEB_GENERAL_DATA_EXT, " | |||
| lv_iv_version_number | TYPE PTRV_VERSION_NUMBER, " | |||
| lv_et_itinerary | TYPE PTRV_WEB_ITINERARY_EXT_T, " | |||
| lv_i_trip_data_source | TYPE PTRV_WEB_SOURCE, " 'DB' | |||
| lv_i_language | TYPE BAPITRVXXX-LANGU, " SY-LANGU | |||
| lv_et_costdist_trip | TYPE PTRV_WEB_COSTDIST_TRIP_EXT_T, " | |||
| lv_et_costdist_itin | TYPE PTRV_WEB_COSTDIST_ITIN_EXT_T, " | |||
| lv_i_no_header_data | TYPE BOOLEAN. " |
|   CALL FUNCTION 'PTRA_WEB_EXPENSE_FORM_DATA_GET' " |
| EXPORTING | ||
| I_EMPLOYEENUMBER | = lv_i_employeenumber | |
| I_TRIPNUMBER | = lv_i_tripnumber | |
| I_PERIODNUMBER | = lv_i_periodnumber | |
| I_PERIODVERSION | = lv_i_periodversion | |
| IV_VERSION_TRIP_COMPONENT | = lv_iv_version_trip_component | |
| IV_VERSION_NUMBER | = lv_iv_version_number | |
| I_TRIP_DATA_SOURCE | = lv_i_trip_data_source | |
| I_LANGUAGE | = lv_i_language | |
| I_NO_HEADER_DATA | = lv_i_no_header_data | |
| IMPORTING | ||
| E_FORM_CONTROL | = lv_e_form_control | |
| ET_COSTDIST_RECE | = lv_et_costdist_rece | |
| ET_COSTDIST_PDF | = lv_et_costdist_pdf | |
| ET_COSTDIST_MILE | = lv_et_costdist_mile | |
| ET_MASTERCOST_DEFAULT | = lv_et_mastercost_default | |
| ET_HISTORY | = lv_et_history | |
| ET_MEALS_PER_DIEMS | = lv_et_meals_per_diems | |
| ET_MEALS_PER_DIEMS_TOTALS | = lv_et_meals_per_diems_totals | |
| ET_ACCOM_PER_DIEMS | = lv_et_accom_per_diems | |
| ET_ACCOM_PER_DIEMS_TOTALS | = lv_et_accom_per_diems_totals | |
| ET_TRAVEL_FLAT_RATES | = lv_et_travel_flat_rates | |
| E_FORM_HEADER_DATA_EMPLOYEE | = lv_e_form_header_data_employee | |
| ET_TRAVEL_FLAT_RATES_TOTALS | = lv_et_travel_flat_rates_totals | |
| ET_MILEAGE_ADD_INFO | = lv_et_mileage_add_info | |
| ET_MILEAGE_DETAIL | = lv_et_mileage_detail | |
| ET_RECEIPTS_TAX_FREE | = lv_et_receipts_tax_free | |
| ET_RECEIPTS_TAX_FREE_TOTALS | = lv_et_receipts_tax_free_totals | |
| ET_RECEIPTS_TAXABLE | = lv_et_receipts_taxable | |
| ET_RECEIPTS_TAXABLE_TOTALS | = lv_et_receipts_taxable_totals | |
| ET_RECEIPTS_VS_MAX_AMT | = lv_et_receipts_vs_max_amt | |
| ET_RECEIPTS_VS_MAX_AMT_TOTALS | = lv_et_receipts_vs_max_amt_totals | |
| ET_RECEIPTS_ADD_INFO | = lv_et_receipts_add_info | |
| E_FORM_HEADER_DATA_EMPLOYER | = lv_e_form_header_data_employer | |
| ET_RES_REC_VS_MAX_AMT | = lv_et_res_rec_vs_max_amt | |
| ET_RES_REC_VS_MAX_AMT_TLS | = lv_et_res_rec_vs_max_amt_tls | |
| ET_ADVANCES_FORM | = lv_et_advances_form | |
| ET_ADVANCES_FORM_TOTALS | = lv_et_advances_form_totals | |
| ET_TOTALS | = lv_et_totals | |
| ET_COST_ALLOC | = lv_et_cost_alloc | |
| ET_HINZ_WERB_S_FORM | = lv_et_hinz_werb_s_form | |
| ET_HINZ_WERB_S_FORM_SUMS | = lv_et_hinz_werb_s_form_sums | |
| E_PS_FORM_HEADING_CAT | = lv_e_ps_form_heading_cat | |
| E_TRIP_SUMMARY | = lv_e_trip_summary | |
| ET_FORM_ADDRESS_EMPLOYEE | = lv_et_form_address_employee | |
| E_POLICY_VIOLATION | = lv_e_policy_violation | |
| ET_TRIP_BREAK | = lv_et_trip_break | |
| ET_ADD_DEST | = lv_et_add_dest | |
| ET_RECEIPTS_VIOLATIONS | = lv_et_receipts_violations | |
| ET_USER | = lv_et_user | |
| ET_POCKET_MONEY | = lv_et_pocket_money | |
| ET_POCKET_MONEY_TOTALS | = lv_et_pocket_money_totals | |
| EV_MAX_DIFF_VIOLATION | = lv_ev_max_diff_violation | |
| ET_PUB_TRANSPORT | = lv_et_pub_transport | |
| ET_PUB_TRANSPORT_TOTALS | = lv_et_pub_transport_totals | |
| ET_FORM_ADDRESS_EMPLOYER | = lv_et_form_address_employer | |
| ET_LOC_TRANSPORT | = lv_et_loc_transport | |
| ET_LOC_TRANSPORT_TOTALS | = lv_et_loc_transport_totals | |
| ET_EXCHANGE_RATES | = lv_et_exchange_rates | |
| E_PERIO_DATA_PS | = lv_e_perio_data_ps | |
| E_GENERAL_DATA | = lv_e_general_data | |
| ET_ITINERARY | = lv_et_itinerary | |
| ET_COSTDIST_TRIP | = lv_et_costdist_trip | |
| ET_COSTDIST_ITIN | = lv_et_costdist_itin | |
| TABLES | ||
| ET_RETURN | = lt_et_return | |
| . " PTRA_WEB_EXPENSE_FORM_DATA_GET | ||
ABAP code using 7.40 inline data declarations to call FM PTRA_WEB_EXPENSE_FORM_DATA_GET
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single PERNR FROM BAPIEMPL INTO @DATA(ld_i_employeenumber). | ||||
| "SELECT single TRIPNO FROM BAPITRIP INTO @DATA(ld_i_tripnumber). | ||||
| "SELECT single PERIOD FROM BAPITRVXXX INTO @DATA(ld_i_periodnumber). | ||||
| "SELECT single PDVRS FROM PTRV_PERIO INTO @DATA(ld_i_periodversion). | ||||
| DATA(ld_i_trip_data_source) | = 'DB'. | |||
| "SELECT single LANGU FROM BAPITRVXXX INTO @DATA(ld_i_language). | ||||
| DATA(ld_i_language) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects