Skip to Content
0
Former Member
Oct 14, 2005 at 05:44 AM

Passing an XML file from WebDynpro app to ABAP function module

26 Views

Hi all,

I'm stuck with a problem, and am hoping one of you could let me know how to proceed:

I need to pass an XML file (or at least the entire content of the XML) from my WebDynpro application to a backend ABAP function module. What I tried was this:

In my WebDynpro app, I read the XML and convert the content into one long string (using java.io.FileReader and java.io.BufferedReader). In my ABAP function module I created an import parameter of type String. I then imported the ABAP Function module into my WebDynpro app as a model. I then tried to pass the XML string to the ABAP module. What happens is this:

If the size of the string (XML) happens to be less than 255 characters, then it works. That is, the string is passed to the ABAP function module and I can see the contents. However, if the XML string happens to be greater than 255 characters, then it does not work. The string at the ABAP side is empty. Surprisingly, the ABAP module does not throw an error either. It just displays an empty string.

Could you please tell me what the problem is?

Thanks & Regards,

Biju