Tuesday, June 4, 2013
EPORT ZTEST_PROGRAM. DATA: BEGDA LIKE SY-DATUM, ENDDA LIKE SY-DATUM. " Get first day of current month BEGDA = SY-DATUM. BEGDA+6(2) = '01'. " Get last day of current month CALL FUNCTION 'LAST_DAY_OF_MONTHS' EXPORTING DAY_IN = BEGDA IMPORTING LAST_DAY_OF_MONTH = ENDDA. IF SY-SUBRC NE 0. MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. WRITE:/ 'Start date:',BEGDA, / 'End date:', ENDDA.
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
i want last day of next month plzzzzzzzz
ReplyDelete