on 12-08-2009 10:41 AM
Hi All,
I have a requirement where i need to get the attachment attached through CV01N . here i need a RFC which can return the content of attachment in the form of Binary data so its structure should be as below
RFC input -- DocumentNumber , type , Part , version
RFC export or table -- Table filled with attachment content in Binary format.
Please let me know its very much required immediately.
Thanks
Abhishek
Hi,
If KPro is available, then you can check scms package, function group - SCMS_CONV for conversion of files.
But function modules are not RFC enabled, you can write your own FMs and call modules from above function group to achieve this.
Regards
Surjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this :
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/codetogetthecontentofanattachmentinDMandmailittoexternalemailid
Thanks
Papiya
Edited by: Papiya chatterjee on Dec 17, 2009 9:33 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
First use the function module : 'CVAPI_DOC_GETDETAIL and get the tables parameter PT_FILES.
Now read this PT_FILES : CLASS and OBJID.
Now use SDOK_PHIO_LOAD_CONTENT and get the details in FILE_CONTENT_BINARY .
Hope this solves your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.