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

inner join

Hello experts,

I am trying to join ausp, likp and lips.I have common field lips and likp as vbeln.How can i join ausp lips or likp.

I have selection field and ouput field with characteristic value.

Please advice me.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Sep 20, 2006 at 08:54 PM

    Hi Nithin,

    Please try to link table LIPS with MCHA in order to go to table AUSP.

      select cuobj_bm into (mcha-cuobj_bm)
      from mcha
      where matnr = lips-matnr
        and werks = lips-werks
        and charg = lips-charg.
      endselect.
    
      if sy-subrc = 0.
        select atinn atwrt into table i_ausp
        from ausp
        where objek = mcha-cuobj_bm.
      endif.

    Hope this will give you an idea.

    Regards,

    Ferry Lianto

    Please reward points if helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2006 at 09:34 PM

    HI Nithin,

    i am not sure that u can use innerjoin to relate Ausp and lips..

    with select statements we can do by using another table in between.

    like select objek from ausp into xxx where atinn = 'UR CHARACTERISTIC'.

    loop at xxx.

    select objek from INOB into yyy where cuobj = xxx-atinn.

    endloop.

    yyy-objek is a combination of matnr + charg ( batch)

    so yyy-objek+0(18) gives u matnr.

    u have a field in lips matnr... so u can do rest of the things with lips and likp where lips-vbeln = likp-vbeln.

    hope it helps...

    if it is not ur requirement then let me knwo with some more details...

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2006 at 09:38 PM

    Hi Nithin,

    We can not join the ausp,lips and likp tables.

    Regards,

    Azaz Ali.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2006 at 12:23 AM

    Nitin,

    Please give some more details as to why are you going to AUSP. Do you know which value from LIKP/LIPS ties to AUSP?

    Murali

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Murali,

      I have Selection screen with ausp-atwrt,lips-werks,likp-vstel,etc.

      Output fields are lips-matnr,lips-lfimg,

      ausp-atwrt,likp-lgort,likp-wadat_ist.

      I need to get output I am trying to join lips likp ausp

      Please suggest me.

      Thanks

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.