Skip to Content
0

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

Jan 20, 2017 at 04:28 AM

99

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Tamas Hoznek
Jan 21, 2017 at 12:03 AM
0

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 :)

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

img.png (13.6 kB)
0
Navneet Kumar Chandel

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

0

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

0