on 2025 Jan 02 1:04 PM
Introduction
Hello, in this blog I will show you how to create custom business object (CBO) and custom reusable elements in S4/Hana public cloud. Then I will show you again what the code list I created in the custom reusable element does in the custom business object and why we created it.
Additional Information
Custom business objects help create business objects with SAP S/4Hana Cloud's user interface for extending data model fields, adding things like custom columns and calculation logic. With Custom Reusable Elements, you can customize the structure you create according to your needs and install it accordingly.
Custom Reusable Elements
Here I will create a house for sale ad example in the custom business object (CBO). The code list here will give us information about home types when we create an ad. First, let's create a custom code list from the custom reusable element.
Figure-1
You can follow the images below to create the creation phase. After these steps, we are done with custom reusable for now.
Figure-2
Figure-3
Custom Business Object
We move on to creating our example in the custom business object. Here again, you can follow the steps in the image.
Figure-4
Figure-5
It is necessary to select these boxes when creating a custom business object. These boxes have the following meanings in numerical order:
Figure-6
In the field section, you specify which fields you want to see in this house-ad table. In the picture, we use the house_type we created in custom reusable as the type of the house_type label. After selecting the type here, you can see the code list we created from the code list text on the right.Figure-7
In the Node section, when we run the last application, we will see that the house is a field.
Figure-8
You can also go to the fields section and select the node and add the fields of the node we added. After completing all the steps, you need to publish what you have done. After publishing, you can see what you have done in the log section.
Figure-9
Figure-10
After the publish phase, you need to perform operations numbered 1 and 2 from the general information section. These operations are;
Figure-11
Selecting the Maintain catalog, you can select the catalog you want to add by clicking add on this screen and publish it. If you want, you can also create a custom catalog yourself, assign it to it and publish it. After publishing, when you click go to Generated UI, the application opens as an interface. Figure-12
Figure-13
Figure-14
You can open the application here by clicking Generated UI again. At the same time, you can go to the app finder, find the catalog you added the application to and add it to launchpad.
Figure-15
Figure-16
I created an example. Here you can see what the code list we created earlier and used in the fields does when creating an example.
Figure-17
Conclusion
As a result, today I showed you how to create a custom business object(CBO) and how to create a custom code list in a custom reusable element. Then I showed you again what the code list I created in a custom reusable element does in a custom business object and why we created it. I hope it will be useful for you.
Request clarification before answering.
Please re-post as a blog post. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.