Upload
raj-peddisetty
View
31
Download
2
Tags:
Embed Size (px)
DESCRIPTION
This document helps you create exchange objects needed to maintain offline functionality in mobile apps for SAP Agentry platform.
Citation preview
How to Create Exchange Object Detailed list of steps to create exchange object for Agentry based Mobile applications
www.sap.com
TABLE OF CONTENTS
SECTION 1: EXCHANGE PROCESS OVERVIEW .......................................................................................... 3
SECTION 2: IDENTIFY UPDATE FUNCTION MODULE TO IMPLEMENT EFI .............................................. 4
SECTION 3: HIGH LEVEL EXCHANGE OVERVIEW ...................................................................................... 6
SECTION 2: USE CASES FOR THE SAP WORK MANAGER SOLUTION* .................................................. 7
SECTION 3: STEP’S TO CREATE EXCHANGE OBJECT .............................................................................. 8 Step 1: Create SAP Data Dictionary (SE11) .................................................................................................. 8 Step 2: SAP Development (Workbench) – Create Class handler ............................................................... 9 Step 3: SAP Development (Workbench) - Create Include ........................................................................ 10 Step 4: SAP Configuration (Config. Panel) - Create Exchange Object ................................................... 11 Step 5: SAP Configuration (Config Panel) – EFI assignment ................................................................... 11 Step 6: Test via IK32 and SE11 .................................................................................................................... 12 Step 7: SAP Configuration (Config Panel) - assign exchange to complex table .................................. 13 Step 8: Test via ATE or SE37 ........................................................................................................................ 13
SECTION 4: OVERVIEW OF VARIOUS STEPS ............................................................................................ 14
How to Create Exchange Object
3
SECTION 1: EXCHANGE PROCESS OVERVIEW
The overall purpose of the change detection layer is to detect and track changes made to the business objects of concern to the mobile application. This can include items such as work orders, service orders, material items, etc. Changes can include new instances of the objects, modifications to an object’s data, or removal of the object instance. When a change occurs, the unique identifier of the modified business object and the system date and time are noted. This information is then used during synchronization as a part of the overall exchange data method to determine what data updates are needed for a given mobile Client.
EFI Assignment
How to Create Exchange Object
4
Enhancement Framework Implementations (EFI) are SAP ABAP source code plugins
Implemented via the SAP Mobile Suite Business Framework for each business object where change detection is required
Each Exchange Object is assigned to an EFI
Management of the specific change detection processing is handled by the Exchange Object Field Selection and Field Condition Filter configuration
SECTION 2: IDENTIFY UPDATE FUNCTION MODULE TO IMPLEMENT EFI
1) First and foremost thing is to identify right place to implement implicit enhancement to capture
changes to SAP master or transaction data. Debug update function module of the transaction you want to implement exchange – in order to identify right update function module enable update debugging. ( In our example we are using Entry list as an example) During Save of transaction do /h(debug) , Go to settings-> Change Debugger Profile/ Settings to enable update function module debugging
How to Create Exchange Object
5
2) Identify place and update function module to implement implicit enhancement
3) Once we identify update function module create implicit enhancement to record the changes 4) Create implicit enhancement and call include
How to Create Exchange Object
6
SECTION 3: HIGH LEVEL EXCHANGE OVERVIEW
How to Create Exchange Object
7
SECTION 2: USE CASES FOR THE SAP WORK MANAGER SOLUTION*
How to Create Exchange Object
8
SECTION 3: STEP’S TO CREATE EXCHANGE OBJECT
Step 1: Create SAP Data Dictionary (SE11)
– Create Exchange Table ‘ZSYC_00_MELNR_EX’ – Create Lock for exchange table if required
Copy fields from any standard out-of the box delivered exchange objects /SYCLO/XXXXX_EX or /SYCLO/*_EX where XXXXX is data element name.
How to Create Exchange Object
9
Step 2: SAP Development (Workbench) – Create Class handler
– Create Exchange Object Class Handler via SE24
How to Create Exchange Object
10
Step 3: SAP Development (Workbench) - Create Include Create the EFI Include program ‘Z_GROUP00_PM_EFI_MELNR_EX_INCL’ via SE38. Standard practice is to copy from one of the existing exchange include and modify objects as per requirements.
How to Create Exchange Object
11
Step 4: SAP Configuration (Config. Panel) - Create Exchange Object
– Create Exchange Object ‘ZSWM53_ENRTYLIST ’ for the Entry List Exchange Class Handler via Config Panel
–
Step 5: SAP Configuration (Config Panel) – EFI assignment
– Create EFI Assignment ‘Z_GROUP00_PM_EFI_MELNR_EX_INCL ’ for the Entry List Exchange Object via Config Panel
How to Create Exchange Object
12
Step 6: Test via IK32 and SE11
Create/change transaction data in SAP and make sure that changes are captured in exchange table that you have created.
How to Create Exchange Object
13
Step 7: SAP Configuration (Config Panel) - assign exchange to complex table
– Assign Exchange Object ’ to complex table in MDO
Step 8: Test via ATE or SE37 Once configuration is complete on SAP side, do unit testing using ATE/SE37 to verify that only delta changes are only downloaded.
www.sap.com
SECTION 4: OVERVIEW OF VARIOUS STEPS
Z_XXMTH_EXCHANGEOBJECT
ZSYC_XX_MELNR_EX
ZCL_XXMTH_PM_MELNR_EX_HNDLR
XXMTH_ENTRYLIST
SE11
EXC
H.
OB
JEC
T
SE24
EFI
Z_XXMTH_EXCHANGEOBJECT Z_GROUPXX_PM_EFI_MELNR_EX_INCL
SE38
Z_GROUPXX_PM_EFI_MELNR_EX_INCL
www.sap.com
© 2013 SAP AG. All rights reserved.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP
BusinessObjects Explorer, StreamWork, SAP HANA, 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 Software Ltd. Business Objects is an SAP
company.
Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL
Anywhere, and other Sybase products and services mentioned herein
as well as their respective logos are trademarks or registered
trademarks of Sybase Inc. Sybase is an SAP company.
Crossgate, m@gic EDDY, B2B 360°, and B2B 360° Services are
registered trademarks of Crossgate AG in Germany and other
countries. Crossgate 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. .