‎2007 Apr 27 5:42 PM
hi
plz rectify the error,
there is some prob with my inner join select stmt which i am unable to identify
here is the code.
tables: lfa1, ekko,
select-options: vend for lfa1-lifnr.
data: begin of itab occurs 0,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
land1 like lfa1-land1,
ebeln like ekko-ebeln,
end of itab.
select lfa1lifnr lfa1name1 lfa1land1 ekkoebeln into table itab from lfa1 inner join ekko on lfa1lifnr = ekkolifnr where lfa1~lifnr in vend.
loop at itab.
write: itab.
endloop.
i am not getting the required output.
‎2007 Apr 27 5:50 PM
‎2007 Apr 27 5:48 PM
Hi!
What is exactly the output, your program provides?
You might try out the "INTO CORRESPONDING FIELDS OF TABLE itab" statement also...
Regards
Tamá
‎2007 Apr 27 5:50 PM
‎2007 Apr 27 5:57 PM
hi,
thank you,
but still it is not working , when i pass the values in selection screen and execute.
it is just stoping there it self.
( mine is IDES SYSTEM , can that be the reason)
‎2007 Apr 27 5:59 PM
‎2007 Apr 27 6:01 PM
Hi!
Are there any entries in the LFA1 or EKKO tables? Check it out in SE16 transaction.
Regards
Tamá
‎2007 Apr 27 5:52 PM
Hi,
I check your code..It is bringing the Pos for the corresponding input..If it is a display you should WRITE: / instead of WRITE: ..Marked in bold..
TABLES: lfa1, ekko.
SELECT-OPTIONS: vend FOR lfa1-lifnr.
DATA: BEGIN OF itab OCCURS 0,
lifnr LIKE lfa1-lifnr,
name1 LIKE lfa1-name1,
land1 LIKE lfa1-land1,
ebeln LIKE ekko-ebeln,
END OF itab.
SELECT lfa1lifnr lfa1name1
lfa1land1 ekkoebeln
INTO TABLE itab
FROM lfa1 INNER JOIN ekko ON lfa1lifnr = ekkolifnr
WHERE lfa1~lifnr IN vend.
LOOP AT itab.
<b> WRITE:/ itab.</b>
ENDLOOP.
Thanks,
Naren