Ansicht
Dokumentation

VLC_PRESELECTION - BAdI: Preselection of Vehicle Models

VLC_PRESELECTION - BAdI: Preselection of Vehicle Models

BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This BAdI is used in the Vehicle Management System (VMS). It enables you to make a preselection of vehicle models. It should be used only in cases where the class hierarchy for vehicle model preselection is also used.

A class hierarchy should have been predefined and all VMS vehicle models must already have been assigned to the hierarchy. If this is not the case and a vehicle model comes is used that has not been assigned to the hierarchy, transaction VELO will return an error and terminate.

An implementation of the BAdI should use the two existing methods for the following purposes:

  • Method GET_ROOT_CLASS: returns the root class of the class hierarchy. A flag determines whether the class hierarchy should be displayed first instead of the preselection model list in VMS.
  • Method UPDATE_TREE_ICONS: can be used to change/update the icons of the classes and vehicle models used in the vehicle preselection tree.

Implementation for method GET_ROOT_CLASS:

,,METHOD if_ex_vlc_preselection~get_root_class.

,,,,cv_rootclass = 'VMSROOT'.,," sets the root of the class hierarchy for vehicle model preselection

,,,,cv_classdefault = 'X'.,,,," sets the preselection tree to be displayed initialy

,,ENDMETHOD.

Implementation for method UPDATE_TREE_ICONS:

,,METHOD if_ex_vlc_preselection~update_tree_icons.

,,,,DATA: nodetable_ls TYPE treev_node.

,,,,LOOP AT nodetable_ct INTO nodetable_ls.

,,,,,,IF nodetable_ls-isfolder EQ 'X'.

,,,,,,,,nodetable_ls-n_image = '@IC@'.

,,,,,,,,nodetable_ls-exp_image = '@PN@'.

,,,,,,ELSE.

,,,,,,,,nodetable_ls-n_image = '@AW@'.

,,,,,,,,nodetable_ls-exp_image = '@AW@'.

,,,,,,ENDIF.

,,,,,,MODIFY nodetable_ct FROM nodetable_ls.

,,,,ENDLOOP.

ENDMETHOD.






ROGBILLS - Synchronize billing plans   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 2111 Date: 20240523 Time: 162758     sap01-206 ( 32 ms )