Skip to Content
0
Former Member
Jul 19, 2004 at 05:00 PM

Problem creating related sync bo's

27 Views

Hi,

I'm trying to create two related syncbo's for example customer and order. I've got the syncbos related in the merep_sbuilder, and I code like this:

ZcustomerManagerImpl cli = new ZcustomerManagerImpl();

Zcustomer c = cli.createZclientes();

c.setName1("My name");

cli.insertZcustomer(c);

ZorderManagerImpl ped = new ZorderManagerImpl();

Zpedidos p = ped.createZorder();

p.setKunnr(c.getKey());

ped.insertZorder(p);

I think I soulld put the sync key of the customer to the filed kunnr (which is related with object customer).

When I create the items after syncronize I've got the next error:

"Sync key 0000000056 for related sync bo ZCUSTOMER missing"

But I can see the data an all seems to be correct.

Sould I do something else to create related objects ?

Is there any trick ?

I'm using ME 2.1 SP03

Thanks in advance and best regards.

Xavi.

Message was edited by: Xavier Tor

Message was edited by: Xavier Tor