Using Default Values in Backend Adapter

Similar documents
Duet Enterprise: Tracing Reports in SAP, SCL, and SharePoint

Single Sign-on For SAP NetWeaver Mobile PDA Client

Configuring relay server in Sybase Control Center

How to Handle the System Message in SAP NetWeaver Mobile 7.1

SAP NetWeaver Identity Management Identity Center Minimum System Requirements

SAP AddOn Quantity Distribution. by Oliver Köhler, SAP Germany

BC100. Introduction to Programming with ABAP COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

How to Enable Single Sign-On for Mobile Devices?

EWM125. Labor Management in SAP EWM COURSE OUTLINE. Course Version: 16 Course Duration: 4 Hours

Visual Composer Modeling: Data Validation in the UI

BIT460. SAP Process Integration Message Mapping COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

How to Find Suitable Enhancements in SAP Standard Applications

Duplicate Check and Fuzzy Search for Accounts and Contacts. Configuration with SAP NetWeaver Search and Classification (TREX) in SAP CRM WebClient UI

Enterprise Search Extension for SAP Master Data Governance

SAP BusinessObjects Predictive Analysis 1.0 Supported Platforms

Installing SAP NetWeaver Mobile Client (eswt) on a Storage Card

PLM210. Master Data Configuration in SAP Project System COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

Quick View Insider Microblog: Why Is There No Inbox?

Crystal Reports 2008 FixPack 2.4 Known Issues and Limitations

Visual Composer Modeling: Migrating Models from 7.1.X to 7.2.0

AC507. Additional Functions of Product Cost Planning COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

BC400. ABAP Workbench Foundations COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Visual Composer for SAP NetWeaver Composition Environment - Connectors

NET311. Advanced Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

BC400 Introduction to the ABAP Workbench

LO Extraction - Part 6 Implementation Methodology

ADM900 SAP System Security Fundamentals

BC430 ABAP Dictionary

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

DS50. Managing Data Quality with SAP Information Steward COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

Testing Your New Generated SAP NetWeaver Gateway Service

Quick View Insider: Understanding Quick View Configuration

BC410. Programming User Dialogs with Classical Screens (Dynpros) COURSE OUTLINE. Course Version: 10 Course Duration: 3 Day(s)

BOCE20. SAP Crystal Reports for Enterprise: Advanced Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

MDG100 Master Data Governance

How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call

DEV523 Customizing and Extending PowerDesigner

BC480 PDF-Based Print Forms

How to Download Software and Address Directories in SAP Service Marketplace

How to Guide to create Sample Application in IOS using SUP ODP 2.2

BOC320. SAP Crystal Reports - Business Reporting and Report Processing Strategies COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

Using JournalEntries and JournalVouchers Objects in SAP Business One 6.5

BC490 ABAP Performance Tuning

BC405 Programming ABAP Reports

Message Alerting for SAP NetWeaver PI Advanced Adapter Engine Extended

TBIT44 PI Mapping and ccbpm

Quick View Insider: How Can I Change the Colors? (SNC 7.0)

ADM100 AS ABAP - Administration

BOC310. SAP Crystal Reports: Fundamentals of Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

BW Text Variables of Type Replacement Path

EDB785 SAP IQ Administration

HA150 SQL Basics for SAP HANA

BC404. ABAP Programming in Eclipse COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Manual Activities of SAP Note Globalization Services, 2012/06/05

GRC100. GRC Principles and Harmonization COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

ADM920 SAP Identity Management

SAP Afaria Post- Installation Part 1

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day

EDB358. System and Database Administration: Adaptive Server Enterprise COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Visual Composer s Control Types

AFA461 SAP Afaria 7.0 System Administration (SP03)

EDB367. Powering Up with SAP Adaptative Server Enterprise 15.7 COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

Quick View Insider: How Do I Set Quick View as SNC s Entry Screen?

Upgrade MS SQL 2005 to MS SQL 2008 (R2) for Non-High-Availability NW Mobile ABAP System

