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

get field calculation with LEFT OUTER JOIN

Former Member
0 Likes
705

Good morning

I would to know, if it is possibible get a filed calculation with LEFT OUTER JOIN'

I explain better

Select avbeln aposnr aetenr bkwmeng abmeng clfimg b~netpr

INTO CORRESPONDING FIELDS OF TABLE tab_in

FROM vbep AS a

LEFT OUTER JOIN lips AS c

ON avbeln = cvgbel

AND aposnr = cvgpos

WHERE ecc ecc

I get a field that it is resul to ( bkwmeng - clfimg ) into table tab_in

How Can I do this?

Thanks a lot in advance for your replay.

Good morning

I would to know, if it is possibible get a filed calculation with LEFT OUTER JOIN'

I explain better

Select avbeln aposnr aetenr bkwmeng abmeng clfimg b~netpr

INTO CORRESPONDING FIELDS OF TABLE tab_in

FROM vbep AS a

LEFT OUTER JOIN lips AS c

ON avbeln = cvgbel

AND aposnr = cvgpos

WHERE ecc ecc

I get a field that it is resul to ( bkwmeng - clfimg ) into table tab_in

How Can I do this?

Thanks a lot in advance for your replay.

4 REPLIES 4
Read only

Former Member
0 Likes
647

You might be ale to do this using native SQL. An easier way is to simply do it after the SELECT, in the ABAP code.

Rob

Read only

Former Member
0 Likes
647

Thanks a lot Rob for your replay.

I ddidn't use 'Native SQL'. Could you explain how to do it.

Thanks a lot

Read only

Former Member
0 Likes
647

Hi:

have a look

SELECT SCUSTOMNAME SCUSTOMPOSTCODE SCUSTOM~CITY

SBOOKFLDATE SBOOKCARRID SBOOKCONNID SBOOKBOOKID

INTO (CUSTOMER-NAME, CUSTOMER-POSTCODE, CUSTOMER-CITY,

BOOKING-FLDATE, BOOKING-CARRID, BOOKING-CONNID,

BOOKING-BOOKID)

FROM SCUSTOM LEFT OUTER JOIN SBOOK

ON SCUSTOMID = SBOOKCUSTOMID AND

SBOOK~FLDATE = '20081015'

ORDER BY SCUSTOMNAME SBOOKFLDATE.

WRITE: / CUSTOMER-NAME, CUSTOMER-POSTCODE, CUSTOMER-CITY,

BOOKING-FLDATE, BOOKING-CARRID, BOOKING-CONNID,

BOOKING-BOOKID.

ENDSELECT.

Regards

Shashi

Read only

Former Member
0 Likes
647

Thanks shashi

but I get a error:

Incorrect nesting for the statement "EDSELECT, THERE IS NO OPEN STRUCTURE INTRODUCED BY "SELECT"