Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

F4 help before save - ALV Grid in Module Pool

poornimal_nathan
Explorer
0 Kudos

Hi,

I am calling an ALV Grid using CL_GUI_A;V_GRID. When I create a new record, I need F4 help for a particular field based on the entries in 2 other fields. Thing is I can't use DATA_CHANGED event coz then I won't be able to display the F4 button. And F4 option doesn't pass the data that has been changed(ER_CHANGED_DATA table). So frustrating. Can anyone help me plz???

Thanks in advance,

Poornima L Nathan

2 REPLIES 2

Former Member
0 Kudos

Why dont you try method CL_GUI_ALV_GRID's CHECK_CHANGED_DATA.

This method refreshes the data in the internal table of the GRID.

Former Member
0 Kudos

Hi ,

i think you are missing one params while registering your F4 fields..

ls_f4-register = 'X'.

ls_f4-getbefore = 'X'.

ls_f4-chngeafter = 'X'.


Documentatin of SAP program *BCALV_EDIT_08*
*   1b. If the value range in your f4 help depends on other
*       values of cells that are input enabled, set the
*       GETBEFORE parameter.

now you can use row_indx no to read your internal table

regards

Prabhu

Edited by: Prabhu Peram on Aug 23, 2011 2:11 PM