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

Former Member
0 Likes
543

Hi All,

Select-options (default Low: System date u2013 180 days

High: System Date)

How to achieve this logic. is there any FM exists which does the same...

Regards

Sami

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
517

use the FM : TV_GO_BACK_N_DAYS

3 REPLIES 3
Read only

Former Member
0 Likes
517

hi,

u do this in initialization event,

like

Data: Date1 like sy-datum.

Initialization

Date1 = sy-datum-180.

s_date-low = date1.

s_date-high = sy-datum.

Append fldate1.

<REMOVED BY MODERATOR>

regards,

chandu

Edited by: CHANDRASEKHAR KONDAPANENI on May 23, 2008 5:42 PM

Edited by: Alvaro Tejada Galindo on May 23, 2008 6:50 PM

Read only

Former Member
0 Likes
518

use the FM : TV_GO_BACK_N_DAYS

Read only

Former Member
0 Likes
517

DATA: l_date TYPE sy-datum.

SELECT-OPTIONS: s_date FOR sy-datum.

INITIALIZATION.
  l_date = sy-datum - 180.
  s_date-low = l_date.
  s_date-high = sy-datum.
  APPEND s_date.