Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem using method CL_BDS_DOCUMENT_SET-CREATE_WITH_OWN_URL

Former Member
0 Likes
531

Hello everyone,

I am trying to do this in brief:

I want to add a web url to attachments list of QM and CS notifications.

I was refering this blog, which helped me verymuch. Raja Thangamani has explained well about adding an attachment by uploading a document in this blog. This is really helpful in understanding the process.

/people/raja.thangamani/blog/2007/06/27/bsphow-to-create-attachment-in-business-transactions

I have found one method in the class CL_BDS_DOCUMENT_SET that should help me doing this.

CREATE_WITH_OWN_URL, this should help me with URLS, but i get a dump every time i try to execute the same.

Debugging the application, I found that the problem is with this function module:

DP_GET_STREAM_FROM_URL, this function module is trying to read the document specified in the URL, or like to get the document content.

I am passing a web url to a word document, with MIME type application/msword, and also tried with applicaation/x-unknown. It did not work. But as per Class documentation, it must work.

I wonder, how do I make it work???

I have found this SAP note, but I dont know how if it is going to help or not:

Note: 0001227526

I will be really lucky if some one can help me regarding this.

Thanks and regards,

Chinnu

1 REPLY 1
Read only

Former Member
0 Likes
369

Any help?