cancel
Showing results for 
Search instead for 
Did you mean: 

merep_emulator

Former Member
0 Kudos

i have create a syncbo with getlist,getdetail and modify function

i want to test if the syncbo is working or not, so i use merep_emulator to test

after i execute F8 and try to open the worklist

i get the following :

receiver call successful, see the worklist

i open the worklist and get status : 'E'

"I" MEREP_HANDLER has started for run number 0000020856 and runtime counter 3

"D" Return code (0) handler enabled

"E" Header action from mobile="MOD",R/3 action"ADD";

"E" Return code 1 (Downloader)

when i check the result , there are no changes to the records,

Message was edited by:

yzme yzme

Accepted Solutions (1)

Accepted Solutions (1)

raghavendra_sn
Explorer
0 Kudos

Hi Yzme,

Here is the way to use emulator. Go emualtor report and press F8 , Since you have GETLIST and GETDETAIL , The emulator will donwload the data.

Note : Do not feed any data in the emulator during download.

Once the data is downloaded you can select one of the downlaoded entry and modify the data content and again press F8 to upload the updated data to the backend.

Error Part above : you try to create data with action A for which the create bapi wrapper is necessary. hence the error.

Former Member
0 Kudos

I am actually modifying the record..

i am following this step, but still receive the error...

i put the Modify Action but why the message said i am using "add" ??

<b>F8<b>

http://i192.photobucket.com/albums/z231/yzme/screen1-1.gif

<b>Click button no 4- Test Data Assistant </b>

http://i192.photobucket.com/albums/z231/yzme/screen2-1.gif

<b>a list of data with attribute "A" </b>

http://i192.photobucket.com/albums/z231/yzme/screen3-1.gif

<b>select a row and choose Modify Action </b>

http://i192.photobucket.com/albums/z231/yzme/screen4-1.gif

<b>display a row header and items </b>

http://i192.photobucket.com/albums/z231/yzme/screen5-1.gif

<b>change attribute STORT from 2 ---> 3 with action type "M"</b>

http://i192.photobucket.com/albums/z231/yzme/screen6.gif

http://i192.photobucket.com/albums/z231/yzme/screen9.gif

http://i192.photobucket.com/albums/z231/yzme/screen7.gif

<b>F8 execute

open the worklist </b>

http://i192.photobucket.com/albums/z231/yzme/screen8.gif

Message was edited by:

yzme yzme

Message was edited by:

yzme yzme

AjithC
Employee
Employee
0 Kudos

Hi Yzme,

I doubt it because of conflict. What is the error message in the outbox? Is it says conflcit detected. Also increase the log level of the syncBO to debug level so that next time it gives more information.

Do a replication for this syncBO and then a download to get the latest data in the mobile device and then try again. Also you can disable the conflict handling.

Regards

Ajith

Former Member
0 Kudos

"I" MEREP_HANDLER has started for run number 0000020856 and runtime counter 3

"D" Return code (0) handler enabled

"E" Header action from mobile="MOD",R/3 action"ADD";

"E" Return code 1 (Downloader)

Error in worklist

1)how do i check check the error message in outbox ?

2)how to set debug level ?

3)how to disable conflict handling ?

4)the error could it be due to the mapping is wrong ??

Message was edited by:

yzme yzme

AjithC
Employee
Employee
0 Kudos

1.)

Go to merep_mon, find the request which is in Error state. Select subworkist and then in the list select all and click data button.

2.) Merep_pd. You can set the log level of all syncBOs in one shot by changing handler log level. Else you can to the syncronizer tab, select the syncBO, uncheck the handler log level check box and in the next column set the loglevel to debug.

3) In the pd, syncronizer tab, for the syncBO click on more config button, set the parameter SKIP_CONFLICT to a value X.

4)might be. Compare the mapped fields of the GetDetail with Modify. Make sure the mapped fields are the same

Regards

Ajith

Former Member
0 Kudos

3) In the pd, syncronizer tab, for the syncBO click on more config button, set the parameter SKIP_CONFLICT to a value X.

i cannot find the skip_conflict in the merep_pd.

http://help.sap.com/saphelp_nw04/helpdata/en/45/1378f399076c33e10000000a114a6b/frameset.htm

i am using nw04

my last column is "Inconsistentcy"

http://i192.photobucket.com/albums/z231/yzme/screen20.gif

Message was edited by:

yzme yzme

AjithC
Employee
Employee
0 Kudos

I think you are using old support package.. This feature is available only from SP19...

Regards

Ajith

Former Member
0 Kudos

TOP record read from R/3 itab; conflict detected (sync key=0001201577)

http://i192.photobucket.com/albums/z231/yzme/screen21.gif

our netweaver is SP19

you are talking about MI SP19 or NW SP19

Message was edited by:

yzme yzme

AjithC
Employee
Employee
0 Kudos

So its clear that the error is due to conflict... To avoid conflict make sure you always modify the most updated data..

Do a replication and then a sync to get the most updated data...

Regards

Ajith

Former Member
0 Kudos

TOP record read from R/3 itab; conflict detected (sync key=0001201577)

AND

"E" Header action from mobile="MOD",R/3 action"ADD";

"E" Return code 1 (Downloader)

