‎2005 Jul 29 7:59 AM
Hi all
i am changing the exsisting report to unidoe enabled.And facing problem. The problem is:
i have string variable and all the data from application server is read into the string.And the internal table is having char types and packed type fields.So for packed fileds its giving short dump "unable to interpret "" the field". I think i have to use type casting but how i have no idea.So please can anyone throw light on this so that i can get the way.How should i follow to convert the string type to p.EX. of problem is:
tab_wa-ffd = w_struct+247(8).
tab_wa-ffd = w_struct+247(8).
tab_wa-edatu = w_struct+255(8).
tab_wa-shpd = w_struct+263(8).
so in this the internal table tab has field bemng referring to database table and whih is off packed decimal.So i when i passed the values of the w_struct(like this
tab_wa-bmeng = w_struct+271(13).
which is string it gives short dump.
So can anyone please suggest the solution
plz help its urgent for me.
thanks in advance
anu
‎2005 Jul 29 8:04 AM
Hi ,
I have one document which is having frequently faced errors when making code as unicode enabled. If you can send me your mail id i can send u that document.
Sreedhar
‎2005 Jul 29 9:05 AM
hi sreedhar
my mail id is :anu_m13@rediffmail.com
it will be great help frm u if u send me the help file
thanks
‎2005 Jul 29 9:20 AM
Hi Anu,
Can you please check the value of w_struct271(13) before moving to tab_wa-bmeng? I think w_struct271(13) returns blank.
Thanks
Vinod
‎2005 Jul 29 10:04 AM
HI vinod
yes the value is blank but how come this could be the problem..acutallly w-struct is a type c variable of length 1200.i am using to read file from application server in this string and then passing the w_struct offset value to tab_wa-bmeng.then its giving short dump for that field only and not for anyother field which are of char type.
plz any suggestions on this
thanks
anu
‎2005 Jul 29 10:18 AM
Hi Anu,
I would suggest using the following code.
IF NOT w_struct+271(13) IS INITIAL.
tab_wa-bmeng = w_struct+271(13).
ENDIF.
Thanks
Vinod
‎2005 Jul 29 11:10 AM
Hi Anu,
Can you check the length of field tab_wa-bmeng?
Here you are moving w_struct+271(13) to tab_wa-bmeng. So tab_wa-bmeng should have length 13 or more.
As per SAP, If the target field is too short, an overflow may occur. This may cause the system to terminate the program.
Thanks
Vinod