cancel
Showing results for 
Search instead for 
Did you mean: 

Screen Personas Script Error in IW22 SAP PM module: "failed to set value: readonly" on batch step"

susmita_panigrahi
Active Participant
0 Kudos

Hi All

We have attached the below script to the Priority change pop up coming in IW22 SAP PM module.

if (session.idExists("wnd[1]") === true) { session.findById("wnd[1]/usr/btnBUTTON_1").press(); }

Later we enable Change button in the IW22 Screen Personas Edioto.When we change the notification type from the drop down in the screen personas page we are getting error below:

A running Personas script could have caused this error. Please check your active scripts.

Received "failed to set value: readonly" on batch step: {"content":"Z2","post":"value/wnd[0]/usr/subSCREEN_1:SAPLIQS0:1050/subNOTIF_TYPE:SAPLIQS0:1052/cmbRIWO00-QMARTE"}

The complete batch was:
[{"post":"focus/wnd[0]/usr/tabsTAB_GROUP_10/tabp10\\TAB01/ssubSUB_GROUP_10:SAPLIQS0:7235/subCUSTOM_SCREEN:SAPLIQS0:7212/subSUBSCREEN_4:SAPLIQS0:7330/cmbVIQMEL-PRIOK","logic":"ignore"},{"content":"Z2","post":"value/wnd[0]/usr/subSCREEN_1:SAPLIQS0:1050/subNOTIF_TYPE:SAPLIQS0:1052/cmbRIWO00-QMARTE"},{"get":"state/ur"}]

When we check the standard IW22 screen in change of notification type from drop down the priority change pop up is appearing after a page refresh .When we click on Yes button in the pop up the notification type is changed and notification type field is disabled.

But in our screen personas when we change the notification from drop down in IW22 we are getting error message mentioned in the above.

Could you please provide your inputs why we are getting the above mentioned error and procedure to fix it.

Accepted Solutions (0)

Answers (1)

Answers (1)

cris_hansen
Advisor
Advisor
0 Kudos

Hi Susmita,

Can you reproduce the behavior without using the script?

Since when you are facing this issue? Is this a brand new script or have you performed a change in the system (implemented a note, patched the kernel)?

Kind regards,

Cris

susmita_panigrahi
Active Participant
0 Kudos

Hi Hansen,

Initially we ave hidden the change notification button in the screen personas editor and our script is working fine to hide the Priority change Pop Up. Later we enable the Change notification button.After that we are getting error when we try to change the notification type from drop down.If we commented our java script code then no error is coming but the Priority Change Pop up appears again on change of Notification type from drop down and we dont need this pop up in the screen personas.

We didnt change the system like note implementation or patch the kernel.and the script is not new , its existing script written for hiding the priority change pop up which is appearing after changing the priority from drop and down and clicks enter.

Could you please let me know how to hide the priority change pop up in screen personas when we select the notification type from the drop down after click on change notification button.

cris_hansen
Advisor
Advisor
0 Kudos

Hi Susmita,

I would need to test the scenario and see whether there is solution.

In the meantime maybe someone else from the Community can have an idea.

Kind regards,

Cris