Skip to Content
avatar image
Former Member

script on click on F4 on tabstrip cell field in SAP SCREEN PERSONAS

Hello Persona Experts,

I have a requirement to put a script at onF4 event on tabstrip cell in SAP SCREEN PERSONA 3.0.. is it possible ?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 21, 2017 at 12:03 AM

    I guess you mean a table cell, correct?

    Since there is no F4 event associated with a table cell, no... or at least not without some pretty awful hack.

    Perhaps it would be possible to use the onBeforeRefresh screen event, intercept the F4 keypress and do an RFC... but there are a lot of unknowns and it may not even be registered that you pressed F4 on the table cell.

    Provided you could recognize the F4 key press on the cell, perhaps the best way would be having a hidden field and in your script, activate the desired search help associated with that field, by hitting F4 with your script there. Then, once the value is selected and the hidden field is populated, you could take that with your script and write it into the target cell.

    In any case, you'd have to know which table cell was the cursor on, so that you can supply the selected value back into that field. Additionally, even if this worked, you'd not get the usual dropdown icon for the field in focus which the search help assignment produces.

    I haven't tried any of this yet, and there are too many things that may go wrong, making this not possible. It's an interesting challenge though :)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Tamas,

      Thanks for your reply but i am afraid this article will not be helpful for me.

      in my case..i want to put some script on the onF4 event on GuiTableControl cell...

      for normal cases like a normal input field...SAP Persona provided the option as it is mentioned in the above article.....

      but when you click on a GuiTableControl cell and then check for a event in persona's disabled.

      but when i see in the script edtior..i can see that there is a event onF4 for it...but i don't know how to put a event handler for that event.

      any help in this scenario ?