SAP Function /DSD/BAPI_ROUTEACCOUNT_CTDIST0 - RA: Create Tour Distance Sheet

Parameter Reference Type Length Default Optional Text
ISGENERALHD /DSD/BAPIRAGENERALHD u 38 Route Settlement: Header Data

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Return Parameters

Parameter Reference Length Optional Text
ETRETURN BAPIRET2 548 X Return Parameters
ITEXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
ITTOURDIST /DSD/BAPIRATOURDIST 32 Route Settlement: Tour Distance

Functionality
By means of this BAPI you can import distance data from a mobile dataentry device (e.g. handheld) into the Route Accounting DB.
At least the general data (by means of the structure ISGENERALHD) andthe tour distnace data (by means of the table ITTOURDIST) must also beprovided as input parameters.
In the BAPI function modules of the following function groups are used:
- /DSD/HH_UL_ALE (DSD - Route Accounting Upload: generated ALE inputprocessing)
- /DSD/HH_UL_CONVERT (DSD - Route Accounting Upload: Field conversions)
- /DSD/HH_UL_MISC (DSD - Route Accounting Upload: Other, such asAuthority Check, Application Log...)
When the function module has been called, the table ETRETURN (of thetype BAPIRET2) contains all log entries created by the process.Depending on the Customizing settings, an application log is createdfrom the table or not.
The BAPI is assigned to the method CTDist0 of the business object/DSD/RTACC as API function.

Notes
Transaction control
The BAPI neither executes a database commit nor a rollback work.Therefore the calling application needs to initiate the commit or therollback work to make the changes in the data base. To do so, the BAPIsBAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLLBACK are madeavailable. Further information on the BAPIs can be found in thefunction group 'BAPT'.

Further information

Description
Return parameter

Description
Route accounting: Header data

Description
Return parameter

Description
Reference structure for BAPI parameter ExtensionIn/ExtensionOut

Description
Route accounting: Tour distance