Application Development 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: 

How to defferentiate between space and empty.

sanjeev_jain3
Explorer
0 Kudos

Hi All,

I have a input screen where Certain field is mark as mandatory but the Help value is X or space. The space will give problem for proceeding to the next screen if there is no entry in the sceen field.

Is there any way to defferentiate between space and empty?

You help will highly be appreciated.

Regards,

Sanjeev

3 REPLIES 3

athavanraja
Active Contributor
0 Kudos

Whats is the data type of the field?

if char field you can check empty with

IS INITIAL.

Former Member
0 Kudos

hi,

validate the value in this fashion ..

if not s_manr is initial.

 endif.

regards,

santosh

0 Kudos

Hi,

Since the possible values are X or space and since it is a CHAR 1 field. There is no use of making it Mandatory. Default value for char1 field is always space. If user has not entered any value then consider it as space otherwise if X is there then user has selected it. May be you can add a tooltip for the field. INITIAL check will let you know if the user has chnged it value or not.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala