cancel
Showing results for 
Search instead for 
Did you mean: 

merep_contact_getlist & merep_contact_getdetail

Former Member
0 Kudos

do anyone have

step by step guide for smart sync that used

MEREP_CONTACT_GETLIST, MEREP_CONTACT_GETDETAIL ?

i have found a complete example to test for smart sync ,

i hit many errors....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Kindly go through the following article which explains step by step development of an sample application.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile%20in...

This includes created of bapi wrappers, syncbos and download of meta data XML.

And also gettting the application on to the client.

Hope this is helpful.

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

Former Member
0 Kudos

Hi,

I am not able to access the file.

Can you be more specific.

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

Former Member
0 Kudos

Hi,

We are getting the below messege:

<<<You have reached the download-limit for free-users. Want to download more?

Get your own Premium-account now! Instant download-access! (Or wait 131 minutes)>>>

Cheers,

Karthick

Former Member
0 Kudos

can you leave down your email,

or you email thru this address

ph.won@emi-solutions.biz

really need your help

Former Member
0 Kudos

Hi Yzme,

I went through the Document u have uploaded on rapidshare.Everything seems ok.

The process what you have followed is correct.

But it seems there is no data in the backend in the table"MEREP_PERSON".Thats why there is no data coming on to your MI Client.Create some records in the table merep_person.

For creating the records.Go to transaction se37.Give the name of create function module i.e MEREP_CONTACT_CREATE.Execute the Function module and define some records in import parameter "person".Then again execute the function module.The records will be created.You can check the entries by executing getlist function module.

Once the Records are coming in the output of the getlist function module.

Just regenerate your syncbo and sync twice thrice.Data should come to your MI client.

Thanks

Regards

Devendra

Former Member
0 Kudos

Hi Yzme,

Also please check whether you have defined the proper RFC connection.In middleware go to transaction merep_sbuilder.give ur syncbo name and there will be one option in the toolbar "Bapi Wrapper interface check".Please click on the same to check if RFC conncetions are working fine.

Thanks

Regards

Devendra

Former Member
0 Kudos

I have created a few record using merep_contact_create

and i able to see the merep_contact_getlist / getdetail

"Bapi Wrapper interface check" > No error Founds

the problem now is this

when i check the MEREP_MON

strucT_ID: rtn

strver: 0001

SYNC_KEY: 0000000000000

CORR_TOP_CNTR: 00000000000

RESPTYPE: S

TYPE: S

ID: MEREP_01

MESSAGE:<b> NO download data from R/3 found in downloader</b>

in merep_207

<b>No table entries found </b>

3) how to change RFC destination of syncbo after it is enabled.

Message was edited by:

yzme yzme

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi,

Did you replicate the syncbo and checked in the MEREP_207.If data is present in middleware then your work is done.

Check this first and then download the data to the client.

In table MEREP_10700 (table for client DB) can check here.

Cheers,

Karthick

Former Member
0 Kudos

it working nows...thanks

the only thing left is the table column

i have define this key


<b>MANDT PERSNUMBER FIRST_NAME LAST_NAME PROFESSION SEX </b>

where PERSNUMBER is the key

but when the meRepMeta generate out , the table display in the jsp is SYNC_KEY is key


<b>SYNC_KEY MANDT PERSNUMBER FIRST_NAME LAST_NAME PROFESSION SEX </b>
<u>0001179654</u>  100  0000000013  DEMO03  DEMO03  ABAPER  M  
<u>0001179655</u>  100  0000000014  DEMO03  DEMO03  ABAPER  M  
<u>0001179656</u>  100  0000000016  WON  WON  IT  M  
<u>0001179657</u>  100  0000000021  DEMO03  DEMO03  ABAPER  M  

when i click SYNC_KEY the data is not point back to the detail...pls advice..

let see this meRepMeta.xml


  <?xml version="1.0" encoding="utf-8" ?> 
