Skip to Content
author's profile photo Former Member
Former Member

No fields from the right-hand table of a left outer join ...where condition : "ZPP_T004~CRDAT"

Hi friends,

I couldn't use left outer join both where clause. I need filtering so where clause using 'IN'. IF I use 'IN' , I get an error title.

I have examined the question asked earlier but not solving.

How to use left outer join together with 'IN' clause.

Thanks for your advise.


SELECT DISTINCT ZPP_T004~CRDAT AS CRDAT_1 ENAME ZPP_T004~CRUZT AS CRUZT_1 ARBPL ZPP_T004~MATNR MAKTX ZTBARKOD BARKOD ZTELCAP1 ZTELCAP

ZMUKAVEMET ZBURMA ZHIZ LOW HIGH ZPARTI ZSABUN ZDRESAJ ZACIKLAMA

ZPP_T004~AUFNR KANTAR KADET SEPET BRAGR NTAGR TEYIT ZQM_T001~CRDAT ZQM_T001~CRUZT

INTO CORRESPONDING FIELDS OF TABLE gt_tablo UP TO SAYI ROWS FROM ZQM_T001

LEFT OUTER JOIN ZPP_T004 ON ZQM_T001~ZTBARKOD = ZPP_T004~CHARG

JOIN MAKT ON ZPP_T004~MATNR = MAKT~MATNR

JOIN AUFK ON ZPP_T004~AUFNR = AUFK~AUFNR

JOIN PA0001 ON ZPP_T004~PERNR = PA0001~PERNR

JOIN ZPP_T001 ON ZPP_T001~MKVNO = AUFK~MKVNO

where ZTBARKOD IN TBARKOD AND ZPP_T004~CRDAT IN KKTARIH

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2015 at 06:43 AM

    Hi

    Post your error.

    you must use "~" in all fields in select statement and where condition also.

    if not solve, post your error.

    Regards,

    Chandu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2015 at 06:47 AM


    error.PNG (24.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 21, 2015 at 07:06 AM

    It's a limitation. You will need either use inner join (if you can) or remove the ZPP_T004~CRDAT from where clause and delete the results after the select:

    delete gt_tblo where crdat_1 not in kktarih.

    Regards,

    Custodio

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2015 at 07:46 AM

    Hi Chandra ,

    I changed as you say but not change I got the same error.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2015 at 08:47 AM

    Custodio ,

    How to solve limitation . Is not there another way to do this. I don't understand first say. How will we clear the table ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.