Home > SAP Tips > Business Warehouse > How to integrate BW query iViews with a WebDynpro application
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

BUSINESS WAREHOUSE

How to integrate BW query iViews with a WebDynpro application


Joanna Crane
04.26.2006
Rating: -4.00- (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
Web enablement
Top 10 SAP tips of 2007
Content management solution for NetWeaver 04 Enterprise Portal

SAP Enterprise Portal
The definition of the BP category: 'group'
Hourly rates of 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
ASUG Impact Awards: Midsized business excellence
Marketing websites based on SAP NetWeaver Portal
How to undo an InfoObject deletion
How to retrieve data from specific past years by pulling it from an infoprovider
SAP Enterprise Portal Research

Business Warehouse
Top 10 SAP tips of 2007
Retrieve BI data with Web Services
Adding special characters in SAP BI
Budgeting best practices with SAP business planning
Currency translation using SAP BI
How to acquire the runtime information of a data transfer process (DTP)
Smart Forms vs. PDF-based print forms in SAP solutions -- pros and cons
Repair bad SAP data and subsequent data targets with delta update
Real-Time Data Acquisition - BI@2004s
SAP BW Guide: Open Hub Service

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.

HomeNewsTopicsBlogsTipsAsk the ExpertsWebcastsWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, 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