on 10-16-2007 8:39 AM
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
Hi Victor,
see reply for previous post.
Rgards,
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.