cancel
Showing results for 
Search instead for 
Did you mean: 

Sync Tutorial

Former Member
0 Kudos

1. merep_sbuilder

2. enter syncbo name : ZJPW_EXM01

3. F5 to create

4. SyncType :D01 Unique to this SyncBO

5. default destination

6. enter description : Country Sync tutorial, enter bapi wrapper :MEREP_COUNTRY_GETLIST , In Administration panel , tick "check the types " and tick "default async" checkbox

i receive the warning message

Default values for parameter SPRAS has no effect at runtime

and pointing to BAPI wrapper : MEREP_COUNTRY_GETLIST

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

"Default value for Parameter "SPRAS" has no effect at runtime" is not a error it is just a warning message.This message will Popup whenever there is a Default Value assigned in the BAPI Wrapper.Just Press enter and continue

Refer to this link also

Hope this helps,

Best Regards,

Lakshmi

Former Member
0 Kudos

ok, in the mapping part,

In administration i choose : default async, check the type

merep_contact_getList <b>ok </b>

merep_contact_getdetail <b>NOT OK</b>

after that i try to randomly map the key,

sometimes it will prompt me

Item key has not been selected for parameter 'E_MAIL' in GetDetail BAPI Wrapper

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi Yzme,

For SPRAS, put value as 'LANGU' instead of 'LANG'.

You have two items. You have to select items keys for both of them. (Sorry, I do not have access to my SAP systems and cannot give exact names).

Regards,

Rahul

Former Member
0 Kudos

if i have defined my syncType to T01,

Just want to know , the sync Type GetList, is list all the material, and GetDetails will list all the details of each item

right,

T01 required : GetList, GetDetail,

BY default, when i create smartsync project , i just need to specific the meRepMeta.xml and when i export the war file and browser the application, it will list the syncBo Name, table that list the items, and item details,

pls advice

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi Yzme,

Almost right.

Only thing missing is that in order to get data, you will have to replicate the T01 syncBos first. You can do this in merep_pd.

Regards,

Rahul

Former Member
0 Kudos

execute the replicator and tick the checkbox enabled and then saved right,

my problem now is create MCD thru MI_MCD

1. MI_MCD

2. Create Mobile Component

3. Mobile Solution Name : I cannot found the name Version :

i never upload it in web console and to have war file first i need to have the xml files, right...before this , i have to create MCD......so ...how

Former Member
0 Kudos

Hi,

Procedure to create MCD and downlod the meRep.XML

Start the transaction MI_MCD>Create Mobile Component tab>Give mobile solution name and Version-->Create MCD tab.

1)Give Description

2)Component type(Application)

3)runtime environment (JSP)

4)Link to MI homepage-- checked

5) Select SyncBO tab--> select your SyncBO

6) Data visible to All--> checked.

7) Save -- Pop up appears (Include Transport Request--click No).

Now go to Merep_sbuilder and download the XML file.

Best Regards,

Lakshmi

Former Member
0 Kudos

while trying to save

it prompt : "object can only be created in SAP package"

then prompt :"Include Transport Request--click ->No"

last prompt :"MiniApp must be assigned to a transport request"

what doest this mean

it then popup a screen "Create Object directory entry"

my sample application is merep_contact_getlist ,

merep_contact_getdetail of type : T01

2) if i have create the meRepMeta.xml and import into the project and "upload the component" and "add Entry"

By default, it will show the list of syncbo and after i click in i will see the table with column name,

By DEFAULT, WILL the record be populated in the table ?

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi Yzme,

1) No issues. You are doing alright. Save the obect as local object.

2) I am sorry, but I couldn't understand this one.

Regards,

Rahul

Former Member
0 Kudos

2) after i get the data , that i create smart sync project,

the jsp page and java classes is generated automatically, correct,

normally , the first page will list the

/jsp/overview_syncbonames.jsp > list the synbos

/jsp/overview_syncboinstance.jsp > list the table with column header

/jsp/detail_syncboinstance.jsp > list the detail of the page

in the "/jsp/overview_syncboinstance.jsp " before i add any coding to this, i just wonder if the table will be populated with data or just a blank table with column header ?

Because , after i run the application i see only blank table with column header?

what i did wrong ? can you understand ?

[diagram illustration - page naviagation]



[/jsp/overview_syncbonames.jsp]
SyncBO ID # local SyncBO instances 
ZPID_01          0  

[/jsp/overview_syncboinstance.jsp]
For SyncBO ZPID_01 following instances are on your MI client

***blank table with no data*******
SYNC_KEY MANDT MATNR WERKS DESC1 LGORT MAKTX LGOBE LABST 

[page 1/1]

<b>why local syncBo instance is 0 </b>

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi,

After assigning your application, you have to Sync once to get the data from backend(if data is present in the backend). Check whether you have data in backend.

If the data is not present, you can create from backend and Sync from client to download the data to client. Then data gets populated in the table.

You can check the status in Merep_mon.

Best Regards,

Lakshmi

Former Member
0 Kudos

i already sync thru MI Client, no data is sync back

I check status thru merep_mon, then choose "worklist monitor"

SyncBoID IWaiting

ZPID_01 1

You mentioned "you can create from backend and Sync from client to download the data to client. Then data gets populated in the table."

what do you mean by this,

i try to sync thru MI Client, no data also

Former Member
0 Kudos

Hi Yzme,

Since you are working on a T01 syncBO, you will need to replicate the syncBO in order to get the data.

Also make sure you have enabled the syncBO in MEREP_PD.

Regards,

Rahul

Former Member
0 Kudos

Hi,

After replicating, check whether data is present in MEREP_207.

Also check this link, this will help you in troubleshooting problems in Data synchronization in smart sync

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/909d75c3-0801-0010-5f92-920...

Best Regards,

Lakshmi

Former Member
0 Kudos

noted, let's check

Message was edited by:

yzme yzme

Former Member
0 Kudos

Goto se16 and then give the Table Name as merep_207.

Best Regards,

Lakshmi

Former Member
0 Kudos

merep_207

no table entry for the table ,

merep_mon

no download data from R/3 found in downloader

Former Member
0 Kudos

Hi,

Make sure that you have the data (records) in the backend and when you replicate a syncbo all the data (records) present in the backend are replicated to the Middleware.

Also try to check if any records exists in merep_mon which are in I-Waiting state or I-Partial state (Mention the proper date range in merep_mon).

Otherwise try to reset the data from the client setting-->reset client and sync again.

Let me know if you get the data to client.

There can be many reasons why data is not being downloaded to client.

Cheers,

Karthick

Former Member
0 Kudos

Hi,

Make sure that the syncbo is properly generated,replicated,enabled.

Data should be present in the backend.

Cheers,

Karthick

Former Member
0 Kudos

Hi Yzme,

Run the Getlist BAPI wrapper in the backend itself. Check if it returns any data. The MI application will reurn the same data.

Also make sure you haven't set any filters.

Regards,

Rahul

Former Member
0 Kudos

Backend means F8 to run the function bapi to get the data, right, if like this, then , <b>i can get the return records</b>

or

Backend may be mean the replicated data/ sync data exists and you can see in merep_mon, not only the function that see the data..

<b>i cannot get the record </b>

I hit this error :

Error :

RFC BAPI Wrapper call: No mobile asset management scenario exists for user WON2

Former Member
0 Kudos

Hi,

I hope you have your BAPI wrappers in backend and Syncbos in middleware (two different systems).

Then when you run GETLIST bapi wrapper..it is returning # records.

But when you replicate the syncbo,data is not being replicated.

Try to check if RFC is proper between Syncbos and Bapi Wrappers ( i.e middleware and backend).

Cheers,

Karthick

Former Member
0 Kudos

BAPI wrappers and syncbos in the same system

when run ..GETLIST n records is returned

1) if it is a need to defined filtering criteria ?and the purpose of it

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi,

There is no need to define filtering criteria unless you require it, its not mandatory.

Filtering is done in MEREP_SBUILDER.

To restrict/filter the data from middleware to client.

Suppose if we have 100 records in middleware and your client needs only 50 records, so you can set a filtering criteria in such a way that only 50 rquired records will be downloded to clint.

Filtering criteria can be done per

SYNCBOS...........all devices using this syncbos will get the filtered data.

MOBILEIDS..........only this mobile id will get the filtered data

MOBILE GROUPS...all mobile ids under this mobile group get the filtered data.

Check for your syncbo if any filtering is done.

Cheers,

Karthick

Former Member
0 Kudos

check the print screen, if i miss out something here and there

the table is just no populated

check the file

http://rapidshare.com/files/39615207/StepByStepMI.doc.html

click the url

1. scroll down till the end of page, click the free button

2. sroll to the middle of the page, and key in the no.

No premium user. Please enter []

3. download the file

Message was edited by:

yzme yzme

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Which version of MI are you using? D01 is an obsolete SyncBO & no longer used & supported by MI.

Please use T01 instead & check if u get the same problem.

Regards,

Nameeta

Former Member
0 Kudos

MI Server MI25SP19

MI Client MI25SP13

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21eba3a7-0601-0010-b982-92f...

References > Tutorial > Smart Sync Tutorial

THE LAST TUTORIAL Entitled: Developing a simple Smart Sync Application

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi,

Probably this MDK tutorial is not updated, but MI stopped supporting D01 type a long time back, somewhere from MI 2.5 SP10.

The code is not updated for D01 type in the middleware. Please use T01 instead.

Regards,

Nameeta