|
During developing a report I came across this
situation:
I've select option in which I want first date of the current month in LOW of select option and Last date of current month in HIGH of select month. Which FUNCTION MODULES are used for this? There's one way to do this, though it's not a straight idea. There's a function module 'OIL_LAST_DAY_OF_PREVIOUS_MONTH' that is used to determine the last day of the previous month. from this you can derive the first date of the current month. Sample: parameters : date1 like sy-datum.
write date2. If you put 27.12.2005 as the input date, date2 you will get as 01.12.2005. Or else you can use the following code: v_startdate = sy-datum.
v_enddate = v_startdate.
ABAP Tips by : Dileep, Nitin Gupta
Fast Links:
Get help for your ABAP problems
SAP Books
More ABAP Tips
BDC Programming Tips - Sapscripts Tips - Smartforms Tips SAP Basis, ABAP Programming and Other IMG Stuff http://www.erpgreat.com All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|