03-03-2022 1:31 PM
I have this particular code and i want to write this is in new abap syntax 7.4 can someone help and also give me reference sites or blogs where i can learn this new syntax
DATA : ls_aedat LIKE LINE OF s_aedat,
l_nb_annee TYPE tvarv_val,
l_nb_mois TYPE tvarv_val.
DATA : ls_bewtp LIKE LINE OF r_bewtp.
REFRESH : s_aedat.
CLEAR : ls_aedat,
l_nb_mois,
l_nb_annee.
ls_aedat-sign = 'I'.
ls_aedat-option = 'BT'.
ls_aedat-high = sy-datum.
03-04-2022 7:07 AM
atharva21k
Frederic and Sandra already provided some information abvoe. In addition, here are links which I point to in our internal development guidelines as I find them helpful to go from "old" to "new" ABAP code:
ABAP 7.40 Quick Reference - Jeffrey Towell - Oct. 25, 2015
Old and new ABAP syntax – overview sheet - Thomas Krügl - March 2, 2016
New ABAP Table Sum - Jonathan Capps - June 15, 2018
Hope these help!
Cheers
Bärbel
03-03-2022 1:40 PM
ls_aedat = value #( sign = 'I' option = 'BT' high = sy-datum ).
if you want to add directly to the S_AEDAT ranges.
s_aedat = value #( ( sign = 'I' option = 'BT' high = sy-datum ) ).
03-03-2022 3:23 PM
I think you will find good reference with Search Engines like Google, etc.
Or simply the official ABAP documentation.
03-04-2022 5:40 AM
03-04-2022 7:07 AM
atharva21k
Frederic and Sandra already provided some information abvoe. In addition, here are links which I point to in our internal development guidelines as I find them helpful to go from "old" to "new" ABAP code:
ABAP 7.40 Quick Reference - Jeffrey Towell - Oct. 25, 2015
Old and new ABAP syntax – overview sheet - Thomas Krügl - March 2, 2016
New ABAP Table Sum - Jonathan Capps - June 15, 2018
Hope these help!
Cheers
Bärbel
03-04-2022 8:48 AM