Fonction SAP BAPI_TRIP_CREATE_FROM_DATA - Create Employee Trip with CallTransaction on PR01

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BATCH_INPUT_ONLY BAPITRVXXX-BOOLEAN C 1 X Checkbox
BATCH_SESSION_NAME APQI-GROUPID C 12 X
CHANGE BAPITRVHIS u 66 X Entries in Table AEND, Structure for BAPI Interface
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Employee's Personnel Number
FRAMEDATA BAPITRMAIN u 371 General Trip Data
STATUS BAPITRVSTA u 2 X Trip Status

Paramètre Reférence Type Long. Description
EMPLOYEENUMBER BAPIEMPL-PERNR N 8 Employee's Personnel Number
RETURN BAPIRETURN u 452 Return Value (Instead of Exceptions)
TRIPNUMBER BAPITRIP-TRIPNO N 10 Trip Number

Paramètre Reférence Long. Facultatif Description
ADDINFO BAPITRADDI 376 X Additional Receipt Information
ADVANCE BAPITRVSCH 36 X Advance
COSTDIST_MILE BAPITRVCOM 368 X Cost Distribution for Miles/Kms Distribution
COSTDIST_RECE BAPITRVCOR 374 X Cost Distribution for Receipts
COSTDIST_STOP BAPITRVCOS 367 X Cost Distribution for Stopovers
COSTDIST_TRIP BAPITRVCOT 365 X Cost Distribution for Entire Trip
DEDUCTIONS BAPITRVDED 31 X Deductions
MILEAGE BAPITRVMIL 181 X Miles/Km Distribution
RECEIPTS BAPITRVREC 67 X Receipts
STOPOVER BAPITRVSTO 245 X Stopovers
TEXT BAPITRTEXT 76 X Trip Text

Functionality
The method EmployeeTrip.CreateFromData is used to create employeetrips in the Travel Management Module of the SAP system.
The following import parameters are available:

  • EmployeeNumber (personnel number of the employee for whom an
  • employee trip is to be created)
    • Framedata (Framework data for the employee trip)

    • Status (the status of the employee trip, which is to be set)

    • Furthermore, the following tables are available as import parameters:
      • Receipts (trip receipts)

      • Addinfo (additional receipt information)

      • Advance (trip advances)

      • Text (additional trip information, receipt editor)

      • Mileage (miles/kms distribution)

      • Stopover (trip stopovers)

      • Deductions (trip deductions)

      • CostDist_Trp (cost distribution for entire trip)

      • CostDist_Stop (cost distribution for stopovers)

      • CostDist_Rece (cost distribution for receipts)

      • CostDist_Mile (cost distribution for miles/kms distribution)

      • If the method call runs without errors, the trip number assigned by theSAP system is returned to the TripNumber field (internal tripnumber assignment is a precondition for this function).
        The status of the method call can be determined from the returnparameter Return after the method has been performed.

        Further information
        Information on the fields in the individual tables can be found instructure documentation or the Data Dictionary.

        Description
        Personnel number

        Description
        List of return parameters is output here

        Description
        Trip number

        Description
        Only create batch input folder

        Description
        Batch input folder name

        Description
        Trip Changes

        Description
        Personnel number

        Description
        General trip data

        Description
        Trip status

        Description
        Additional receipt information

        Description
        Trip Advances

        Description
        Cost distribution for miles/kms distribution

        Description
        Cost distribution for receipts

        Description
        Cost distribution for stopovers

        Description
        Cost distribution for entire trip

        Description
        Deductions for a trip

        Description
        Miles/Kilometers distribution

        Description
        Travel expense receipt

        Description
        Trip stopovers

        Description
        Additional trip information

802479Portugal country version: 'Night of' in PR01
843628BAPI_TRIP_CREATE_FROM_DATA: Portugal/number of nights
791699PR01: Deduction 'Night for' is not saved
679272Batch input: Error with many deductions
686177Manually entered exchange rates are not transferred
685779Indicator for per diem meals is not set
594755Creating several trips/day with BAPI_TRIP_CREATE_FROM_DATA