cancel
Showing results for 
Search instead for 
Did you mean: 

Creation on Field cZXXXXX with value XXXX is not allowed because SyncBo...

Former Member
0 Kudos

Hi, i´m debugging a project, and when i create a new row, appear this error:

"com.sap.ip.me.api.smartsync.ModificationNotAllowedException: Creation on Field cZBACK_TOP_ZCUSTOMERID with value 00000004 is not allowed because SyncBo of Row 0000000009 is NEW and CreateInputQualifyType is FORBIDDEN"

What happend?

In my xml:

In the method:

public void insertar () {

String[] datos = new String[5];

datos[0] = "3";

datos[1] = "6";

datos[2] = "Prueba";

datos[3] = "Probando";

datos[4] = "10.10.2007";

try {

dbAccess.addRowInDB(currentSyncBo, datos);

} catch (Exception e) {

e.printStackTrace();

}

}

Thanks,

Message was edited by:

Victor Capi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Victor,

see reply for previous post.

Rgards,

Oliver

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

do the editing in MEREP_SBUILDER as I shoed you this morning via MSN, download the new MEREPMETA to your project and after updating the WAR file in MI - do not forget to reset the client persistence - otherwise you will still see the same error!

Regards,

Oliver

rajan_venkatachalam
Participant
0 Kudos

Hi Victor,

The ZCUSTOMERID field would be having this "<Input type="create">false</Input> " in merepmeta.xml file.Because of this you were not able to create a row.

To resolve this problem , please do the mapping for the fields in the middleware system by refering to this <a href="http://help.sap.com/saphelp_nw04/helpdata/en/3a/98c2dd7a1e904d8f024e4f14d92ccd/frameset.htm">link</a> .

Thanks and Regards,

Rajan

Former Member
0 Kudos

Yes, i have it but not work:

<Field name="ZCUSTOMERID" type="N" length="8" decimalLength="0" signed="false" isKey="false" isIndex="false">

<Input type="create">false</Input>

<Input type="modify">false</Input>

</Field>

rajan_venkatachalam
Participant
0 Kudos

Hi Victor,

you need to do the mapping in the middleware by referring to the link in my previous reply.

Thanks and Regards,

Rajan

Former Member
0 Kudos

I have select Map and Mandatory in ZCUSTOMERID, what i change?

rajan_venkatachalam
Participant
0 Kudos

Hi Victor,

ZCUSTOMERID is the field in the child table and is having a relation ship with the parent table ?

regards,

Rajan

Former Member
0 Kudos

This is my bapi_wrapper:

DATA: z11customerid LIKE z1customer-zcustomerid.

TABLES : z1customer.

DATA: z11addressid LIKE z1customeradd-zaddressid.

TABLES : z1customeradd.

DATA: z11sequencenumber LIKE z1email-zsequencenumber.

TABLES : z1email.

DATA: lds_return LIKE bapireturn1.

DATA: gdf_message_dummy TYPE string.

SELECT MAX( zcustomerid ) FROM z1customer INTO z11customerid.

z11customerid = z11customerid + 1.

i_top-zcustomerid = z11customerid.

INSERT z1customer FROM i_top.

DATA: zcustomerid LIKE z1customer-zcustomerid,

wa_i_t_010 LIKE LINE OF t_010,

wa_i_t_020 LIKE LINE OF t_020.

zcustomerid = z11customerid.

e_zcustomerid = zcustomerid.

LOOP AT t_010 INTO wa_i_t_010.

wa_i_t_010-zcustomerid = zcustomerid.

SELECT MAX( zaddressid ) FROM z1customeradd INTO z11addressid.

z11addressid = z11addressid + 1.

wa_i_t_010-zaddressid = z11addressid.

INSERT z1customeradd FROM wa_i_t_010.

ENDLOOP.

LOOP AT t_020 INTO wa_i_t_020.

wa_i_t_020-zcustomerid = zcustomerid.

SELECT MAX( zsequencenumber ) FROM z1email INTO z11sequencenumber.

z11sequencenumber = z11sequencenumber + 1.

wa_i_t_020-zsequencenumber = z11sequencenumber.

INSERT z1email FROM wa_i_t_020.

ENDLOOP.

I use three tables, because I guided in an example...

rajan_venkatachalam
Participant
0 Kudos

Hi victor,

There is nothing to do with code , you would have done the mapping for the fields in the merep_sbuilder transaction. In the mapping screen for your create BAPI wrapper , you can see import and table parameters.Double click the table parameter and select the checkbox for all the fields for child table and select mandatory for the key field.

You need to generate the syncbo and re assign the synbo to the MCD through transaction MI_MCD and you have to download merepmeta.xml where you cannot see the <input-type> tag for the field ,if you did corect.

Thanks and Regards,

Rajan

Former Member
0 Kudos

When i do it... I select all checkbox... Is it wrong?