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 problem

Former Member
0 Likes
549

Hi.

i have this part of code in 6.0 and 4.7 also..

in 4.7 no problem but in 6.0 i'm getting the below error:

could not specify the access range automatically. this means that you need a range addition.

DO 16 TIMES VARYING AMOUNT FROM W_WKG001 NEXT W_WKG002 . 
    W_WKG_SUM = W_WKG_SUM + AMOUNT.
    ENDDO.

4 REPLIES 4
Read only

Former Member
0 Likes
504

Hi Antonis,

Please go through the below link:-

http://wiki.sdn.sap.com/wiki/display/SI/UCCHECK(UnicodeComplaince)-CommonErrorsand+Solutions

Different languages use different charcter sets. With unicode you can handle this more easy and comfortable. By the way you are forced to use more memory space for one charcter. Unfortunately there is not only one Unicode (UTF8, UTF16). There are standards for unicode. Nevertheless working with unicode in detail may be sophisticated.

Manas M.

Read only

Sm1tje
Active Contributor
0 Likes
504

This is just a matter of reading F1 help on ABAP keyword VARYING:

In Unicode programs, , RANGE can only be omitted if it can be statically determined that dobj1 and dobj2 are components of the same structure. The permitted memory area is then determined from the smallest substructure that contains dobj1 and dobj2.

Looks like this would apply to you. But since you have not provided more relevant parts of your code (like data declaration), we can't be of much more help here. So read the F1 help (in whole).

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
504

Error Code: DO002

Error Msg:Could not specify the access range automatically.

This means that you need a RANGE addition .

R/3 4.5B MDMP ECC 6 Unicode


DATA: cnum(1),  
      vtext(16).

DO 16 TIMES VARYING CNUM FROM vtext+0(1) NEXT vtext+1(1) RANGE vtext.
ADD cnum TO anum.
ENDDO. 

Please Check F1 Help.

Read only

Former Member
0 Likes
504

hi

you need to define a structure of sixteen fields of same type as you are using in your do varying statement

and then pass that structure as range.

e.g.

DO 16 TIMES VARYING AMOUNT FROM W_WKG001 NEXT W_WKG002 RANGE STRUCTURE_NAME.

THANKS