Overview: In SAP, CFL refers to Custom Fields and Logic. It is not a standalone application; rather, it is a Fiori application provided by SAP as a component of S/4HANA Extensibility. The application allows users to incorporate new fields and business logic into standard SAP applications without coding. In this section, we will locate the Custom Fields and Custom Logic tab. Within the Custom Fields tab, we can add our custom fields, while the Custom Logic tab is designated for BAdI implementation, which is currently not in use. For custom logic, we have an additional Fiori application named as Custom Logic.
Introduction: In this blog, we will explore how to add a custom field using the Custom Fields and Logic Fiori application, as well as how to implement standard search help (F4 Help) within that custom field using the SAP Screen Layout of custom created Sub-screen or Main Screen.
Step-by-Step Process:
Step 1 - Open Custom Fields and logic Fiori App.
Step 2 - Press the “+” button located at the top right.
Step 3 - After clicking the “+” button, a pop-up will appear prompting you to enter the appropriate Business Context Id (MM_PURREQN_ITEM) for the corresponding SAP module along with any other necessary fields.
Step 4 - Please choose the correct type from the dropdown menu (such as Text, Code List, etc.). The Text option is solely for input purposes, while the Code List should be used if you wish to assign any fixed values to your field, as other types serve different functions.
Step 5 - Give desired length to the field and click on “Create” Button.
Step 6 - It will appear like this on “Home Page” of the App.
Step 7 - Provide the field label to the field and click on “Save” and “Publish” Button.
Step 8 - In the other tabs, you will find the UI specifications, names of CDS Views, details of the Odata Service, API information, and more.
Step 9 - Once you publish your field, it will be incorporated into the standard table of the relevant business context. In my situation, it will appear in the EBAN table with a name that begins with "ZZ1" under an Append Structure.
Step 10 - Custom sub-screen as a Customer Data tab has been created in the ME51N T-code (Create Purchase Requisition Fiori App) where I have added that custom field.
Step 11 - Open the Screen Layout of the corresponding screen via path System > status > Program Name > Screen > Screen Layout.
Step 12 - Double click on the input field and Properties pop-up will appear.
Step 13 - Enter the standard search help name in the search help field of the property pop-up, and you will notice the F4 help added in the custom field.
Step 14 - Search Help Window.
Conclusion: Using the Custom Fields and Logic app in SAP Fiori, we can easily extend standard applications like ME51N by creating custom fields tailored to business needs. By integrating standard search helps into these fields and placing them on a custom sub screen, we enhance usability while maintaining consistency with SAP’s native behavior. This approach ensures flexibility, upgrade safety, and a smooth user experience—all without needing deep technical development.
This approach will work when you have custom screen, for standard screen we have an alternative option to utilize CDS views F4 help during the creation of fields via Custom fields and logic Fiori App.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |