Ansicht
Dokumentation

/DSD/BAPI_VL_CREATEFROMDATA - Create Visit List

/DSD/BAPI_VL_CREATEFROMDATA - Create Visit List

BAL_S_LOG - Application Log: Log header data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to create a visit list without reference to a visit plan.

If you create a new visit list, you must enter header data (VLH_IN) as import parameters. The sequence in which you add the customers to the visit list determines the sequence in which the customers are visited.

You can assign texts and reference documents at header and item level to the new visit list.

You can use the SIMULATION parameter to specify that you only want the new visit list to be created in simulation mode, that is, that the data should not initially be written to the database.

The document number of the new visit list is returned by the system as a key field of the document.

Customer Enhancements

To add customer fields to the tables for the visit list, you can use the following BAPI Table Extensions:

  • Structure /DSD/BAPI_VC_TE_VLH for additional fields at header level
  • Structure /DSD/BAPI_VC_TE_VLH_R for additional fields for reference documents at header level
    If customer fields are added to the reference documents table, these fields must also be added to the structure /DSD/VC_DOC.
  • Structure /DSD/BAPI_VC_TE_VLP for additional fields at item level
    If customer fields are added to the item data table, these fields must also be added to the structure /DSD/VC_VL_TREE.
  • Structure /DSD/BAPI_VC_TE_VLP_R for additional fields for reference documents at item level
    If customer fields are added to the reference documents table, these fields must also be added to the structure /DSD/VC_DOC.

You can assign the relevant values to customer fields with the EXTENSIONIN table.

All data transferred to the BAPI is checked for consistency before further processing. By implementing the BAdI method VL_CHECK_CONSISTENCY, you can add your own checks or check the consistency of customer fields in the visit list tables.

Return messages

Messages are returned in the RETURN parameter. See the parameter documentation for the return values and their meanings.

Example

Notes

The following authorization object is checked with the activity 01 (Create): /DSD/VC_VL.

Further information

For more information, see the parameter documentation.





Parameters

EXTENSIONIN
RETURN
SIMULATION
VISITLIST_ID
VLH_IN
VLH_OUT
VLH_R_IN
VLID_EXTERN
VLP_IN
VLP_R_IN
VLTEXT_IN

Exceptions

Function Group

/SAPLVC_BAPI_VL

PERFORM Short Reference   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 3773 Date: 20240420 Time: 005656     sap01-206 ( 51 ms )