Fonction SAP /DSD/BAPI_ROUTEACCOUNT_CCUSVI0 - RA: Create Customer Visit Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ISGENERALHD /DSD/BAPIRAGENERALHD u 38 Route Settlement: Header Data

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Parameters

Paramètre Reférence Long. Facultatif Description
ETRETURN BAPIRET2 548 X Return Parameters
ITCUSTOMERADDR /DSD/BAPIRACUSTADDR 371 X Route Settlement: Customer Address (One-Time Customers Only)
ITCUSTOMERHD /DSD/BAPIRACUSTHD 19 Route Settlement: Customer Visit Header
ITEXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT

Functionality
You can use this BAPI to import the data from customer visits from amobile data-entry device (for example, a handheld) into the routeaccounting database.
You must also enter at least general header data (using the structureISGENERALHD) and delivery execution header data (using tableITCUSTOMERHD) as input parameters.
Function modules from the following funtion groups are used in the BAPI:
- /DSD/HH_UL_ALE (DSD - Route Accounting Upload: Generated ALE inboundprocessing)
- /DSD/HH_UL_CONVERT (DSD - Route Accounting Upload: Field conversions)
- /DSD/HH_UL_MISC (DSD - Route Accounting Upload: Miscellaneous, such as
, Authority Check, Application Log...)
After you call the function module, table ETRETURN (of type BAPIRET2)contains all the log entries created by the process. Depending on theCustomizing settings, an application log is/is not created from thetable.
The BAPI is assigned to the method CCusVi0 of the business object/DSD/RTACC as API function.

Notes
Transaktionssteuerung
The BAPI does not perform a database commit nor a rollback work. Thismeans that the calling application has to instigate the commint orrollback work in order for changes to be made to the database. The BAPIsBAPI_TRANSACTION_COMMIT and BAPI_TRANSACTION_ROLLLBACK are available forthis. For more information about the BAPIs, see the function group'BAPT'.

Description
Return parameter

Description
Route accounting: Header data

Description
Return parameter

Description
Route accounting: Customer address (only for CPD customers)

Description
Route accounting: Customer visit header

Description
Reference structure for BAPI parameter ExtensionIn/ExtensionOut