Quantcast
Channel: SCN : Discussion List - SAP Sourcing
Viewing all articles
Browse latest Browse all 1416

copying attachment from MA to contract document

$
0
0

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


Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>