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.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.