‎2014 Apr 16 1:02 PM
Hi,
I have created one class interface and assigning method with follwing sequence
ZIF_VEHICLE_MODEL~GET_MODEL
But when I add ~GET_MODEL after ZIF_VEHICLE_MODEL, system shows below error message.
Message no. OO103
Kindly suggest the same.
Thanks and Regards
Amol Khochare
‎2014 Apr 16 1:26 PM
Why not share the code you've written instead of a fragment? How people expect help when they post so little detail is beyond me.
‎2014 Apr 16 1:30 PM
‎2014 Apr 16 1:58 PM
Can you show us how you implemented the interface in the class?
I think there is something missing...
‎2014 Apr 16 2:02 PM
‎2014 Apr 16 1:29 PM
you can't name the method with ~ symbol. This symbol is used to emhpasize, that the method's definition placement is in the corresponding interface.
‎2014 Apr 16 1:33 PM
So how can i implement this. When I go to define the code, it shows error message as field is unknown due to did not implement in method.
Regards
Amol Khochare
‎2014 Apr 16 2:21 PM
Hi Amol
You should not define the method directly in your ZCL_CAR_DETAILS. Instead, in class ZCL_CAR_DETAILS, go to "Interface" tab and enter the interface ZIF_VEHICLE_MODEL there.
After that, if you switch back to the "Methods" tab, you should see the methods from the interface class already there.
Rgds
Eng Swee
‎2014 Apr 16 3:25 PM
Amol,
Add the interface you have created in the INTERFACE tab instead of the METHODS tab.
thanks,
Vikram.M
‎2014 Apr 16 3:41 PM
Hi AMOL,
it seems u are trying for a multiple inheritance from the SAP technical.
can be used in different classes for different functionality.
So create an interface with name ZIF_VECHILE_MODEL AND method name GET_MODEL and
parameter name RV_MODEL. And activate it.
Next create a CLASS with name ZCL_CAR_DETAILS.And if u want to use the the GET_MODEL METHOD IN THIS CLASS,NO NEED TO WRITE ZIF_VECHILE_MODEL~GET_MODEL EXPLICITLY.
ZIF_VECHILE_MODEL,THATS ALL.
‎2014 Apr 17 4:58 AM
‎2014 Apr 17 5:12 AM
Details are not showing after Method.
Thanks and Regards
Amol Khochare
‎2014 Apr 17 6:55 AM