Skip to Content
0
Jul 29, 2023 at 06:49 AM

How to add new field in the select statement with new abap 7.4 syntax?

267 Views Last edit Jul 30, 2023 at 09:30 AM 2 rev

SELECT rdoc, exnum, exdat, rind, cancel

FROM j_1iexchdr as a
INTO TABLE @DATA(it_j_1iexchdr)
FOR ALL ENTRIES IN @it_vbrk_vbrp
WHERE rdoc = @it_vbrk_vbrp-vbeln
AND trntyp = 'DLFC'
AND rind = 'N'.

Here i want to add cancel field which is not in the structure or table , if we use structure there we can define cancel type c and we can use but how to do it with new sysntax?