cancel
Showing results for 
Search instead for 
Did you mean: 

Add new item to copy of 0ADHOC template

Former Member
0 Kudos
173

Hi,

I'm working on a BW35 system and have made a copy of the web template 0ADHOC. Now I want to add an extra item (query view selection) to the first tab (ie Data Analysis). This item should only be visible on the first tab.

I found the following logic in the template: Every tab has its own Group Number. Every item that should be displayed on one of the tabs has a technical name starting with that group number. For example: Tab Data Analysis is Group1 and its items start with GR1*.

So when you click on one tab, ALL items are hidden and ONLY the items of the specific group are 'unhidden'.

So I thought I add a new item to the template with a name starting with GR1*. Unfortunately life is not that easy!

Can anybody tell me what more I need to do?

Regards,

Patrick van Os

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In my opinion, you need to adapt the "sub-template" 0ADHOC_TABLE, which contains the items displayed on the first tab.

Hope it helps.

LauQ

Former Member
0 Kudos

Hi LauQ,

Thanks for your reply, but 0ADHOC_TABLE only contains the toolbar for the first tab.

regards,

Patrick

Former Member
0 Kudos

OK sorry,

Try replacing the bold sentences in:

<!-- Data table: GR1Table--->

<object>

<param name="OWNER" value="SAP_BW"/>

<param name="CMD" value="GET_ITEM"/>

<param name="NAME" value="GR1Table"/>

<b> <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>

<param name="DATA_PROVIDER" value="DP"/> </b>

<param name="WIDTH" value="380"/>

<param name="GENERATE_CAPTION" value=""/>

<param name="BLOCK_SIZE" value="25"/>

<param name="BLOCK_SIZE_COLUMNS" value="10"/>

ITEM: GR1Table

</object>

by

<b> <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEMPLATE"/>

<param name="TEMPLATE_ID" value="<i> YOUR TEMPLATE ID</i>"/>

</b>

where you refers to YOUR TEMPLATE ID, which contains the result table based on Data Provider DP as well as your view selection.

This should be tested!

Tell me...

Former Member
0 Kudos

Hi,

please do not add web items to subtemplates in this case , as you will get problems when this tab is not displayed and you bookmark it. All Web Items should reside in the main template.

Can you please tell me what exactly is not working with your first approach?

Did you really set the correct name?

Heike

Former Member
0 Kudos

Hello Heike,

I have added a query view selection just above the navigation block and have named it GR1QUERY. I have nothing changed in the HTML source code. When I start the report I see the dropdown. When I click e.g the Graphical Display tab, the report jumps to the variable entry screen.

When I name the query view selection XXXQUERY the tab functionality is working fine, but on every tab I see the dropdown menu.

Regards,

Patrick