cancel
Showing results for 
Search instead for 
Did you mean: 

Standard Error messages are not displayed in new flavors in sap personas

0 Kudos

System error/warning messages are not getting displayed on the status bar. The screen is getting freezed without navigating.

Is there any way to get the system errors/warnings ?

Accepted Solutions (1)

Accepted Solutions (1)

kmagons
Advisor
Advisor
0 Kudos

Good day!

Based on the attached screenshots I conclude that you are using Slipstream Engine to render SAP Screen Personas flavor for IW32.

The situation most likely is as follows:

- User clicks on the Save btn

- Slipstream Engine sends the button click action to the backend and receives a new state

- Slipstream Engine resolves your tab merge changes requesting backend to switch tabs behind the scenes, which is required to fetch control metadata from their original tabs

- Due to the IW32 application logic, switching tabs at the backend required for the tab merge resolution clears the status bar error message

I suggest the following solution:

- Upgrade SAP Screen Personas from SP12 to SP13 which would give a couple of new scripting lifecycle events designed for cases like yours

- Use the new SP13 onStatusMessage screen event to capture the error message before it gets dismissed

- Use the new SP13 onFinalize screen event to display the captured error message back to the user after the tab changes are processed.

More info here

Thank you!

Best regards,

Krists Magons

SAP Screen Personas Dev Team

0 Kudos

Thank you so much. I will try this one.

0 Kudos

Hi Krists,

Thank you for your response. I have upgraded personas to 3.0 SP13. But whenever I try to assign a script to the OnStatusMessage event , I am getting error without able to load the flavor again.

Could you please provide me a sample on how to use the event and script.

0 Kudos

Hi,

I am not able to collect the standard error messages which are getting cleared due to tab merging. My currentscript attached to OnStatusMessage is below:

var message ;
message = "";
session.sendCommand("IW31");
message = session.findById("wnd[0]/sbar").text;
if(message === ""){
    session.utils.alert("empty");
}
else{
session.utils.alert(message);}


Could you please let me know if we are missing anything.

kmagons
Advisor
Advisor

Good day!

As per the scripting API documentation, the event is fired after the the tabmerging change resolution, which means that the status bar message(s) is already gone at the moment your script is executed.

Instead of reading the status bar text properly, use the onStatusMessage event parameter "messages" that contains an array of previously collected status bar messages. Please refer to the scripting API documentation for more information (Open Personas Flavor Manager > Help > Scripting API Documentation).

Hope, this helps.

Best regards,

Krists Magons

0 Kudos

Hi Krists,

Thank you for the reply. We are able to get the standard warnings now. But the error messages which are a part of our custom enhancements are still not getting captured. Please find the below screenshot for piece of error code.

Instead of the above code , if the code is written as DISPLAY AS INFORMATION , then we are able to get the message.

 IF sy-subrc EQ 0.
            MESSAGE e016(rp) WITH 'Please enter the duration and no'
                                 'for operation'
                                 afvgdget-vornr display as I.
          ENDIF.

Is there any separate event which we need to use to display them? Could you please let me know how to handle these custom errors.

Answers (1)

Answers (1)

kmagons
Advisor
Advisor
0 Kudos

Good day!

Firstly, we would need more information on the problem details to comment on a potential solution, for example:

- SAP Screen Personas and SAP Kernel versions

- affected rendering engine (WebGUI, WinGUI, SE etc)

- is the issue reproducible only with a specific SAP Screen Personas flavor?

- if yes, what kind of screen changes and scripts are featured?

Secondly, I am guessing that you may have created an SAP Screen Personas flavor with tab merging changes. However, the tab switch fails due to an error message (mandatory data missing or invalid input). When you experience the issue, try switching to the original screen to see if there is an error message preventing tabs from switching? If that is the case, please read this article to learn more on how to deal with the tab merging errors

Thank you!

Best regards,

Krists Magons

SAP Screen Personas Dev Team

0 Kudos

Yes you are right. I have created a flavor of iw31 with tab merging changes. In some scenarios standard errors are not appearing. Please refer the below screenshots.

Flavor screen :

No error in flavor screen. It is allowing me to change tabs but save is not working because of the error which I cannot see.

I am using SAP personas 3.0 SP 12.