‎2006 Dec 20 4:01 AM
Hi
The runtime error is DBIF_RSQL_INVALID_RSQL and the exception is CX_SY_OPEN_SQL_DB.can anyone explain me these errors.
At this select query it going to short dump.Could anyone help me.Its urgent.
Select aaufnr agstrp agsuzp biedd b~iedz into table i_uncount
from afko as a inner join afru as b on aaufnr = baufnr
for all entries in i_ordscp
where aaufnr = i_ordscp-aufnr and bgrund = 'ONS'
and b~stzhl = '0000000'.
Error Analysis:
The data read during a SELECT access could not be inserted into the target field.
Either the 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.
The target field is all correct.I've checked it.
Could anyone please help me.Its really urgent.U'll definitely be given points.
Thanks
chandrika.
‎2006 Dec 20 4:04 AM
Either the table i_uncount doesn't have the fields aaufnr agstrp agsuzp biedd b~iedz or its not in the same order
Regards,
Ravi
‎2006 Dec 20 4:03 AM
Select a~aufnr a~gstrp a~gsuzp b~iedd b~iedz
<b>into corresponding fields of table i_uncount</b>from afko as a inner join afru as b on a~aufnr = b~aufnr
for all entries in i_ordscp
where a~aufnr = i_ordscp-aufnr and b~grund = 'ONS'
and b~stzhl = '0000000'.
try this.Then u will come to know where is the problem
Regards
Prabhu
‎2006 Dec 20 4:04 AM
Either the table i_uncount doesn't have the fields aaufnr agstrp agsuzp biedd b~iedz or its not in the same order
Regards,
Ravi
‎2006 Dec 20 4:27 AM
This is the structure of t_uncont.
TYPES:BEGIN OF t_uncont,
aufnr like afko-aufnr,
gstrp like afko-gstrp,
gsuzp like afko-gsuzp,
aufpl like afko-aufpl,
iedd like afru-iedd,
iedz like afru-iedz,
END OF t_uncont.
DATA:i_uncont type standard table of t_uncont.
‎2006 Dec 20 4:38 AM
Hi Sarath ,
Please look at the internal table decleration and the sequence of fields in select statement .
What is happening is that the select is tying to place the value of iedd into aufpl as a result of which this incompatibilty occurs.
So you can either user into corresponding-fields or modify the sequence of your internal table.
I would sugges the second option , as first can effect the performance.
So just declare the it as
TYPES:BEGIN OF t_uncont,
aufnr like afko-aufnr,
gstrp like afko-gstrp,
gsuzp like afko-gsuzp,
iedd like afru-iedd,
iedz like afru-iedz,
aufpl like afko-aufpl,
END OF t_uncont.
Regards
Arun