cancel
Showing results for 
Search instead for 
Did you mean: 

Set a field as mandatory (Manage Sales Quotations - Version 2 and Manage Business Partner)

Katharinam
Participant
0 Kudos
100

Hi Experts, 

we want to set a custom field as mandatory in the App "Manage Sales Quotations - Version 2". We have also found a custom logic for this use case (Custom Field Properties in Sales Document Headers - SD_SLS_FIELDPROP_HEAD or Custom Field Properties in Sales Document Items - SD_SLS_FIELDPROP_ITEM). 

The problem is that the BAdI is only called when I use the “old” app "Manage Sales Quotations" (HTML GUI) and not via the new app "Manage Sales Quotations - Version 2". However, we want to get our customers to work with the new apps for usability reasons and it is also much easier to display the custom fields at a certain point in the apps.

Is there a solution for this? Can the BAdI also be called via the new app? 

For Business Partner (Manage Business Partner), I have not found any custom logic to make a field mandatory. Is there a solution?

Kind Regards

Katharina

Accepted Solutions (0)

Answers (2)

Answers (2)

sdig89
Participant
0 Kudos

The answer could be found here: 

https://community.sap.com/t5/technology-q-a/rap-cds-annotation-for-read-only-field-only-in-fiori-ele...

or here 

https://community.sap.com/t5/technology-q-a/rap-cds-annotation-for-read-only-field-only-in-fiori-ele...

In my scenario, I need to make a custom field read only on the Sales Order Fiori Screen.

It seems that by creating a new behavior extension on top of behavior definition R_SALESORDERTP, and interface I_SALESORDERTP, and by adding a similar code than the one in the above links "field ( readonly ) YY1_CustomField", the field becomes read only

Let me know if it worked out for you

 

sdig89
Participant
0 Kudos

I have exactly the same problem as you

I came to discover today that "SD_SLS_FIELDPROP_HEAD" only works for field properties on the GUI old screen... How unfortunate...

Katharinam
Participant
0 Kudos

@sdig89 I was hoping for another answer...

Do you know if there is a custom logic for business partners too?