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

Webservice in ABAP using Attachments

christoph_rhein1
Associate
Associate
0 Likes
354

Hi,

as far is I was able to find similar questions it seems that Abap is not supporting attachments for webservices (at least not for 6.20 or 6.40).

I want to send a file (e.g. Pdf, Wrd) with a webservice but when I try to create a rfc enabled function i am not allowed to use a STRING or XSTRING in a table parameter. I need to have a table because there could more than one files to send.

Is there a better way to do that than cutting the file into a char type with a defined lenght and fill a table and rebuild it on the receiver side?

Thanks,

Christoph

2 REPLIES 2
Read only

Former Member
0 Likes
325

Rather than using a TABLES parameter, use IMPORTING / EXPORTNIG / CHANGING parameters using a table type.

You can then use type STRINGTAB - a table of strings.

Michael

Read only

christoph_rhein1
Associate
Associate
0 Likes
325

Thanks a lot... simple and sufficient