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

select single with join

Hi

some problem at <b>INTO</b>. Pls can any one suggest something.

the format of ( vbakvbeln eq lipsvgbel ) is not correct. It is problem with ( ) and space.

select single lipsvbeln vbakkunnr

from lips

inner join vbak

on ( vbakvbeln eq lipsvgbel )

into (lips-vbeln,vbak-kunnr)

where lips~vbeln eq likp-vbeln.

Regards

Thiru.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 12:42 PM

    HI

    IF YOU DON'T MIND CAN YOU TEL ME WHAT YOUR TRYING TO DO THERE

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 12:34 PM

    See the example code :

    report zxyz.

    data : begin of wa_makt,

    matnr like mara-matnr,

    maktx like makt-maktx,

    end of wa_makt.

    parameters p_matnr like mara-matnr.

    start-of-selection.

    select single amatnr bmaktx into wa_makt

    from mara as a inner join makt as b on bmatnr = amatnr

    where a~matnr = p_matnr.

    write:/ wa_makt.

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 13, 2007 at 01:00 PM

    Use the TABLES adition as in this code:

    TABLES: likp,
            lips,
            vbak.
    
    SELECT SINGLE lips~vbeln vbak~kunnr
    FROM lips
    INNER JOIN vbak
    ON ( vbak~vbeln EQ lips~vgbel )
    INTO (lips-vbeln,vbak-kunnr)
    WHERE lips~vbeln EQ likp-vbeln.
    

    Please reward points if this solves your problem.

    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.