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: 

HOLIDAY_CHECK_AND_GET_INFO FunctinModule error

Former Member
0 Kudos

Hi,

when iam using this functin Module HOLIDAY_CHECK_AND_GET_INFO

iam getting errors in this line

data: ld_date like scal-date default sy-datum,

lc_holiday_cal_id like scal-hcalid default 'CA',

Error

-


value,length or value is initial after scal-date expected.

If any one knows pls help me.

5 REPLIES 5

former_member305388
Active Contributor
0 Kudos

Hi,

In your declaration you have used DEFAULT which is not a keyword for DATA. Use VALUE instead..

Please use F1 help before posting.. this will expalin u in detail..

Former Member
0 Kudos

Hi,

Period/VALUE is miising in the last statement.

data: ld_date like scal-dateValue sy-datum,

lc_holiday_cal_id like scal-hcalid Value 'CA' . <--- period is missing

check urself before posting syntactical errors...

Naveen

Edited by: Naveen Deva on Apr 2, 2009 8:28 AM

Former Member
0 Kudos

Hi,

Period is miising in the last statement.

data: ld_date like scal-date default sy-datum,

lc_holiday_cal_id like scal-hcalid default 'CA' . <--- period is missing

check urself before posting syntactical errors...

Naveen

0 Kudos

Hi

some other statements are there after this ,it is incomplete data statement,there is no period missing.

data: ld_date like scal-date value sy-datum,

lc_holiday_cal_id like scal-hcalid default 'CA',

some other statements are there after this .

I used value instead of default , after value it takes only variables,it is not taking sy-datum after value.

if i given like this

data: ld_date like scal-date value 'sy-datum',

If u give like this 'sy-dautm ' it is a string not a date.

Pls any one knows reply to me

0 Kudos

Hi,

You can actually explore by yourself... whatever here is one solution...

DATA: ld_date like scal-date,

lc_holiday_cal_id like scal-hcalid VALUE 'CA'.

ld_date = sy-datum.

Try this...