SAP ABAP IMG Activity VLC_PREPARE_ACTION (BAdI: Preparation of Actions)
Hierarchy
ECC-DIMP (Software Component) DIMP
   IS-A-VMS (Application Component) Vehicle Management System
     ISAUTO_VLC (Package) Vehicle Management System (VMS)
IMG Activity
ID VLC_PREPARE_ACTION BAdI: Preparation of Actions  
Transaction Code S_KA5_12001305   (empty) 
Created on 20021129    
Customizing Attributes VLC_PREPARE_ACTION   BAdI: Preparation of Actions 
Customizing Activity VLC_PREPARE_ACTION   BAdI: Preparation of Actions 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name VLC_PREPARE_ACTION    

Use

This business add-in (BAdI) is used in the Vehicle Management System (IS-A-VMS) component.

You can use this BAdI to call your own actions that you have implemented in VMS.

It has the following methods:

  • PREPARE_FURTHER_ACTIONS: call PREPARE function modules from your own actions. You do this in the same way as when you call the EXECUTE functions modules for your actions from the method EXECUTE_FURTHER_ACTIONS for BAdI VLC_EXECUTE_ACTION.

The method must contain a CASE statement, which is the same as the CASE statement in the function module VELO09_ACTION_DATA_PREPARE_INT. You must add a WHEN clause for each of your actions that has a PREPARE function module.

Method PREPARE_FURTHER_ACTIONS is called when an action is selected, that is, before the action screen is called. It has the following parameters:

  • ACTION_TO_BE_PERFORMED_IV
    Action that is currently being called. Generally, this is identical to ELEMENTARY_ACTION_IS-AKTION. It is only different from this action if an alias action has been defined for ELEMENTARY_ACTION_IS-AKTION in Customizing for the actions. In this case, ACTION_TO_BE_PERFORMED_IV contains the value ELEMENTARY_ACTION_IS-ALIASACTION. The CASE statement must be built for this parameter.
  • INCOMING_ACTION_IS
    All data available in Customizing for the actions for the action called. If an interlinking action was called, this parameter contains the data for it.
  • ELEMENTARY_ACTION_IS
    All data for the elementary actions that is available in Customizing for the actions. If the INCOMING_ACTION_IS is not an interlinking action, both parameters are identical.
  • LIST_OF_VEHICLES_IT
    All vehicles for which the action was called.
  • VLCGUIDCUOBJ_ET
    Configuration (identified by your key CUOBJ) that is used as the template configuration in the action. If an action changes the sales order, the CUOBJ must be returned from the sales order for all vehicles, for example. If the user later chooses the function Configure on the action screen, this table will be used to determine which configuration has to be called.
  • VLCACTDATA_CS
    Data that is required to execute the action. In particular, this structure is used to exchange data between the action screen and the VMS. As all of the fields used on the action screen must be present in this structure, you can prepopulate the fields on the action screen by filling the fields in this structure.
  • REFRESH_VEHICLES: reads the current vehicle data from the database again before the action screen is structured. This ensures that the most current data is always displayed on the action screen.

    The method has the following parameters:

    • ACTION_IS: data of the action being performed
    • VLCDISPLALV_ACTION_CT: table with the vehicle data for display in an ALV (SAP List Viewer)
    • VLCDIAVEHI_CONF_CT: table with the vehicle data and the appropriate configuration data
  • DATA_CHANGES_BEFORE_PREPARE
    • Method has a similar interface to PREPARE_FURTHER_ACTIONS
    • It is called before the preparing function module is called in order to allow any necessary changes
  • DATA_CHANGES_AFTER_PREPARE
    • Method has a similar interface to PREPARE_FURTHER_ACTIONS
    • It is called after the preparing function module is called in order to allow any necessary changes

Requirements

Standard settings

This BAdI does not have a default implementation.

Activities

Procedure for Implementing a BAdI

Example

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_PREPARE_ACTION 0 KA50000029 Vehicle Management System 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20021129 
SAP Release Created in 471