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

Similar Messages

  • Error:Sync Key Missing in Replica DB

    Hi,
    While I am trying to test my Sync Bo thru Emulator, in the Inbound Worklist (Handler) I am getting the below error message, ' Synchronization key 0000000001 missing in replicaion DB, and  'Return code 1 (UPLOADER)'.
    Could you pleae help in resolving the same.
    Regards,
    Sudhakar Karumuri.

    Hi Sudhakar,
    Is it possible to give the steps which had been simulated?
    For eg:-
    1. order is created
    2. Material conf/Time conf is created
    3. sync
    4. error
    One scenario is that (if you are using MAM) if an automatic notification is created in back-end, the above steps give a missing sync key error.
    Best Regards,
    Subhakanth

  • Manage Account is missing from the Sync tab. Unable to view my sync key to enable another device.

    1st Step: Firefox
    2nd Step: Options
    3rd Step: Sync
    After the 3rd Step, the Manage Account feature is missing so I am unable view my Sync Key to enable my Android phone.

    As explained in the first step of the article posted, you need to set up your Firefox Sync account before moving forward and be able to add a new device.
    If you did set up an account in the past, you would need to select "Connect" and then search for the link "I don't have the device with me" at the bottom of the 3 boxes.
    Make sure that you have the Sync Key handy. If you have lost it, you would need to press the "I've lost my Sync Key" and follow the steps. This will erase all the information in your Sync server.

  • Option to create new sync key is missing

    I followed the instructions here:
    https://support.mozilla.com/en-US/kb/Firefox%20Sync%20is%20not%20working#w_ive-lost-my-sync-key-what-can-i-do
    But in my 'sign-in' dialog it says 'wrong sync key' but does not provide a link that says 'I have lost my sync key'. Therefore I cannot create a new key and I cannot use this feature at all. I do not want to have to create a new sync account using a different email, as I do not have a different email that I wish to use for purposes such as this. Please help. I'm using FF 5.0 on a MacBook Pro.

    Hi!
    Unfortunately there's no option to recover your key so you could access your previous data. If you create a new Sync Key you will lost your previously synced data.
    The path to get the key has changed a little bit and the article you are pointing is not totally updated. I'm going to review it with the right steps:
    1- On the menu bar, click on the Firefox menu and select Preferences...
    2- Click on the Sync tab.
    3- Click Set up Firefox Sync and a new window will open.
    4- Under I already have a Firefox Sync account, click Connect
    5- Click I don't have the device with me
    6- Enter your account email address and password
    7- Click on "I've lost my other device"
    8- A new Sync Key will be made for you. Please take a moment to print it out or save it on your computer. Then click Change Sync Key

  • How do I get the android version of Firefox to show my sync key OR export my bookmarks?

    This is so aggravating, I have spent hours and hours now trying to get my bookmarks out of my Android device, to no avail.
    There are two addons out there, none of which work with the current version (18) of FF.
    So I took the about:synckey plugin (https://addons.mozilla.org/en-us/firefox/addon/aboutsynckey/) and updated the install.rdf with the android GUID and bumped the em:MaxVersion. Now it installed! WOHO!
    But didn't work. :-(
    Googling I managed to find a post in http://support.mozilla.org/en-US/questions/941765?page=2 where cor-el points out that the code is wrong. So I make the fix: The call to get the key should supposedly be 'Weave.Utils.hyphenatePassphrase(Weave.Identity.syncKey)'.
    I reinstall and try again, but no dice. I try to insert an alert. No dice. The Javascript doesn't seem to fire.
    I try on the desktop, and it works! Well, I don't have a key, but the alert fires as least.
    Does Android require signed packages for JS to run, or what am I missing here?
    The fact that there is no way to get the sync key out of FF for android NOR export bookmarks is, to use a strong word, retarded. Googling around there are many many threads from people who have, like me, lost their recovery key. It's aggravating because the data is there. I have my bookmarks on the device. I know the key is in there or it couldn't decode them. There's just no way to get at it because everything is locked down.
    The JS looks like this (oh great, no preview here. How nice):
    <script type="application/javascript;version=1.8"><![CDATA[
    window.addEventListener("load", function onLoad() {
    window.removeEventListener("load", onLoad, false);
    Components.utils.import("resource://services-sync/main.js");
    let synckey = Weave.Utils.hyphenatePassphrase(Weave.Identity.syncKey);
    document.getElementById("synckey").textContent = synckey;
    }, false);
    ]]></script>
    One thread suggested 'jailbreaking' and then somehow exporting the sql-lite(?) database containing the key, extracting it from there. I'm not doing that. This isn't supposed to be hard, this is supposed to be three clicks and you're done.
    For the love of all that is holy, someone add Export Bookmarks to the Android version so we can get on with our lives.

    This is because the directions you are seeing are out of date. They applied to Firefox < 10.
    The only way to get data out of the Firefox for Android profile is to use https://addons.mozilla.org/en-US/android/addon/copy-profile/
    This data is not directly importable into Firefox desktop. It would require some inspection of the SQLite databases to accomplish what you want to do.

  • Indexes missing in the database

    hello gurus
    Missing indexes. Check of 23.04.2007 20:11:16
           Indexes missing in the database
               Primary indexes                    0
               Secondary indexes                6
                   /BIC/F100067-160
                   /BIC/F100067-150
                   /BIC/F100067-140
                   /BIC/F100067-130
                   /BIC/F100067-120
                   /BIC/F100067-110
    This is my problem, I am facing in my database, can somebody help me to understand what is   Primary indexes,     Secondary indexes in the database
    whether they critical or non critical, what is the process so that we can rectify the
    indexes ?
    Waiting for your reply
    Thank You

    HI Shishir,
    <b>Here are the definitions for the following :</b>
    <b>Missing indexes</b> may occur if you ignore an error message when creating a table (table created, index not created) or if an index is deleted. The latter case may occur during an incorrect reorganization.
    <b>Difference between Primary and Secondary Index:</b>
    <b>Primary indexes</b> (ending with 0) ensure that the line keys (row keys) are unique. Missing primary indexes are therefore a critical problem.
    <b>Secondary indexes</b> (ending with 0) are used for particular scans and are only important for performance.
    To analyze the above use T-code DB02
    Regards
    <b>Vijay Kothapalli</b>

  • SYNC Key

    To whom it may concern,
    I’m currently trying to log in to the Firefox Sync and according to your systems, this SYNC Key is not a good key.
    The left side of your screen is the saved copy of the Key when I have re-created one.
    Please verify the server is not having any problems.
    This is not the first time I had to re-set my key, but why do I have to keep doing this and lose all data?
    PLEASE NOTE I HAVE AN IMAGE WOULD LIKE TO SHOW YOU, PLEASE PROVIDE EMAIL OR OTHER WAYS TO UPLOAD
    Regards,
    Kevin Law

    Hi Rogerio:
    1). Execute transaction MEREP_PD,Go to Mobile ID Tab and enter your mobile ID# 71 and then click "Refresh Replica Data base", this will delete data for your Device ID.
    2). Execute FM "MEREP_RDB_S01_RESET" from SE37 with your SyncBO Id to reset your replica database.
    3). Execute Transaction MEREP_EX_REPLIC with your SYNCBO Id, you should get new data in the Replica Database.This is same as choosing the Synchronizer Tab in MEREP_PD and then replicating the DB for your SyncBo after you enabled it the first time.
    After doing this,do a sync from your MI Client again, this should get a new sync key and try posting it now.
    Regarding, Updation the BAPI Wrapper will update only the Tables/Structure in the backend system, the system that has been defined under RFC Destination in the SyncBo eventhough those tables exist in the MI Server.Because when there is a RFC Destination(which is not local) assigned in the SyncBo, it will never call the BAPI Wrapper in the MI Server and it don't even have to exist in the MI Server.The BAPI Wrapper has to exist only in the Backend System.If you still want to update something in the MI server then you have to do special coding in the BAPI Wrapper in your Backend System to update the tables in your MI Server.

  • I deleted my SYNC Key and now realilze I want it. How do I reinstall it. The Sync Key under options does not work

    I deleted the Sync Key, I thought it was just a refresh button and was not working. I have now read more about it, and want ot reinstall it, but when I go from tools>options.Sync, I get:
    Incorrect account name or password: Update, reset or unlink
    I have tried all three.
    I know I made the error, but I don't know how to retrieve it. I have not shut my computer down, but I can;t seem to find it in my history either.
    HELP ME PLEASE

    User account – restore missing admin

  • Tab key missing

    my ipad keyboard suddenly is missing the tab key. what happended?

    As explained in the first step of the article posted, you need to set up your Firefox Sync account before moving forward and be able to add a new device.
    If you did set up an account in the past, you would need to select "Connect" and then search for the link "I don't have the device with me" at the bottom of the 3 boxes.
    Make sure that you have the Sync Key handy. If you have lost it, you would need to press the "I've lost my Sync Key" and follow the steps. This will erase all the information in your Sync server.

  • How do I use existing sync key after Windows clean install?

    Hi,
    I had setup Firefox Sync on my old Windows 7 install and I have the Sync Key given during the set up. I had to clean install (format C drive) my Windows.
    Is there any way I can use the old Sync Key to get all my bookmarks and stuff back?

    The problem has resolved itself...
    ...despite spending several pointless hours trying to delete the existing BootCamp drivers without success, I finally restarted Windows yet again - and this time I was easily able to delete the existing drivers.
    I then restarted my Mac, installed the latest drivers without issue and it all works just fine.
    Windows, eh?!

  • Photos Not Syncing; Photos Missing From Albums, No Error Message, Running iTunes for Windows & iOS 7.1.2

    I am having an issue with syncing my photos on my iOS devices running iOS 7.1.2, the two being an iPhone 4s and iPad 2 Wi-Fi + 3G.
    When I sync photos, I keep on having photos turn up missing from entire albums. I have tried everything I can to resolve this issue from the support article titled <a href="http://support.apple.com/kb/TS3697">iTunes: Unable to sync photos</a>, and nothing has successfully worked in any kind of permanent form. I have even gone so far as to sync albums individually with a limit of around 400-500 total photos per sync, (give or take), and tried using what very little options I have on the photos tab for my devices in iTunes to essentially trick the devices to sync the missing photos. Despite this, iTunes still fails to sync newly added photos from the source location.
    I have even made the attempt of re-installing iOS 7 on both devices, and restoring from backup. Again with no avail.
    My best guess for my iPhone is that as it is a 16 GB, not all of 15.6 GB of photos will sync to the device, (go figure), but that doesn't explain why recent photos aren't added OR why my iPad 2 of 64 GB has missing photos.
    As of this post, I have an estimated 38,940 files, spread across 1,703 folders, (a large amount of folders being in some of the folders; from my knowledge never being more than two folders in). They are all in one dedicated folder on a hard drive I've dedicated to iTunes and music related files, (for the sake of AVOIDING this kind of nonsense, I might add).
    As for the system OS and iTunes, I am running Windows 7 64 bit, and I am using iTunes 11.2.2.3, but will have updated to iTunes 11.3 by the time anyone responds.

    I have the exact same problem.
    Same kind of photos/videos taken with the same camera randomly sync.
    Did 11.3 fix this issue?
    Sincerely

  • When I try to sync my desktop with my laptop, which has all my bookmarks in Firefox I get the same boxes for setup. No where is there a place to in put my sync key that I have saved when trying to sync on my laptop I think.

    I put all the details in my question. On neither my desktop nor my laptop does a place pop up for my to enter the sync key that I have saved when I was trying to learn about Firefox and clicked on the sync. At the time I just thought it was for my cell phone which does not have access to the internet. Now that I have saved all my bookmarks from yahoo to Firefox on my laptop. I also want them on my desktop and did not want to go thru what I did on my laptop saving them one at a time. I had to do it this way because I could not get them to import or export or whatever. Besides the last time I checked yahoo had their bookmarks locked up because they are working on them. I could not add nor delete anything in yahoo bookmarks. They are in some transition that will not be complete until the 20th of October and this has been going on since around the beginning of September. So I really would like an easy fix to my problem.

    I know you can't help with my Yahoo problem, however, apparently at some time in the past I have went to the Sync and tried to figure it out on both my laptop and my desktop, because I have the long snyc key information. However, when I go to try to sync both computers I never get the box to enter that key on either one. That is my problem. So should I try and get a new sync key and see if that works.

  • I have a sync key, and have a new computer terminal, but when I enter the account details I created, it syncs nothing with my new computer. How do I fix this?

    I have a sync key, and have a new computer terminal, but when I enter the account details I created, it syncs nothing with my new computer. How do I fix this? There is nothing showing up when I sync with the sync key from my old terminal.

    ''NexGenCN [[#question-1038230|said]]''
    <blockquote>
    I recently had to do a wipe on my laptop. I saved the sync key but there was no mention of a sync account prior to doing the wipe. I saved the key and when I did the wipe it asked me to make an account, which I had not done, but now I am seeing no where to put in a sync key code. did they make them unusable now or something?
    </blockquote>
    You are probably trying to use old Sync with Firefox newer than version 29,
    and they did make old Sync unusable on fresh installations of newer Firefox.
    You can uninstall that newer Firefox, then install Firefox 29 from here:
    https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/29.0.1/
    Apply your sync key code, then update that installation to current Firefox,
    then migrate to new Sync:
    https://support.mozilla.org/en-US/kb/how-to-update-to-the-new-firefox-sync

  • Is there a way to have FF Home remember me, so I don't have to input the sync key, user ID, and password each time? (Perhaps something to do with that "add a device" passcode they completely ignore in the instructions for setting it up?)

    Or is my device just having issues, and it SHOULD remember me each time? It's too much hassle to go copy out my sync key each time from where I've saved it in the Notes app, so I almost never use FF Home - I just google or try to guess addresses in Safari, then bookmark them there. (Can one import bookmarks from Sync to Safari? That would help!)

    Well if you want a "single signon" experience, the Workstation will need to de join to the domain :-)  otherwise it will prompt for the Username and password for authentificaiton.
    You can then check the save password box.
    For remote user that are NOT on the domain, same behavior, you will be prompted to enter Username/Password.
    If a post is helpful, please take a second to hit the green arrow on the left, or mark as answer, thanks.
    Jean-Philippe Breton | Senior Microsoft Consultant | MCTS, MCITP, MCT, Lync MVP

  • I lost my Sync Key on my Desktop Firefox, but i still have it on my Firefox Home (IPhone 4). Is there a way to restore it/show it on the mobile device?

    I'm trying to resync my newly set-up Firefox on Mac OS X. Somehow it never occured to me, that i'd have to save the key.
    So is there a way, as stated in the title, to restore my Sync key from the mobile device, without deleting all of my Bookmarks etc?
    thanks in advance

    Hi,
    Sorry to read that. Unfortunately, because of security reasons, there's no way to retrieve your Sync key from any mobile device. That's why it's really important to keep a secure back up of it.
    The only remaining option at this stage is to save your bookmarks on the phone and manually migrate them to your computer. Once you have done this, reset your account.

Maybe you are looking for

  • HELP...CS4 Canon 5d Mark II camera raw

    I hope someone can help me.  On Friday I purchased the Canon 5d mark ii because my 1ds mii died and had to go in for repair.  I was in the middle of a professional shoot.  Now I cannot open the camera raw files in CS4 or Bridge, they do open in Light

  • How do i restore documents from iCloud?

    I have been doing a lot of searching, and not sure how to restore items....data to my MBP which had to have the internal HD wiped. I do have backups to 2 ehd

  • Let me select which file to use

    Hi, I'm making a video converting automator script. I have everything figured out except for telling automator to let me choose which file I want to convert. How do I do this? Thanks!

  • Quicktime Movie Files Not Opening when sent from iLife

    REcently, my mom and dad have sent me QT files recently via email and I've been unable to open them. Here is the strange part...they just emailed them to me using the "share" feature within imovie and/or iphoto. The files compressed fine and emailed

  • Outlook 2013 Exchange 2007 and 2003

    I have a client who has Outlook 2013. He needs to connect to a 2007 server and a 2003 server . I have not issues with connecting to the 2007 server.  What would be the best way to connect the 2003 server?  I have tried connecting the domain directly