04-02-2009 7:22 AM
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.
04-02-2009 7:25 AM
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..
04-02-2009 7:26 AM
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
04-02-2009 7:27 AM
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
04-02-2009 7:42 AM
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
04-02-2009 7:45 AM
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...