I am trying to create one UI Switch for Sales order "Pricing and invoicing" Tab where I want to hide Item pricing item tab.
So for this I have created sales order XBO, UI Switch and Sales order OIF screen through Cloud application studio.
I opened the sales order OIF screen and open the Price Calculation tab under this tab there is one Pricing EC (Embedded Component) I open this EC and I have selected my "Item pricing" line item and open the Extensibility Explorer.
Under Extensibility Explorer there is one operation "Adjust Properties" I opened it and assign my created UISwitch here and change the fields properties as "visible - False " for all fields and activate the screen changes.
Now when I am going to open any sales order- invoicing and pricing tab i am getting error, even though I didn't created any Business Role with my created UI Switch and didn't assign it to any user.
Why this error is coming?
Please guide me the right way to achieve this.