HI,
I am working on copying the MA attachment to the contract doc "Final signed document."
But the code throws the error "A reflection error occurred accessing the object".
Please find the code below and let me know your thoughts on this
com.sap.odp.api.common.types.AttachmentIfc actualAttach = com.sap.odp.api.common.types.TypeFactory.createAttachment();
parentBean1 = com.sap.odp.api.common.types.TypeFactory.createParentObjectReference(oConDocObj);//oConDocObj is the contract document bean
actualAttach.setFileData("name",fileStream,parentBean1,session);// fileStream is read from FILE_DATA of FCI_ATTACHMENT_BLOB table.
oConDocObj.getFieldMetadata("SIGNED_DOC").set(oConDocObj,actualAttach);
Regards
Krishna