10-17-2008 6:09 AM
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
10-17-2008 6:12 AM
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.
10-17-2008 7:01 AM
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.
11-25-2008 5:09 AM
Hai Anirban
even if i dont use matkl,im getting t same dump error.
11-25-2008 5:14 AM
Please specify the run time you are getting
regards
Ramchander Rao.K