Skip to Content
author's profile photo Former Member
Former Member

Problem when sync, no delete the old row...

Hi, i have problem when sync with the backend... My steps:

I create new row in the device with:

LGNUM TANUM ZCANT ZIMPETQ STATUS

EC1 0000647393

I sync with the backend, and in the backend appear the new row with:

MANDT UNAME LGNUM TANUM ZCANT ZIMPETQ STATUS

100 Funcional EC1 0000647393 393

And now, in the device i have

LGNUM TANUM ZCANT ZIMPETQ STATUS

EC1 0000647393

EC1 0000647393 393

why? It should be appear the last row only...

One row is identify by: MANDT UNAME LGNUM TANUM

http://img267.imageshack.us/my.php?image=mapmp6.jpg

What happend?

Thanks,

Message was edited by:

Victor Capi

Message was edited by:

Victor Capi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 08:04 AM

    I attach all code that i use in the functions:

    <b>FOR GETLIST:</b>

    FUNCTION zmie001_getlist .

    *"----


    ""Interfase local

    *" IMPORTING

    *" VALUE(I_USER) LIKE SY-UNAME

    *" EXPORTING

    *" VALUE(RETURN) TYPE BAPIRET2

    *" TABLES

    *" T_TOP STRUCTURE ZRFE005

    *"----


    REFRESH ti_ltap.

    SELECT * INTO CORRESPONDING FIELDS OF TABLE t_top

    FROM zrfe005

    WHERE uname = i_user

    AND zimpetq = ' '.

    <b>FOR GETDETAIL:</b>

    FUNCTION zmie001_getdetail.

    *"----


    ""Interfase local

    *" IMPORTING

    *" VALUE(I_USER) TYPE ZRFE005-UNAME

    *" VALUE(I_LGNUM) TYPE ZRFE005-LGNUM

    *" VALUE(I_TANUM) TYPE ZRFE005-TANUM

    *" EXPORTING

    *" VALUE(E_TOP) TYPE ZRFE005

    *" VALUE(RETURN) TYPE BAPIRET2

    *"----


    SELECT SINGLE * INTO e_top

    FROM zrfe005

    WHERE lgnum = i_lgnum

    AND tanum = i_tanum

    AND uname = i_user.

    ENDFUNCTION.

    <b>FOR CREATE:</b>

    FUNCTION zmie001_create .

    *"----


    ""Interfase local

    *" IMPORTING

    *" VALUE(I_TOP) LIKE ZRFE005 STRUCTURE ZRFE005

    *" EXPORTING

    *" VALUE(E_USER) TYPE ZRFE005-UNAME

    *" VALUE(E_LGNUM) TYPE ZRFE005-LGNUM

    *" VALUE(E_TANUM) TYPE ZRFE005-TANUM

    *" VALUE(RETURN) TYPE BAPIRET2

    *"----


    • Insert in Z

    CLEAR zrfe005.

    zrfe005-uname = i_top-uname.

    zrfe005-lgnum = i_top-lgnum.

    zrfe005-tanum = i_top-tanum.

    zrfe005-datum = sy-datum.

    zrfe005-utime = sy-uzeit.

    Message was edited by:

    Victor Capi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.