Application Development and Automation 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: 
Read only

Short Dump

Former Member
0 Likes
1,362

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

1 ACCEPTED SOLUTION
Read only

former_member181966
Active Contributor
0 Likes
1,329

Check the structure of your internal table IT_EKBE.make sure it has the correct date types define ...

Thanks

Saquib

10 REPLIES 10
Read only

LucianoBentiveg
Active Contributor
0 Likes
1,329

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' ).

Read only

former_member181966
Active Contributor
0 Likes
1,330

Check the structure of your internal table IT_EKBE.make sure it has the correct date types define ...

Thanks

Saquib

Read only

0 Likes
1,329

yup it has the correct structure

Read only

0 Likes
1,329

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

Read only

0 Likes
1,329

I've a question.. How rich knows table definition if Vicky never post it? Are you mentalist too?

Read only

0 Likes
1,329

Yes, we have telepathy. No, Vicky emailed me at about the same time that he posted here on SDN. My first question to him, was how did he define the internal table. Of course that is the first thing we need to look at when this kind of dump happens.

Regards,

Rich Heilman

Read only

0 Likes
1,329

sounds funny that all fields but one were declared as Field like table-field.

Read only

0 Likes
1,329

Diego, I was thinking the same thing, that's what really jumped out at me.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,329

Please tell us how you defined IT_EKBE

Read only

0 Likes
1,329

Naresh,

I think Rich already posted it, by reading Vicky Vicky's mind.

May it be some tongo here???

Regards.

Diego