http://i192.photobucket.com/albums/z231/yzme/screen21.gif

our netweaver is SP19

1)you are talking about MI SP19 or NW SP19

2) do a replication using MEREP_EX_REPLIC??

Message was edited by:

yzme yzme

Message was edited by:

yzme yzme

AjithC
Employee
Employee
0 Kudos

1. There is no SP alone for MI. Its all NW support packages. So when we say MI SP19 it means NW SP19 for the component SAP_ABA. Please check the version of SAP_ABA componet.

Click on the menu SYSTEM->STATUS and then click on the button in SAP system data area just below component version.. In the pop up screen check the level of SAP_ABA

2. yes..

Regards

Ajith

Former Member
0 Kudos

It is SP 18 for SAP_ABA ?

1)It is a must for me to upgrade in order to solve the conflict problem ??

2)or i can just do the replication and just sync .....i try this but cannot , still encountered the same problem.

my purpose is to modify a column value and update back to R3...BUT encountered this conflict and "ADD action" problem,

3)if you have see my screen dump, my steps is correct right ? i click the modify but still getting the "ADD action" , how comes ?

AjithC
Employee
Employee
0 Kudos

1. You need to upgrade ONLY if you want to skip entire conflict handling.

2. Conflict occurs when the device tries to modify the data which is not the latest as per the backend. (backend modified the data after the device received it) . The purpose of replication and then sync is to ensure that you have the latest data before you start modifying it.

3. You are doing the steps right. Just make sure you choose the latest data in the list of test data. Choose a record with action 'R' or 'M' which is something in the last of the list (having the highest updated time stamp).

Regards

Ajith

Former Member
0 Kudos

1) the conflict problem will result in error in worklist ?? if i have conflict problem, can i still modify the result and the the modify result will be updated in backend ??

2) i need to modify in the device / emulator and later update back to the backend,

i am quite sure that i am getting the latest data.

if i am using emulator, will the backend data being update?

3) i test another set of bapi which is default bapi merep_sflight_getlist, merep_sflight_getdetail, merep_sflight_change, when i create a syncBO based on this tree and run the in merep_emulator, the worklist showing success, but when i check the backend , it still remain the same, how comes?

if using emulator can update the backend ?

pls advice

my xml is correct right...


  <?xml version="1.0" encoding="utf-8" ?> 
- <MeRepApplication schemaVersion="1.1" id="ZFLIGHT" version="01">
  <Property name="CLIENT.BUILDNUMBER" /> 
  <Property name="C_APPLRESOLVE" /> 
  <Property name="DATA_VISIBLE_SHARED">X</Property> 
  <Property name="E_APPLRESOLVE" /> 
  <Property name="FACADE_C_CLIENT">X</Property> 
  <Property name="FACADE_E_CLIENT">X</Property> 
  <Property name="HOMEPAGE.INVISIBLE" /> 
  <Property name="INITVALUE" /> 
  <Property name="RUNTIME">JSP</Property> 
  <Property name="TYPE">APPLICATION</Property> 
- <SyncBO id="ZFLIGHT" version="1" type="timedTwoWay" allowCreate="false" allowModify="true" allowDelete="false" reqDirectSync="false" downloadOrder="1">
- <TopStructure name="TOP">
- <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="CARRID" type="C" length="3" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="CONNID" type="N" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <ChildStructure name="010">
- <Field name="SYNC_KEY" type="N" length="10" decimalLength="0" signed="false" isKey="true" isIndex="true">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="CARRID" type="C" length="3" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="CONNID" type="N" length="4" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="FLDATE" type="D" length="8" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="COUNTRYFR" type="C" length="3" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="CITYFROM" type="C" length="20" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="AIRPFROM" type="C" length="3" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="COUNTRYTO" type="C" length="3" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="CITYTO" type="C" length="20" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="AIRPTO" type="C" length="3" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="FLTIME" type="P" length="6" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="DEPTIME" type="T" length="6" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="ARRTIME" type="T" length="6" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="DISTANCE" type="P" length="10" decimalLength="4" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="DISTID" type="C" length="3" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="FLTYPE" type="C" length="1" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="PRICE" type="P" length="16" decimalLength="2" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="CURRENCY" type="C" length="5" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="PLANETYPE" type="C" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="SEATSMAX" type="P" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="SEATSOCC" type="P" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
- <Field name="PAYMENTSUM" type="P" length="18" decimalLength="2" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  </Field>
  </ChildStructure>
  </TopStructure>
  </SyncBO>
  </MeRepApplication>

SOMEONE PLS HELP

AjithC
Employee
Employee
0 Kudos

Hi Yzme,

I just checked the old code. You can't use emulator for modify if you are less than SP19. It will always show conflict. But if you are above SP19, thinks work perfectly. Its only for emaulator and not applicable for actual sync from client. So you can test it using a proper client application....

Regards

Ajith

Answers (1)

Answers (1)

AjithC
Employee
Employee
0 Kudos

Hi Yzme,

The reson for that error is you sent wrong action for the record. If you are creating a new record, the action should be 'A' and not 'M'. This has to be set carefully in emulator for both header and items.

If you are planning to modify some records, make sure you key in the correct synckey, better use "Test data assistant" button (4th button from left).

Regards

Ajith