Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Optional Input Field with Value Help in ALV

sascha_kiefer
Product and Topic Expert
Product and Topic Expert
0 Likes
937

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

4 REPLIES 4
Read only

Former Member
0 Likes
795

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!

Read only

0 Likes
795

do you need any further informations ?

Read only

sascha_kiefer
Product and Topic Expert
Product and Topic Expert
795

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

Read only

0 Likes
795

Hi Sascha,

Thanks for the information

Regards,