SAP Knowledge Base Article - Public

3543337 - Field Control BADI Not Working for WBS Element in Change Maintenance Order - SAP S/4HANA Cloud Public Edition

Symptom

Using BADI EAM_ORDER_FIELD_CONTROL to change the property (Read only or Mandatory) of field 'WBS Element' in maintenance order is not working as the custom code design in custom logic. The property of field 'WBS Element' remains unchanged.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

Using BADI EAM_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

Wrong technical field name is used in custom logic.

Resolution

Use the field name 'LOC_WBS_ELEM' instead of 'WBSELEMENTINTERNALID'.

Keywords

BADI, WBS Element, EAM_ORDER_FIELD_CONTROL, LOC_WBS_ELEM, WBSELEMENTINTERNALID. , KBA , PM-FIO-2CL , Fiori User Interface (UI) for PM (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions