‎2021 Feb 15 4:57 PM
Tutorials: https://developers.sap.com/tutorials/abap-environment-persistence.html
--------------------------
I followed the instructions to create an ABAP class after a database table was created and activated. The class was also activated before I run it. Eclipse then shows the error:
Error: Class does not implement if_oo_adt_classrun~main method!
The only change I made to the source code is to replace xxx with an arbitrary number of 901. The table is not updated when I verify with F8.
It must be something simple but I can't find anything.
Thanks/Morris.
‎2021 Feb 15 5:12 PM
‎2021 Feb 15 5:25 PM
Hi Sandra,
Yes, it works now. Thank you for the quick help. What happened if I may ask? I did restart Eclipse before trying.
Morris.
‎2021 Feb 15 6:45 PM
‎2021 Jul 05 6:59 PM
‎2021 Oct 13 11:12 AM
.1. the cloud platform account / BTP has logged out due to inactivity while working in ADT/Eclipse. Log back into the cloud platform / BTP account, save & activate the class to fix this.
.2. when working on a single development object, the activation (Shift+F3) has left some part of the development inactive. When activating, choose Activate All (Ctl+Shift+F3) to ensure all objects are active.
‎2022 Aug 18 11:31 PM
Excellent, Thanks for "Remember Activate All Objects". Like a newes classic abapers
Regards,
Robert
‎2022 Jan 06 9:10 AM
‎2023 Nov 09 1:44 PM
Hi morris_wang9,
If you have Used that Interface code, Could you Please Share the Sample Code,
am Trying to scheduling Back ground Job using this Interface, it will be helpful for me.
‎2023 Nov 10 10:19 AM
If you're looking for help, you should ask a new question: https://answers.sap.com/questions/ask.html.
Best regards,
Anne
‎2024 May 28 7:37 AM
Hi I am doing the following tutorial and when I preview my service the data is blank. When try to activate the class I get the error message below Error: Class does not implement if_oo_adt_classrun~main method!
https://developers.sap.com/tutorials/abap-environment-rap100-generate-ui-service.html
‎2025 Aug 19 12:22 PM - edited ‎2025 Aug 19 12:23 PM
Hello,
Workaround I've used so far and it worked:
I have created an additional method namely "sub_methods_with_output" as private and moved group_id variable to public section.
Below is the code snippet :
PUBLIC SECTION.
INTERFACES if_oo_adt_classrun.
DATA:
group_id TYPE string VALUE 'xxx'.
PRIVATE SECTION.
METHODS:
sub_methods_with_output
IMPORTING
io_out TYPE REF TO if_oo_adt_classrun_out.n_out.
METHOD if_oo_adt_classrun~main.
sub_methods_with_output( out ).
ENDMETHOD.
METHOD sub_methods_with_output.
io_out->write( |[RAP100] Demo data generated for table ZRAP100_ATRAV{ group_id }. | ).
ENDMETHOD.