Skip to Content



i am trying to resolve problem bellow. We have 1 single transaction contains 12+ dynpro screen.

For each of them we have created flavor.

I have screen with 2 button. Next and Back.

In case that user click on next i get his unique ID via RFID reader and do some logic on PBO/PAI (if user exist in HR).

IF user exist i want to load another dynpro via script bellow


IF no there is exception "worker not found" but my problem is if i raise exception Screen Personas fall down and there is original look of standard dynpro...

i dont know exactly how to build logic with gui status bar and error message

is there any way how to do it?

user press next

if exist call another flavor

if no call previous flavor

something like this -

Thanks a lot

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Aug 22, 2018 at 12:00 PM

    //Clear error message


    if(session.findById("wnd[0]/sbar").text.length > 0 && session.findById("wnd[0]/sbar").messageType === 'E')

    { session.findById("wnd[0]/usr/lblPersonas_153492505942854").text = "Worker not found"; }

    else {

    //move to next flavor

    session.utils.executeScript('wnd[0]/scrptPersonas_000C292EE3A91EE8A9BC4CFF15632D23'); }

    but still not working

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2018 at 01:25 AM

    To be honest, I don't understand why would you want to have a new flavor for each different screen or error scenario. A flavor is valid for a transaction, not a single screen, so I believe there is a conceptual issue here with your process design. Having a separate flavor for error handling doesn't seem to make sense... You can check a condition and issue a message in the status bar within one flavor.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 23, 2018 at 10:33 AM


    we have concept with 1 transaction and X screen.We need new flavor for each screen because the solution will be used for Kiosek...terminal solution only with touch panel and standard screen is just too small (button, alv grid etc).

    This transaction running under Fiori LP and move betwen screen via script session.utils.changeflavor working well...but in case of error from backend i need change flavor to next or previous screen

    i know that personas basic concept is 1 transaction = 1 flavor

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.