|
Can you please try the below steps to restrict finally close function.
1. Go to Purchase Orders Summary form > query for a PO > after the header of the PO
is shown go to > (M) Help >Diagnostics > Custom Code > Personalize.
the Form Personalization open…
Function Name = PO_POXPOVPO
Form Name = POXPOVPO
Debug Mode = Off
Follow next steps:
- Seq = 1
- Description = Disable Finally Close
- Level = Function
- Enable is checked.
Condition tab:
- Trigger Event = WHEN-VALIDATE-RECORD
- Trigger Object = PO_DOCON_CONTROL
- Condition = PO_DOCON_CONTROL.ACTION = ‘FINALLY CLOSE’
- Processing Mode = Both
Actions tab:
- Seq = 1
- Type = Message
- Message Type = Show
- Message Text = You can not finally close the PO
- Seq = 2
- Type = Property
- Language = All
- Enabled is checked
- Object Type = Item
- Target Object = PO_DOCON_CONTROL.ACTION
- Property Name = VALUE
- Value = Leave it blank.
- Save
In tab Condition in zone Context can chose level= User and select users for which
this restriction to be available.
2. Logout/login with the user set on the personalize window and try to finally
close a PO. After press on Finally Close action a message appear “You can not finally
close the PO”
|
|