SAP Function TRIP_CREATE_INTERACTIVE_PR05 - Create Trip (Receipt Entry, Interactively on Screen)

Parameter Reference Type Length Default Optional Text
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Personnel Number
FRAMEDATA BAPITRCATS u 72 General Trip Data (Short Version)
STATUS BAPITRVSTA u 2 Trip Status to Be Set

Parameter Reference Type Length Text
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Personnel Number
RETURN BAPIRETURN u 452 Return Parameters
TRIPNUMBER BAPITRVXXX-TRIPNO N 10 Trip Number of Created Trip

Parameter Reference Length Optional Text
COSTDIST_TRIP BAPITRVCOT 365 Cost Distribution for Entire Trip

Functionality
The function module "TRIP_CREATE_INTERACTIVE_PR05" makes it possible tocreate a trip via receipt entry, displaying the entry screen "Trip datamaintain: Receipts" directly from receipt entry.
When this function module is called, different characteristics of thetrip to be created can be specified in advance.
This includes the following characteristics:

  • Trip duration

  • Beginning date and time (FRAMEDATA-DEP_DATE and FRAMEDATA-DEP_TIME)
    End date and time (FRAMEDATA-ARR_DATE and FRAMEDATA-ARR_TIME)
    • Trip destination

    • Reason for trip (FRAMEDATA-CUSTOMER)
      Trip location (FRAMEDATA-LOCATION)
      Country and region (FRAMEDATA-COUNTRY and FRAMEDATA-REGION)
      • Trip schema (FRAMEDATA-T_SCHEMA)

      • For possible values, see table T706S. If no value is specified, thefirst value of table T706S for the employee's travel accounting area isused. Only internal trip number assignment is possible.
        • Trip status (can only be set if the relevant authorization exists for
        • the person recording data!)
          Approval status (FRAMEDATA-APPROVED):
          1 - Request recorded
          2 - Request approved
          3 - Trip completed
          4 - Trip approved
          Accounting status (FRAMEDATA-ACCOUNT)
          0 - Open
          1 - To be accounted
          • Cost distribution for entire trip

          • The table contains the respective shares and the relevant cost objects.
            When the function module is called, the transferred values are setfirst and then the main screen of receipt entry is displayed.
            After leaving the Travel Accounting transaction, if a trip was created,the trip number is returned in the TRIPNUMBER field, or, if the userleft the transaction without saving, this field remains initialized andthe corresponding message is returned in the RETURN field.

            Notes
            The trip status and the account assignment information can only be setif the trip duration is also specified.
            When the trip country is set, make sure that it correlates with thetrip schema (there are usually different trip schemas for domestic andinternational trips).

            Preconditions
            Internal trip number assignment is necessary for the trip schema!