Symptom
Using BADI MAINT_ORDER_FIELD_CONTROL to control field 'WBS Element' in maintenance order is not working.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Using BADI MAINT_ORDER_FIELD_CONTROL to set field 'WBS Element' as read only while changing maintenance order, example code as below:
IF mode = if_eams_ext_base=>ui_mode-change.
INSERT VALUE #( fieldname = 'WBSELEMENTINTERNALID' option = if_eams_ext_base=>fieldcontrol-read_only ) INTO TABLE fieldproperties.
ENDIF.
Cause
Resolution
Use the field name 'LOC_WBS_ELEM' instead of 'WBSELEMENTINTERNALID'.
Keywords
BADI, WBS Element, MAINT_ORDER_FIELD_CONTROL, LOC_WBS_ELEM, WBSELEMENTINTERNALID. , KBA , PM-FIO-2CL , Fiori User Interface (UI) for PM (Public Cloud) , How To