SAP MDG · COMMUNITY

How do I integrate the BCV side panel into a Web Dynpro ABAP application?

Integrate BCV in three parts: confirm prerequisites, initialize the side panel API, and tag the hosting application values. For plain Web Dynpro, the guide uses `CL_WD_SIDE_PANEL_API=>GET_API( )`, `MO_API->INIT`, the `OPEN_SP` action, and `PAGE_HEADER` as the page header ID; `CONTEXT_KEY` is the mandatory BCV tag.

Integrate BCV in three parts: confirm prerequisites, initialize the side panel API, and tag the hosting application values. For plain Web Dynpro, the guide uses `CL_WD_SIDE_PANEL_API=>GET_API( )`, `MO_API->INIT`, the `OPEN_SP` action, and `PAGE_HEADER` as the page header ID; `CONTEXT_KEY` is the mandatory BCV tag.

BCV side panel integration in Web Dynpro follows one pattern: configure BCV usage, initialize the side panel, and tag the hosting application data so the panel can show context-sensitive content. The guide supports plain Web Dynpro ABAP as well as FPM-based applications. For plain Web Dynpro, the sample uses `CL_WD_SIDE_PANEL_API=>GET_API( )`, `MO_API->INIT`, a page header named `PAGE_HEADER`, and an action named `OPEN_SP`.

Process flow

  1. Confirm `SAP_BS_FND` is installed and `/BCV/MAIN` is active.
  2. Check user authorization for BCV execution, using `SAP_BCV_ADMIN` as a template if needed.
  3. Create or identify a BCV context key and configure the relevant meanings, queries, and query views.
  4. For plain Web Dynpro, add a view attribute `MO_API` of type `IF_WD_SIDE_PANEL_API`.
  5. Retrieve the current view using `WD_THIS->WD_GET_API( )` and the side panel API using `CL_WD_SIDE_PANEL_API=>GET_API( )`.
  6. Initialize the side panel with `MO_API->INIT`, using the release-appropriate `SIDE_PANEL_CONFIG_ID` and `OPEN_ACTION_NAME = 'OPEN_SP'`.
  7. Create the page header with the exact name `PAGE_HEADER`.
  8. Implement the `OPEN_SP` action to call `WD_THIS->MO_API->OPEN( )`.
SWF5

Check business function /BCV/MAIN

Verify that the BCV business function is active.

SM30

View /BCV/V_CLF

Create or maintain the BCV context key.

Referenced tables

ObjectPurpose
TADIRRepository directory concept referenced for object ownership in the related ABAP foundation examples; not part of the BCV guide itself.

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • How can I add the BCV side panel to an SAP MDG screen?
  • What is the general BCV side panel integration process?
  • How does a hosting application integrate Business Context Viewer?

Possible questions

  • Which Web Dynpro applications can use the BCV side panel?
  • Does BCV work with FPM?
  • What are the prerequisites for BCV side panel integration?
  • Do I need a context key for the side panel?
  • What authorization is required for BCV?

Keywords

BCVBusiness Context ViewerWeb Dynpro ABAPhosting applicationside panelSAP MDGFPMPlain Web DynproSAP_BS_FNDBS_BUSINESS_CONTEXT_VIEWERBS_REUSE/BCV/MAINSWF5SAP_BCV_ADMINcontext keyPAGE_HEADEROPEN_SPCL_WD_SIDE_PANEL_APIIF_WD_SIDE_PANEL_APIMO_APItagging