10-16-2018 7:15 AM
Dear all,
I would like to begin writing in ABAP 7.50.
How can I write the following sample code in new format?
Thanks in advance for your help.
David
SELECT k~ebeln k~lifnr p~ebelp p~matnr p~werks
INTO TABLE lt_ekxo
FROM ekpo AS p INNER JOIN ekko
ON p~ebeln = k~ebeln
WHERE ebeln = lv_ebeln.
IF sy-subrc EQ 0.
SORT lt_ekxo BY ebeln ebelp.
ENDIF.
lt_ekxo_tmp = lt_ekxo.
SORT lt_ekxo_tmp BY matnr.
DELETE ADJACENT DUPLICATES FROM lt_ekxo_tmp COMPARING matnr.
IF NOT lt_ekxo_tmp IS INITIAL.
SELECT matnr mtart
INTO TABLE lt_mara
FROM mara
FOR ALL ENTRIES IN lt_ekxo_tmp
WHERE matnr = lt_ekxo_tmp.
IF sy-subrc NE 0.
CLEAR lt_mara.
ENDIF.
ENDIF.
10-16-2018 8:24 AM
Did you check the following blogs with the related links?
https://blogs.sap.com/2016/03/02/old-and-new-abap-syntax-overview-sheet/
https://blogs.sap.com/2017/10/02/best-practices-for-abap-development-on-sap-netweaver-7.5x/
as well as the help for the syntax?
02-06-2019 8:26 PM
Hello Simone,
Thanks for your return (long time after - Sorry for this).
I discovered some other ones too.
David