Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes



Similar documents
Restricting Search Operators in any Search View

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

Step by Step Guide for Language Translation Tool

SAP CRM Campaign Automation

Tutorial - Creating Pop Up Window Using New Features in WebDynpro Java CE 7.1 Ehp1

Reverse Transport Mechanism in SAP BI

How to Generate Stack Xml for Ehp4 and Above Upgrade

SAP CRM 7.0 E2C Setup: CRM via Toolset

Creating New Unit of Measure in SAP BW

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

Creation and Configuration of Business Partners in SAP CRM

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

Mandatory Field Check in Web Dynpro- ABAP

SAP CRM 7.0 for Newbies: (Part 1) Simple BOL Object Creation for CRM Webclient UI

Deleting the User Personalization done on Enterprise Portal

Deploying Crystal Reports on Top of a SAP BI Query

Creating Transaction and Screen Variants

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

Web Dynpro ABAP: ALV and Table in Popup Window

Display Options in Transaction SE16

How to Assign Transport Request for Language Translation?

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

Quick Viewer: SAP Report Generating Tool

Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Web Dynpro: Multiple ALV Grids and Layouts in ALV

Message handling in SAP CRM Web UI

BW Performance Monitoring

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

Configuration of Enterprise Services using SICF and SOA Manager

SAP FI - Automatic Payment Program (Configuration and Run)

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

Table of Content. SAP Query creation and transport Procedure in ECC6

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

Splitting the Custom Container & Display more than one ALV

Process Controlled Workflow SRM 7.0 (Using BRF)

Working with SAP BI 7.0 Data Transfer Process (DTP)

Which Off-Line CRM Solution for Field Force?

ALE Settings, for Communication between a BW System and an SAP System

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

This document applies to SAP ECC 6.0, SAP Netweaver 2004s. For more information, visit the Web Dynpro ABAP homepage.

Embedding Crystal Reports inside ECC ALV Reports

Order Split Usage in Production Orders

LSMW: Upload Master Data using Batch Input Recording

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

Multi Provider Creation Based on Sales and Planning Info Cubes

First step to Understand a Payroll Schema

Creating Content Using SO10 Objects and Text Symbols

Step by Step guide of Report-to- Report Interface in BW Reporting

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

How to Create an ecatt?

Creating and Scheduling Publications for Dynamic Recipients on SAP Business Objects Enterprise

Release Strategy Enhancement in Purchase Order

ABAP How To on SQL Trace Analysis

XSLT Mapping in SAP PI 7.1

Extractor in R/3 and Delta Queue

SAP Workflow in Plain English

ALV List with Radio Buttons

SAP NetWeaver Developer Studio 7.30 Installation Guide

SAP MM: Purchase Requisition with Classification and Workflow Approval

Sales Commission Calculation & Settlement Handling through Order Processing

ABAP Proxy Interfacing

Merge PDF files in ABAP

ABAP Debugging Tips and Tricks

How to Modify, Create and Delete Table Entries from SE16

Salesforce.com Integration Using SAP PI: A Case Study

Currency Conversion using Variables in SAP BI -Reporting

Upload Data in Web Dynpro Table from a Text File with Delimiters

SAP BW 7.3: Exploring Semantic Partitioning

Forgot or Lock "Administrator or J2EE_ADMIN" Password

Customer Exit Variables in SAP BW/BI Reports First day of the Current/Previous Month

Step By Step Procedure to Create Logical File Path and Logical File Name

Middleware Configuration and Monitoring for Master Data Transfer from SRM to ECC

Direct Subcontracting Process (SAP SD & MM)

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

Different Types of Alerts for Process Chains. Table of Content

Consuming Services in SOA Manager

Configuring HTTPs Connection in SAP PI 7.10

SAP BW - Generic Datasource Function Module (Multiple Delta Fields)

Compounding in Infoobject and Analyzing the Infoobject in a Query

Sending an Image File Through XI in a File-to-Mail Scenario

Invoice Collaboration: Self Billing Invoice

Using PI to Exchange PGP Encrypted Files in a B2B Scenario

Business Scenario Using GP/Web Dynpro with Back and Forth 3 Level Process and Dynamic Approvers in a Loop

How to Get Work Items from Workflow in your Outlook Inbox

APD to Update Marketing Attributes from SAP BI to SAP CRM

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

Understanding BW Non Cumulative Concept as Applicable in Inventory Management Data Model

Credit Management in Sales and Distribution

Automating Invoice Processing in SAP Accounts Payable

Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI

