Ansicht
Dokumentation

DPVMS_BADI_GET_HISTO - BAdI: Determination of Sales Documents for Vehicle History Entries

DPVMS_BADI_GET_HISTO - BAdI: Determination of Sales Documents for Vehicle History Entries

PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Vehicle Management System (IS-A-VMS) component.

You can use this BAdI to determine which sales document is linked to a single entry in the dealer portal for VMS vehicle history.

The BADI is filter dependent. In the filter, the ACTDOCTYPE coming from the vehicle history entry is provided.

An implementation of this BAdI must be created for every ACTDOCTYPE for which the vehicle history should allow to branch to the related sales document. This ACTDOCTYPE must be used as filter value for the BAdI implementation.

The method GET_HISTORY_DOCUMENT provides the changing parameter CS_HISTORY which corresponds to one entry of the vehicle history. Using the vehicle GUID, the implementation has to retrieve the following data from the VMS document tables and fill it in the corresponding fields of CS_HISTORY:

  • VBELN: document number of the sales document
  • POSNR: item number of the vehicle within the document
  • AUART: the sales document type of the document

  • In the standard system, the BAdI implementation DPVMS_BI_HISTORY_CUOR is activated. The default code is executed automatically for all history entries that have the ACTDOCTYPE "CUOR" (standard VMS sales order).
  • The BAdI is designed for multiple use. All activated implementations are called and executed.
  • The BAdI is filter-dependent.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

The implementation DPVMS_BI_HISTORY_CUOR can be used as example for other ACTDOCTYPEs.






CL_GUI_FRONTEND_SERVICES - Frontend Services   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 2531 Date: 20240523 Time: 172658     sap01-206 ( 93 ms )