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

Unicode help

Former Member
0 Likes
920

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

6 REPLIES 6
Read only

Former Member
0 Likes
786

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

Read only

0 Likes
786

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

Read only

Vinod_Chandran
Active Contributor
0 Likes
786

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

Read only

0 Likes
786

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

Read only

0 Likes
786

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

Read only

0 Likes
786

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