- <MeRepApplication schemaVersion="1.1" id="ZTESTA" version="1">
  <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="ZTESTA" version="1" type="timedTwoWay" allowCreate="false" allowModify="false" 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="MANDT" type="C" length="3" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="PERSNUMBER" type="N" length="10" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="FIRST_NAME" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="LAST_NAME" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="PROFESSION" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
- <Field name="SEX" type="C" length="1" decimalLength="0" signed="false" isKey="false" isIndex="false">
  <Input type="create">false</Input> 
  <Input type="modify">false</Input> 
  </Field>
  </TopStructure>
  </SyncBO>
  </MeRepApplication>

Message was edited by:

yzme yzme

Former Member
0 Kudos

the jsp is auto generated an

there are few columns that i map to and the key column is persnumber

when xml generated, the sync key become key column in the jsp page with link,'

when i click in it redirect me to the page

from /jsp/overview_syncboinstance to /jsp/detail_syncboinstance

without showing the detail of the person that i click

anyone pls help

Former Member
0 Kudos

Hi Yzme,

Have u checked whether u have the records for the Getdetails output table.The table parameters what is defined in the Getdetail must have data corresponding to the import parameter you are passisng.So if u have created the record in merep_person table for person number or something.Please create some entries for getdetail table parameters also and then Sync.Data should come.

Thanks

Regards

Devendra

Former Member
0 Kudos

when running the bapi wrapper function, it is solved, merep_person have records

getlist and getdetail have records, no issue here.

when come to the front end part,

by default there are 5 classes and 3 jsp generated...

/jsp/overview_syncbonames.jsp -> list the syncbonames

/jsp/overview_synboinstances.jsp -> list the table content of getlist

/jsp/detail_syncboinstance.jsp -> ??

when i click in to page /jsp/overview_synboinstances.jsp

it shows a list of table with sync_key as primary key

and others column...

the sync_key have link when i clicked in, it supposed to show the detail of the page which will list the "GetDetails" of bapi wrappers but still it only list the same table in the /jsp/detail_syncboinstance.jsp page

http://i192.photobucket.com/albums/z231/yzme/page1.jpg

http://i192.photobucket.com/albums/z231/yzme/page2.jpg

http://i192.photobucket.com/albums/z231/yzme/page3.jpg

page 3 suppose to list its detail

such as price code, discount, stockinhand

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi,

Are you sure that you have child (item tables) for your syncbo.

From the XML above its clear that there is no child for the syncbo.

Ex: Customer is the header table and email is the item for the syncbo (Header and item has some relationship).

Kindly get back to me if you need more clarification.

Cheers,

Karthick

Former Member
0 Kudos

so what should i do to established the relation ?

but in the syncBO

i already define getlist and getdetail

and i try to execute, both return values

another thing is currently the primary of the table is sync key, can i changed to some other column act as primary key , such as persnumber ?

Message was edited by:

yzme yzme

Former Member
0 Kudos

Hi,

When you execute GETDETAIL Bapi Wrapper in the backend, what value is getting returned.

Kindly refer to the article. There including the coding is given with one header and two items.

Follow them step by step.

Cheers,

Karthick

Former Member
0 Kudos

when i execute the function in se37

merep_contact_getdetail

i will need to key in a parameter which is : PERSNUMBER

the returned values will be fill in 2 tables :Address , Email


Address
MAN | PERSNUMBER |SEQ_ADR |CITY1| CITY2 | STREET | HOUSE_NUM ||REGION
{will be fill with data}
Email
MAN | PERSNUMBER |SEQNO_EMAIL | E_ADDR | E_ADDR_TEXT 
{will be fill with data}

which article you mention ?

2) by default the generated xml/jsp will take sync_key will be generated as primary key,

but if i want to change to other column as primary key, what should i do ?

pls tell me .........

Former Member
0 Kudos

Hi,

Article:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile%20in...

Check if you have mapped these two tables in syncbo design (merep_sbuilder) also check the primary key for these item tables and map the fileds in syncbo design.

Cheers,

Karthick

Answers (0)