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: 

SELECT with no records

former_member184029
Participant
0 Kudos

Hi

It's first time that happen, I have a 'Z' table where I have control number, I have a FM which extract these number and is called from a LOOP, first record of this loop is processed and the control number are fine, but next record when the FM is called,the "SELECT" of the 'Z' table put in blank fields, I've just update this table if a check is ' '.

This is "SELECT"

SELECT * INTO TABLE ti_nroctrlfact FROM zfictrlfact WHERE zcodctrl eq 'FC'.

thanks in advance.

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos
SELECT * INTO TABLE ti_nroctrlfact FROM zfictrlfact WHERE zcodctrl eq 'FC'.

make sure zcodctrl is two character element... if it more padd FC will zeros.. say zcodctrl is 4 characters then '00FC'.

or try

SELECT *  FROM zfictrlfact 
INTO TABLE ti_nroctrlfact
WHERE zcodctrl eq 'FC'.

10 REPLIES 10

former_member156446
Active Contributor
0 Kudos
SELECT * INTO TABLE ti_nroctrlfact FROM zfictrlfact WHERE zcodctrl eq 'FC'.

make sure zcodctrl is two character element... if it more padd FC will zeros.. say zcodctrl is 4 characters then '00FC'.

or try

SELECT *  FROM zfictrlfact 
INTO TABLE ti_nroctrlfact
WHERE zcodctrl eq 'FC'.

0 Kudos

Thanks J@y

I've cheched zcodctrl is 2 characters and put code lines sugested but still values in blank on "SELECT" command.

Regards

0 Kudos

Check the dicleration of ti_nroctrlfact it need to be the same type of ztable you are getting data...

last option is data issue.. make sure there are no convertion routines where u send FC it get converts to GC or BC...

query the same input in se11 or se16 and make sure data is present...with the criteria you are using in select.

0 Kudos

J@y thanks for answering

Check the dicleration of ti_nroctrlfact it need to be the same type of ztable you are getting data...

same declaration

last option is data issue.. make sure there are no convertion routines where u send FC it get converts to GC or BC...

VZCODCTRL = 'FC'.
*    SELECT * INTO TABLE ti_nroctrlfact FROM zfictrlfact WHERE zcodctrl eq 'FC'. " CR#ECDK903965
    SELECT *  FROM zfictrlfact INTO TABLE ti_nroctrlfact WHERE zcodctrl EQ VZCODCTRL.

query the same input in se11 or se16 and make sure data is present...with the criteria you are using in select.

data present when I check se11 and se16 data values

Regards

0 Kudos

>

> query the same input in se11 or se16 and make sure data is present...with the criteria you are using in select.

> data present when I check se11 and se16 data values

> Regards

data is present is every thing is the same case (upper case)

check the domain of zcodctrl, if lower case check box is selected / or sign check box is selected

0 Kudos

check the domain of zcodctrl, if lower case check box is selected / or sign check box is selected

Domain of zcodctrl the lower case check box is selected.

What does it mean?

Regards

0 Kudos

>

> Domain of zcodctrl the lower case check box is selected.

> What does it mean?

then use this way

WHERE zcodctrl eq 'fc'.

or un-check the lower case check box

0 Kudos

I've made change and test, but still getting blank fields.

0 Kudos

Hi,

Can you tell how you declared the internal table.

Did you do it as t_notcntrl type standard table of ztable.?

Generally such errors occur because of improper declaration.

Regards,

Subhashini

former_member184029
Participant
0 Kudos

Thank you for answering to all.

I solved it, It was a code line used in a BTE.