Overview | Adapting SP Content | Building CHIPs |
This blog post is the third part of the SDN series about the Side Panel for Business Suite. For a first overview about the topic please refer to the blog post Side panel for SAP Business Suite - Overview. For a detailed description how to adapt SAP's Side Panel content and create new content please refer to the blog post Side panel for SAP Business Suite (2).
This post describes the procedure how to build a master data and a chart-based CHIP. To understand the procedure how to achieve this, it is important to know the typical components of a Web Dynpro CHIP:
Please note: only for the feeder class a few lines of ABAP coding must be written, while all other parts are pure configuration.
More examples for other CHIPs can be found in the Business Suite Side Panel Documentation.
A BOR object for our master data CHIP is needed on the one hand to define the business object the CHIP deals with and (more importantly) to ensure that the correct information is transported from the transaction to the CHIP via tagging. For a detailed description about tagging please refer to the blog post Side panel for SAP Business Suite (2).
The CHIP framework later automatically uses the BOR object to determine the key fields and to create so-called dynamical inbound ports to read these (tagged) fields.
Within the transaction SWO1 search for an already existing BOR object type for your master data object or create a new BOR object. If the CHIP should display detailed company data the corresponding BOR object could be BUS0014 (Company). Check if the key fields (in this example the CompanyID) are defined correctly and if a display method exists.
Before you actually create the feeder class for your CHIP, search for a BAPI or a RFC-enabled function module that returns detailed master data for your object. Analyze the defined structures of the BAPI result structures.
Within the ABAP workbench create a feeder class that inherits from super class CL_BSSP_DETAIL_FORM. This super class handles for example the creation of dynamical inbound ports based on the key fields of the BOR object, the import of GUI data and the automatic link to the master data maintenance transaction.
If relevant DDIC structures are not available in the development system, you have to create class types that correspond to the structures of the BAPI/RFC module result in the feeder class.
Redefine the following methods in the feeder class:
·
Create a new Web Dynpro component configuration. Make sure the component name is set to FPM_FORM_UIBB_GL2.
Within the component configuration, set the Layout type to 8/1, the feeder class to the one you created in step 2.), the main key-field as a “Navigation Link” and assign the FPM-event LINK_SELECTED to the main key-field.
Create a new Web Dynpro component configuration for the wrapper component FPM_UCW_COMPONENT. Make sure that the component configuration uses the UIBB configuration of the previous step.
Create the actual Web Dynpro CHIP and provide both name and description for the CHIP. At “Component” fill FPM_UCW_COMPONENT and at “Component Name” use the previously created component configuration.
If you want add your CHIP to the CHIP catalog BSSP_CHIP_CATALOG, you must create your own CHIP provider pages for the CHIP catalog.
Similar to step 3.), create a new Web Dynpro component configuration. Make sure the component name is set to WDR_CHIP_PAGE. The component configuration must follow the naming convention ZZSP_PROVIDER*. Enter the component configuration and select the CHIP Provider checkbox in the context attributes.
Add your CHIPs under the context node “chipUsages Variant (1) under New -> chipUsages.
For each CHIP, add the CHIP URL X-SAP-WDY-CHIP:CHIP_NAME (for instance X-SAP-WDY-CHIP:BSSP_COMPANY for the CHIP BSSP_COMPANY).
Remark: All following steps are already described in the SDN blog post “Side panel for SAP Business Suite (2) – Adapting SAP’s Side Panel content and creating new content”.
There are various superclasses available for creating chart CHIPs which offer possibilities to access data from different data sources.
This article focuses on charts which read their data from an underlying POWL.
Follow the steps which are described in the Section “How to create a master data CHIP” – 1.) Search for an existing business object (BOR object)”.
Before you actually create the feeder class for your CHIP, analyze whether it is possible to reuse an already existing POWL to show its data (for certain categories) in the chart CHIP.
Within the ABAP workbench create a feeder class that inherits from one of the super classes (CL_BSSP_GRAPHICS_*) above. This super class handles for example the creation of dynamical inbound ports based on the key fields of the BOR object, the import of GUI data and the data selection. We use here CL_BSSP_GRAPHICS_POWL in this article.
Redefine the following methods in the feeder class.
Please note that you need to redefine other methods for other super classes:
1. For CL_BSSP_GRAPHICS_FUNC you have to redefine the following methods
2. For CL_BSSP_GRAPHICS_ODATA you have to redefine the following methods
3. For CL_BSSP_GRAPHICS_ODP you have to redefine the same methods as for CL_BSSP_GRAPHICS_POWL (except for the method <CL_BSSP_GRAPHICS_*>~CHANGE_DATA).
Create a new Web Dynpro component configuration. Make sure the component name is set to BS_ANLY_CHART_UIBB.
Within the component configuration, fill the feeder class with the one you just create during step 2.).
Please note that for charts which read their data from an ODP or a function module you need to define as a next step a Web Dynpro FPM wrapper component configuration (as mentioned above for master data CHIPs).
Create the actual Web Dynpro CHIP and provide both name and description for the CHIP. At “Component” fill BS_ANLY_CHART_UIBB and at “Component Name” use the previously created component configuration.
Follow the steps which are described in the Section “How to create a master data CHIP” – 6.) (optional) Create Customer-specific CHIP Provider Pages for the CHIP catalog”.
Business Suite Documentation:
http://help.sap.com/erp2005_ehp_06/helpdata/en/58/327666e82b47fd83db69eddce954bd/frameset.htm
SDN Article “Side panel for SAP Business Suite – Overview”:
http://scn.sap.com/community/erp/blog/2013/02/25/side-panel-for-sap-business-suite
SDN Article “Side panel for SAP Business Suite (2) – Adapting SAP’s Side Panel content and creating new content”:
http://scn.sap.com/community/erp/blog/2013/03/18/side-panel-for-sap-business-suite-2--adapting-sap-s...
More examples for other CHIPs can be found in the Business Suite Side Panel Documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |