Monday, January 24, 2011 at 9:27 PM | 0 comments
Fungsi MONTH_PLUS_DETERMINE adalah untuk menjumlahkan / mengurangkan bulan di dalam tanggal.

Contoh :

CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
   months = 2
   olddate = '20080401'
IMPORTING
   newdate = lv_date_new. " hasil -> 20080601
Posted by Shanto Labels:
Fungsi Get Last Day of The Month adalah mengembalikan nilai tanggal terakhir.

Contoh :

CALL FUNCTION 'LAST_DAY_OF_MONTHS'
EXPORTING
   day_in = '20080401'
IMPORTING
   last_day_of_month = lv_last_day_of_month " hasil -> 20080430
EXCEPTIONS
   day_in_no_date = 1
   others = 2.
Posted by Shanto Labels: