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

table type as a parameter

Former Member
0 Likes
620

Hi Experts,

I got a function with following importing parameter:

REFERENCE(IM_RECIPIENTS) TYPE  ISU_ADR6_TAB OPTIONAL

I created a table 'zdyu_mail' with the structure wich the same as ISU_ADR6_TAB

And I tried to transfer this parameter as following:

DATA: ta_dyu_mail      TYPE STANDARD TABLE OF zdyu_mail,

       wa_dyu_mail      LIKE LINE OF ta_dyu_mail.

TYPES: ty_dyu_mail TYPE STANDARD TABLE OF zdyu_mail.


DATA: v_recipients     TYPE ty_dyu_mail.


IM_RECIPIENTS        = v_recipients


Where am I worng?

1 ACCEPTED SOLUTION
Read only

former_member201275
Active Contributor
0 Likes
588

Why do allllll of this? Just do this:    Data: v_recipients type isu_adr6_tab.

2 REPLIES 2
Read only

former_member201275
Active Contributor
0 Likes
589

Why do allllll of this? Just do this:    Data: v_recipients type isu_adr6_tab.

Read only

PeterJonker
Active Contributor
0 Likes
588

Your function module parameter is of type ISU_ADR6_TAB and your parameter is of type  STANDARD TABLE OF zdyu_mail, these are two different types. That's why it is wrong. Follow Glen's advise and it will work.