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

Export, Import and Table declaration in custom function module

Former Member
0 Likes
588

I am creating a custom function module. Parameters needed are export internal table and one data field from the internal table.

What do i need to fill for 'associated type' for these export parameters since size of the internal table and type for the data field from the internal table vary.

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
469

Hello Albert

If the function module need not be RFC-enabled then you have many ways to define such dynamic parameters, e.g.:


FUNCTION ZUS_SDN_DYNAMIC_PARAMS.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  EXPORTING
*"     REFERENCE(ET_ITAB) TYPE  TABLE
*"     REFERENCE(ET_ITAB_1) TYPE  ANY
*"     REFERENCE(ET_ITAB_2)
*"     REFERENCE(ED_DATA) TYPE  CLIKE
*"     REFERENCE(ED_DATA_1) TYPE  ANY
*"     REFERENCE(ED_DATA_2)
*"----------------------------------------------------------------------


ENDFUNCTION.

See also:

Regards

Uwe

Read only

Former Member
0 Likes
469

Thanks.