SAP Reports / Programs

RPRTEF02 SAP ABAP Report - Summarized Form 2 for Travel Expenses Accounting







RPRTEF02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Summarized form 2 (RPRTEF02) lists all trips that have been accounted in the specified accounting period...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 RPRTEF02 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PRF2 - Summarized Form 2


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 RPRTEF02. "Basic submit
SUBMIT RPRTEF02 AND RETURN. "Return to original report after report execution complete
SUBMIT RPRTEF02 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: SPKZL = D .
Selection Text: BEART = D .
Selection Text: WR_ONLY = Weekly Reports Only
Selection Text: WR_INCL = All Trip Types
Selection Text: WR_EXCL = Business Trips Only
Selection Text: TESTLAUF = Test Print
Selection Text: SW_ANTRG = Print Travel Request
Selection Text: SA_ONLY = Separation Allowances Only
Selection Text: PTZUO = Employee Grouping: Travel
Selection Text: PERKOMPL = Print Period Again?
Selection Text: FIRMA = Paid Receipts
Title: Summarized Form 2 for Travel Expenses Accounting
Text Symbol: T05 = are included.
Text Symbol: T04 = lump sum taxable amount
Text Symbol: T01 = In the total reimbursement amount
Text Symbol: S27 = Meals
Text Symbol: S26 = Curr.
Text Symbol: S25 = Indiv.recpts
Text Symbol: S24 = in
Text Symbol: S23 = Expense categories
Text Symbol: S22 = Totals
Text Symbol: S21 = Individ rect totals
Text Symbol: S20 = Reimbursem.
Text Symbol: S19 = Mls/kms
Text Symbol: S18 = Addit.amt.
Text Symbol: S17 = Advance
Text Symbol: S13 = Week
Text Symbol: S12 = Paym.amount
Text Symbol: S11 = Receipts
Text Symbol: S10 = TravCsts
Text Symbol: S09 = Accomm.
Text Symbol: S08 = Recpt
Text Symbol: S07 = Meals
Text Symbol: S06 = Recpt
Text Symbol: VAL = Allowed entry values:
Text Symbol: Y05 = Print Business Trips/Weekly Reports/Separation Allowances
Text Symbol: Y04 = Print Business Trips/Weekly Reports
Text Symbol: Y03 = Print Parameters





Text Symbol: Y02 = Overview of Expense Types/Categories
Text Symbol: Y01 = Travel Privileges
Text Symbol: W21 = After Balancing
Text Symbol: W20 = Trip
Text Symbol: W19 = Passngr
Text Symbol: W18 = Mileage
Text Symbol: W17 = Nights
Text Symbol: W16 = Diem
Text Symbol: W15 = Per
Text Symbol: W14 = After Balancing (Balancing per Trip)
Text Symbol: W13 = Before Balancing
Text Symbol: W12 = Total Amounts
Text Symbol: W11 = In
Text Symbol: W06 = Amount
Text Symbol: W05 = Ins.
Text Symbol: W04 = Exps
Text Symbol: W03 = Inc.-Rel.
Text Symbol: W02 = Amounts to be Balanced
Text Symbol: W01 = Balance Additional Amounts and Income-Related Expenses
Text Symbol: G06 = Flat Rate Taxation
Text Symbol: G05 = Payment Amount
Text Symbol: G04 = Additional Amount
Text Symbol: G03 = Advances
Text Symbol: G02 = Grand Total
Text Symbol: G01 = Totals
Text Symbol: F09 = Duplicate
Text Symbol: F08 = Test Print
Text Symbol: F04 = Cost Center:
Text Symbol: F03 = Name.....:
Text Symbol: F02 = Period...:
Text Symbol: F01 = PersNo...:
Text Symbol: E10 = Person rejected:
Text Symbol: E09 = Locked personnel number
Text Symbol: E04 = Please start standard form via RPRTEF00.
Text Symbol: E03 = cannot be represented in the summarized form.
Text Symbol: E02 = and
Text Symbol: E01 = Trips with different currencies
Text Symbol: BER = No authorization for personnel number
Text Symbol: BA8 = Public Transportation





Text Symbol: BA7 = Meals and Accommod.
Text Symbol: BA6 = Indiv Meals Statement
Text Symbol: BA5 = Paid by Company
Text Symbol: BA4 = Meals Receipts
Text Symbol: BA3 = Accommod Receipts
Text Symbol: BA2 = Other Receipts
Text Symbol: BA1 = Travel Cost Rects
Text Symbol: AKR = Entry Required
Text Symbol: G08 = Private Receipts
Text Symbol: S05 = to
Text Symbol: S04 = from
Text Symbol: S03 = Date
Text Symbol: S00 = Sort
Text Symbol: R88 = Entry not found in table T001. Argument:
Text Symbol: P58 = STOP: The two versions do not correspond. See release note for 3.0F.
Text Symbol: P57 = Version of current report for the same cluster
Text Symbol: P56 = Imported version of cluster TE
Text Symbol: P55 = STOP: The two versions do not correspond. See release note for 3.0F.
Text Symbol: P54 = Version of current report for the same cluster
Text Symbol: P53 = Imported version of cluster TS
Text Symbol: P13 = No entry in table $ for argument $:
Text Symbol: K04 = T R A V E L E X P E N S E S I N
Text Symbol: K02 = R E C E I P T S T A T I S T I C S
Text Symbol: K01 = T R A V E L E X P E N S E S I N XX.XXXX I N XXXXX
Text Symbol: K00 = Summarized travel expenses
Text Symbol: IIN = Error during initialization of summarized form.
Text Symbol: I15 = .
Text Symbol: I14 = control record not yet completed!
Text Symbol: I13 = The period entered is, according to
Text Symbol: I12 = as correction run!
Text Symbol: I11 = Accounting (PA03) is being repeated
Text Symbol: I10 = completed acc. to control record.
Text Symbol: I09 = Printing not possible until accounting
Text Symbol: I08 = Accounting (PA03) is already running!
Text Symbol: I07 = Control record has been created again.
Text Symbol: I05 = Control record (PA03)..:
Text Symbol: I04 = Accounting period......:


INCLUDES used within this REPORT RPRTEF02

INCLUDE RPRSTR00.
INCLUDE RPRACCTT.



INCLUDE RPRPNPPD.


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:

PTRV_F4_HELP_EXPENSE_TYPES CALL FUNCTION 'PTRV_F4_HELP_EXPENSE_TYPES' EXPORTING trip_provision_variant = sel_morei IMPORTING selected_expense_type = spkzl-low.

PTRV_F4_HELP_EXPENSE_TYPES CALL FUNCTION 'PTRV_F4_HELP_EXPENSE_TYPES' EXPORTING trip_provision_variant = sel_morei IMPORTING selected_expense_type = spkzl-high.

RP_OPTIONS_INTO_STRING CALL FUNCTION 'RP_OPTIONS_INTO_STRING' EXPORTING max_chosen_number = 15 delimiter_sign = '/' text_title = text_title_tmp text_left = text_left_tmp text_right = text_right_tmp status = 'ORDER' text_object = '' dyn_pushbutton_text1 = '' dyn_pushbutton_text2 = '' dyn_pushbutton_text3 = '' IMPORTING return_code = retcd TABLES text_symbol_relation_tab = sel_tab CHANGING string_value = EXCEPTIONS table_string_inconsistency = 01 unknown_status = 02.

TRIPS_LIST_PERIO_HEAD CALL FUNCTION 'TRIPS_LIST_PERIO_HEAD' EXPORTING employeenumber = ptrv_pernr old_versions = 'X' IMPORTING no_trips = no_trips TABLES perio = t_perio head = t_head EXCEPTIONS table_perio_read_error = 1 table_head_read_error = 2 tables_inconsistent = 3 OTHERS = 99.

CHECK_AUTH_AUTHP CALL FUNCTION 'CHECK_AUTH_AUTHP' EXPORTING datum = sy-datum pernr = ptrv_pernr is_head = wa_head "MAWK000377 is_perio = t_perio "MAWK000377 EXCEPTIONS no_authorisation = 1 "WKUK042958 no_infotype = 2. "WKUK042958



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