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

Function module parameters

Former Member
0 Likes
618

Hi experts

I want pass a table by function module export parameters,How can I do that?I can't use tables pass the table because the tables parameter can not be used in Webservice.

BR

Chris

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
594

Hi Chris,

You can pass only a single record through EXPORT parameter of any FM.

Instead , TABLES should be used. But since you have some restrictions, you can export the TABLE TO MEMORY & Import wherever required.

EXPORT I_OUTPUT TO MEMORY ID 'ZID'.

Best regards,

Prashant

4 REPLIES 4
Read only

Former Member
0 Likes
594

Hi Chris,

U can pass the table in CHANGING parameter.

Regards,

Sonal

Read only

Former Member
0 Likes
595

Hi Chris,

You can pass only a single record through EXPORT parameter of any FM.

Instead , TABLES should be used. But since you have some restrictions, you can export the TABLE TO MEMORY & Import wherever required.

EXPORT I_OUTPUT TO MEMORY ID 'ZID'.

Best regards,

Prashant

Read only

0 Likes
594

Hi Prashant

I want convert my function module to webservice,If I pass a table by tables parameter I can't get data from the table,Import and Export parameter is ok.I don't know is the webservice can support internal table,If It's not,I think i will convert the internal table data to string,and passed by Export.Do you have any suggest?

thanks

BR

Chris

Read only

Former Member
0 Likes
594

Hi Chris huang.

If the table you need to pass incudes only few lines you can pass every line separated by entering it in export parameters like a structure.

It is not the best solution...