2007 Sep 07 5:17 PM
hi,
my internal table is
data : begin of i_bkpf occurs 0,
xblnr like bkpf-xblnr,
end of i_bkpf.
and my select statement is
select xblnr into table i_bkpf
from bkpf
where blart = p_blart.
loop at i_bkpf.
write : / i_bkpf-xblnr.
endloop.
now there is no output for this statement...there is data int he table against blart inthe table..can anyone correct me ...
thankyou..
2007 Sep 07 5:26 PM
What value is in p_blart?
Your code works fine in our system.
Rob
Message was edited by:
Rob Burbank
2007 Sep 07 5:26 PM
What value is in p_blart?
Your code works fine in our system.
Rob
Message was edited by:
Rob Burbank
2007 Sep 07 6:43 PM
This code works:
TABLES bkpf.
PARAMETERS p_blart LIKE bkpf-blart DEFAULT 'SA'.
DATA : BEGIN OF i_bkpf OCCURS 0,
xblnr LIKE bkpf-xblnr,
END OF i_bkpf.
SELECT xblnr INTO TABLE i_bkpf
FROM bkpf
WHERE blart = p_blart.
LOOP AT i_bkpf.
WRITE : / i_bkpf-xblnr.
ENDLOOP.
Rob
2007 Sep 07 6:45 PM
2007 Sep 07 5:27 PM
2007 Sep 07 6:36 PM
hi Rich,
this is my parameter statment:
parameters: p_blart like bkpf-blart.
canu help me in this...
regards,
Challa
2007 Sep 07 5:41 PM
Hello Challa,
If p_blart is a SELECT-OPTIONS input variable, then the WHERE clause must be like:
where blart IN p_blart.
Best regards,
Bruno Garcia
2007 Sep 07 6:46 PM
Hey Challa,
Try this
select xblnr into <b>corresponding fields of</b> table i_bkpf
from bkpf
where blart = p_blart.
Regards,
Bruno