‎2010 Jan 21 12:11 PM
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.
‎2010 Jan 21 12:39 PM
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.
‎2010 Jan 21 12:40 PM
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).
‎2010 Jan 21 12:48 PM
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.
‎2010 Jan 22 7:14 AM
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