Hierarchy

⤷

⤷

IMG Activity
ID | VLC_PRESELECTION | BAdI: Preselection of Vehicle Models |
Transaction Code | S_ALI_97000085 | (empty) |
Created on | 20040604 | |
Customizing Attributes | VLC_PRESELECTION | BAdI: Preselection of Vehicle Models |
Customizing Activity | VLC_PRESELECTION | BAdI: Preselection of Vehicle Models |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | VLC_PRESELECTION |
Use
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.
Requirements
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.
Standard settings
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.
Activities
Example
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.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | VLC_PRESELECTION | 0 | KA50000029 | Vehicle Management System |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20040604 |
SAP Release Created in | 500 |