cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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 ?

Regards,

Navneet

Accepted Solutions (0)

Answers (1)

Answers (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

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 🙂

Former Member
0 Kudos

Hello Tamas,

you are right..i was asking about "GuiTableControl"....

i checked for event and as you can see in the below screenshot...these is one event "onF4" but i don't know how i can put my script on this? if you have know any solution...please let me know

Regards,

Navneet

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Well, this KB article explains the usage of the onF4 event. Does this help?

Former Member
0 Kudos

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 toolbar...it'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 ?

Regards,

Navneet