Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

multiple dataprovider - single variable - View

Hi!

I have a web report connected to two dataprovider : one which refers to a query for the table, the navigation

bloc ; an other one which refers to a view, allowing me to have a specific chart.

my pb is that the user have to select twice the same variable... how can I do that??

for information : the html code

<HTML>
<!-- BW data source object tags -->
<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="SET_DATA_PROVIDER"/>
         <param name="NAME" value="DATAPROVIDER_2"/>
         <param name="DATA_PROVIDER_ID" value="ZSDC01_FAC_VIEW"/>
         DATA_PROVIDER:             DATAPROVIDER_2
</object>

<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="SET_DATA_PROVIDER"/>
         <param name="NAME" value="DATAPROVIDER_1"/>
         <param name="QUERY" value="ZSDC01_FAC02"/>
         <param name="INFOCUBE" value="ZSDC01"/>
         DATA_PROVIDER:             DATAPROVIDER_1
</object>

<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="SET_PROPERTIES"/>
         <param name="TEMPLATE_ID" value="ZSDC01_FAC01"/>
         TEMPLATE PROPERTIES 
</object>

<HEAD>
<META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
<TITLE>BW Web Application</TITLE>
      <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
</HEAD>
<BODY>
<TABLE style="WIDTH: 700px; HEIGHT: 60px" cellSpacing=1 cellPadding=1 width=500 
border=0>
<TR>
<TD Align= top>
<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="NAVIGATIONBLOCK_1"/>
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
         ITEM:            NAVIGATIONBLOCK_1
</object>
</TD>
<TD Align = top>                
      
        
        
          <object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="CHART_2"/>
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_CHART"/>
         <param name="DATA_PROVIDER" value="DATAPROVIDER_2"/>
         <param name="TITLE" value="Quantités facturées par prestation"/>
         <param name="TMP_CHART_DATA_HANDLE" value="IIP_41IOFE6UUSA89FH96SMFY0WGQ"/>
         ITEM:            CHART_2
</object></TD>
         </TR></TABLE></TABLE>
<TABLE style="WIDTH: 700px; HEIGHT: 60px" cellSpacing=1 cellPadding=1 width=500 
border=0>
<TR>
<!-- debut logo groupama -->
<TD vAlign="top">   <IMG 
      style="WIDTH: 167px; HEIGHT: 48px" height=63 
      src="/sap/bw/Mime/Customer/Images/logo.jpg" 
      width=208>               
<!-- debut excel -->
<A href="<sap_bw_url cmd='PROCESS_HELP_WINDOW'
help_service='PRINT_WITH_EXCEL'
item='TABLE_1'
sap_bw_url cmd='export' format='xls' data_provider_1='dataprovider_t1'
subcmd='PRINT_EXCEL'>">
<IMG style="WIDTH: 30px; HEIGHT: 32px" 
      height=50 
      src="/sap/bw/Mime/Customer/Images/Excel.jpg" 
      width=50 border=0></A>   
<x:bw>
<hierarchy_ICONS hide="x"></X:BW> 
      <BR>                                                                           Export 
<!-- fin excel -->          
      
  </TD>
<!-- fin logo groupama --></TR>
</TABLE>
<TABLE style="WIDTH: 700px; HEIGHT: 60px" cellSpacing=1 cellPadding=1 width=500 
border=0>
<TR>
<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="WIDTH" value="693"/>
         ITEM:            TABLE_1
</object>
</TR>
<TR>
   
<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="TEXTELEMENTS_1"/>
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
         ITEM:            TEXTELEMENTS_1
</object>
   
</TR>
</TABLE>
</BODY>
</HTML>

thanks !

Former Member
Not what you were looking for? View more on this topic or Ask a question