Skip to Content

Checks on input in editable ALV

Hello everyone,

I have created a program with editable alv grid.

I need to make some validity checks on input for this program.

For example:

If input field VKORG not equal the corresponding item from table TVKO, I need to issue an error message.

Could you clarify this for me please.

Best Regards,

Mikhail

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 07 at 01:10 PM

    You should set TVKO as a check table for field VKORG in the field catalog. Any input will then be validated automatically.

    Add comment
    10|10000 characters needed characters exceeded

  • May 08 at 03:18 AM

    Hi Mikhail Gudkov,

    Is the program (ALV) working with Function Module "REUSE_ALV_GRID_DISPLAY" or Object Oriented "CL_GUI_ALV_GRID" ?

    Example: ABAP OO is available to define and implement Events as well.

    CLASS cl_event_handler DEFINITION. 
    METHODS handle_user_command 
    FOR EVENT user_command OF cl_gui_alv_grid 
    IMPORTING e_ucomm. 
    ENDCLASS.
    
    CLASS cl_event_handler IMPLEMENTATION
    ...
    ENDCLASS.
    

    Regards,


    Add comment
    10|10000 characters needed characters exceeded

  • May 08 at 04:16 AM

    Provide an F4 help to prevent incorrect entries or when you create type for internal table structure keep the type as VKORG this will take care of the unwanted values . Alternatively you can also handle into the subroutine USER_COMMAND which wuld be called at event AT User Command

    Add comment
    10|10000 characters needed characters exceeded