Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Modify a multi Tuple valued filed value

Hi,

I am not able to modifya field value and getting a error as Field not found. and not able to update

below is the code im using

TupleValue mValPlant = null;

MultiTupleValue mtvAddress = null ;

MdmValue mvPlants = new StringValue("CL02");

mtvAddress = mtvAddress1;

mValPlant = (TupleValue) mtvAddress.getValue(0);

mValPlant.setFieldValue(tfiPlant, new StringValue("R6"));

mtvAddress.modifyTupleValue( mValPlant ) ;

try {

try {

rrCord_plnt.setFieldValue(tb2, mtvAddress);

} catch (MdmValueTypeException e) {

e.printStackTrace();

}

}catch (IllegalArgumentException e1) {

e1.printStackTrace();

}

ModifyRecordCommand modifyRecordCommand = new ModifyRecordCommand(connection);

modifyRecordCommand.setSession(sesId);

modifyRecordCommand.setRecord(rrCord_plnt);

modifyRecordCommand.setModifyAnyway(true); //this accepts the boolean parameter and the value is case sensitive

try {

modifyRecordCommand.execute();

} catch (CommandException e) {

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question