Skip to Content

Field Control for Custom Fields and Logic in S/4 Hana

Hello,

I would like to know how to control field visibility for custom fields that were created through "Custom FIelds & Logic App" in S/4 Hana 1709.

I have modified field values(0 - HIdden ,1 - ReadOnly ,3 -Editable,7-Mandatory) in DPC_EXT class for the fields but they are not reflecting in the UI as I wanted . When I debug, I am seeing the custom fields but all the time, ROLE_SUFFIX is blank . So Custom FIelds are becoming Editable/Optional as shown below. I would like to understand the right way of controlling the custom fields for Standard Apps like Purchase Contract.

Any ideas/suggestions/solutions Please?

cfd.jpg (80.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 30 at 04:16 PM

    Hi,

    Did you have correctly change the metadata like this look at the help here:

    <Property Name="City" Type="Edm.String" sap:field-control="Address_fc" />
    
    Regards,
    Joseph
    Add comment
    10|10000 characters needed characters exceeded

    • Pawan Kalyan I think you did wrong something :) You said you put -1 to hide and 0 to show. As the documentation I provided to you said, hidding field should be 0 and showing field should be 1, 3 or 7

      Please do it and see if it's working ?!

      Regards,

      Joseph

  • Feb 11 at 09:35 AM

    Pawan did you get the fix for this? I have a similar requirement and looking for solution.

    Regards,

    Chethan

    Add comment
    10|10000 characters needed characters exceeded