Dynamic Authorization Concept and Role Assignment in BI

Creating Mobile Applications on Top of SAP, Part 1

Data Extraction and Retraction in BPC-BI

SAP CRM-BW Adapter an Overview

SDN Community Contribution

Scenario... 3 Step-by-Step Solution Virtual Infocube... 4 Function Module (Virtual InfoCube)... 5 Infocube Data Display... 7

Business Partner in the Human Resources (HR) System

Transcription:

Passing Data across Components through Component Controller between Two Value Nodes Applies to: SAP CRM WEBCLIENT UI 2007. For more information, visit the Customer Relationship Management homepage Summary This guide is intended to demonstrate how to pass data across component through component controller binding with value nodes of views. Author: Pooja Agarwal Company: Tata Consultancy Services (TCS) Created on: 21 June 2011 Author Bio Pooja Agarwal has been working on SAP Webclient UI for last 2 years. 2011 SAP AG 1

Table of Contents Prerequisite:... 3 Step 1..... 3 Step 2.... 4 Step 3.... 5 Step 4... 7 Step 5... 9 Step 6... 9 Related Content... 11 Disclaimer and Liability Notice... 12 2011 SAP AG 2

Prerequisite: Basic knowledge of CRM Webclient UI, Component and view creation. Step 1 Go to Transaction BSP_WD_CMPWB Create two components ZCOMP_NEW_OLD and ZCOMP_NEW_NEW with one view and one oviewpage in each. The structure of the context node should be same for both the views. 2011 SAP AG 3

Now we will traverse from component ZCOMP_NEW_OLD to ZCOMP_NEW_NEW and transfer the data. Step 2 Create button on view of the first component ( ZCOMP_NEW_OLD) and corresponding event for that button. Write the following code in the method DO_PREPARE_OUTPUT of the implementation class of the view. 2011 SAP AG 4

Create an event GO by right clicking on Event Handler. Step 3 Create a context node CITYCOMP in the component controller of both the components with the same structure as views. And do the context node binding by writing code in the create_context_node_name method of the context class(ctxt) of the view. 2011 SAP AG 5

OWNER->DO_CONTEXT_NODE_BINDING( PE_COMPONENT IV_CONTROLLER_TYPE = CL_BSP_WD_CONTROLLER=>CO_TY IV_TARGET_NODE_NAME = 'CITYCOMP' IV_NODE_2_BIND = VIEW1 ). After successful binding you will get the notification line. 2011 SAP AG 6

Step 4 Add the component interface in the component to which we want to traverse. In our case ZCOMP_NEW_NEW. Select window from the value help. 2011 SAP AG 7

Now add context node in the component interface. Create component Usage in the first component (ZCOMP_NEW_OLD ). 2011 SAP AG 8

Step 5 On the event of eh_ongo write the code to open the second component in pop up. method EH_ONGO. DATA: lv_title TYPE string. DATA num_dec_popup TYPE REF TO if_bsp_wd_popup. lv_title = 'New component'. num_dec_popup = comp_controller->window_manager->create_popup( iv_interface_view_name = 'ZCOMP_NEW_NEW/MainWindow' iv_usage_name = 'TOZCOMPNEWNEW' iv_title = lv_title ). *Open the pop up num_dec_popup->set_on_close_event( iv_event_name = ' ' iv_view = me ). num_dec_popup->set_window_height( 900 ). num_dec_popup->set_window_width( 900 ). num_dec_popup->open( ). endmethod. Step 6 In the implementation class of the first component ZCOMP_NEW_OLD redefine the method WD_USAGE_INITIALIZE to bind the nodes of component controller. 2011 SAP AG 9

method WD_USAGE_INITIALIZE. super->wd_usage_initialize( iv_usage ). CHECK iv_usage IS BOUND. IF IV_USAGE->USAGE_NAME = 'TOZCOMPNEWNEW'. name of component usage iv_usage->bind_context_node( iv_controller_type = cl_bsp_wd_controller=>co_type_component *iv_name = iv_usage->usage_name iv_target_node_name = 'CITYCOMP' iv_node_2_bind = 'CITYCOMP' ). ENDIF. endmethod. Now test the first component and click on the button Go. A new pop will be opened with the values entered in the previous screen. Output First Screen Second component in pop up with values fetched from the previous component. 2011 SAP AG 10

Related Content Techskills Dynamic Component Usages in CRM WebClient UI For more information, visit the Customer Relationship Management homepage 2011 SAP AG 11

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2011 SAP AG 12