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

select query offset.

Former Member
0 Likes
553

hi ,

Is this select query Possible.

SELECT COUNT(*) FROM t179

WHERE prodh+8(3) IN so_fam

AND stufe = 4.

This query is showing error, how to validate the select query.

Regards,

Madhavi

4 REPLIES 4
Read only

Former Member
0 Likes
501

Hi Madhavi,

SELECT COUNT(*) FROM t179

WHERE prodh+8(3) IN so_fam

AND stufe = 4.

This is not a valid select query.

U proceed like,

Data: V_prodh like proth.

V_prodh = prodh+8(3).

SELECT COUNT(*) FROM t179

WHERE V_prodh IN so_fam

AND stufe = 4.

Reward if helpful.

Read only

Former Member
0 Likes
501

Hi,

Correct the code accordingly.

SELECT COUNT(*) into i_count FROM t179

WHERE where stufe = 4 and substr(prodh,8,12) in s_fam.

If it is helpfull pls reward pts.

Regards

Srimanta

Read only

0 Likes
501

hi Srimathe,

This particular piece of code is not working in my system.

Will you please check once and send it to me.

Will you please send the standard SAP help for SUBSTR .

Madhavi

Edited by: varisetty madhavi on Apr 29, 2008 5:34 PM

Read only

Former Member
0 Likes
501

thanks