SAP Function SLS_MISC_SET_SELECTION_DATES - Selection Dates Preparation

Parameter Reference Type Length Default Optional Text
P_DT_2W CHAR1 C 1 X Single-character flag
P_DT_3M CHAR1 C 1 X Single-character flag
P_DT_TM CHAR1 C 1 X Single-character flag
P_DT_TW CHAR1 C 1 X Single-character flag
P_DT_TY CHAR1 C 1 X Single-character flag
P_DT_YTD CHAR1 C 1 X Single-character flag

Parameter Reference Type Length Text
P_BEGIN_DATE SLS_EVENT-EVBEG D 8 Field of type DATS
P_END_DATE SLS_EVENT-EVEND D 8 End date

Functionality
This FM considering the current date(sy-datum) returns
,,Option1: the date range for the current week
,,,,For example: if the current date is 18.08.2004 then here startingdate is 16.08.2004 anddate is 22.08.2004
Option 2: the date range is two weeks
,,,,For example: if the current date is 18.08.2004 then here startingdate is 09.08.2004 anddate is 22.08.2004
,,Option 3: the date range is for a month
,,,,For example: if the current date is 18.08.2004 then herestarting date is 01.08.2004 anddate is 31.08.2004
Option 4:the date range is three months
,,,,For example: if the current date is 18.08.2004 then here startingdate is 01.06.2004 and ending date is ,,,,,,,,31.08.2004
,,Option 5:the date range is one year.
,,,,For example: If the current date is 18.08.2004 then one year cyclehere means starting date is19.0
8.2003 and ending date is 18.08.2004.
Note: The current date is converted only if the corresponding checkboxes are clicked i.e the user has to select the date range which hewants