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

Export and Import Strings To/From Remote Function Modules

Former Member
0 Likes
1,826

Hi,

I am building a Web Application in which the user can enter very large string (unlimited) and we want to store that value in the backend. So i need to create Remote function module which can take large strings, store it in backend and when queired export the strings to the calling web application.

The Remote function module is allowing me to create "Import" and "Export" parameter with type String....but it is not allowing the String type "Table" parameter. I am kind of stuck now as i want to import and export multiple records of type String.

Can anyone suggest an altenative?

Regards,

Kumar.

8 REPLIES 8
Read only

Former Member
0 Likes
1,158

Hi,

To have a table parameter with string type fields, Goto SE11 and under data types, create a structure with the required fields of type string.

Then u can use this structure to refer to the table parameter and declare it as

p_tab like ZSTRUCTURE in the tables tab.

Regards,

Vik

Read only

0 Likes
1,158

Bu that is not working. It says Remote function modules needs to have flat structures..

Regards,

Kumar.

Read only

0 Likes
1,158

Well its working for me. In which SAP version are you working on?

Read only

0 Likes
1,158

I am on ECC 6.0.

Are you sure you have marked your function module as "Remote-Enabled Module" in the Attirbutes Tab?

Pls let me know.

Regards,

kumar.

Read only

0 Likes
1,158

I am on ECC 6.0.

Are you sure you have marked your function module as "Remote-Enabled Module" in the Attirbutes Tab?

Pls let me know.

Regards,

kumar.

Read only

Former Member
0 Likes
1,158

Hello Kumar,

It is not required to define table of type string as I hope you don't want to store full record in single line.

I think you can create table with type of char512 or char256 and then you can break input string as per the type

and store in table.

Hope this helps!

Thanks,

Augustin.

Read only

Former Member
0 Likes
1,158

Hello Kumar,

It is not required to define table of type string as I hope you don't want to store full record in single line.

I think you can create table with type of char512 or char256 and then you can break input string as per the type

and store in table.

Hope this helps!

Thanks,

Augustin.

Read only

0 Likes
1,158

This message was moderated.