Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
taranam
Contributor
1,902

In Public Cloud all of us are familiar with Key User Extensibility for extending custom fields in Standard apps /objects. With 2408 version, the new feature extension field wizard can be used to add extension fields to existing RAP business objects. The entire data model of the business object is extended, from the database table to the UI/API OData Service. This feature is available in development tenant and can be used from ADT .

  • The Generator supports to create multiple fields at one go whereas in Key User Extensibility we need to add fields and enable them one by one
  • First preference should be to Key User Extensibility only

Let’s have a look at quick demo

1. Open development tenant in Eclipse – ADT . Right click on the CDS view as shown below 

taranam_0-1723171222323.png

 

 

 

 

 

2. Below screen is opened and let’s select Extension fields to add the fields 

   taranam_1-1723171281037.png

3. Click on the next button; it will open the screen to ask for the package. Give the package name.

taranam_2-1723171332099.png

4. Clicking on the next will open the screen where you can add your Custom fields. Click on add as shown below

taranam_3-1723171383810.png

5. Give the field name, label and data type and select the UI annotation as yes .Field gets added as shown below. 

taranam_4-1723171427255.png

6. Now click on Add again to add the second field.

taranam_5-1723171476795.png

7. Once you have added both the required 2 fields below screen will show up. It will show both        the fields along with 2 sections –

  • Business Object Layer Extensions displays all objects with the extensions that you should generate within the business object layer (append structure, RAP business object CDS view entity extension, and so on).
  • Business Service Layer Extensions contains all projection views with provider contract transactional_query which are typically used in OData services.

 

     taranam_6-1723171546488.png

8. Click on the next; below screen will be displayed which will show all the objects that will get generated.

taranam_7-1723171591674.png

9. You can click on Service layer extension to see the code as shown below

taranam_8-1723171625187.png

10. Click on next will ask the TR number and provide the TR number as shown below.

taranam_9-1723171655071.png

11. Click on Finish and it will generate the objects .

    taranam_10-1723171691535.png

12. Once the generation is finished you can check the below code that got generated 

taranam_11-1723171722821.png

Same fields have been also been added in your Fiori app UX as well ; since the feature is just released in coming days we will come to know the actual usage based on scenarios.

How to find Scenarios which can be extended using Wizard :

  • Since this feature has been released recently so far couldn’t find way to find all such scenarios at single place like we can find all Business Context for Key User Extensibility at single place .
  • We can search in Eclipse under Released Objects->EXTEND_IN_CLOUD_DEVELOPMENT as per Finding Released APIs and Deprecated Objects | SAP Help Portal and identify them through the annotation "@AbapCatalog.extensibility.extensible: true".

Regards
Taranam

 

4 Comments
Andre_Fischer
Product and Topic Expert
Product and Topic Expert

Nice blog post.

This feature is also available in SAP BTP ABAP Environment, though there  are no extensible RAP BO's available so far.  

However you can run in the trial systems a hands-on script that explains in depth the topic of developer extensibility.

abap-platform-rap630/README.md at main · SAP-samples/abap-platform-rap630 (github.com)

Kind regards,

Andre

 

taranam
Contributor
0 Kudos

Thanks @Andre_Fischer 

Santhosh_Rajan
Explorer
0 Kudos

Hello @Andre_Fischer and @taranam ,

Thanks for the explanation and detailed information.

I followed the blog and created the custom fields via the Eclipse ADT (Developer Extensibility). However, the fields are not visible in the Manage Sales Order V2 App. Could you please let me know how we can enable the fields in the Fiori Elements app?

Kind regards,
Santhosh Rajan

ArunkumarAS
Explorer
0 Kudos

Dear @taranam and @Andre_Fischer ,
Happy to see that SAP is developing such nice features which eases the developer's work and they could concentrate more on the business extension and logics. 

But what keeps me puzzled is that why there is no extension possible when it comes to many of the standard Business Object Behaviors. When we wanted to extend some of the standard behavior like you mentioned in the session DT280 | Build clean core extensions with ABAP Cloud for SAP S/4HANA Cloud which could be adding a validation or determination, this is now not possible when the standard behavior misses the keyword extensible. Can we see somewhere an information on what are the list of Business Objects released for customer extensibility and in which version onward it is possible for both on-premise and S/4HANA public cloud?

Regards
Arunkumar AS

Labels in this area