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

Passing Function Module Tables Parameter to Local Class Constructor

Former Member
0 Likes
584

Dears,

I am new to OO ABAP. I am coding inside a function module. I want to pass the tables parameter of my function module to my class constructor during instantiation. The class is a local class in the Main program of the function pool. Could someone please help me with the syntax of object creation, constructor definition please ?

Thanks,

Kausthub

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
473

Static constructor doesn't have interface parameters. Since its a local class , you have chance of modifying it with instance constructor and passing the values through it.

Please read the sap help for such basic questions like object creation,constructor definition etc.