Skip to Content
author's profile photo Former Member
Former Member

Grid events

Hi,

when I enter a wrong value in grid and hit enter, it is giving error message. Again then if I hit enter, it is not giving any error message eventhough the error data is presented in the grid. But I want the same error message if I hit the enter(no matter how many times I hit the enter button, that many times it should give the error message).

Thanks and Regards,

Balakrishna.N

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 08:18 AM

    Hi,

    Is it a report prog? If yes...Check the AT SELECTION-SCREEN event for the screen validation in your report prog...

    Reward if helpful,

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 08:38 AM

    Hi,

    Use the event handle_data_changed for grid importing pr_data_changed and display error messages using

    call method pr_data_changed->add_protocol_entry

    exporting

    i_msgid = '0K' i_msgno = '000' i_msgty = 'E'

    i_msgv1 = text-m01

    i_fieldname = ls_good-fieldname

    i_row_id = ls_good-row_id.

    Refer the standard program BCALV_EDIT_04

    Reward points if usefull.

    Raj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If u want to call event for enter in feild

      u have to pass

      'I_GRID_SETTINGS '

      to 'Reuse' function module when u will press enter or

      change cursor 'TOP_OF_PAGE' will call again.

      only pass value I_GRID_SETTINGS-EDT_CLL_CB = 'X'

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2008 at 08:39 AM

    if ur using REUSE_ALV_GRID_DISPLAY function for ALV.

    use different Function module

    REUSE_ALV_GRID_DISPLAY_LVC

    it will work.

    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.