2008 Jul 17 9:57 AM
hi experts
i have this query:
date like ausp-atflv.
SELECT SINGLE ausp~atflv
FROM ausp
INTO date
WHERE ausp~objek = e_cekko-lifnr
AND ausp~atinn = 'TODG'
AND ausp~klart = '010'.
and it doesn't returns any result although i checked the query with the same parameters with se16 and there it returns one row as it supposed to be.
whats wrong here
thanks
Amit
change the query as follows
SELECT SINGLE ausp~atflv
FROM ausp
INTO date
for all entries in e_cekko
WHERE ausp~objek = e_cekko-lifnr
AND ausp~atinn = 'TODG'
AND ausp~klart = '010'.
//Kothand
2008 Jul 17 9:58 AM
change the query as follows
SELECT SINGLE ausp~atflv
FROM ausp
INTO date
for all entries in e_cekko
WHERE ausp~objek = e_cekko-lifnr
AND ausp~atinn = 'TODG'
AND ausp~klart = '010'.
//Kothand
2008 Jul 17 10:10 AM
hi Kothand
my problem is that e_cekko is structure and not a table and it gives me an error when i do what you said.
another problem is that you can't use for all entrys with select single
thanks
Amit
2008 Jul 17 10:14 AM
Hi Amit,
Yup i forget the SINGLE
Try this way
if e_cekko-lifnr ne space.
SELECT SINGLE atflv
FROM ausp
INTO ( date )
WHERE objek = e_cekko-lifnr
AND atinn = 'TODG'
AND klart = '010'.
endif.
maybe this will work.
//Kothand
2008 Jul 17 10:01 AM
Hi Amit,
try the following:
date like ausp-atflv.
SELECT SINGLE atflv
FROM ausp
INTO date
FOR ALL ENTRIES IN e_cekko
WHERE objek = e_cekko-lifnr
AND atinn = 'TODG'
AND klart = '010'.
I dont think there is a need of ~ operator when you are not joining two tables.
Hope this helps you.
Regards,
Chandra Sekhar
2008 Jul 17 10:02 AM
2008 Jul 17 10:05 AM
Hi,
try this...
SELECT SINGLE atflv
FROM ausp
INTO date
WHERE objek = e_cekko-lifnr
AND atinn = 'TODG'
AND klart = '010'.
2008 Jul 17 10:06 AM
Hi amit walden,
Refer the following Code,that will surely.
data : date like ausp-atflv.
Loop at e_cekko.
SELECT SINGLE atflv
FROM ausp
INTO date
WHERE objek = e_cekko-lifnr
AND atinn = 'TODG'
AND klart = '010'.
Endloop.
Hope it is helps.
Regards,
T.Durai murugan.
2008 Jul 17 10:12 AM
hi,
if e_cekko is the work area....see if e_cekko-lifnr is populated before the select.
and see the sy-subrc.
regards,
madhu
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |