Skip to Content

F4 help before save - ALV Grid in Module Pool

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2011 at 01:11 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2011 at 06:09 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.