2011 Sep 16 7:25 AM
How to write open sql query for this .
Do select COUNT(*) from R.TFRSOUT where I_APT = in_MATERIAL NO.
If COUNT(*) > 0,
record is present.
endif.
How to write open sql query for this .
Do select COUNT(*) from R.TFRSOUT where I_APT = in_MATERIAL NO.
If COUNT(*) > 0,
record is present.
endif.
2011 Sep 16 8:25 AM
Hi,
Did you try something like...
SELECT COUNT( * ) INTO LV_COUNT FROM ....
WHERE I_APT = IN_MATERIAL_NO.
IF LV_COUNT > 0.
...
ENDIF.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |