How to get last 6 month date
here simple code get last 6 month date behalf of condition so i write code you can get date
*&---------------------------------------------------------------------*
*& Report ZSD_DATE_CHANGE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZSD_DATE_CHANGE.
data: lv_Date(2) type c,
lv_Date1 type dats.
lv_date1 = sy-datum.
clear lv_date1+4(2).
lv_date = sy-datum+4(2) - 6.
move lv_date to lv_date1+4(2).
WRITE: lv_date1.
*&---------------------------------------------------------------------*
*& Report ZSD_DATE_CHANGE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZSD_DATE_CHANGE.
data: lv_Date(2) type c,
lv_Date1 type dats.
lv_date1 = sy-datum.
clear lv_date1+4(2).
lv_date = sy-datum+4(2) - 6.
move lv_date to lv_date1+4(2).
WRITE: lv_date1.
Comments
Post a Comment