Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Open Sql

Former Member
0 Likes
295

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.

1 REPLY 1
Read only

Former Member
0 Likes
268

Hi,

Did you try something like...


SELECT COUNT( * ) INTO LV_COUNT FROM ....
WHERE I_APT = IN_MATERIAL_NO.
IF LV_COUNT > 0.
  ...
ENDIF.