2005 Oct 13 1:11 PM
Hi everybody,
I'm currently facing the following problem:
I've got an ALV in input mode. Certain fields are optional, but they have a value help connected to them. So I want to have the following behaviour: If the user doesn't input anything in this cell, no error should occur. But if the user enteres a value, it should be checked againts the value table.
The value SPACE is not part of the value table (and shouldn't be), thus I always get an error message from ALV.
Is there any solution for this problem without programming each input check by myself? In the field catalog I didn't find a field for this purpose.
Thanks a lot,
Sascha
Hi everybody,
I'm currently facing the following problem:
I've got an ALV in input mode. Certain fields are optional, but they have a value help connected to them. So I want to have the following behaviour: If the user doesn't input anything in this cell, no error should occur. But if the user enteres a value, it should be checked againts the value table.
The value SPACE is not part of the value table (and shouldn't be), thus I always get an error message from ALV.
Is there any solution for this problem without programming each input check by myself? In the field catalog I didn't find a field for this purpose.
Thanks a lot,
Sascha
2005 Oct 13 1:28 PM
Hi Sacha,
Why don't you use the event DATA_CHANGED_FINISHED to do the test on the value of the fields. If the value is not correct you can message the user...
Do you see my point ?
If I did help you don't forget the reward!
2005 Oct 13 2:32 PM
2005 Oct 13 3:20 PM
Hi Stephan,
thanks a lot. But at this event, the ALV standard check already did the value check and marked the cell as bad cell although it's not an error (because SPACE is no error, but it's not in the check table).
But I found another solution: in the field catalog there is an field called no_init_ch. If I set this to 'X' no value check is done, when no value is enetered. Otherwise the Value help is called.
Sascha
2005 Oct 14 8:39 AM