Tuesday, December 21, 2010
REPORT ZTEST_NOTEPAD. *&----------------------------------------------------------------------------------* *Declaration *&----------------------------------------------------------------------------------* data: first_day LIKE VTBBEWE-DVALUT, last_day type datum, days(2) TYPE c. *&----------------------------------------------------------------------------------* *selection screen *&----------------------------------------------------------------------------------* PARAMETERS: p_month(2) type n, p_year(4) type n. *&----------------------------------------------------------------------------------* *Start-of-selection *&----------------------------------------------------------------------------------* START-OF-SELECTION. "First date of the month CONCATENATE p_year p_month '01' INTO first_day. CALL FUNCTION 'END_OF_MONTH_DETERMINE_2' EXPORTING i_datum = first_day IMPORTING E_TT = days. "Last date of the month CONCATENATE p_year p_month days INTO last_day. WRITE:/ first_day, / last_day.
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.