Login in the Cloud Foundry Trial
You need to create a subaccount
Go back to trial, and set the entitlements
In you trial SUB ACCOUNT, click on your space:
Go on create new instance. this e-mail address must be the same of your login in cloud platform, otherwise you can get the an error like this one later: “… You were successfully authenticated, but an error occurred during the Service Instance logon. Please ensure that you have a user for the Service Instance….”
define a instance name.
Go again in your “space” -> Service Market Place -> ABAP Trial. Then click in your instance:
Click on Service Keys
After save select the content of the key and save. It will be used to configure the eclipse connection.
Connect Eclipse with the ABAP Cloud
If you does not have the eclipse, download and configure the HANA tools, installing the packages. Go on Help – Install New Software:
Use the link below, and install the SAP Tools:
Ok, now, let’s create a new project:
The type must be “ABAP Cloud Project”
Paste the key generated before, here:
E-mail of login and password:
If you get this error: “The JWT is expired. Therefore please check your local system clock.”, Probably, your clock is not set correctly, even if there is some minutes of difference, you might have this error. So adjust manually if necessary.
If ok, Eclipse will ask you to open the ABAP perspective, click on OK.
Create Hello World
First create a new package. Click on the main package
Put a description for the transport Request, and Finish.
Creating the class
Then select the Request and click on finish.
Implement the class like below, specify the interface IF_OO_ADT_CLASSRUN in the Public Section and write the method in the implementation area:
CLASS z_class_ric DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES IF_OO_ADT_CLASSRUN. PROTECTED SECTION. PRIVATE SECTION. ENDCLASS. CLASS z_class_ric IMPLEMENTATION. METHOD IF_OO_ADT_CLASSRUN~main. out->write('Hello World!'). ENDMETHOD. ENDCLASS.
Salve, activate and run: