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 value Function Module Webservice

Former Member
0 Likes
536

Hi experts,

I need create an abap webservice that should return a couple or records. It will return the data from a function module, the returned values will be for instance:

Pernr, Month, Year -> As a Header

100, 01, 2013

100, 02, 2013

100, 02, 2014

...

I'm not sure what is the best option for the returning values, create a Z table and use it in the function module in the tab "tables" or use an structure Z that will have three fields (pernr, month, year). This structure will be used as an export param in "Export" tab.

What do you think is the best option?

Kind regards,

Julian.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
382

Hi Julian ,

To get the set of values from tables using Web service you can use the "Tables" tab and in that you can declare a table by using a Z structure (I preferred in same requirements I got).though using of tables concept is obsolute one but it works without any issue .Another way you can get the same vales through "Export" parameter by using a variable of table type .

Thanks

Mallikarjun

1 REPLY 1
Read only

Former Member
0 Likes
383

Hi Julian ,

To get the set of values from tables using Web service you can use the "Tables" tab and in that you can declare a table by using a Z structure (I preferred in same requirements I got).though using of tables concept is obsolute one but it works without any issue .Another way you can get the same vales through "Export" parameter by using a variable of table type .

Thanks

Mallikarjun