on 07-29-2023 7:49 AM
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?
Hello
you can use
"" as cancel
or
"0" as cancel
with this method you have a null field or a field with "0" value
beast regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oh, too bad. SQL expressions are forbidden with FOR ALL ENTRIES (in your case, the literal ' ' or '0' or 0 is the SQL expression):
ABAP documentation - SELECT, FOR ALL ENTRIES
In general, SAP probably wants to deprecate FOR ALL ENTRIES, almost everything new is forbidden with FAE.
Alternatives: GTT, join.
With Eclipse ADT, it's easy to declare IT_J_LIEXCHDR with more fields (by refactoring/quick fix + define your field). Or do it manually (or with the "pattern" tool).
User | Count |
---|---|
96 | |
8 | |
6 | |
6 | |
5 | |
4 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.