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: 

Problem with Seleection

Former Member
0 Kudos

Hello Gurus.

It is an normal simple Select. But the Subrc is 0 and the is no result.

SELECT k~xblnr

INTO lv_xblnr

FROM dfkkko AS k

INNER JOIN dfkkop AS p

ON popbel = kopbel

WHERE k~opbel = wa_erdk-opbel

AND p~augst = space.

Thanks for your help

chris

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

What's the field wa_erdk-opbel ? is it selection screen field or some internal table field.If it is internal table field then ,it may be empty. check in debugging the value of this field.

Also check whether a value exist in table dfkkko in SE16 for the field XBLNR.

if the value exits then something wrong with the field wa_erdk-opbel .

And also check whether data exist in the other table joined for the same OPBEL.

reward if useful

regards,

ANJI

10 REPLIES 10

Former Member
0 Kudos

hi,

go in debugging mode and check out the value in wa_erdk-opbel.

there may be some problem with the where condition.

regards,

Navneeth.K

0 Kudos

Thanks for your lines.

I Think the problem ist the Dataelement XBLNR_KK with an conversion routine.

h_senden2
Active Contributor
0 Kudos

What you mean by 'there is no result' ?

Maybe the resulting XBLNR is empty.

regards,

Hans

Please reward all helpful answers !!!!!

Former Member
0 Kudos

THe XBLNR you are trying to select is having initial value, hence the result. Try with a selection screen field for restricting selection OR use an internal table to get data and see for yourself the data that is selected (you will see some fields with XBLNR as space)

Former Member
0 Kudos

Hi,

Check the Decalaration of the field LV_XBLNR, it has to be same as XBLNR.

Former Member
0 Kudos

Hi,

The statement should like this...

SELECT k~xblnr

INTO lv_xblnr

FROM dfkkko AS k

INNER JOIN dfkkop AS p

<b>ON kopbel = popbel</b>

WHERE k~opbel = wa_erdk-opbel

AND p~augst = space.

Regards,

Ram

Pls reward if useful...

Former Member
0 Kudos

HI Chris

Can you check in SE16 if any possible entries exist in table DFKKKO and DFKKOP for the value in WA_ERDK-OPBEL???

Kind Regards

Eswar

Former Member
0 Kudos

Hi,

What's the field wa_erdk-opbel ? is it selection screen field or some internal table field.If it is internal table field then ,it may be empty. check in debugging the value of this field.

Also check whether a value exist in table dfkkko in SE16 for the field XBLNR.

if the value exits then something wrong with the field wa_erdk-opbel .

And also check whether data exist in the other table joined for the same OPBEL.

reward if useful

regards,

ANJI

former_member588853
Active Contributor
0 Kudos

Hi,

check with the table on which u r selecting..

May be the content you are looking for is blank..

regards,

nazeer

Former Member
0 Kudos

hi

good

debug the program and check whether the internal table having data or not,if the internal table does not contain any data than the select statement ll retrun no value.

thanks

mrutyun^