GET_CURRENT_YEAR is a SAP's standard function module used in ABAP program to get current year.
DATA: lv_year TYPE bkpf-gjahr.
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
bukrs = '1000' "company code
date = sy-datum
IMPORTING
* CURRM =
curry = lv_year
* PREVM =
* PREVY = .
WRITE: lv_year.
IDE Used To Test This Code : SAP ABAP Editor.
Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us. We will reply you as soon as possible.
Post a Comment