A Business Configuration Maintenance Object declares a Service Binding as relevant for business configuration. They are listed in the Custom Business Configurations app. Selecting an entry in the app renders an SAP Fiori elements-based UI to maintain the business configuration.
ABAP Repository Generator allows you to create the required repository objects, including RAP business object, service binding, and business configuration maintenance object.
Hint: For more information, see ABAP Repository Generator documentation.
-
Right-click the ZERRCODE_###
table and choose Generate ABAP Repository Objects….
-
Select Maintenance Object
and click Next >.
-
Enter the target package and click Next >.
-
The system generates a proposal for all input fields based on the description of the table by following these naming conventions. If you receive an error message stating that a specific object already exists, change the corresponding name in the wizard.
Only if you have an SAP BTP trial account, change the option Transport selection to No transport
as you cannot create any customizing transport requests.
Click Next >.
-
The list of repository objects that are generated is displayed. Click Next >.
-
Select a transport request and click Finish.
-
When the generation is complete, the new business configuration maintenance object is displayed. You can find the documentation for the object attributes here. In the next tutorial, you will create the necessary authorization objects for using the business configuration maintenance object in the CUBCO app. You can adapt the generated RAP BO to your needs, see also CDS Annotations for Metadata-Driven UIs. For example, you can adjust the visibility, positioning, and labels of the fields.
-
If you have a license for SAP BTP, ABAP environment or you are working in an SAP S/4HANA Cloud, public edition system, you can now set this step to Done and continue with the next step Test yourself.
Only if you have an SAP BTP trial account, you need to make the following adjustments because you cannot create business user roles. You can then also skip the following tutorial Provide authorization control for a Business Configuration Maintenance Object and continue with tutorial Use Custom Business Configurations app.
-
Edit class ZBP_I_ERRORCODE###_S
, section Local Types. Delete the content of the following methods. Then save and activate the class.
LHC_ZI_ERRORCODE###_S→GET_GLOBAL_AUTHORIZATIONS
-
Set the annotation @AccessControl.authorizationCheck in all generated CDS views to #NOT_ALLOWED
. Save and activate.
-
Publish the Local Service Endpoint
of the ZUI_ERRORCODE###_O4
service binding