Sunday, December 26, 2010
REPORT ZTEST_NOTEPAD. DATA: date1 LIKE sy-datum, date2 LIKE sy-datum, day TYPE p. START-OF-SELECTION. date1 = sy-datum. date1+6(2) = '01'. date1 = date1 - 1. day = date1 MOD 7. IF day = 0. day = 7. ENDIF. day = day - 1. date2 = date1 - day. WRITE: 'Last sunday of previous month is', date2.
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.