EP350. Innovated Content Management and Collaboration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Web Dynpro: Column Coloring in ALV

EP200. SAP NetWeaver Portal: System Administration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to Set Up Data Sources for Crystal Reports Layouts in SAP Business One, Version for SAP HANA

EDB116. Fast Track to SAP Adaptive Server Enterprise COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

SAP BusinessObjects Dashboards 4.0 SAP Crystal Dashboard Design 2011 SAP Crystal Presentation Design 2011

BW310. BW - Enterprise Data Warehousing COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

TBW30 SAP BW Modeling & Implementation

How to Check or Derive an Attribute Value in MDG using BRFPlus

Working with Data Sources in the SAP Business One UI API

SMP521. SAP Mobile Platform - Native and Hybrid Application Development COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

EDB377. Fast Track to SAP Replication Server Administration COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

BC401. ABAP Objects COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Remote Monitoring User for IBM DB2 for LUW

SMP541. SAP Mobile Platform 3.0 Native and Hybrid Application Development COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Overview of Caffeine ABAP to Go

OData Service in the SAP Backend System for CRUDQ Operations in Purchase Order Scenario

TBIT40 SAP NetWeaver Process Integration

Building a Real-time Dashboard using Xcelsius and Data Integrator

How to Integrate Google Maps into a Web Dynpro ABAP Application Using the Page Builder

How to Integrate Microsoft Bing Maps into SAP EHS Management

How to do a Manual Kernel Upgrade of an SAP Server

SAP ME Build Tool 6.1

What s New / Release Notes SAP Strategy Management 10.1

Personalizing SAP BusinessObjects Explorer Information Spaces

NET312. UI Development with Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

The Dbmlsync API. A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: October 30 th, 2008

Extending DME Transfer Files According to Spanish Banking Control Council to Support Non- Euro Payments

How to Work with Analytical Portal

LO Extraction Part 4 Update Methods

Upgrading to CR 2008 V1 / SP1

SQLScript Small Guide

Business Objects Integration Scenario 2

TBW60. BW: Operations and Performance COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Transcription:

Using Default Values in Backend Adapter Applies to: SAP NetWeaver Mobile 7.1 applicable for all service packs Summary Background, concept and usage of default values in BAPI Wrapper based backend adapter in DOE. Author: M, Gunashekar Company: SAP Labs India Pvt Ltd Created on: 9 November 2010 Author Bio Working in the area of Mobile Applications Platforms. 2010 SAP AG 1

Table of Contents Pre-requisite... 3 Background... 3 Concept... 3 Usage... 4 BAPI Wrapper Development... 4 Modeling in DOE... 5 Mapping to Data Object Communication Header... 5 Mapping to Device Attribute... 5 Mapping to a Constant Value... 6 Maping to System Field... 6 Related Content... 7 Copyright... 8 2010 SAP AG 2

Pre-requisite Knowledge of NetWeaver Mobile 7.1. Preferably, knowledge of SAP Mobile Infrastructure 2.5 Background The most important reason of having the feature of Default Values is to maintain backward compatibility with the previous release, SAP MI 2.5. In SAP MI 2.5, when synchronizing client with the server, user name of the synchronizing user can be sent to the BAPI Wrappers. The backend can then use the user name: For audit trail purposes while uploading data to backend through create, modify or delete BAPI wrappers or To filter user specific data while honoring download request for Two Way SyncBOs in getlist and getdetail BAPI wrappers or For authorization purposes. Note: Sometimes SAP MI 2.5 communicates few more parameters other than user name. However, user name is the most important parameter. To keep the discussion simple, only user name is cited in this article. Concept For backward compatibility reasons, the equivalent functionality of passing user name to the backend had to be provided in the new release of SAP NetWeaver Mobile. The backend adapter Default Values not only supports the functionality of passing user name to the BAPI wrappers, but improvises too. Now, it is possible to send much more variables to the backend than just the user name. In SAP MI 2.5, the user name is part of syncbo definition. The syncbo of SAP MI 2.5 can be conceptually thought as equivalnt to combination of Data Object and Backend Adapter of SAP NetWeaver Mobile 7.1. The Data Object represents the business data and Backend Adapter defines the method of exchanging data with the backend. So the variables that are not part of business data, but have to be exchanged with backend have to be done using the default value functionality of the backend adapter. It is currently possible to pass: Constant Values: a constant value is passed to the BAPI wrappers. Consider a scenario where backend recevies updates from several sources, one of which is mobile clients serviced by DOE (the server part of NetWeaver Mobile), and the backend would like to know the origin of data. We could solve this by passing constant value MOBILE_CLIENT to the BAPI Wrappers to denote that the origin of data is a mobile client. Constant values can also be used in situations where data returned in Getlist BAPI wrapper needs to be controlled based on who is calling. When performing initial download or delta download of data from backend to DOE, backend may want to restrict the amount or type of data to be downloaded to DOE. Device Attribute: the synchronizing device s attributes values is passed to the BAPI wrappers. Existing Receiver Meta Model standard attributes can be used or Receiver Meta Model could be extended by creating a custom group and custom attributes. This type of mapping is useful when additional information about the devices or users that are not part of normal business data is required in the backend. Data Object Communication Header: values of data object communication header fields can be sent to the BAPI Wrappers. Data object communication header contains a set of fields that are exchanged between DOE and the Client Framework. Fields like synchronization user name, Data Object name, etc., which provide additional information about the data that is getting exchanged between client and DOE, form the communication header. 2010 SAP AG 3

Normally, communication header fields are mapped to Create, Modify and Delete BAPI Wrappers. In other words, when data is getting uploaded from client to backend. However, for Two Way Data Objects, Getlist and Get Detail BAPI wrapper can also be mapped since data is fetched from the backend based on the synchronization user. System Fields: SY fields like sy-uname, sy-mandt, sy-uzeit, etc, whose values are set by the ABAP runtime environment, can also be passed to backend. For example, consider a use case is where there are several instances of DOE and data to be downloaded from backend to each DOE instance is different, we can use system fields to control such configuration, by passing system id SY-SYSID or SY-HOST to the BAPI Wrapper to indicate the DOE instance. Usage BAPI Wrapper Development To pass Default Values to the backend, the BAPI wrappers should have importing parameters. These importing parameter are mapped to a Constant Values, Device Attributes, Data Object Communication Header fields or System Fields on the backend adapter design time. There is one restriction though: the importing parameters should be fields of a structure. At run time, the relevant values are passed to the BAPI Wrapper by DOE. Let us go through an example. Have a look at the screen shot of the create BAPI Wrapper shown below. Notice that the parameters USER_NAME, WORKCENTER, DOE_CLIENT and CREATED_AT. 2010 SAP AG 4

Modeling in DOE Mapping to Data Object Communication Header The parameter USER_NAME of the Create BAPI Wrapper ZSDN_DEFAULTVALUE_DEMO_CREATE is mapped to the Data Object Communication Header s USER_NAME field. Mapping to Device Attribute In Receiver Meta Model, create a custom group and create a field called WORKCENTER_ID. Next, we map WORKCENTER to the Receiver Meta Model s WORKCENTER_ID. 2010 SAP AG 5

Mapping to a Constant Value Here, we give a constant value MOBILE_CLIENT to the parameter CREATED_AT as shown below. Whenever the BAPI Wrapper ZSDN_DEFAULTVALUE_DEMO_CREATE is called, the parameter CREATED_AT will be populated with the value MOBILE_CLIENT. Maping to System Field Lastly, we map sy-mandt to DOE_CLIENT 2010 SAP AG 6

Related Content Migration Guide SAP NetWeaver Mobile 7.1 FAQ Developer's Guide 2010 SAP AG 7

Copyright Copyright 2010 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iseries, pseries, xseries, zseries, eserver, z/vm, z/os, i5/os, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. 2010 SAP AG 8