Creating Your Own Web Template
To create a Web template using the Gantt functionality, in the Web Application Designer, you copy the example template 0TPL_0CRM_C10_Q0004_V01 to your new template. You then have to make some changes to the settings on the HTML coding tab. The Web template that is used is a standard Web template and it uses one TableItem and a generic navigation block. There are also some JavaScript functions and an HTML form for navigation.
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_DATA_PROVIDER"/>
<param name="NAME" value="DATAPROVIDER_1"/>
<param name="QUERY" value="0CRM_C10_Q0004"/>
<param name="INFOCUBE" value="0CRM_C10"/>
DATA_PROVIDER: DATAPROVIDER_1
</object>
The value of the name parameter must be DATAPROVIDER_1 as this value is hardcoded inside the JavaScript functions. The parameter QUERY and INFOCUBE must point to the Query and InfoProvider being used.
The context menu for each characteristic value must be switched off unless you want to use Portal Navigation.
The TEMPLATE_ID parameter must point to the new template name.
The two parameters below are important. The first one toggles the context menu on and off. The second one disables SAP NetWeaver Business Intelligence (SAP NetWeaver BI) shortcuts that are in conflict with the Gantt diagram operations.
<param name="ONLY_HIERARCHY_NAVIGATION" value="X"/>
<param name="SNIPPET_OPERATIONS" value=""/>
This is the standard table item with some additional parameters.
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TABLE_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="GENERATE_CAPTION" value=""/>
<param name="CAPTION" value="__initial__"/>
<param name="BLOCK_SIZE" value="25"/>
<param name="MODIFY_CLASS" value="CL_RSMRM_MKTCAL_MT_GANTT"/>
<param name="GANTT_INT_PARAM" value="INIT"/>
<param name="GANTT_INT_CUSTID" value="0GANTT_01"/>
ITEM: TABLE_1
</object>
The name and data provider value must be TABLE_1. The caption value must be _initial_ and the Generate_Caption must be switched off. BLOCK_SIZE allows you to change the number of records shown at any time.
MODIFY_CLASS is important as it points to the ABAP class CL_RSMRM_MKTCAL_MT_GANTT. This class needs two parameters. GANTT_INT_PARAM must be INIT to be able to distinguish the first call. GANTT_INT_CUSTID points to the Customizing ID created in the RSMRM_MKTCAL_CUST transaction. This transaction contains the additional settings needed for creating the Gantt diagram. You must do this if you want to use another query or if the settings need to be changed.
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="NAVIGATIONBLOCK"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="MODIFY_CLASS" value="CL_RSMRM_MKTCAL_MT_FILTER"/>
<param name="CLOSED" value="X"/>
ITEM: NAVIGATIONBLOCK
</object>
This item is the standard generic navigation block with an additional MODIFY_CLASS parameter. This parameter points to an ABAP class that removes the drill-down option because it is not allowed.
If you want to change the heading of the marketing journal, proceed as follows:
Create an ABAP program or use an existing one.
Create a new text element in this program with your heading.
Search for <SAP_BW_TEXT PRGRAM="RSMRM_MKTCAL_CUST"KEY="034" and replace RSMRM_MKTCAL_CUST with your program name. Replace 034 with the number of the new text element.