MI7.1 Re-Commit data before synchronization

Hi,
I am newbie in Netweaver CE Mobile development.
I have a problem during synchronization between Mobile to R/3 server. The data that uploaded to R/3 server is only first committed data "OcaRoot.getInstance().commit();". The data after first commit are not uploaded to R/3 server even is deletion or addition of data.
Any idea for this case?
Thank you.
Edited by: Woh Jian Weng on Sep 14, 2008 4:13 PM

Hi,
Thanks for you reply. I manage to delete the inserted data refer to the employee_ui sample application but the data still appear at the backend after sync. Any idea why this happen??
Using the following code i am able to delete the record at the devices. But when it sync the data still get insert to database table.
          ZmovementZmovementheader header = (ZmovementZmovementheader) wdContext.nodeasset_services().nodegetZmovementHeaders().nodegetZmovementHeadersOutput().getCurrentElement().model();                    
          ZmovementZmovementdetail detail = (ZmovementZmovementdetail) wdContext.nodeasset_services().nodegetZmovementDetail().nodegetZmovementDetailOutput().getCurrentElement().model();
          header.removeFromZmovementdetails(detail);
          root.commit();
thanks
Edited by: fcgan on Aug 28, 2008 10:17 AM

Similar Messages

  • MI7.1 Delete the inserted data before sync for the upload only data object

    Hi,
    I have a upload only data which have insert bapi wrapper only. I am able to save the data and insert data but my problem is how to delete the data before it syncr. Is this possible?? Or must i create a delete bapi wrapper??
    Thanks.

    Hi,
    Thanks for you reply. I manage to delete the inserted data refer to the employee_ui sample application but the data still appear at the backend after sync. Any idea why this happen??
    Using the following code i am able to delete the record at the devices. But when it sync the data still get insert to database table.
              ZmovementZmovementheader header = (ZmovementZmovementheader) wdContext.nodeasset_services().nodegetZmovementHeaders().nodegetZmovementHeadersOutput().getCurrentElement().model();                    
              ZmovementZmovementdetail detail = (ZmovementZmovementdetail) wdContext.nodeasset_services().nodegetZmovementDetail().nodegetZmovementDetailOutput().getCurrentElement().model();
              header.removeFromZmovementdetails(detail);
              root.commit();
    thanks
    Edited by: fcgan on Aug 28, 2008 10:17 AM

  • How source data changing synchronize to destination after exp from source?

    Stream creation, how the source data changing synchronize to the destination after exp data from source?
    Time of Stream creation:
    a. exp/imp
    exp erpdev/erpdev owner=erpdevobject_consistent=y file=erpdev.dmp grants=y rows=y indexes=y statistics=none
    imp erpdev/erpdev file=erpdev.dmp ignore=ycommit=y log=import.log streams_instantiation=y
    b. confirming source and dest database SCN
    BEGIN
    DBMS_APPLY_ADM.SET_SCHEMA_INSTANTIATION_SCN(
    SOURCE_SCHEMA_NAME=> 'erpdev',
    source_database_name=> 'ERPDB',
    instantiation_scn=> &iscn ,
    recursive =>TRUE);
    END;
    c. 'START_APPLY' of dest database
    EXEC DBMS_APPLY_ADM.START_APPLY('STRMADMIN_APPLY');
    Question:
    1.
    Stream start to work at "c. START_APPLY of dest database", how the source data changing synchronize to the destination after exp data from source?
    2.
    What was "b. confirming source and dest database SCN" for?

    You missed a step : the prepare table and its role. The prepare table for capture returns an SCN which will tells Streams at which SCN it must start capture any DML. At this stage the Apply may be configured or not, but if the source tables is modified, an LCR will be created when you start the capture and this LCR will be sent to the apply site when the apply site is finally up.
    During the process of transfering the content of the Source site to target site there is always room for a desync to take place if the source site is active. Two cases exists and must be examined:
    - Prepare table first, then export source --> any DML after the prepared SCN and before the start of the export will be sent as LCR while it is also into the export->> duplicate DML
    - Export first then prepare table --> A DML occured AFTER the start of the export but before the SCN returned by the prepared SCN: this DML will be missing in the epxort (and at target site) and not yet captured neither since it occured before the prepare table.
    So what is the best? The answer the first. You resolve the issue with the apply SCN which has into the export, for each table the SCN at the start of the export. In this scenario, you have prepared first, export next source, import in target and set the scn of each table i(at apply site) using the one found nto the export (hence the parameter STREAMS_INSTANTIATION ).
    Now even all SCN captured on source after the prepared table but before the start of the export, will effectively be sent to apply site but will be IGNORED by the apply process has it would be a SCN aging before the start of the export. The SCN of the tables into the export file will become the SCN of the apply process. any SCN lower will be ignored by the apply process.
    A last word in respect of a DML that started AFTER the start of the export and BEFORE the end of the export on source site (during the export). Since it is after the prepare table, it is captured and since it is after the start of the export, it is not into the export (we assume the export is consistent - which is not always true). So you need this LCR as the mutation it describes occured after the start of the export and is not in the export: everything is ok.
    Having said that, still the best way to setup a target site is still to avoid any transction on source site during the setup.
    I hope you understand this well for it is the way it works.

  • After I install itunes my windows 7 - 64 bit machine will not boot and I have to use Restore  to boot with a date before I installed itunes

    After I install itunes on my windows 7 - 64 bit machine it will not reboot and I need to restore to a date before itunes was install.  How do I fix this?

    I'm having a very similar issue, paired with iTunes not being able to get online.
    iTunes shows up in processes and then hangs at 17,000 K or so -- sometimes it will start up, but that (if it occurs) is a delay of literal hours.
    Pretty meticulously went through all the 'cannot connect' trouble shooting, and have uninstalled, restarted, and then reinstalled every piece of apple software; issue is just as firm. Starting in safe mode or admin mode don't fix it; signing in as a different user doesn't fix it.    

  • How to verify that the user has changed table row data before db update

    Hi all,
    Iam using Oracle ADF with EJBs.
    I have a single selection table that displays rows of data returned from a function of my data control.
    The columns of my table are editable so that the user can change the data. The user selects a row, changes the data in one or more columns of the row and saves the data by means of a submit button. The code in the submit button, identifies the row of the corresponding iterator that the user clicked on and updates the data in the database (using the 'mergeEntity' function of the EntityManager)
    Before saving the data, I want to put some logic to check whether the user has actually changed some data to avoid unnecessary updates in the database . But for this I need a technique to detect that the user has indeed changed some data in the table row.
    One technique I have been using so far was to isolate the iterator row of the table and then query the corresponding row in the database table and compare their values.
    Except from dummy, this technique is not efficient if the table contains many rows.
    Moreover, in my case I have observed that on successive updates on the same row , the query on the database returns the new values (user changed values) and not the actual values contained in the database table. This means that when the user updates an iterator row the cached data affect also the results of the SELECT statement from the actual database table!!! Isn't this strange ?
    Can somebody propose me a neat method to detect when the user has changed the the data of an iterator row ?

    Hey Alan,
    The below solution seems overly complicated to me and can not be implemented without a custom screen and/or the use of JavaScript. Also, if your main concern is that a user may accidentally loose all their data because they closed the browser window or the session times out before they hit the save button then this solution does not help you.
    There are a couple of simpler approaches you can take here:
    # If the use of JavaScript is permissible you can hook into the windows 'onUnload' event, and pop-up a message box which gives the user the opportunity to cancel closing the window and save their case if they haven't already.
    # Implement an autosave feature by hooking into one of events provided by web determinations. A simple (but rather naive) way of doing this would be to hook into the OnRenderScreenEvent and call save on the interview session every time the event fires. This guarantees that all the data the user has submitted will aways automatically be saved, thereby removing the need to make sure the user manually saves their data before closing the browser.
    Automatically making Web Determinations close a browser window has to be done using JavaScript. However, doing so means that a) it won't work for people who turn off JavaScript, which is commonly done for accessibility reasons b) you'll likely run afoul of the browser's security mechanism (they generally won't let you close a window that you didn't open and some really don't like you doing that at all).
    Thanks,
    Kristy

  • TS3579 I found this useful because I did not know about the effect of typing in data and that you could only drag to rearrange the data.  I had typed in data before and this had caused problems but restoring defaults did not cause correct dates to show up

    I found this  (TS3579: If the wrong date or time is displayed in some apps on your Mac Learn about If the wrong date or time is displayed in some apps on your Mac) useful because I did not know about the effect of typing in data and that you could only drag to rearrange the data.  I had typed in data before and this had caused problems but restoring defaults did not cause correct dates to show up in Finder. 

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Put Date Before Header Line in Receiver FCC

    Hi,
    I have to create a csv file with format :
    Date : dd/mm/yyyy to dd/mm/yyyy
    PRODUCT_CODE,NAME,ADDRESS
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    How should i achieve putting the date before header line?
    What should be my target structure format?
    What parameters to enter in receiver FCC?

    Hi,
    have you tried..
    Have you tried:
    (http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm)
    ● NameA.enclosureSign
    Specify a string that acts as a text delimiter.
    Text enclosed by such delimiters is transferred to the target structure unchanged, although the default setting is to remove all text delimiters. Separators within such texts are ignored.
    This parameter is optional. The default setting is an empty value (no text delimiter).
    ● NameA.enclosureSignEnd
    If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here.
    If you do not make an entry here, the entry from NameA.enclosureSign is used.
    ● NameA.enclosureSignEscape
    Specify a string that replaces the text delimiter if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSign .
    ● NameA.enclosureSignEndEscape
    Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSignEnd.
    ● NameA.enclosureConversion
    To remove the delimiter upon transfer, or to replace it with escape characters, enter YES. This is the default value.
    To transfer the characters unchanged enter NO.
    Note
    If you specify xml.enclosureSign=“ and xml.enclosureSignEsc=““, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
    If the escape character for a quotation mark (““) occurs in the text itself, it is replaced by the quotation mark during the transfer.
    Thanks,
    Vijaya.

  • Date Validation - End date before Start date

    This may be a very simple validation but I seem to be having trouble. I've got a form which requires a date range to be selected (Date Picker fields)...a Start date, and an End date.
    I've created a Function Returning Boolean validation with the code as:
    begin
    if :P1_END_DATE < :P1_START_DATE then
    return false;
    else
    return true;
    end if;
    end;This works 99%, except when the date range spans years.
    For example, when I select '21-Dec-2010' in the start date and '4-Jan-2011' in the end date. The validation fails, and thinks the end date is before the start date.
    Do I need to compare the year part of the date, before doing the rest? Or is the '<' not suited for this sort of check?
    Edited by: djston on Dec 20, 2010 12:13 PM

    Sorry, false alarm, it looks like I had my logic a little backwards :)

  • Date before 30 days

    Hi,
    I have CURRENT DAY variable and i want to create one more variable which gives the Date before 30 days.
    Is there any STD variable which gives the date before 30 days .Please tell me.
    I have created one variable with Customer exit processing type and i need to develop code for this. Can anybody provide code how we will get date(dd/mm/yyyy) before 30 days .I have created variable with name "Z_CVAR". Please help me on this.

    use 0date variable to get the system date ... which is the SAP standard variable which pics the sy-datum.
    Next restrict the KF with the 0date and right click on the 0date and click on offset and set the off set for the varaible as -30.
    which gives the value -30 days.
    If not as suggested in the earlier post -- create a z variable with replacement path -customer exit -- write the code ... in the code itself write the logic to get the -30 days
    IF i_step = 2.
    CASE i_vnam.
    WHEN 'ZCURDAY-30'.
    CLEAR: l_s_range.
    l_s_range-low = sy-datum -30.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDCASE.
    ENDIF.
    regards
    KP

  • Removing "photo taken" date before printing

    I am using Photoshop Album Starter Edition 3.0, and forgot to turn off the "date taken" feature on my camera. Is there a way to remove or delete this date before I print the picture? Thanks!

    Sorry, removing that corruption of the image cannot be done automatically. Careful retouching [using Photoshop Elements, for example] can get rid of it on some images. Best tjing is to turn off the stupid facility and learn from the experience.

  • How does waveform graph downsamples the data before it is plotted

    Hi,
    I'm interested in how does waveform graph downsamples the data before it is plotted and what algorithm is used for this purpose? My goal is to plot 30 plots that have 1M samples each and I would like to downsample them before plotting onto a graph. I tried several VIs/algorithms for resampling and none of them gave the same result as seen by waveform graph (when all the samples are plotted).
    For example, if only one sample of 1M samples is 1 and all others are 0, then after downsampling to 1k samples the sample is not visible on the graph anymore. However, if I plot all 1M samples directly onto the graph, then also this 1 sample is visible (see attached example). 
    Solved!
    Go to Solution.
    Attachments:
    WFGDownsampling.vi ‏19 KB

    Hi andrej,
    LabVIEW draws plots in the way that draw every pixel affected by signal. So for example if there is zero-valued 1M samples and even one equals to 1, you will see the peak. That is the reason why you do not get the exactly same behavior comparing to interpolating. But if you set FIR as interpolation mode in Resample Waveforms (single shot).vi, result is really similar, but of course amplitude is 1000-times smaller than original one (because there is dt set to 1000). Keep also in mind that in Graph 2, there is different Y-scale and it should be considered as noise, not relevant data, I would expect 1000-times smaller amplitude as in Graph 3, it is many more times smaller.
    I would also like to say something about downsampling (decimating) the data. If you have 1M samples, you can see the peak even that there is only one value. But bigger problem is that with this graph resolution (I guess that is not more than 1000px), it is problem to find position of this peak. It means that still the zoom is needed to know where the peak is. Usually, when there is that big set of data, you are extracting different data (statistical information, peaks in FFT, etc.) not just visual data in graph.
    Mariaaa:
    I do not understand your question, can you please describe more your needs? You mentioned saving the data into a file, you can use Write to Measurement File express VI or see Write to Text File.vi in Example Finder and try to appropriately modify it.
    Best regards,
    Martin

  • After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the

    After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the data or any possible way? Money is not a limitation to this fix. Please help!!!

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

  • How can read BOM component date before save the production order??

    Hi Experts,
    In our company, we need to develop a program to read the BOM component data of the production order
    before we save the production order.
    That for example ,when we create and release a production order , before we save the production
    order,we want a porgram to read the BOM component data. If some component data can meet our
    requriement (may be if there is material requirement quantity>100 EA),then the system will pop up a
    small dialog box to remind us.
    There is user exit PPCO0007 and PPCO0007.But it seems they only can read the head data of the
    production order before we save the production order. And the BOM component data of the production
    order are saved in the RESB(Reservation Table).So if we do not save the production order,all the BOM
    component data are not saved in the RESB table.
    So how can slove the problem??
    How can read component date before save the production order??
    Are there any other user exit we can use???

    Hi Just wanted to check am I right that you are trying to check if you have enough Materials Available before you release or Save the order right ? if this is your business objective then when you create order you have material availability tab which checks and gives error if shortage is there. Please let me know if is this wht you asking for ?

  • IV date Befor Service entry sheet date

    Hi.
    Can somebody help me to restrict user to  enter  IV date before service entry sheet date?

    Hi,
    Use t.code: OBA5, enter Application area  F5 and in next screen go for New Entries
    Enter  message no 149  & set as  Error & save.
    Now try ur transaction,
    If the above message setting not worked  then set  message no 149 as Error in Application area F5  in OBMSG t.code.
    Regards,
    Biju K

  • How to call a macro(check for unsaved data) before calling refresh button of EPM TAB

    Hi,
    I want to show a popup message for any unsaved data before USER hit the refresh button on EPM tab.
    I write the macro like as below in module
    Function TestForUnsavedChanges()
        If ActiveWorkbook.Saved = False Then
            If MsgBox("There is unsaved data, save the data otherwise u will loose the data. Do You Want to Save the Data ?", vbYesNo, "Warning") = vbYes Then
            bSave = True
            Else
            bSave = False
            Application.Undo
            End If
        End If
    End Function
    so how to execute this macro before Refresh ?
    Thanking in Advance !!

    Hi Nilesh,
    Try to add this macro under Function BEFORE_REFRESH.
    Hope this helps.
    Regards,
    Astha

Maybe you are looking for

  • Bapi for  'post customer down payment (t-code F-29)'

    hi all can any one tell which bapi is used to 'post customer down payment:header data (t-code F-29)'. thanks in advance, lokesh

  • Can't do anything while using skype

    Help me please, I'm using win 8.1 and the latest version of skype (hope this will help) and I can't play video or music while using skype, I tried some solutions found on google but they didn't work

  • Mulitple grid in single form

    hi all, we are developing one report. its have multiple tabs. each tab having separate grid. but its not working. when i press second tab its show the error. example:Open,closed,Completed,hold,inactive thanks & regards B.Lakshmi Narayanan

  • List Item and Anchor Tags: Safari, a Gecko Outlier?

    QUESTION:  What is a likely explanation for why the background color of my menubar changes color in both FireFox and Opera, but not in Safari?  Am I targeting the wrong tag? SOURCE:  http://www2.gol.com/users/hsmr/emblem/name.html Roddy

  • Problem with track ball

    I purchased my 8330 working with Tata Indicom CDMA on 10th Feb 2010. The track ball keeps going BAD. Once I got it replaced free of cost at Ahmedabad service center. Again it has started giving trouble. Is there any way out. Can company replace the b