Implementation of a BADI for logical development in an S/4 HANA Public Cloud Edition environment, release 2308. To achieve this goal, we must follow the following steps:
App Custom Logic

App Custom Fields
In the Custom Logic tab, it will inform you that the app is deprecated, and will take you to the current app

Custom Logic Tab
Current Custom Logic app

Updated Custom Logic app
When you click create an implementation, you will first need to define the Business Context of the scenario in which you want to publish a logical implementation:

Clicking on New - New implementation

Extension Points - List of available BADIs

Naming your implementation
At the end, it is necessary to publish it in the environment

Custom Logic published
In the Open Code Editor, it is possible to implement the desired logic according to the availability of each BADI.

Open Code Editor

Show Sample Code
You can view the import and export parameters on the right side of the screen

Importing parameters

Changing parameters
In Show Keyboard Shortcuts there are some shortcuts that make coding easier, such as pretty printer or code completion

Shortcuts
In the Compare tab, we can see all the published versions for comparison or retrieval

Code versioning
In the Test tab, we can simulate the code by adding values and saving them as variants

Testing possible scenarios through variants



Custom Logic Tracing
By clicking on Start Trace, it is possible to define the name, the user, until when the tracing will remain in the list for consultation, and the number of minutes for which you want to perform the tracing

Defining Trace

Examples
cl_ble_trace_writer=>write_info_message( message = | title for identification in trace: { structure-field} | ).
cl_ble_trace_writer=>write_info_message( message = | title for identification in trace: { variable} | ).
Example of the scenario I will run:
cl_ble_trace_writer=>write_info_message( message = | headernetweight : { ls_deliverydocument-headernetweight } | ).



BADI implemented and published for use in the environment


Publication and implementation completed successfully
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |