cancel
Showing results for 
Search instead for 
Did you mean: 

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

Phani_Kumar
Participant

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?

maheshpalavalli
Active Contributor
0 Kudos

are you using the application programming model for fiori to show the applicaiton? you need to provide more inforamtion .

Phani_Kumar
Participant
0 Kudos

Hi maheshkumar.palavalli ,

We are on S/4 1709 and applications are developed using CDS & SADL Frameworks.

I was trying to create custom fields for a standard app - "Manage Purchase Contract" through "Custom FIelds & Logic" App.

Please let me know what info is required .

maheshpalavalli
Active Contributor
0 Kudos

Hi Pawan Kalyan

Sorry, I am not sure about the custom fields app, I too tried it but couldn't find any option to do the field control part 😞

BR,
Mahesh

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

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

Regards,

Chethan

Joseph_BERTHE
Active Contributor
0 Kudos

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
Phani_Kumar
Participant
0 Kudos

Hi Joseph BERTHE,

Thanks for the reply . Yes, for the custom fields , there is field control property . In my DPC_EXT class, I was trying to give value - 1 as i wanted to see those fields as read only and for few fields i was giving value as - 0 as I want those to be hidden.

But as mentioned in my screenshot, at that place, it is overwriting things again and whatever i was giving are getting overwridden. So I don't have any more control. So i need to understand what this ROLE_SUFFIX means. Please let me know if you faced and fixed the issue. Thanks

Joseph_BERTHE
Active Contributor
0 Kudos

gallaphanikumar 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