Skip to Content
Jan 21, 2011 at 01:30 PM

Editable ALV & Foreign Key Check


I am working on an Editable ALV. Here if I try to enter some value into a field which doesnt exist in the corresponding Check table of the field, ALV throws me an error. This scenario is working fine.

But in some scenarios I populate the ALV table from a Z table (Z table has the same strucutre as the ALV table) and then show this to the user as an editable ALV but in this scenarios if some erroneous values exist in my Z table for a particular fieId I am not getting the Foreign Key check I mentioned earlier. Here I was hoping to get error message after SET_TABLE_FOR_FIRST_DISPLAY !

I am using CL_GUI_ALV_GRID, has anyone found a workaround for this