Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Run time error in ALV

Former Member
0 Kudos

Hi to all

my problem is that when i executed the ALV report for excise details by giving only the invoice date and plant, it gives a runtime error and the error is in the select statement.

SELECT VBRKVBELN VBRKKNUMV VBRKFKDAT VBRKWAERK

VBRKKURRF VBRKKUNAG VBRK~FKART

VBRPPOSNR VBRPNETWR VBRPFKIMG VBRPMATNR

VBRPVGBEL VBRPWERKS VBRPARKTX VBRPLGORT VBRPMATKL MARAMATKL AS CMATKL

INTO CORRESPONDING FIELDS OF TABLE ITAB

FROM VBRK

INNER JOIN VBRP

ON VBRKVBELN = VBRPVBELN

INNER JOIN MARA

ON VBRPMATNR = MARAMATNR

WHERE VBRK~VBELN IN VBELN

AND VBRK~FKART IN FKART

AND VBRK~FKDAT IN FKDAT

AND MARA~MATKL IN MATKL

AND VBRP~WERKS IN WERKS

AND VBRP~LGORT IN LGORT

AND VBRK~FKSTO NE 'X' .

i like to know how to rectify it and run the report

thanks in advance

4 REPLIES 4

Former Member
0 Kudos

Hi Mahesh,

The syntax of your select statement seems to be wrong. Please check. It shud be something like this :

SELECT  p~carrid p~connid f~fldate b~bookid
  INTO  CORRESPONDING FIELDS OF TABLE itab
  FROM  ( ( spfli AS p
            INNER JOIN sflight AS f ON p~carrid = f~carrid AND
                                       p~connid = f~connid    )
            INNER JOIN sbook   AS b ON b~carrid = f~carrid AND
                                       b~connid = f~connid AND
                                       b~fldate = f~fldate     )
  WHERE p~cityfrom = 'FRANKFURT' AND
        p~cityto   = 'NEW YORK'  AND
        f~seatsmax > f~seatsocc.

Regards,

Swapna.

former_member480923
Active Contributor
0 Kudos

Hi,

There is no problem in the select statements, if there was u could have caught it in the syntax check it wouldn't have dumped. The dump might happen because of the Incorrect definition of the Internal table: The way the fields have been defined, their names (u are using matkl as cmatkl for e.g.). Other than this there should not be any difference which might cause the problem.

Hope That Helps

Anirban M.

0 Kudos

Hai Anirban

even if i dont use matkl,im getting t same dump error.

former_member1245113
Active Contributor
0 Kudos

Please specify the run time you are getting

regards

Ramchander Rao.K