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 check if date field is initial or not in script layout?

Former Member
0 Kudos

hi all,

i have a requirement, i need to check if a particular field is initial or not in script.

i am checking like this

/: if &VTTK-DALEN& is initial.

its not working

even if not .... is initial is also not working.

i have used all capital letters only....

thanks in advance.

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate

You can not use that syntax in sapscript. You might try this.

/: IF &VTTK-DALEN& = ' '

Regards,

Rich Heilman

Former Member
0 Kudos

Hi.

u can try this as well:

/: if &VTTK-DALEN& = '00000000' << As it is a date field so initial value should be 8 zeros

Regards,

JOy.

Former Member
0 Kudos

Hi,

I do agree with the solution of Rich. you can not use syntax inside the script.

Thanks,

Kamesh Bathla