understanding concept of load parameter and synchronize

26
Understanding Concept of Load Parameter and Synchronize Parameter while creating MBO in SAP Unwired Platform. Applicable Releases: SAP Unwired Platform 1.5.2 Topic Area: SAP Unwired Platform Capability: Mobility Version 1.0 Nov 2010

Upload: others

Post on 07-Jun-2022

15 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Understanding Concept of Load Parameter and Synchronize

Understanding Concept of LoadParameter and SynchronizeParameter while creating MBO inSAP Unwired Platform.

Applicable Releases:

SAP Unwired Platform 1.5.2

Topic Area:SAP Unwired Platform

Capability:Mobility

Version 1.0

Nov 2010

Page 2: Understanding Concept of Load Parameter and Synchronize

Understanding Concept of Load Parameter and Synchronize Parameter while Creating MBO inSAP Unwired Platform.

Document HistoryDocument Version Description

1.00 First Version of this document.

Page 3: Understanding Concept of Load Parameter and Synchronize

Understanding Concept of Load Parameter and Synchronize Parameter while Creating MBO inSAP Unwired Platform.

Typographic ConventionsType Style Description

Example Text Words or characters quotedfrom the screen. Theseinclude field names, screentitles, pushbuttons labels,menu names, menu paths,and menu options.Cross-references to otherdocumentation

Example text Emphasized words orphrases in body text, graphictitles, and table titles

Example text File and directory names andtheir paths, messages,names of variables andparameters, source text, andnames of installation,upgrade and database tools.

Example text User entry texts. These arewords or characters that youenter in the system exactly asthey appear in thedocumentation.

<Exampletext>

Variable user entry. Anglebrackets indicate that youreplace these words andcharacters with appropriateentries to make entries in thesystem.

EXAMPLE TEXT Keys on the keyboard, forexample, F2 or ENTER.

IconsIcon Description

Caution

Note or Important

Example

Recommendation or Tip

Page 4: Understanding Concept of Load Parameter and Synchronize

Understanding Concept of Load Parameter and Synchronize Parameter while Creating MBO inSAP Unwired Platform.

Table of Contents

1. Business Scenario ..........................................................................................................11.1 Introduction ...............................................................................................................11.2 Load Parameter ........................................................................................................11.3 Synchronize Parameter .............................................................................................1

2. Demo Application ............................................................................................................22.1 Adding a SAP Server in the Sybase Unwired Workspace ........................................2

3. Mobile Business Object Creation ...................................................................................43.1 Synchronize Parameter .............................................................................................73.2 Load Parameter ........................................................................................................83.3 Deploying MBO.........................................................................................................9

4. Mobile Application Creation .......................................................................................... 104.1 Device Application Generation ................................................................................ 17

5 Conclusion ........................................................................................................................... 21Disclaimer and Liability Notice ......................................................................................... 21

Page 5: Understanding Concept of Load Parameter and Synchronize

November 2010 1

1. Business Scenario

1.1IntroductionSAP Unwired Platform is the Mobile Enterprise Application Platform that enables enterprisedevelopers to simply and quickly develop applications that connect business data to mobile workerson device.The Unwired Platform addresses the difficult mobile challenge of creating and managingmultiple mobile applications that securely connect a variety of heterogenous backend data sources tomajor devices.

1.2 Load ParameterLoad parameters control the amount of data refreshed between the enterprise information system(EIS) and the consolidated database (CDB), and creates partitions based on load parameter values.

In Simple words: Load Parameters control data between backend EIS and Consolidated Database on the UnwiredPlatform.

1.3 Synchronize ParameterSynchronization parameters filter consolidated database (CDB) data during device applicationsynchronization. In other words allows the developer to limit the data that is returned to the device. Italso maps to an attribute.

Page 6: Understanding Concept of Load Parameter and Synchronize

November 2010 2

In Simple words: Synchronization parameters control the amount of data to be sent to the mobiledevice

2. Demo ApplicationOur mobile application will allow the user to search for Project status on submitting Project ID. Weneed to create a Mobile Business Object (MBO) to define our business logic.

Start Sybase Unwired Workspace and select New then Mobile Application Project in the File menuto create a new project. Type in the project name (i.e ProjectStatus1) then click Finish :

2.1 Adding a SAP Server in the Sybase UnwiredWorkspace

Right click on SAP Servers in the Enterprise Explorer view and choose New :

Page 7: Understanding Concept of Load Parameter and Synchronize

November 2010 3

Give the name to the connection profile

Give the Connection attributes

Page 8: Understanding Concept of Load Parameter and Synchronize

November 2010 4

Click on the Test connection.

3. Mobile Business Object Creation

Right click on the Mobile Application Diagram and select Add Mobile Object to create New MBO

Give the Name to Mobile Business Objects.

Page 9: Understanding Concept of Load Parameter and Synchronize

November 2010 5

Click on Next.

Specify the Data SourceData source type:SAPConnection Profile:ProjectStatus

Browse for the BAPI/RFC operations in this example ZPROJECT_STATUS

Page 10: Understanding Concept of Load Parameter and Synchronize

November 2010 6

