Skip to Content
0
Mar 28, 2009 at 03:53 PM

Java MDM API 2, Text Blob Writing Exception

20 Views

Dear Experts.

I'm trying to write Text Blob record to the Text_Blocks table but all the time

exception occurs:

com.sap.mdm.internal.protocol.manual.ServerException: Not yet implemented

The code is the following:

try {
			CreateRecordCommand createRecord = new CreateRecordCommand(context);
			TableId mainTableId = schema.getTableId("Text_Blocks");
			TextBlobRecord addressBlob = RecordFactory
					.createEmptyTextRecord(mainTableId);

			addressBlob.setCode("" + requestId);
			HierGroupNode addressHierGroupNode = (HierGroupNode) this.groupTextBlockHashMap
					.get(dataGroupName);
			addressBlob.setDataGroupId(addressHierGroupNode.getId());
			addressBlob.setDescription(new StringValue(blobCaption));
			addressBlob.setText(new StringValue(stringValue));

			createRecord.setRecord(addressBlob);
			createRecord.execute();
			recordId = createRecord.getRecord().getId();
			return recordId;
			// recordId = setCheckOut(recordId);
		} catch (ConnectionException e) {
			wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
			return null;
		} catch (CommandException e) {
			wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
			return null;
		} catch (MdmValueTypeException e) {
			wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
			return null;
		}

Edited by: Sergey Tuzov on Mar 28, 2009 4:53 PM