S01 Sync

Hi
I am on SP 14 and have developed two set of Bapi Wrappers GetList, GetDetail) and two Sync Bo's. Tied into one MCD and one Mobile Application.
I am using S01 sync. I am able to get the data from the backend during Syncronization. But If I change any of the mapped field (Master/Transaction) data in backend, it's not being reflected in the client system.
I am not sure why it's happening as with S01 there is no replica database and further can't check the exact data in Monitor as well. Though for some data it seems that the Monitor shows the updated entry, but not the Client.
Any inputs will be highly appreciable.
Best Regards
Swetank

Hi Swetnak:
In reagrds to #2 & Sync Type S01, you are correct, the Replicator Program(Main: MEREP_PROFILE_RSHS) will check before it is executed wheher it can run for the selected SyncBo Type and it is run only for D01,T01 & T51 but not for S01 & U01.So no need to emulate the SyncBo.You are correct here.
I think you said you are in SP14 and hence your MI Client cannot be at a higher SP level than your MI server as recommended.Is both your MI Clinet and MI Server at same SP level?
I think the issue might be more related to your SP Level.SAP Support Team should get you a good answer.
Here is the Composite Note 852142 on MI2.5/SP14.I donot think your issue is addressed here.
Good Luck:)
Thanks
Gisk
Message was edited by: Sivakumar Ganesan(Gisk)

Similar Messages

  • I canu00B4t sync with type S01

    Hi, I create a syncbo of type S01, but i can´t receive the data, why? I create a smart project. The SyncBo is enable, but not receive the data in the app, have i configure anything?
    Thanks,

    Hi Victor,
    yes, this is correct. T01 always replicates the complete datastack!
    But: simply siwtching the SyncBO does not really help you! In your case you mentioned you just changed the BO from T01 to S01. This means:
    T01: every replicator run triggers a complete selection on the backend. Because T01 is for data, that does not change that often, you can run this replicator in the night. So the load on the server happens in a time when he has not so much to do - because all employees are at home - and so it is fine. All Syncs run on the middleware only, so the backend is not effected at all.
    S01: EVERY SYNC triggers a complete selection on the backend. And this is really not the thing you want! If you say your replication runs a while, then I expect you have a hughe selection. If you just change the SyncBO type without changing the selection, you as well select this large dataset on the backend. But now with every sync. First of all this takes the same amount of time then the selection for the replication of T01 AND you do that now for every user and every sync on the backend.
    Are you still with me?
    I think you need either to change the selection criteria if you really think S01 is correct for you or change to T51.
    In T51 you run a replication similar to T01 one time. Now you have an exact copy of the dataset on the middleware. From that point on you replicate only the changes from the backend to the middleware. But as I said: be aware, this setup is complex and it takes place in backend and middleware!
    S01 is really only for Orders, Notifications,.... Stuff that changes really often and where you need really the most up to date data on the client AND where a selection gives an extremely limited result. An employee has just a max of 30 orders that he handels - but he has about 20.000 Equipments. So equipments will never be handeld as a S01 but orders make sence.
    Hope this helps!
    Regards,
    Oliver

  • Modify field of a SyncBo S01

    hello all,
    i have modify my syncBo S01 (<i>two way, synchronous type</i>).
    after this modify i don't receive in my MIClient this syncbo.
    i have followed these steps:
    <b>
    1-deleted mobile component
    2-disabled syncbo bo
    3-modified bapi
    4-activated syncbo
    5-launched merep_purge
    </b>
    any suggest?
    thanks in advance,
    regards,
    eliana

    Hi Elina,
    If there is no change in the Structures which are used in your BAPI Wrapper , then no need change the Sync BO.
    If there is change in the Structures used in your BAPI wrapper , you have to do like this..
    hope u ahve followed like this..
    1) changed the BAPI wrappers.
    2) deleted syncbo
    3) created new sync bo with these BAPI Wrappers and generated.
    4) Enabled the sync BO.
    5) from the old MCD remove the particular Sync Bo and added the new Sync Bo.(bcoz here the version of the sync BO will change after regeneration).
    6) Export the meRepMeta.xml file for this changed MCD.
    7) Replace the XML file in the studio  with the newer meRepMeta.xml file.
    8) Rebuild and export the WAR file(JSP).
    9) Upload this WAR file in MI server for ur newly created or modified MCD.
    10)Assigned the changed application once agian ...
    If there is change in the attribute(type , size) of the fileds used in the structure , whiuch are used in the BAPI Wrappers u have to do these  steps ...
    let me know ..
         Regards
         Kishor Gopinathan

  • Sync key missing in replicaion database

    Hi All,
    Firt of all, the Infos:
    1) I´m running on MI 2.5 Sp 009;
    2) My BAPI Wrappers are on the MI server and they call transacions in the backend system (R/3 4.6c);
    3) I have a SyncBO type S01;
    4) My client is AWT version;
    5) I have only 3 wrappers : GetList, GetDetail and Modify;
    The Problem:
    When I call the Functions GetList and GetDetail via the transaction se37 or via the mobile, it works just as expected (return the data). Then When I call the function modify via se37 it works fine but when it is called by the mobile the worklist monitor (merep_mon) show the error "Sync key XXX missing in replicaion DB".
    Always when I call the MEREP_EX_REPLIC, it return me the 0 records, but I get the data in the mobile client. I believe that can be a problem in the BAPI wrappers code, so their code is attached to analisys.
    GET_LIST :  
    FUNCTION zmob_bwp01_getlist.
    *"*"Global Interface:
    *"  TABLES
    *"      T_TOP STRUCTURE  ZMBWP_HEADER
    *"      RETURN STRUCTURE  BAPIRET2
    * Workitem related data.
      DATA: t_worklist  LIKE swr_wihdr OCCURS 0 WITH HEADER LINE,
            return_code LIKE sy-subrc.
    * Get Workitem header
      CALL FUNCTION 'SAP_WAPI_CREATE_WORKLIST'
        DESTINATION 'D01CLTN110'
        IMPORTING
          return_code = return_code
        TABLES
          worklist    = t_worklist.
      REFRESH t_top.
      LOOP AT t_worklist.
        MOVE t_worklist-wi_id      TO t_top-workitem.
        MOVE t_worklist-wi_text    TO t_top-subject.
        MOVE t_worklist-wi_prio    TO t_top-priority.
        MOVE t_worklist-wi_forw_by TO t_top-forwby.
        MOVE t_worklist-wi_cd      TO t_top-sent.
        APPEND t_top.
      ENDLOOP.
    * Set return code to RETURN table
      IF return_code = 0.
        MOVE 'S' TO return-type.
      ELSE.
        MOVE 'E' TO return-type.
      ENDIF.
      MOVE return_code TO return-number.
      APPEND return.
    ENDFUNCTION.
    GET_DETAIL:
    FUNCTION zmob_bwp01_getdetail.
    *"*"Global Interface:
    *"  IMPORTING
    *"     VALUE(I_MANDT) TYPE  ZMBWP_HEADER-MANDT
    *"     VALUE(I_WORKITEM) TYPE  ZMBWP_HEADER-WORKITEM
    *"  EXPORTING
    *"     VALUE(E_TOP) TYPE  ZMBWP_HEADER
    *"  TABLES
    *"      T_010 STRUCTURE  ZMBWP_ITEM
    *"      T_020 STRUCTURE  ZMBWP_DESC
    *"      T_030 STRUCTURE  ZMBWP_ALT
    *"      RETURN STRUCTURE  BAPIRET2
      DATA: alternatives  LIKE swk_decialts OCCURS 0 WITH HEADER LINE,
            description   LIKE tline OCCURS 0 WITH HEADER LINE,
            workitem      LIKE swr_wihdr-wi_id,
            subject       LIKE swr_wihdr-wi_text,
            forwby        LIKE swr_wihdr-wi_cd,
            sent          LIKE swlwi_disp-wi_forw_n,
            status        LIKE swr_wihdr-statustext.
    * Get Workitem detail
      CALL FUNCTION 'ZMDK_WORKITEM_GETDETAIL'
        DESTINATION 'D01CLTN110'
        EXPORTING
          workitem_id  = i_workitem
        IMPORTING
          workitem     = workitem
          subject      = subject
          from         = forwby
          sent         = sent
          status       = status
        TABLES
          description  = description
          alternatives = alternatives.
      IF sy-subrc EQ 0.
    * Monta saida E_TOP
        e_top-workitem = workitem.
        e_top-subject  = subject.
        e_top-priority = '5'.
        e_top-forwby   = forwby.
        e_top-sent     = sent.
    * Monta tabela T_010
        t_010-workitem = workitem.
        t_010-subject  = subject.
        t_010-forwby   = forwby.
        t_010-sent     = sent.
        t_010-status   = status.
        APPEND t_010.
    * Monta tabela T_020
        LOOP AT description.
          t_020-workitem    = workitem.
          t_020-seq         = description-tdformat.
          t_020-description = description-tdline.
          APPEND t_020.
        ENDLOOP.
    * Monta tabela T_030
        LOOP AT alternatives.
          t_030-workitem = workitem.
          t_030-altkey   = alternatives-altkey.
          t_030-alttext  = alternatives-alttext.
          APPEND t_030.
        ENDLOOP.
    * Set return code to RETURN table
        MOVE 'S' TO return-type.
        MOVE sy-subrc TO return-number.
        APPEND return.
      ELSE.
    * Set return code to RETURN table
        MOVE 'W' TO return-type.
        MOVE sy-subrc TO return-number.
        APPEND return.
      ENDIF.
    ENDFUNCTION
    MODIFY :  
    FUNCTION zmob_bwp01_modify.
    *"*"Global Interface:
    *"  IMPORTING
    *"     VALUE(I_TOP) TYPE  ZMBWP_HEADER
    *"  TABLES
    *"      T_010 STRUCTURE  ZMBWP_ITEM
    *"      T_020 STRUCTURE  ZMBWP_DESC
    *"      T_030 STRUCTURE  ZMBWP_ALT
    *"      RETURN STRUCTURE  BAPIRET2
      DATA: return_code   LIKE sy-subrc,
            new_status    LIKE  swwwihead-wi_stat.
      DATA:   message_lines  LIKE swr_messag OCCURS 0 WITH HEADER LINE,
              message_struct LIKE swr_mstruc OCCURS 0 WITH HEADER LINE.
      CLEAR:   message_lines, message_struct.
      REFRESH: message_lines, message_struct.
      DATA: wa TYPE zmoblog.
      CONCATENATE sy-datum sy-uzeit INTO wa-datetime1.
      CONCATENATE t_010-workitem t_010-decision_key INTO wa-message.
      INSERT INTO zmoblog VALUES wa.
      CALL FUNCTION 'SWK_DECISION_COMPLETE'
        DESTINATION 'D01CLTN110'
        EXPORTING
          workitem_id    = t_010-workitem
          language       = 'PT'
          user           = sy-uname
          decision_key   = t_010-decision_key
        IMPORTING
          return_code    = return_code
          new_status     = new_status
        TABLES
          message_lines  = message_lines
          message_struct = message_struct.
    * Set return code to RETURN table
      IF sy-subrc EQ 0 AND return_code = 0.
        MOVE 'S' TO return-type.
        MOVE return_code TO return-number.
      ELSE.
        MOVE 'E' TO return-type.
        MOVE return_code TO return-number.
        MOVE sy-subrc TO return-message.
      ENDIF.
      APPEND return.
    ENDFUNCTION.
    What can I do? Any ideas?
    Thanks in advance,
    Rafael

    Hi Rafael,
      What i meant actually is for S01 it doesnot  update the RDB when you execute transaction MEREP_EX_REPLIC, instead the replicator is called during each sync and it communicates with the backend only during sync.So it does uses the replicator but only at Sync.So looks like there is some data inconsistency that throws the error "Sync key XXX missing...", this could happen if the SyncBo mapping is changed after the Sync. Try resetting the RDB by executing the Function Module MEREP_RDB_S01_RESET with SCENARIO = <Your SyncBo>.Before that disable the SyncBo for synchronizing and after resetting, reset your mobile device too by Undeploying and deploying the application again.
    See if it helps.
    Thx
    Gisk

  • Auto sync (repetitive sync) sync all...

    Hi, i have an application with syncbo S01 (i need an app more or less "online"), and repetitive sync active in mobile config, but appear many problems, many time appear syncbo in i-wating, i think that the problem is because the auto sync sync all..., how can avoid it?
    Thanks,

    Hi Victor,
    well, I guess it is a good idea to solve th other issues first - then this will go away as well. Could be the am,ount of data for example,..... On the end: anoher item is in I-PARTIAL - this blocks the items from processing.
    Based on the processing: one BO is processd, then the next one, then the next one,.... It is a queue. It is not that all BOs process from I-WAITING via I-PARTIAL to I-FINISHED in parallel. It happens one after the other. And as long as one is in I-PARTIAL - no others can be processed......
    Regards,
    Oliver

  • Regd 2-Way (S01)

    Hi all,
      We have a requirement that each user has to get user specific data by calling getlist function with import parameter(this will vary for each device based on user input) passed to the backend. So we are thinking of using 2-way(S01). My Question is whether hether we can pass  any import parameter(say dept id to get employees of that dept) other than ME-SYNC_USER in import parameter of getlist.
    Thanks in advance..
    Regards
    Vasu

    Hi Vasudevan,
    Let me know these things..
    1) U have multiple installations for the same user ?.
    2) If u do not have multiple installations for the same user , then why should u need the dep_id
    also as filtering criteria?.
    3) For the particular user , u have large amount of data (without the dep_id).?
    4) The different users have different data for the same dep_d?
    5) will u save number of dep_ids related data or only one dep_id before synchronization?.
    Then ,
    If u do not have large volume of data to be downloaded to the client device , based on the
    user id only , then why u want to filter the data based on dep_id for each synchronization?.
    This can be achieved in one way . but i havent tried like this..
    Assume there is no initial data excluding the dep_id .(for dep_id , u can use different syncbo)
    In this case , in ur S01 SyncBo , u have to include the CREATE and MODIFY Bapi Wrappers also.
    Assume Initially u have only the dep_ids corresponding to ur user id.
    Then at first time , u r going to save the particular DEP_ID for that user. Then sync..
    Here ,
      in the back end , ur CREATE wrapper will execute first and then the GETDETAIL Wrapper.
    Here ur BAPI wrapper should work like this ,
    GETLIST
    (i assumed at a time , u have one dep_id record to save in the client device before synchronization)this should only return one row of data in the
    table param. and this should be ur dep_id only.
    then map this dep_id only as the key field for ur GETDETAIL BAPI Wrapper.
    GETDETAIL
    this getdetail should select the ITEM tables (data ) corresponds to the dep_id u saved.
    here the key field mapped is the dep_id only.
    CREATE
    u have to follow the prerequisites for BAPI wrappers.
    Here we have only one header data . this header is the table param of our GETLIST WRAPPER.
    we dont have item data to create .but we have to satisfy the BAPI Wrapper prerequisites.( refer
    the link i have already given in my last reply.)
    the export param must be the dep_id here.. (this is also prereq..).
    (After the new record creation , the frame work calls the GETDETAIL wrapper using the export parameter
    of ur getlist .)
    MODIFY Wrapper
    for this sync bo , u have only one HEADER DATA( as u mentioned , u need only the the dep_id ,u have saved , related data
    want to persist as the offline data on the client device . thats why..).
    Then u r modifying the dep_id for the same header for each sync. so now onwards
    ur modify wrapper will do ur requirement.
    hope u got a general idea , what to do!!!
    One more thing ,,
    hope u have both the user id and dep_id as primary keys in the back end.
    If all the users have same data corresponding to the dep_id . then u only have
    to filter the data based on the user id.
    so that , we can manage the entire data on the client device itself and u dont have to
    go for the above mentioned idea. (u have to use only the GETLIST and GETDETAIL wrappers)
    Regards
    Kishor Gopinathan

  • Ipod no longer sync purchased material?

    Hi there. I recieve this message after i connect my ipod.
    http://img.photobucket.com/albums/v128/chrisgee/Failed%20Shots%20Reference/Ipodp rob.jpg
    Nothing I have purchased will sync to my ipod for some reason. I bought them ages ago, they work fine in itunes on my computer, and up until recently they worked fine on my ipod also... I think it related to the fact that due to a fault with vista i was forced to 'reactivate' windows. But it was reactivated using the same key that came with the computer? weird
    Any help appreciated.
    Cheers
    Chris Gee
    www.stereoimage.co.nz
    Message was edited by: StereoImage

    Have you tried to de-authorize your computer, then to re-authorize again?
    Make sure to use that ID that had been used for purchasing those 52 tracks.

  • Cannot sync, error message "could not be read" for an iPod no longer in use

    I have two problems. I upgraded iTunes to 7.2 and the very next morning my iPod died. It is completely unresponsive. Maybe it's coincidental. So I bought a new 80 gig iPod and gave it a different name than the old dead iPod. Now when I try to sync the new iPod, it goes for about 10 minutes, then it fails with this message:
    Attempting to copy to the disk "old iPod name" failed. The disk could not be read from or written to.
    It is complaining that it can not read the old dead iPod that is NOT hooked up to the computer! Somehow, minutes into syncing, iTunes has forgotten which iPod it is looking at. I have seen the article about the "cannont be read" message and it is not relevant. I need to make iTunes forget about the old dead iPod so it will stop looking for it. I've tried removing the files from "Documents and Settings" but iTunes still remembers the old unit. Where else does it store information? Any recommendations?
      Windows XP  

    Attempting to copy to the disk "old iPod name" failed. The disk could not be read from or written to.
    It is complaining that it can not read the old dead iPod that is NOT hooked up to the computer!
    Okay, that can sometimes be caused by a Windows drive letter confusion. For troubleshooting advice on that possibility, see the following document:
    Windows confuses iPod with network drive or hard drive and may keep iPod from mounting or songs may seem to disappear

  • IPod Touch will no longer sync...error message.

    For some reason my older iPod Touch without a camera on it will not sync any more and I am getting an error message saying this iPod cannot be synced. Now I had it set up to sync over Wi-Fi and I would occasionally hook up to the computer with the cable and got error messages on both. Now I read something about removing the SC Info Folder. If I do that will that mess things up with syncing my iPhone? 

    What is the exact wording of the error message?

  • Cannot send email from iPhone5--calendar syncing issues also

    I have an iPhone 5 and am not currently using iCloud.  I have 3 email accounts. 
    The first is a yahoo email account--and it both receives & sends emails just fine. 
    I use Outlook for the other two email accounts (one is an IMAP and the other is a POP).  Both receive email, but I cannot send out emails from my iPhone.  When I try to send an email from either account, I get this message: 
    "A copy has been placed in your Outbox.  The sender address "[address I used]" was rejected by the server.
    Also, I don't know if it is related, but my iPhone calendar isn't syncing with Outlook.  I add an appointment on my iPhone or in Outlook, and it won't appear in the other location (Outlook/iPhone). 
    Thanks for your help. 

    Check your settings, maybe the mail index is at fault.
    Setup Wizard and troubleshooting tips:
    http://www.apple.com/support/mail
    Also has a link to Mail community section.

  • IPhone Voice Memos Won't Sync

    I have an iPhone 3GS and an iMac operating on OS X 10.6.8. When I sync my iPhone to the iMac, all of my voice memos transfer, except key memos dated before a certain date or 5/4/11. I can't figure it out. I've looked through all my preferences in iTunes and on the iPhone but without any luck. Any clue what the problem may be and how to fix it?
    Thank you...

    I got a way around it. It's a bit long but works. Email the memo to yourself and then download it. Then open it on itunes and find it inside the Music folder (top left). Then copy and place it wheneve you want. It's the only way I could managed to move them from the memo library to my prefered playlist (despite ticking the include voice memos box). For some anowying reason memos are not allowed to be moved around!

  • Voice Memos (iPhone app) doesn't sync to iTunes

    "Include voice memos" is checked in iTunes but they don't sync, no playlist is made.  The files are too large to email. Is there another way to make this happen?  I've only just begun using the application in the past few days.  Other notes: I have a new MBP (one week old) which replaced a previous MBP to which the iPhone was a long-time pal.  Since I linked the iPhone to my new MBP, each time they sync, the same 17 podcasts (1 each from 17 of the 26 to which I'm subscribed) and the same 92 songs (out of the 2000+ in playlists chosen to sync) are transferred to the iPhone.  Another issue probably...???  Thanks in advance!

    http://support.apple.com/kb/TS1591

  • With iPhone 4, Voice memos and a faulty Sync, does anyone know how to get a VM which didn't sync at the time into the computer?

    I have an iPhone 4 ISO 7and an iMac with Mavericks. During a sync with my phone there was a glitch and VM's did't get onto the computer. They are still on the phone.  Is there a way of getting them onto the computer?  Further attempts at sync were no solution. the computer will not read them it seems.
    Thanks,
    John

    After spending 2.5 hours on the phone with Apple, the solution was to edit it, trim a second or 2 off one end, save it as new and the computer would recognize the new file. Great.  Thanks. John

  • Syncing iPhone and voice memos?

    Hi. If I sync my iPhone with a new computer for the first time iTunes says it must "erase and sync". Will this erase my current voice memos on my iPhone?

    Oh, that's alright then.
    Urgh.
    I'm stuck in the music trap, I got a new computer and have never managed to transfer the many albums I'd painstakingly uploaded to the old library, the most important of which I have uploaded on the iPhone. I really don't want to have to start again. I quite understand that there are pirating/copywriting issues here, but why can't Apple realise that my voice memos are categorically not music! I didn't like finding them in my music library before I changed computers, but I like it even less now that I can't get them onto my computer at all. These are conversations I've recorded with my elderly father about his childhood and I really want to archive them somewhere safe - aargh!
    Does anyone have a magical solution?

  • IPhone 5 - Voice Memos won't sync.. Tried EVERYTHING!

    I have alot of Voice memo recordings of classes and lectures that I need on my computer.
    The last time memos successfully synced was in February, and even then, not ALL of the memos synced, only some of them.
    I have the "sync" memos tab checked but nothing happens now.
    I have even deleted the iTunes playlist - Voice Memos in despiration (i backed the synced ones) and tried to get iTunes to recreate the playlist and hopefully let it re-sync the others still on my phone - but no!
    I have iTunes & iPhone up to date so it's not an issue of old software.
    The files are also way to big to "share" from the iPhone as some are about an hour or so long.
    If Apple has no answer to this, can anyone reccommend a 3rd party app/software that can drag the files from my phone?
    Cheers
    mattwd

    I got a way around it. It's a bit long but works. Email the memo to yourself and then download it. Then open it on itunes and find it inside the Music folder (top left). Then copy and place it wheneve you want. It's the only way I could managed to move them from the memo library to my prefered playlist (despite ticking the include voice memos box). For some anowying reason memos are not allowed to be moved around!

Maybe you are looking for

  • Error while sending mail when using Java Mail API

    Hi Experts, I am trying to execute a webdynpro application which uses the Java Mail API to send emails. The exception that I get on executing the application is : Sending failed;  nested exception is: javax.mail.SendFailedException: Invalid Addresses

  • Vendor to vendor entry

    hi, The case is wrong entry done  in vendor a/c instead of entered in one vendor  entry made to other vendor a/c now how to clear it & that entry related opening balance related to initial upload Because while passing JV thorough fb01 hitting error o

  • One commercial app on several iPads

    Hi everyone, I would like to know your point of view in order to deploy a commercial app (from app store) on about thirty iPad. The problematics is : How can I deploy an app and deploy it on 30 iPad ? Do I need to purchase 30 apps ? I studied two cas

  • Apple Iphone 4 16gb is slow

    My iphone 4  yes iphone 4 is running slow for some reason when i tap on the app store or itunes on the iphone it some times lagys its way onto the app I am not Jailbroken and never have done to this device, it does not do it all the time properly 5/1

  • How to query ESB_ACTIVITY in olite?

    Hi, how to query the the esb tables ESB_ACTIVITY,ESB_TRACKING_FIELD_VALUE,ESB_FAULTED_INSTANCE and ESB_TRANSACTION_STATUS in olite db? Thanks.