‎2006 Jul 13 6:50 PM
Iam getting a short dump in the below select statement for the last line..Canu have a look at that
SELECT EBELN EBELP GJAHR BELNR BEWTP MENGE SHKZG MATNR BUDAT
BWART
FROM EKBE APPENDING TABLE IT_EKBE
WHERE EBELN = IT_EKPO-EBELN
AND EBELP = IT_EKPO-EBELP
AND BUDAT IN S_BUDAT
AND ( BEWTP = 'E' OR BEWTP = 'O' ).
The message is
The data read during a SELECT access could not be inserted into the
target field.
Either conversion is not supported for the target field's type or the
target field is too short to accept the value or the data are not in a
form that the target field can accept
Thanks And Regards
Vicky
‎2006 Jul 13 6:53 PM
Check the structure of your internal table IT_EKBE.make sure it has the correct date types define ...
Thanks
Saquib
‎2006 Jul 13 6:52 PM
Try APPENDING CORRESPONDING FIELDS OF TABLE:
SELECT EBELN EBELP GJAHR BELNR BEWTP MENGE SHKZG MATNR BUDAT
BWART
FROM EKBE <b>APPENDING CORRESPONDING FIELDS OF TABLE</b> IT_EKBE
WHERE EBELN = IT_EKPO-EBELN
AND EBELP = IT_EKPO-EBELP
AND BUDAT IN S_BUDAT
AND ( BEWTP = 'E' OR BEWTP = 'O' ).
‎2006 Jul 13 6:53 PM
Check the structure of your internal table IT_EKBE.make sure it has the correct date types define ...
Thanks
Saquib
‎2006 Jul 13 6:54 PM
‎2006 Jul 13 6:54 PM
Please change your definition like this.
data: begin of it_ekbe occurs 0,
ebeln like ekbe-ebeln,
ebelp like ekbe-ebelp,
gjahr like ekbe-gjahr,
belnr like ekbe-belnr,
bewtp like ekbe-bewtp,
menge like ekbe-menge,
shkzg like ekbe-shkzg,
matnr like ekbe-matnr,
<b>budat type ekbe-budat,
*budat(8) type c,</b>
bwart like ekbe-bwart,
end of it_ekbe.
Regards,
Rich Heilman
‎2006 Jul 13 7:02 PM
I've a question.. How rich knows table definition if Vicky never post it? Are you mentalist too?
‎2006 Jul 13 7:07 PM
‎2006 Jul 13 7:16 PM
sounds funny that all fields but one were declared as Field like table-field.
‎2006 Jul 13 7:17 PM
‎2006 Jul 13 6:56 PM
‎2006 Jul 13 7:12 PM
Naresh,
I think Rich already posted it, by reading Vicky Vicky's mind.
May it be some tongo here???
Regards.
Diego