In today’s rapidly evolving technological landscape, businesses are progressively turning to cloud-based solutions to heighten agility, scalability and innovations. As a cornerstone of SAP’s endeavor solutions, ABAP(Advanced Business Application Programming) has been a trusted connection for processing robust concern applications for decades. With the advent of unreality computing, SAP has extended the capabilities of ABAP to the cloud, enabling enterprises to leverage its almighty features successful cloud-native environment. This blog marks the opening of broad bid aimed astatine guiding developers done the travel of ABAP connected Cloud development. Our extremity is to equip you with the cognition and tools indispensable to modulation seamlessly from accepted ABAP improvement to creating modern, cloud-based applications.
The steps and method we volition screen successful the bid tin beryllium carried retired utilizing the SAP Business Technology Platform (BTP) ABAP proceedings instance, arsenic good arsenic connected S/4HANA on-premise from the 2022 merchandise onwards.
Additionally, these practices are applicable to some backstage and nationalist unreality deployments of S/4HANA, allowing you to take the setup the champion suits your organisations needs.
Create a package:
Step 1: Select your ABAP (Cloud) Project. Right click, prime NEW > OTHER (or ABAP PACKAGE). Select ABAP Package and click connected NEXT.

Enter Name, Description, prime to “Add to favourite package” and click connected Next.

Add Software Component. Click connected NEXT.

Enter the Request Description and click connected FINISH.

The bundle is created successfully and it should beryllium disposable successful your Favorite Packages successful Project Explorer.

Create Data Element:
Select the bundle successful the Project Explorer and right-click, prime NEW > Other ABAP Repository Object.
Create a information constituent for First Name.

Enter the name: ZAOC_FNAME_<unique_id>, description, and click connected NEXT.
Before we proceed with our tutorial, we would similar to springiness you an accidental to articulation our ZAPYard’s learning community where we person much than 35 groups and much than 1600 existent SAP Consultants interacting with each different daily. Only SAP topics and not BS. Else, they volition beryllium banned from the assemblage without warning. 👇👇👇👇
If you privation to beryllium portion of ZAPYard’s Discussion Community, delight consciousness escaped to cheque the beneath Link. We Ask, Answer, Help and Learn Together. There are much than 35 groups from antithetic topics like Generative AI, SAP Joule, CAPM, BTP, RAP, BPT, Fiori, iRPA, CAI, CPI, PI/PO, ABAP connected HANA, SAPUI5, SAP Build, SAP Adobe Forms, ChatBots, SAC etc. Join immoderate radical of your involvement and interact with our Community.
Join ZAPYard’s WhatsApp Community – Ask, Answer, Propose & Defend SAP Topics
NEW TRAINING ANNOUNCEMENT
Enrollment Link – CAPM connected SAP BTP| Training Starts 8th Feb 2025
Day Wise Course Break Up – CAPM connected SAP BTP
Training Dates: 8, 9, 15, 16, 22, 23 Feb, 1, 2, 8 & 9 Mar 2025 IST Dates
Training Time: 7:30 AM to 10:00 AM IST
Join our broad grooming on CAPM connected SAP BTP . For a LIVE, INTERACTIVE Learning acquisition with an adept Instructor, ENROLL in the people mentioned above.
Now, lets determination connected to the adjacent topic.

Select oregon make transport and click connected Finish.

Enter Predefined arsenic Category. Data Type = CHAR. Length = 40.

Add Field Labels.
Activate. You should beryllium capable to spot it successful your package.

Create a database table:
We volition make a database array now. Name of the array ZAOC_EMPLOYEE_.
Select the bundle successful the Project Explorer and right-click, prime NEW > Other ABAP Repository Object. Browse and find database table. Select and click connected NEXT.

Enter the NAME, Description and click connected NEXT.

Select the transport and click connected FINISH.

This codification volition beryllium coming by default. Lets adhd much codification to it.

Activate. Now you should person a database array which tin beryllium viewed from SE11 transaction.
Create a Output programme (Class):
Select the bundle and right-click and click connected NEW > ABAP Class. If you cannot spot the ABAP Class option. Select the Other ABAP Repository entity and benignant successful ABAP Class.
Name of the class: ZCL_AOC_HELLO_WORLD_<unique_id>.
Enter the Name and Description and past click connected Add…
Enter IF_OO_ADT_CLASSRUN successful the hunt container and prime the Interface. Click Ok to adhd the interface.


Should look similar this. Click NEXT. Enter transport. Click connected Finish.

Add pursuing successful the method if_oo_adt_classrun~main

Now activate the class. Run the people and you should spot “Hello world” successful the Console.

This is however an executable programme (class) is created successful the ABAP connected Cloud.

This is however an executable programme (class) is created successful the ABAP connected Cloud.
Now let’s make a people to populate the information successful the array which we conscionable created.
Create the people arsenic described above.
Name – ZCL_AOC_DE_EMPLOYEE_<unique_id>.
Add the pursuing codification successful method if_oo_adt_classrun~main


End of code. You tin adhd much information oregon alteration the information if you privation to.
Execute the programme and present the information should beryllium determination successful the table.
Create a CDS View:
Select the bundle and right-click, click New > Other ABAP repository Objects. Select Data Definition nether Core Data services and click connected NEXT.

Select the transport and click connected NEXT (or FINISH).
If clicked connected NEXT, prime the Define Root View Entity. The template volition make the code.

Final codification should look similar this:

Activate the code.
Sample CDS Views:
Use the supra described method to make the CDS views and the codification is fixed here. With this examples, effort to make your ain Views arsenic well. Add your ain unsocial ids aft the names of the views.
Simple presumption implicit MARA table

Join successful CDS

CDS View with parameters


Association

Create a Projection View:
Create a CDS View with name: ZAOC_CDSC_EMP_
Follow the erstwhile method to make a presumption entity.

Choose the transport and past click connected FINISH.

Service Definition and Binding:
Select the package, close click and click NEW > Other ABAP Repository Objects. Seach for Service Definition.

Click Next.
Enter NAME, Description and Source Type

Choose the transport and click connected Finish.
Enter the pursuing code:

Note present we are exposing the depletion presumption which we created successful erstwhile step.
Activate. With this our work explanation is complete.
We request to hindrance this service.
Select the package, close click and click connected NEW > Other ABAP repository objects.
Search for Service Binding

Click connected NEXT
Enter the Name and Description, prime the binding benignant and work definition.

In bid to find the work definition, click connected BROWSE. (or transcript paste the sanction of the service).

After clicking OK, the surface should look similar this.

Click connected Next. Choose the transport and click connected FINISH.

Activate the binding and click connected Publish. After publishing, the surface should look similar this.
Select worker and click connected preview,

On your default browser you should beryllium prompted to log in.
Please effort to make different table, presumption and work binding. You tin sanction arsenic per your privation but delight adhd your unsocial id somewhere.

If you recovered this nonfiction helpful, we’d emotion to perceive from you! Share your thoughts, questions, oregon experiences successful the comments below, your feedback is ever invited and helps america make adjacent much invaluable contented for you.
Please travel our LinkedIn Page, LinkedIn Group , Facebook Page, Facebook Group, Twitter & Instagram.
Do not hide to SUBSCRIBE to our YouTube Channel for Free Courses and Unconventional Interesting Videos.