Paylaş.
DATA:
diffdays TYPE i,
datestring LIKE sy-datum,
BEGIN OF daterec,
year(4) TYPE c,
month(2) TYPE c,
day(2) TYPE c,
END OF daterec.
daterec = sy-datum.
daterec-day = ’01’. ” first day of month
datestring = daterec.
datestring = datestring – 1. ” last day of previous month
diffdays = sy-datum – datestring. ” difference days
Write diffdays .
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Şub 3 2010
Date Structure Örneği
Paylaş.
DATA:
diffdays TYPE i,
datestring LIKE sy-datum,
BEGIN OF daterec,
year(4) TYPE c,
month(2) TYPE c,
day(2) TYPE c,
END OF daterec.
daterec = sy-datum.
daterec-day = ’01’. ” first day of month
datestring = daterec.
datestring = datestring – 1. ” last day of previous month
diffdays = sy-datum – datestring. ” difference days
Write diffdays .
By Burhan KARADERE • ABAP • 0 • Tags: Abap, data structure