2024 Jul 26 12:28 PM - edited 2024 Jul 26 1:23 PM
SELECT * FROM /scwm/huhdr INTO TABLE (lt_tab) WHERE lgnum = _lgnum.
LOOP AT lt_tab INTO DATA(ls_tab).
IF ls_tab-hu_guid_ext <> ls_tab-guid_hu_top.
WRITE: ls_tab-huident.
ENDIF.
ENDLOOP.
Hi friends,
Can I add IF ls_tab-hu_guid_ext <> ls_tab-guid_hu_top ( which is in the loop ) in select where condition ?
Thanks,
Madhu M V
Request clarification before answering.
Hello @Madhusudhan_MV
Here the select statement you can use:
SELECT * FROM /scwm/huhdr INTO TABLE @DATA(lt_tab)
WHERE lgnum = @pa_lgnum
AND hu_guid_ext <> /scwm/huhdr~guid_hu_top.Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.