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

Passing an XML file from WebDynpro app to ABAP function module

Former Member
0 Likes
519

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

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

3 REPLIES 3
Read only

Former Member
0 Likes
493

Hi All,

Can anyone help me out with this please?

Thanks in advance ...

Biju

Read only

0 Likes
493

Hi Biju ,

Welcome to SDN.

If the import parameter is defined as type string it should work, however did you check whether your application pass it properly?

I have applications using strings as import parameters working fine. (webapplications (BSP) to RFC)

Regards

Raja

Read only

0 Likes
493

Hello Biju,

have you tried to set an extenal break-point in the FuBa and to compare the content with the one of the sender side. Maybe this can provide some hint.

Also checking the java proxy class and the fuba signature using Char 255 instead of String might be helpful.

Regards

Klaus