SAP ABAP IMG Activity ADS2KIPBRO_CTXMENU (Context Menu Options in IP)
Hierarchy
ECC-DIMP (Software Component) DIMP
   IS-AD-SPC (Application Component) Specification 2000
     ADS2KIPUPL_CL (Package) SPEC2000 Initial Provisioning Upload: Customising Layer
IMG Activity
ID ADS2KIPBRO_CTXMENU Context Menu Options in IP  
Transaction Code S_KA5_12001212   (empty) 
Created on 20021030    
Customizing Attributes ADS2KIPBRO_CTXMENU   Context menu options in IP 
Customizing Activity ADS2KIPBRO_CTXMENU   Context menu options in IP 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name ADS2KIPBRO_CTXMENU    

Use

A BAdI has been provided in transaction ADIP to add and execute customer-specific functions on the right-click menu in the tree.

The BAdI is provided for the following node types:

For Component View selection:

  • Sequence number in all views
  • All nodes in the default view
  • All nodes in the ATA 100-Part Number View
  • Part Number nodes in the Manufacturer View
  • Item nodes in the ATA 100-Chapters View
  • Part Number nodes in the Supplier View

For End Item View selection:

  • All nodes in the Where-User View
  • The Part Number (the node with the Part icon) and End Item Location nodes in the End Item View. In this case, the key values passed are SQNBR, PNR, MFR, EIP, EIM (the information about the part when used in the end item).

BAdI name: ADS2KIPBRO_CTXMENU

Requirements

Standard settings

Activities

  1. Use transaction SE19 to implement the BAdI.
  2. Enter an implementation name and choose Create
  3. In the Definition Name dialog box, enter BAdI name ADS2KIPBRO_CTXMENU.
  4. Enter a short text and save the BAdI implementation.
  5. Go to the Interface tab of the implementation. The name of the implementing class is displayed in the tab, along with two methods:
    • CONTEXT_MENU_REQ: To add the required menu function to the right-click menu
    • CONTEXT_MENU_SEL: To perform the required action on selecting the new menu option
  6. To add the desired menu option, double-click on method CONTEXT_MENU_REQ. The method CONTEXT_MENU_REQ, handles three parameters:
    • Two importing parameters: The selected node type and a table of the selected node#s key fields.
    • A table of function codes to be displayed is returned to the calling program (IP browser). You decide which menu options are needed based on the node type and the data selected.You can also select multiple parts and perform operations on them. The selected parts are passed to the BAdI method through the key fields table.
  7. Enter the function code table and return it to the IP browser program.The function code table contains three fields:
    • The desired function code: This has to begin with Z or Y
    • The function text to be displayed in the right-click menu
    • A hidden flag specifying whether the menu function appears or not (This can be used in cases where the menu option should be visible only for selected users)
  8. To perform the required operation, choose the menu option. The function code has to be handled inside the method CONTEXT_MENU_SEL. Double-click on this method on the BAdI implementation screen. The method CONTEXT_MENU_SEL handles three parameters, which are passed to the function module:
    • Node type selected
    • Key fields table for single/multiple node selections
    • Function code selected
  9. Activate the BAdI implementation.

Example

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
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 ADS2KIPBRO_CTXMENU 0 KAD0000015 Provisioning 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20021112 
SAP Release Created in 471