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

Select into fields

Hi all!!.

I want to put just a record in three fields, is it necesary to put them in a structure?

TABLES PB4000.

DATA: APSTA LIKE PB4000-APSTA,

STREA LIKE PB4000-STREA,

MASSN LIKE PB4000-MASSN.

SELECT APSTA STREA MASSN

FROM PB4000

INTO APSTA, STREA, MASSN.

WHERE PERNR = '99999803'

AND ENDDA = '99991231'.

ENDSELECT.

Comma without preceding colon (after SELECT ?).

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2005 at 12:02 AM

    HERE IS THE ANSWER.

    SELECT AAPSTA ASTREA A~MASSN

    INTO (APSTA, STREA, MASSN)

    FROM PB4000 AS A

    WHERE A~PERNR = '99999803'

    AND A~ENDDA = '99991231'.

    ENDSELECT.

    THANKS ANY WAY JEJEJEJE :o)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2005 at 06:53 AM

    Adrian Samper ,

    SELECT single APSTA STREA MASSN

    FROM PB4000

    INTO (APSTA, STREA, MASSN)

    WHERE PERNR = '99999803'

    AND ENDDA = '99991231'.

    ENDSELECT.

    This will work and you have to specify INTO clause, i mean it is necessary to put them into structure or Internal table or variables.

    Regards,

    Amey

    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.