‎2010 Feb 09 8:19 AM
Hi,
I m designing the selection screen for my report, I need to put some date fields in my selection screen with reference to date fields FKDAT.
My requirement is I need to create the seperate text box for the date month year
Please provide the syntax for this
Thanks&Regards
Uday Kiran
‎2010 Feb 09 8:30 AM
hi,
try this.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) text-001.
PARAMETERS : p_date(2) type c, p_month(2) type c, p_year(4) type c.
SELECTION-SCREEN END OF LINE.
data : d_date(10) type c.
concatenate p_date p_month p_year into d_date SEPARATED BY '.'.
write : d_date.
regards,
sakshi
‎2010 Feb 09 8:30 AM
hi,
try this.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) text-001.
PARAMETERS : p_date(2) type c, p_month(2) type c, p_year(4) type c.
SELECTION-SCREEN END OF LINE.
data : d_date(10) type c.
concatenate p_date p_month p_year into d_date SEPARATED BY '.'.
write : d_date.
regards,
sakshi
‎2010 Feb 09 8:38 AM
Try this
DATA:start_date TYPE sy-datum,
end_date TYPE sy-datum,
tmp_date TYPE sy-datum,
d TYPE i.
PARAMETERS: mont(2),
year(4) default '2010'.
CONCATENATE year mont '01' INTO start_date.
tmp_date = start_date + 31.
d = tmp_date+6(2).
end_date = tmp_date - d.Regards,
Nisar Ahmed
‎2010 Feb 09 8:40 AM
hi,
parameter : p_day(2) type c,
p_month(2) type c,
p_year(4) type c.
data : v_date type fkdat.
concatenate p_year p_month p_day into v_date.
since fkdat is of DATS data type which is of 8 lenght
thanks
shivraj
Edited by: ShivrajSinha on Feb 9, 2010 9:40 AM
‎2010 Feb 09 8:50 AM
HI
It 's Working fine But I need f4 help for all this fields. Can you please tell me how to do this for thsi fields
Regards
Uday
‎2010 Feb 09 8:55 AM
hi,
this is a new question so you cannot ask more than one question in the same thread its against the rules
thanks
shivraj