Using Key-User In-App Extensibility to Create Custom Business Logic

Objective

After completing this lesson, you will be able to add a custom logic Business Add-In (BAdI)

Custom Business Logic

Custom logic allows you to trigger system behaviors that are not available by default. SAP provides various released Business Add-Ins (BAdIs) that you can implement using the Custom Logic app.

Screenshots showing how to create custom business logic.

Once you have identified the appropriate BAdI for your requirements, use the Custom Logic app to select and implement it.

Since business logic is based on ABAP, you can use the View Documentation link to understand the specific parameters and controls available within the code.

After creating and publishing the BAdI, you can access the Code Editor to review the generated ABAP code.

View the Business Add-In (BAdI) code

To refine the standard logic, you can review the provided sample code, which demonstrates the correct syntax for your specific scenario.

The Custom Logic app is one of the few areas in the customizing tenant where code is visible, accessible specifically through the Code Editor.

In most cases, manual code adjustments are unnecessary because the BAdI code is automatically generated during the creation and publication process. If you enter unsupported code, the editor will prevent you from saving or publishing your changes.

Note

This process provides a controlled method to implement minor functional changes in SAP S/4HANA Cloud without requiring extensive developer knowledge. Always test your BAdI implementation thoroughly after deployment.
Screenshots showing how to view the custom business logic code.

For more information, refer to the Custom Logic app documentation on the SAP Help Portal.