‎2007 Oct 30 12:19 PM
i have created a class which has a constructor which imports the value of a and b.
for this particular class iam creating an object obj1 by exporting the values for a and b to the constructor.
then iam creating an object called obj1 and obj2 without passing any parameters. because these objects should not execute that constructor rather it should call all the other methods.
for this program it shows an error message saying " the obligatory parameter A has no value assigned to it" at the lace where iam using create object obj2 and obj3.
can anyone help me what has to be done to resolve this.
thanks,
Phyrose.
‎2007 Oct 30 12:23 PM
I guess there is no default constructor in ABAP !!
So you'll have to use that which you created.
I am not sure whether you can do constructor overriding !
Regards
Nishant
‎2007 Oct 30 12:27 PM
Hi,
In the import parameters give values to the particular constructor.
Regards
Srinu