cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict certain type of Involved parties in Tickets for a particular Type of Ticket

0 Kudos
2,384

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

View Entire Topic
former_member226
Employee
Employee

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

0 Kudos

Thanks Saurabh for the inputs.

Suchita92
Participant
0 Kudos

Hi saurabhkabra2009 ,

Where wuld you put the validation rule ? The fields on that pop-up or in fact anywhere in Involved parties does not have validation rule link to add the validation.

Where have you added the validation in RUI of Invovled party ? Can you please advise ?

Thanks,

Suchita

former_member226
Employee
Employee
0 Kudos

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 )