Application Development and Automation 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: 
Read only

inner join in select statement

Former Member
0 Likes
952

hi,

i am using select statement like

SELECT ekkoebeln ekkobukrs ekkobstyp ekkobsart ekko~ernam

ekkolifnr ekkozterm ekkozbd1t ekkozbd2t ekko~zbd3t

ekkozbd1p ekkozbd2p ekkoekorg ekkoekgrp ekko~waers

ekkowkurs ekkokufix ekkobedat ekkokdate

  • Begin of Changes, RICEF : 293.

ekkozzhedg ekkozzheda ekkozzpba ekkozzpbubu lfa1~vbund

  • End of Changes, RICEF . 293.

lfa1land1 lfa1name1

ekpa~lifn2

INTO CORRESPONDING FIELDS OF TABLE iekko

FROM ekko

JOIN lfa1 ON lfa1lifnr = ekkolifnr

LEFT JOIN ekpa ON ekpaebeln = ekkoebeln AND

ekpa~ebelp = '00000' AND

ekpa~parvw = 'RS'

FOR ALL entries IN icooi

WHERE ekko~ebeln = icooi-refbn

AND ekko~zzhedg IN s_zzhedg

AND ekko~zzheda IN s_zzheda.

where in ekko table ,the fields zzhedg and zzheda are appended..but in the debugging mode i am unable to see this 2 field....in the output also....so how should i write my select query?

4 REPLIES 4
Read only

Former Member
0 Likes
827

Hi,

Is your select statement returning sy-subrc 0. In debugging mode may be your fields may not be visible in the screen since your internal table has many fields, you have to press >> forward button to check the fields.

Thanks & Regards,

Navneeth K.

Read only

GauthamV
Active Contributor
0 Likes
827

hi,

did you define these fields in internal table iekko.

also did you define these fields in field catelog.

check these two first.

Read only

Former Member
0 Likes
827

ya...i have defined in internal table iekko.

Read only

Former Member
0 Likes
827

If your table activation is fine enough.

i think you have defined the iekko type ekko and the appended fields are always append at last it must be there in debugmode also, the problem is your screen resolution in debug mode just set the column number from debug and take them atlast you may be able to see these fields in iekko.