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 Hashed Table From FM

Former Member
0 Likes
446

I want to return a hashed table from a function module, but I can't seem to get it to compile.

Is there a restriction that only allows standard tables to be returned from a FM? I can't find that documented anywhere, but it seems like that's the case.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
354

Hi,

Declare a table type say ZHASH(SE11->data type->table type).

In the properties of the table type, mark it as hashed.

Declare export parameter say itab of type ZHASH.

You would be able to export Hash table then..

Regards,

Tanveer.

<b>Please mark helpful answers</b>

1 REPLY 1
Read only

Former Member
0 Likes
355

Hi,

Declare a table type say ZHASH(SE11->data type->table type).

In the properties of the table type, mark it as hashed.

Declare export parameter say itab of type ZHASH.

You would be able to export Hash table then..

Regards,

Tanveer.

<b>Please mark helpful answers</b>