• May 15, 2026
  • Kishore Thutaram
  • 0

Requirement – Disable the custom fields which are created by using CFL (Custom logic Fiori App) for PO (Purchase Order)

Steps: Enhancement – ES_MMPUR_PROCESS_PO_CLOUD

BADI – MM_PUR_S4_PO_FLDCNTRL_SIMPLE – Item level fields

BADI – MM_PUR_S4_PO_FLDCNTRL_SIMPLE_H – Header level fields

Create the BADI implementation and implement the below code in implementation class.

In this example, Item level fields will be disabled.

Method : IF_MM_PUR_S4_PO_FLDCNTRL~MODIFY_FIELDCONTROLS

LOOP AT fieldselection_table ASSIGNING FIELD-SYMBOL(<fs_sel>)
                                                     WHERE
                                                      field = 'ZZ1_POSALES_PDI'
                                                  OR  field = 'ZZ1_POSALEITEM_PDI'.

        <fs_sel>-fieldstatus = '*'.
 ENDLOOP.

Kishore Thutaram

SAP Solution Architect | 16+ Years' Experience in SAP | Sharing Practical SAP Knowledge | Engineering Graduate with Expertise in SAP Architecture

https://fiowelt.com