Click Next.Select the Input arguments and Output arguments

Click on Finish Button.

Page 11: Understanding Concept of Load Parameter and Synchronize

November 2010 7

You can see the new Project Status MBO in the Mobile Application Diagram

3.1Synchronize ParameterRight click on the Project Status MBO->Show Properties View

The user should be able to search for Project Status using One parameter i.e. Project ID. As statedabove Synchronization parameters control the amount of data to be sent to the mobile device, so we

Page 12: Understanding Concept of Load Parameter and Synchronize

November 2010 8

will create the Synchronize parameter as we want data sent to the mobile device just for one ProjectID.Click on Add button to create the parameter and map this parameter to the ProjectID.Select the Query Limiting checkbox .Query limiting limits synchronization to the last value entered by the device application user.

3.2Load ParameterLoad Parameters control data between backend EIS and Consolidated Database on the UnwiredPlatform.

It is important to understand differences between Load Parameter and Synchronize and how theywork together to load (data refresh) and filter (synchronize) data. For example, you can define:A synchronization parameter and a separate load parameter – refresh data based on a parameterindependent of synchronization, orA load parameter that maps to a synchronization parameter – use the same parameter for bothrefreshing and synchronizing data.We need to refresh the data between backend EIS and Consolidated Database using the synchronizeparameter , that is mapped to the Project ID.

Click on the Attibutes tab ->Load Parameters, select the synchronize parameter from the synchronizedropdown i.e. parameter1

Save the MBO.

Page 13: Understanding Concept of Load Parameter and Synchronize

November 2010 9

3.3 Deploying MBO

Right Click on the MBO Project “Project ID”-> Select Deploy Project

Click Next.

Select your Unwired Platform

Click on Connect if not connected.

Page 14: Understanding Concept of Load Parameter and Synchronize

November 2010 10

Click on Finish.

4. Mobile Application Creation

Right Click on the ProjectStatus project the select New ->Device Application DesignerEnter the name of the file:ProjectStatusMA.

Page 15: Understanding Concept of Load Parameter and Synchronize

November 2010 11

Click on Finish Button.

The Wizard will automatically create the flow design for the MBO.

We will add Empty screen from the palette to the flow design.

Double Click on the Empty Screen to open the screen design view .

Page 16: Understanding Concept of Load Parameter and Synchronize

November 2010 12

Add 3 controls to the screen ,a Label ,a Edit box and button. Drag and Drop these controls from thepallette.

Right Click on the Label->Show Properties and Enter the text of Label as Project ID.

Page 17: Understanding Concept of Load Parameter and Synchronize

November 2010 13

Right Click on the on the Button->Show Properties. Change the text to Submit.

Click on the Actions Tab and create new action “Connection”.

Page 18: Understanding Concept of Load Parameter and Synchronize

November 2010 14

The connection will be to the Project Status screen in the flow design.

Click on ok button.

Now we will create Synchronize action.

Page 19: Understanding Concept of Load Parameter and Synchronize

November 2010 15

Search for the Synchronize Group and select “ProjectStatus1”

Click on OK.

Page 20: Understanding Concept of Load Parameter and Synchronize

November 2010 16

Synchronize Parameter “parameter1” will be displayed in table. Check the “Customizesynchronization” check box and double click on the Synchronize Value column in the table. Selectthe Control radio button , then select edit box,click on OK.

Click OK.

Page 21: Understanding Concept of Load Parameter and Synchronize

November 2010 17

4.1Device Application GenerationIn the Flow Design view, right click and select Generate Device Application

Click Next.

Page 22: Understanding Concept of Load Parameter and Synchronize

November 2010 18

Click on Finish.

The device application will be generated then the BlackBerry device and MDS simulators will bestarted. In the BlackBerry simulator, click on Downloads then on your application icon to start thedevice application .

Page 23: Understanding Concept of Load Parameter and Synchronize

November 2010 19

Enter Project ID and Click on Submit.

Page 24: Understanding Concept of Load Parameter and Synchronize

November 2010 20

The Project Status is displayed for the Project ID

Page 25: Understanding Concept of Load Parameter and Synchronize

November 2010 21

5 Conclusion

Pairing a load parameter with a synchronization parameter during mobile business object (MBO)

development, indicates that the user will supply values for this parameter over time and the aggregate

set of data based on the values provided over time are synchronized with that device. In our case we

have paired parameter1 synchronize parameter with the load parameter, and the user when supply

Project ID values for parameter parameter1 the Project Status data is synchronized with that device .

Disclaimer and Liability NoticeThis document may discuss sample coding or other information that does not include SAP officialapproval and therefore is not supported by SAP. Changes made based on this information are notsupported and can be overwritten during an upgrade.SAP will not be held liable for any damages caused by using or misusing the information, code ormethods 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 thecontent of this technical article or code sample, including any liability resulting from incompatibilitybetween the content within this document and the materials and services offered by SAP. You agreethat you will not hold, or seek to hold, SAP responsible or liable with respect to the content of thisdocument.

Page 26: Understanding Concept of Load Parameter and Synchronize

New Trends in Public Sector Procurement

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com

© 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.