Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

Returning Tables from Function Question

$
0
0

This is such a noob question, but I can't figure out if I'm approaching function design correctly. I'm creating a function that returns a list of items. I come from a curly brace language background, and when I want to do something like this in those languages I simply create an object and then return a list containing multiple objects.

 

Now to my ABAP issue. I have a structure and I want to return a list (internal table) of them. As far as I can tell, to do this I need to create a table type based on this structure and then reference the table type in an exporting parameter. This feels like an unnecessary step to me, so I just want to be sure I'm not missing some other mechanism to accomplish this. Is there not a way to define at the function level that I have a structure and I want to return zero or more of them?


Viewing all articles
Browse latest Browse all 8735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>