A Business Configuration Maintenance Object declares a Service Binding as relevant for business configuration. They are listed in the Custom Business Configurations app. By selecting an entry in the app a SAP Fiori elements based UI is rendered to maintain the business configuration.
You can use the ABAP Repository Generator to create the necessary repository objects.
-
Right-click on table ZERRCODE_###
and select Generate ABAP Repository Objects….
-
Create a Business Configuration Maintenance Object:
- Description:
Maintain error codes
- Generator:
Business Configuration Maintenance Object
Click Next >. -
The system generates a proposal for all input fields based on the description of the table. An additional database table is considered as the text table by the wizard if the annotation @AbapCatalog.foreignKey.keyType : #TEXT_KEY
is used. If you encounter an error message stating a specific object already exists, change the corresponding name in the wizard.
Click Next >.
-
The list of repository objects that are going to be generated is shown. Click Next >.
-
Select a Transport Request and click Finish.
-
When the generation is completed, the new Business Configuration Maintenance Object is shown. Refresh your project explorer and check the other generated objects. If you publish the Local Service Endpoint
of service binding ZUI_ERRORCODE###_O4
you can already start the Custom Business Configurations app from the SAP Build Work Zone and select the created Business Configuration Maintenance Object. However you will not be able to read or edit the configuration entries because your user is missing authorizations. Instead you will provide authorization control for a Business Configuration Maintenance Object in the next tutorial and then finally use the Custom Business Configurations app.
-
If you only have a trial account you need to perform the following adjustments because you are not able to create Customizing Transport Requests or Business 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. Afterwards save and activate the class.
GET_GLOBAL_AUTHORIZATIONS
LSC_ZI_ERRORCODE###_S→SAVE_MODIFIED
LHC_ZI_ERRORCODE###→VALIDATERECORDCHANGES
LHC_ZI_ERRORCODE###TEXT→VALIDATERECORDCHANGES
-
Delete the generated Access Control
objects
- Publish the
Local Service Endpoint
of service binding ZUI_ERRORCODE###_O4
More information about the Business Configuration Maintenance Object configuration can be found here. For example you can enable or disable inline creation of table entries.
More information about defining CDS annotations for metadata-driven UIs can be found here. For example you can adjust the visibility, positioning and labels of the fields. By default the field label is derived from the Data Element.
Additional information about RAP BO with multi-inline-edit capabilities can be found here
The content of a text table can also be maintained using the Maintain translations app
Draft business objects requires a total Etag
field to ensure optimistic concurrency comparison.
The augment statement is used to enable the end user to maintain language dependent texts in their logon language
See also naming conventions for Development Objects