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

Data declaration for parameters in a method

Former Member
0 Likes
450

Hi All,

We are enhancing a FM using implicit enhancements.

In that I am calling a method. the importing parameter of the method is a table. Example code below.

Call method zcl_xyz=> method1

exporting im_i0167 = i0167.

(i0167 is an internal table based on structure p0167 and database table pa0167).

Now the i0167 is an internal table coming from the standard code above. I want to take this internal table as an input to the method. I have defined im_i0167 as an importing parameter for the method. The problem is that this i0167 is an internal table with header line (It is coming from the standard codes and declarations). Now i have defined my importing parameter im_i0167 by using type p0167.

At run time when the method is called, the im_i0167 is only a work area and not a table. Any imputs on how to pass this internal table with header line into a input parameter of a method (without the header line as this is OO) ?

1 ACCEPTED SOLUTION
Read only

former_member787646
Contributor
0 Likes
346

Hi

in OO ABAP internal tables with header line are not supported.

Try the following and check.

Call method zcl_xyz=> method1

exporting im_i0167 = i0167[ ].

Hope it helps.

Murthy

1 REPLY 1
Read only

former_member787646
Contributor
0 Likes
347

Hi

in OO ABAP internal tables with header line are not supported.

Try the following and check.

Call method zcl_xyz=> method1

exporting im_i0167 = i0167[ ].

Hope it helps.

Murthy