Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Using the StructureViewFunctionHandler2-Callback-mechanism it is possible to handle drag-and-drop events with in the ASV on nodes. With this technique such things as assignment of properties like material using the ASV is possible. An example drag-and-drop handler may look like the following example:


// ----------------------------------------------------
// drop handler
// ----------------------------------------------------
conn.structureViewHandler().registerFunctionHandler2(StructureViewFunctionNames.OBJECT_DROPPED, new StructureViewFunctionHandler2()
  public void actionPerformed(String fnc, Collection<String> nodeIds, GenericDataNode genData)
    logger.trace("----- DROP HANDLER -----");
    Collection<PlmObjectDataNode> plmObjects = StructureViewDataNodes.getPlmObjects(genData);
    for (PlmObjectDataNode plmObj : plmObjects)
      logger.trace("Object " + plmObj.toString());



  • No labels