SAP Crm Mobile Sales Document

Embed Size (px)

Citation preview

  • 8/9/2019 SAP Crm Mobile Sales Document

    1/11

     

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

    © 2010 SAP AG 1

    Sybase Mobile Sales for SAP CRMEnhancement Guide  –  Gateway 1.1to SAP NetWeaver Mobile 7.10

    Applies to:

    Gateway 1.1 to SAP NetWeaver Mobile 7.10. For more information, visit the Mobile homepage. 

    Summary

    Cutting edge mobile solutions like Sybase Mobile Sales for SAP CRM   and Sybase Mobile Inbox for SAPERP  are built on top of the SAP-Sybase Co-Innovation Platform for enterprise mobility. Solutions built on topof this platform are easily customizable to suit different customer scenarios / business processes. This articleis an extensive guide to do such enhancements on Sybase Mobile Sales for SAP CRM  using Gateway 1.1 toSAP NetWeaver Mobile 7.10 .

    Author:  Siva Satya Prasad Yerra

    Company:  SAP Labs India

    Created on: 15 December 2010

    Author Bio

    Siva Satya Prasad Yerra is an Associate Architect with the NetWeaver Mobile team.

    https://www.sdn.sap.com/irj/sdn/nw-mobilehttps://www.sdn.sap.com/irj/sdn/nw-mobilehttps://www.sdn.sap.com/irj/sdn/nw-mobilehttps://www.sdn.sap.com/irj/sdn/nw-mobile

  • 8/9/2019 SAP Crm Mobile Sales Document

    2/11

      Enhancement Guide  – Gateway 1.1 to SAP NetWeaver Mobile 7.10

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

    © 2010 SAP AG 2

    Table of Contents

    Business Scenario .............................................................................................................................................. 3 

     Approaches to Enhancements............................................................................................................................ 3 

    Extension using CE Structures: ...................................................................................................................... 4 

    CE Structure ................................................................................................................................................................ 4 

    BADI Implementation ................................................................................................................................................... 4 

    Extending Distribution Logic: .......................................................................................................................... 5 

    Modifying Distribution Logic: ........................................................................................................................................ 6 

    Copy of Distribution logic: ............................................................................................................................................ 6 

    Related Content ................................................................................................................................................ 10 

    Copyright........................................................................................................................................................... 11 

  • 8/9/2019 SAP Crm Mobile Sales Document

    3/11

      Enhancement Guide  – Gateway 1.1 to SAP NetWeaver Mobile 7.10

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

    © 2010 SAP AG 3

    Business Scenario

     A customer using Gateway to SAP NetWeaver Mobile 7.10 has productive devices running a mobileapplication and productive data in the Data Orchestration engine for these devices. The application can beone that is delivered by SAP or one that is developed by a customer / partner. Now, the customer wants toenhance the application and upgrade some or all devices to the newer application version. Enhancing theapplication could be done by modifying the data object definitions, adding new data objects or by changing

    only the distribution logic. This should be achieved without any downtime / data loss or corruption of thedevices that are not upgraded, since they are already productive. These devices should continue to run theolder version of the application with no data loss.

    Approaches to Enhancements

    Currently customer can enhance the model with following options:

    1. Extension using CE structures.

    2. Extending Distribution logic (Non-Disruptive Change)

    3. Data Model Change (Disruptive Change) (Data model change is a candidate by itself for

    another long article. So, this article will not cover data model changes.)

    •  Non-Disruptive Changes: Any change which does not impact the structural information of theapplication or data models is termed as non-disruptive.

    •  Disruptive Changes: Any change that impact the structural integrity of the data models are termedas disruptive.

  • 8/9/2019 SAP Crm Mobile Sales Document

    4/11

      Enhancement Guide  – Gateway 1.1 to SAP NetWeaver Mobile 7.10

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

    © 2010 SAP AG 4

    Extension using CE Structures:

    CE Structure

    PARTNER/OBJECT_GUID – Key field of the root/header node

    OBJECT_ID – Can be used to fill any key useful for unique identification

    KEY_LENGTH – In case of composite keys can be used for identification

    FIELD_NAME – Actual field name to be enhanced

    FIELD_TEXT – Field text useful for screen labels

    DATA_TYPE – Data type of the enhanced field

    DATA_LENGTH – Length of the enhanced field

    DECIMALS – For decimal fields

    GENERAL_FLAG – Single character field and can be used to indicate some special behaviors

    FIELD_VALUE – Actual field value to be displayed

    Currently for the Business Partner’s downloaded from CRM to DOE, we do not download the time zone orthe language of the Business partner.

    So we will enhance our GETDETAIL bapi wrapper to get these two new fields downloaded to the device and

    display them on the device UI.

    BADI Implementation

    1. Execute transaction SE19

    2. In the second section Create Implementation, give the enhancement spot name as“CRM_MOBILE_SMARTPHONE” and click on Create Implementation. 

    3. Give enhancement implementation name as Z_SMARTPHONE_IMPL_XXX where is the clientnumber and give any description and click OK.

    4. In Create BADI Implementation screens, give BADI Implementation name asZ_SMARTPHONE_IMPL_XXX and Implementation class as “Z_BUPA_IMPL_XXX” and for the BADIDefinition select “CRM_BUPA_MOB_SMARTPHONE” from the dropdown list. 

    5. Once created, double click on the Implementing class “Z_BUPA_IMPL_XXX” and open the method“IF_EX_CRM_BUPA_MOB_SMARTPHONE~CRM_BADI_BUPA_MOBILE_GETDETAIL” and copypaste the following code.

    Data: ls_bupa_header_details TYPE crms_bupa_mob_bpheader,

    ls_address TYPE bapibus1006_address,

    lt_bupa_header_details TYPE STANDARD TABLE OF crms_bupa_mob_bpheader,

    ls_ce_bupa_hdr TYPE CRMS_MOBILE_CUST_ENHANCE,

    lt_ce_bupa_hdr TYPE STANDARD TABLE OF

    CRMS_MOBILE_CUST_ENHANCE.

    lt_bupa_header_details[] = et_bupa_header_details[].LOOP AT lt_bupa_header_details INTO ls_bupa_header_details.

    CALL FUNCTION 'BUPA_ADDRESS_READ_DETAIL'

    EXPORTING

    IV_PARTNER = ls_bupa_header_details-partner

    IV_XADDRESS = 'X'

    IMPORTING

    ES_ADDRESS = ls_address

    EXCEPTIONS

  • 8/9/2019 SAP Crm Mobile Sales Document

    5/11

      Enhancement Guide  – Gateway 1.1 to SAP NetWeaver Mobile 7.10

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

    © 2010 SAP AG 5

    NO_PARTNER_SPECIFIED = 1

    NO_VALID_RECORD_FOUND = 2

    OTHERS = 3

    .

    IF SY-SUBRC 0.

    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    ls_ce_bupa_hdr-PARTNER = ls_bupa_header_details-partner.

    ls_ce_bupa_hdr-FIELD_NAME = 'ZTIME_ZONE'.

    ls_ce_bupa_hdr-FIELD_TEXT = 'Address time zone'.

    ls_ce_bupa_hdr-DATA_TYPE = 'CHAR'.

    ls_ce_bupa_hdr-DATA_LENGTH = '6'.

    ls_ce_bupa_hdr-DECIMALS = '0'.

    ls_ce_bupa_hdr-FIELD_VALUE = ls_address-TIME_ZONE.

    APPEND ls_ce_bupa_hdr to lt_ce_bupa_hdr.

    clear ls_ce_bupa_hdr.

    ls_ce_bupa_hdr-PARTNER = ls_bupa_header_details-partner.

    ls_ce_bupa_hdr-FIELD_NAME = 'Z_LANGUAGE'.ls_ce_bupa_hdr-FIELD_TEXT = 'Language Key'.

    ls_ce_bupa_hdr-DATA_TYPE = 'CHAR'.

    ls_ce_bupa_hdr-DATA_LENGTH = '2'.

    ls_ce_bupa_hdr-DECIMALS = '0'.

    ls_ce_bupa_hdr-FIELD_VALUE = ls_address-LANGUISO.

    APPEND ls_ce_bupa_hdr to lt_ce_bupa_hdr.

    CLEAR ls_ce_bupa_hdr.

    ENDLOOP.

    CE_BUPA_HEADER[] = lt_ce_bupa_hdr[].

    6. Activate the Code in the system and trigger initial load from CRM system and all set to see newfields on device

    Extending Distribution Logic:

    Data distribution decides the distribution of data to the receivers based on the distribution rules ordependencies. SAP delivers the data distribution model but it may not be the best suited data distributionmodel for customer ’s business processes / requirements. In this case, customer has to modify the datadistribution logic to suit their requirement. There are two ways to modify the data distribution.

    1. Add the distribution logic to the SAP delivered model with minimal changes. (Not

    recommended)2. Create new distribution logic without modifying the SAP delivered model. (Recommended)

  • 8/9/2019 SAP Crm Mobile Sales Document

    6/11

      Enhancement Guide  – Gateway 1.1 to SAP NetWeaver Mobile 7.10

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

    © 2010 SAP AG 6

    Modifying Distribution Logic:

    Modifying SAP delivered Distribution Model will allow only compatible changes and conflicts will need to beresolved when upgrades are shipped by SAP. In this case, you can add distribution rules or distributiondependencies, but existing distribution rules or distribution dependencies can’t be deleted since onlycompatible enhancements can be made. Whenever SAP modifies the distribution logic, customer has toresolve conflict at the time of system (DOE) upgrade. So, we recommend not modifying the distribution logic

    delivered by SAP.

    Copy of Distribution logic:

    Other option is to create new distribution logic without modifying the SAP delivered model.

    Follow the steps to create new distribution logic

    i. Create SWCV in transaction SDOE_WB transaction.

    ii. Extend the SWCV in Uses tab.

    iii. Save the SWCV.

    iv. Execute (F8) the report ZCOPY_DM.

    Note: This is not a standard functionality. So, in case of any errors when executing this report, please raise an OSSmessage in the component BC-MOB-MGW.

  • 8/9/2019 SAP Crm Mobile Sales Document

    7/11

  • 8/9/2019 SAP Crm Mobile Sales Document

    8/11

      Enhancement Guide  – Gateway 1.1 to SAP NetWeaver Mobile 7.10

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

    © 2010 SAP AG 8

    Conditional Dependency - http://weblogs.sdn.sap.com/pub/wlg/22157 

    vii. After modification of distribution logic activate the distribution model using Activate button asdisplayed in the below image.

    To use new distribution logic, we need to modify the active DM SWCV assigned to the model in

    SDOE_ESDMA_DESIGN transaction.i. Go to transaction SDOE_ESDMA_DESIGN.

    ii. Select the MAS_SMARTPHONE_SALES_V00 - V9G001 version from the input help providedfor ESDMA name and click on “Display” button.

    iii. Click on “Runtime Projections & Headers” button. 

    iv. Select “Assign DMSWCVs” tab. 

    v. Select the DM SWCV (ZMAS_SMARTPHONE_DMSWCV , 1.0 of SAP) which is created inearlier steps and click on Save button.

    http://weblogs.sdn.sap.com/pub/wlg/22157http://weblogs.sdn.sap.com/pub/wlg/22157http://weblogs.sdn.sap.com/pub/wlg/22157http://weblogs.sdn.sap.com/pub/wlg/22157

  • 8/9/2019 SAP Crm Mobile Sales Document

    9/11

  • 8/9/2019 SAP Crm Mobile Sales Document

    10/11

      Enhancement Guide  – Gateway 1.1 to SAP NetWeaver Mobile 7.10

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

    © 2010 SAP AG 10

    Related Content

    For more information, visit the Mobile homepage. 

    https://www.sdn.sap.com/irj/sdn/mobilehttps://www.sdn.sap.com/irj/sdn/mobilehttps://www.sdn.sap.com/irj/sdn/mobilehttps://www.sdn.sap.com/irj/sdn/mobile

  • 8/9/2019 SAP Crm Mobile Sales Document

    11/11

      Enhancement Guide  – Gateway 1.1 to SAP NetWeaver Mobile 7.10

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

    © 2010 SAP AG 11

    Copyright

    © Copyright 2009 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 SystemsIncorporated 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 ofCitrix Systems, Inc.

    HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, MassachusettsInstitute 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 byNetscape.

    SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentionedherein 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, andother Business Objects products and services mentioned herein as well as their respective logos are trademarks or registeredtrademarks 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 documentserves 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 ("SAPGroup") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors oromissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in theexpress warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting anadditional warranty.