How to  obtain last date of accounting period mmyyyy

Advertisement
how to  obtain last date of accounting period mmyyyy.
for ex: 31 st is the last date then output should be mm/31/yy.
Advertisement

Replay

hi use this ....
REPORT  ZTESTS.
data: date1(4),
      date2(2),
      date3(2),
      date type sy-datum,
      output(8).
parameters:p_date type sy-datum.
CALL FUNCTION 'JVA_LAST_DATE_OF_MONTH'
  EXPORTING
    year_month               = p_date+0(6)
IMPORTING
   LAST_DATE_OF_MONTH       =  date.
output0(2) = date4(2).
output+2(1) = '/'.
output3(2) = date6(2).
output+5(1) = '/'.
output6(2) = date2(2).
write:/ output.
regards,
venkat.