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

Error while passing internal table between methods at design time

Former Member
0 Likes
418

Hi,

In a method (say method1 for eg) I have declared an internal table, IT_RANGE2 as:

DATA: IT_RANGE2 TYPE STANDARD TABLE OF ZTTRANGE

ZTTRANGE is a tabletype in SE11 and has a line type ZRANGE.

In this method, I am calling another method (method2)

WD_COMP_CONTROLLER->HOLD_DATA( CHANGING IT_RANGE = IT_RANGE2 ).

IT_RANGE has been declared as;

PARAMETER TYPE REFTO ASSOCIATED TYPE

IT_RANGE CHANGING ZTTRANGE.

I am getting an error: IT_RANGE2 is not type-compatible with formal parameter IT_RANGE.

Please help.

MIck

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
392

change it_range2 like this


DATA: IT_RANGE2 TYPE ZTTRANGE

2 REPLIES 2
Read only

Former Member
0 Likes
393

change it_range2 like this


DATA: IT_RANGE2 TYPE ZTTRANGE

Read only

0 Likes
392

Thanks a lot Ramiro. This helped solve the problem. Points awarded.

MIck