2007 May 17 11:16 AM
Hi,
I am getting one error in following select statement
select single land1 name1 from lfa1 into (lv_land1, lv_name1) where lifnr in s_lifnr.
the error is " the list (lv_land1" after "into" is not of the form (f1,...,fn), or contains an undefined field.
Could anybody will tell me what is the error here??
I have declared all the necessary fields.
2007 May 17 11:26 AM
The select statement is perfect, but the variable u should check, whether its already declared.
Hi,
I am getting one error in following select statement
select single land1 name1 from lfa1 into (lv_land1, lv_name1) where lifnr in s_lifnr.
the error is " the list (lv_land1" after "into" is not of the form (f1,...,fn), or contains an undefined field.
Could anybody will tell me what is the error here??
I have declared all the necessary fields.
2007 May 17 11:24 AM
2007 May 17 11:24 AM
It seems to compile fine for me.
I think one of these lv_land1, lv_name1 is not declared properly.
Check the spellings
2007 May 17 11:24 AM
hi
select single land1 name1 from lfa1 into (lv_land1, lv_name1)
lv_land1, lv_name1 declare these field as
lv_land1 like lfa1-land1.
rgds
Deepak
2007 May 17 11:27 AM
Try omitting all the spaces in the parenthesis
regards,
Panayotis
2007 May 17 11:26 AM
Hi neha
Your declaration is wrong inthe select statement u have topass all the values into a single internal table
DATA: BEGIN OF ITAB OCCURS 0,
LAND1 LIKE LFA1-LAND1,
NAME1 LIKE LFA1-NAME1,
END OF ITAB.
select land1 name1 from lfa1 into ITAB
where lifnr in s_lifnr.
Rewards if helpfull
Regards
Pavan
2007 May 17 11:26 AM
The select statement is perfect, but the variable u should check, whether its already declared.
2007 May 17 11:27 AM
2007 May 17 11:27 AM
hi,
chk this code with ur program.
tables : lfa1.
select-options : s_lifnr for lfa1-lifnr.
data : lv_land1 like lfa1-land1,
lv_name1 like lfa1-name1.
select single land1 name1 from lfa1 into (lv_land1, lv_name1) where lifnr in s_lifnr.Regards
Reshma
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |