Fonction SAP BAPI_TRIP_REPORT_GET_DATA - Weekly Report Detail (Output of Tables)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Employee's Personnel Number
GET_TRIP_FROM_MEMORY BAPITRVXXX-BOOLEAN C 1 ' ' X
LANGUAGE BAPITRVXXX-LANGU C 1 SY-LANGU X Language Key
TRIPNUMBER BAPITRIP-TRIPNO N 10 Trip Number

Paramètre Reférence Type Long. Description
DESTINATION BAPITRIP-LOCATION C 17 Destination for Week (if Any)
REASON BAPITRIP-CUSTOMER C 17 Reason (if Any)
RETURN BAPIRETURN u 452 Return Value (Instead of Exceptions)
STARTDATE BAPITRIP-DEP_DATE D 8 Beginning Date of Weekly Report
STATUS BAPITRSTAO u 79 Trip Status

Paramètre Reférence Long. Facultatif Description
ADDINFO BAPITRADDI 376 X Additional Receipt Information
AMOUNTS BAPITRVSUM 136 X Table of Different Trip Amounts
EMP_INFO BAPITRVEMP 201 X Employee Data
RECEIPTS BAPITRVREO 112 Receipts for Week
TEXT BAPITRTEXT 76 X Text Table
WEEK BAPITRWEEK 57 Table of Daily Data (Date, Reason, Customer, Miles/Km)

Functionality
The method EmployeeTrip.GetDetailsWeekly returns all tables andparameters belonging to a travel expenses weekly report that was createdwith the method EmployeeTrip.CreateFromDataWeekly in the SAPsystem.
The structures Emp_Info and Amounts are filled as well.The structure Emp_Info contains information on the employee, while thestructure Amounts contains different amounts of travel expenseaccounting.
The individual fields of the structures can be found in the DataDictionary.

Description
Week destination (if applicable)

Description
Reason (if any)

Description
List return parameters is output here

Description
Beginning date of weekly report

Description
Trip status

Description
Personnel number

Description
Trip data is read from the memory. If the parameter is set
the system tries to read trip data from ABAP Memory and not from
the database. This is necessary if the simulation function or
creation of trip statistics is called within a trip that has not yet
been saved. At this point in processing the trip data does not yetexist
in the database and can, therefore, not be read.
Only for internal usage in Travel Management.

Description
Language key

Description
Trip number

Description
Additional receipt information

Description
In the field string amounts the different amounts for a trip arelisted.
These amounts include:

  • The additional amount, which is to be taxed by the employee
  • (Addit_Amnt field)
    • The reimursement amount (Reimb_amnt field)

    • The total advances (Sum_Advanc field)

    • The payment amount (Sum_payout field)

    • The total of the receipts paid by company (Sum_paidco field)

    • The total costs of trip (Trip_total field)

    • In addition to the amounts, the structure also contains the relevantcurrency (Currency field) and the number of decimal places for thecurrency (Curdec field).

      Description
      Employee information

      Description
      Receipts of the week

      Description
      Text for additional trip information

      Description
      Table with daily dates (date, reason, customer, miles/kms)