Skip to Content
0

Checks on input in editable ALV

May 07 at 07:47 AM

74

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Guus Werinussa May 07 at 01:10 PM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi,

Sorry for such a long reply, I had some technical difficulties.

Your suggestion seems very reasonable.

Unfortunately, I am not that good in field catalogs.

Could you please clarify the syntax of your suggestion please.

Best Regards,

MIkhail

0

Field catalogs aren't that complex. I suggest you try to find more info on field catalogs by using Google ;)

0
ROBERTO Forti Santos May 08 at 03:18 AM
0

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,


Share
10 |10000 characters needed characters left characters exceeded
tisha dharod May 08 at 04:16 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded