Skip to Content

run time error

I have Run time error in each select from AFRU. I used package size, index but even I can not select with packing size 10 !!!!

SELECT AFRU~AUFNR AFRU~VORNR MAX( AFRU~BUDAT )

INTO TABLE IT_OR PACKAGE SIZE 100

FROM AFRU JOIN AFKO ON AFRU~AUFNR = AFKO~AUFNR

"JOIN AUFK ON AFKO~AUFNR = AUFK~AUFNR

WHERE ( AFKO~PLNTY EQ 'N' OR AFKO~PLNTY EQ 'R' OR AFKO~PLNTY EQ 'S' OR AFKO~PLNTY EQ 'M') AND

AFRU~AUERU = 'X' AND AFRU~VORNR IN OPAND afru~budat GE DAT-LOW AND afru~budat LE DAT-HIGH AND AFKO~PLNBEZ IN MATERIAL

GROUP BY AFRU~AUFNR AFRU~VORNR .

plz help mee

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 05, 2015 at 06:18 AM

    Hi,

    you have syntax error or run time error?

    if you have run time error, could you just please paste the Error analysis

    could you try this code and complate it.

    data it_or TYPE TABLE OF Afru.

    SELECT AFRU~AUFNR AFRU~VORNR MAX( AFRU~BUDAT )
    into TABLE IT_OR PACKAGE SIZE 100
    FROM AFRU JOIN AFKO ON AFRU~AUFNR = AFKO~AUFNR
    "JOIN AUFK ON AFKO~AUFNR = AUFK~AUFNR
    WHERE ( AFKO~PLNTY EQ 'N' OR AFKO~PLNTY EQ 'R' OR AFKO~PLNTY EQ 'S' OR AFKO~PLNTY EQ 'M') AND
    AFRU~AUERU = 'X'

    GROUP BY AFRU~AUFNR AFRU~VORNR .
    ENDSELECT.
    BREAK-POINT.



    Regards


    Ebrahim

    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.