on 2019 Oct 11 7:54 AM
Hello Experts,
We have a business requirement to 'Restrict certain type of Involved parties in Tickets (ServiceRequest BO) for a particular Type of Ticket' Under Tickets TI -> Involved Parties -> New -> QC Screen.
In the front-end, it's not possible to restrict this. The standard functionality which is available to restrict fields is the 'Code List Restriction' under the Administration work center and it doesn't have all standard fields/lists as of now, Even involved parties is not available there for Ticket BO (Service Request BO).
Could you please let me know if this is possible through using SDK through BADI or something else?
I need to restrict involved parties in below screen.
Thanks,
Siddu
Request clarification before answering.
Hi,
You cannot restrict the parties to be selected via code list restriction or PDI BADIs. However, There is a workaround using KUT Model validation where you can check if a particular ticket type is selected then if a certain party role is choosen then a error message will be raised as soon as ADD button is clicked.
IF( Root.ProcessingTypeCode == 'Z001', IF( Root.PartyModificationStructure.Role == 'Z20', true, false), false)
Thanks
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suchita,
Model Validation rules are not section or pane or field specific but they are UI Component specific i.e. they are always associated with UI component. Hence I put them at header level:
Note: I see that there has been a backend change and due to which above mentioned code will not work. Pls check followign example where I check if Request is of type Service Request AND party being created/added is a "custom(Z20)" then donot allow to save and show message
AND(Root.ProcessingType == 'SRRQ', Root.PartyModificationStructure.RoleCode == 'Z20', true, false )
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.