Application Development and Automation 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: 
Read only

Date Fields

Former Member
0 Likes
677

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

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

5 REPLIES 5
Read only

Former Member
0 Likes
639

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

Read only

Former Member
0 Likes
638

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

Read only

Former Member
0 Likes
638

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

Read only

0 Likes
638

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

Read only

0 Likes
638

hi,

this is a new question so you cannot ask more than one question in the same thread its against the rules

thanks

shivraj