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

return a flat file from an RFC

Former Member
0 Likes
476

Hi,

I have created a function module that at the moment returns 4 tables. I want to create a flat file based on these tables and return that file from the function instead of the tables. I can create a flat file using the function GUI_DOWNLOAD.

Is there a way to return a flat file from the function?

Regards,

Mark

Hi,

I have created a function module that at the moment returns 4 tables. I want to create a flat file based on these tables and return that file from the function instead of the tables. I can create a flat file using the function GUI_DOWNLOAD.

Is there a way to return a flat file from the function?

Regards,

Mark

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
406

No, but you can return all four tables in single flat table. First you would need to create a structure in SE11, it would have one field, of type string. In your function module interface, you would have a tables parameter like the structure that you just created. No in the code of the function module, instead of writing your data of each internal table to the corresponding tables parameter to update the one table with the flat structure.

Make Sense?

Regards,

Rich Heilman

Read only

christian_wohlfahrt
Active Contributor
0 Likes
406

Hi Mark!

You can return a table with one (large) character field. This could contain the file lines as table lines.

But otherwise: there is no data type 'file'. You can return fields or tables, maybe exceptions or global memory data - maybe a path name to a common file path (+filename) can be your export data?

Regards,

Christian