Home > SAP software/management Tips > SAP business intelligence tips > How to integrate BW query iViews with a WebDynpro application
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP BUSINESS INTELLIGENCE TIPS

How to integrate BW query iViews with a WebDynpro application


Joanna Crane
04.26.2006
Rating: -3.96- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


By adding a few lines of JavaScript code to your BW Web template, you can integrate BW query iViews with your WebDynpro application in your SAP Enterprise Portal. Raising portal events is also shown in the code so you can pass data between the different iViews. See the code below.

Code

<!--BW HTML data source object tags: --> >object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="SET_PROPERTIES"/>
         <param name="TEMPLATE_ID" value="ZZ_WEB_PREFS_COMP_CODE"/>
         <param name="USE_PERSONALIZATION" value="X"/>
         <param name="VARIABLE_SCREEN" value="X"/>
         <param name="MENU_BOOKMARK" value=""/>
         <param name="MENU_PERSONALIZE" value="X"/>
         TEMPLATE PROPERTIES
</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="ZZ_WEBP_PREFS_COMP_CODE"/>
         <param name="INFOCUBE" value="ZCOMPCODE"/>
         DATA_PROVIDER:             DATAPROVIDER_1
</object>

<html>
  <head>
  <style>
        a.button:hover {
                 background-color : FF9900;
        }     
       a.button {   
                display : block;
                width : 53px;
                height : 20px;
                text-align : center;
                font-family : Arial;
                font-style : normal ;
                font-size : 8pt;
                font-weight : normal;
                color : black;    
                text-decoration : none;
                background-color : FFCC66;   
                padding : 1px;
                border-top : solid #000000 1px; border-right : solid #000000 1px; border-left : solid #000000 1px; border-bottom : solid #000000 1px
         }
  </style>
    <SCRIPT>
      function doEventing() 
       {
            {
//          var l_length = document.forms[0].elements.length;
//          alert("l_length=" + l_length);
          var l_num_recs = (document.forms[0].elements.length-3/2)+1;
//          alert("l_num_recs=" + l_num_recs);
          var l_start_element = document.forms[0].elements.length - l_num_recs;
//          alert("l_start_element=" + l_start_element);
          var l_list = "";
          for(jj= l_start_element; jj<= l_num_recs; ++jj)
          {
                if(document.forms[0].elements[jj].checked)
                {
                    var l_value = document.forms[0].elements[jj].value;
                    l_list =  l_list + l_value + ",";
                 }
           }
           var value = l_list;
//           alert("value=" + value);
           if (top.opener) {
              top.opener.EPCM.raiseEvent("urn:com.chep.portfolio.plus:BWEvents", "CCDEVENT",value, null);
              top.close();
           } else {
              EPCMPROXY.raiseEvent("urn:com.chep.portfolio.plus:BWEvents", "CCDEVENT",value, null);
           }
//           alert("Event raised");
         }
     }
    </SCRIPT>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <title>BW Web Application</title>
    <link href="/sap/bw/Mime/Customer/StyleSheets/BIReports30_ie6.css" type="text/css" rel="stylesheet"/>
  </head>
  <body>
<!--BW HTML items object tags: -->
<P>
<object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="CHECKBOXES_1"/>
         <param name="ITEM_ID" value="ZZ_WEB_CHECKBOXES_ITEM"/>
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
         <param name="CAPTION" value="Selection for Company Code:"/>
         <param name="IOBJNM" value="ZCOMPCODE"/>
         <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1"/>
         ITEM:            CHECKBOXES_1
</object>  
<tr>
<A class=button href="Javascript:doEventing()"<Submit</A>
</tr></P>
  </body>
</html>

Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SAP NetWeaver Enterprise Portal
SAP NetWeaver training tutorial
How to be a self-taught NetWeaver and ABAP expert
Getting started with a NetWeaver career
Basis consultant wants to learn NetWeaver Portal
The definition of the BP category: 'group'
What are the SAP consulting hourly rates for NetWeaver consultants?
Changes when configuring the ESS and MSS packages
The difference between territory management and organizational structure
Should SAP Portals be running to use a WAD?
Best career path for a pro with .NET experience
SAP NetWeaver Enterprise Portal Research

SAP business intelligence tips
Choosing an SAP BI/BW database for InfoCube data
Using Infoset to join, move DSO analysis to InfoCube
Selecting InfoCubes in SAP BI/BW Business Content
How to limit employee access to reports using roles in SAP NetWeaver
SAP BI extractors vs. Business Objects for ETL process
Adding custom fields for retail product comparisons in SAP BW
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
Adding special characters in SAP BI
Currency translation using SAP BI

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
enterprise information portal  (SearchSAP.com)
workplace (user interface)  (SearchSAP.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



NetWeaver SAP White Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts