2005 Oct 26 5:55 PM
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
2005 Oct 26 6:02 PM
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
2005 Oct 26 6:03 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |