Question:
hi all,
i did an extensive search in this forum, but i cudnt find the answer i am looking for.
the question has been asked a couple of time before by others, but it didnt recv a single response.
the query is how to program F4 help in ALV grid, thru FUNCTION MODULES. there's a field in LVC_S_FCAT called F4AVAILABL where we can specify if the field in the grid has F4 help or not. but how do we link the pop-up of the F4 help to that particular field in the grid? that is, how do we handle F4 event using function modules?
i am trying my best to find out as much info as possible, but i request SAPFans members to plz answer this...
_________________
~~VIDYA~~
Answer:
Can nobody offer me any help in this regard??
_________________
~~VIDYA~~
Answer:
Hi Vidya,
Just have a look @ standard report BCALV_GRID_F4_HELP. I hope this helps.
Regards
Raju
Answer:
thanks so much for that Raju!
actually i was trying to do it with function modules and not with classes. nevertheless i shall study that standard program and try to implement with function modules. shall get back with the result!
thanks again!
_________________
~~VIDYA~~
Answer:
Hi Vidya,
I will also try from my side to have it with the help of Function Modules. If you get it first please revert back immediately so that I will stop my R & D.
Regards
Raju
Answer:
hi raju...
have been trying...i understood the structure LVC_S_F4 to register columns for which we want f4 help...
but how to register the F4 event as such?
in that standard program they r using classes to register events...REGISTER_F4_FOR_FIELDS method of CL_GUI_ALV_GRID class...
how do we do that in function modules? ne idea?
_________________
~~VIDYA~~
Answer:
Probably the same as other events in ALV when using FMs there's a table you append the name of the events you are manipulating (AT USER-COMMAND, AT VALUE-REQUEST etc.)
Hope this helps (I've never done it, but it's an educated guess!)
_________________
Kind Regards
Rosie Brent
Please remember to search the forum and check the FAQ before posting questions, thank you.
Tuly Idiot most of the time, part-time Guru
Answer:
thanks for the reply Rosie...
the usual events used in ALV using function modules do not include an event called ON_F4...whereas it is defined in classes...in fact there is no event related to F4 in SLIS type-pool events...there's one called DATA_CHANGED but we cant use that to register an F4 event...
so how do we overcome this problem? request help towards this...
_________________
~~VIDYA~~
Answer:
I expect it's an ON VALUE-REQUEST FOR <FIELD> event (standard event) like the other events that you register this way.
I suggest you have a play with it and have a look in the demo programs in SLIS to see if there's one that does what you want.
Good luck
_________________
Kind Regards
Rosie Brent
Please remember to search the forum and check the FAQ before posting questions, thank you.
Tuly Idiot most of the time, part-time Guru
Answer:
Hi Vidya:
From what I know, SAP is recommending OO approach if you want an F4 help in ALV grid. That's how I did it. You may be wasting your time if you go via func mod approach (I've never seen one).
Go to SAP developer's network (https://www.sdn.sap.com/sdn/index.sdn), ABAP discussion forum. Search ALV F4, you'll get the actual steps that you need to do.
Tolearn67
Answer:
hi...
yes...i understand i must shift to OO concepts soon...but i had started my R&D with function modules and done several thing like setting row and cell colors, making specific cells editable, setting user-defined pf-status and so on. and f4 help is the only one remaining...i had thot that once i implement f4 in alv using FMs, i wud soon shift to OO concepts! but i am in a deadlock position here...!
i am sure it is possible...i just require a way to register the f4 event...bcoz all else seems possible!
_________________
~~VIDYA~~