Application Development 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: 

Regarding select query

Former Member
0 Kudos

Hi,

If value in a particular filed is empty ie.,space, then what will be the reselt of the select query?

For example,

SELECT SINGLE vbeln FROM likp INTO w_sto_delivery

WHERE vbeln = v_vbeln_vpobjkey.

in the above query, the field v_vbeln_vpobjkey is become empty during run time. now my question is, if this is the case, all the values of the vbeln from likp will be fetched into w_sto_delivery or the value which is blank in vbeln will be fetched?

6 REPLIES 6

ThomasZloch
Active Contributor
0 Kudos

> the value which is blank in vbeln will be fetched?

Yes, if there is any...

former_member230674
Contributor
0 Kudos

Hi Subash,

Normally It should fetch all the records if you use only select statement.but, in this case you use select single.so,it retrieve the first record from likp table.

by

Prasad G.V.K

Edited by: PRASAD GVK on Oct 22, 2008 4:56 PM

Former Member
0 Kudos

Hi,

If vbeln is blank then definitely it will be fetched.

Cheers!!

Balu

Former Member
0 Kudos

Well, I doubt if there are any records in LIKP with VBELN = space, so I doubt if it will pick up any records.

Rob

0 Kudos

Hi Rob..my doubt is if any vbeln is blank in likp, only it will be fetched..is it right?

0 Kudos

>

> Hi Rob..my doubt is if any vbeln is blank in likp, only it will be fetched..is it right?

Well that's already been answered. I was just pointing out that this is a pretty remote possibility.

Rob