Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
bhawna-v_16
Participant
1,006

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.

bhawnav_16_4-1759832929063.png

Step 2 - Press the “+” button located at the top right.

bhawnav_16_5-1759832960481.png

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.

bhawnav_16_6-1759832992282.png

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.

bhawnav_16_7-1759833025549.png

Step 5 - Give desired length to the field and click on “Create” Button.

bhawnav_16_8-1759833065197.png

Step 6 - It will appear like this on “Home Page” of the App.

bhawnav_16_9-1759833095462.png

Step 7 - Provide the field label to the field and click on “Save” and “Publish” Button.

bhawnav_16_10-1759833125878.png

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.

bhawnav_16_11-1759833156444.png

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.

bhawnav_16_12-1759833203804.png

Step 11 - Open the Screen Layout of the corresponding screen via path System > status > Program Name > Screen > Screen Layout.

bhawnav_16_13-1759833232578.png

Step 12 - Double click on the input field and Properties pop-up will appear.

bhawnav_16_14-1759833262306.png

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.

bhawnav_16_15-1759833293253.png

Step 14 - Search Help Window.

bhawnav_16_16-1759833314139.png

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.