01-05-2011 11:26 AM
HI All,
I am doing upgrade project( From 4.7 to ECC 6)
I encounter problem like Structure TEMP+6 does not start with a character type field.
InUnicode programs in such cases offset/lenght declarations are not allowed.
Regards
Jai
01-05-2011 11:43 AM
Hi,
In unicode enabled program, you can read data using offset from individual fields not from the complete structure.
Thanks
01-05-2011 11:51 AM
HI,
Actually my structure declaration is like this
DATA: BEGIN OF TEMP OCCURS 0,
STAMP LIKE ZU032-UOW_TIME, ( of type DEC)
DATA LIKE G_UOWTAB,
END OF TEMP.
they are using the statement like this
MOVE TEMP+6 TO G_UOWTAB.
And error is coming as i said.
How to rectify this one.
Regards
Raj
01-05-2011 12:22 PM
it means that they are trying to access the first 6 characters of your structure.
if STAMP if of 4 characters (assume) and DATA is also of 4 characters then in the code the purpose is to fill G_UOWTAB with 4 characters of STAMP and 2 characters of DATA. so you can do it like this:
concatenate TEMP-STAMP0(4) TEMP-DATA0(2) into G_UOWTAB.
if STAMP data type is more than 6 character than DATA is not needed to be concatenated. as we just need to pic 6 characters
Thanks
Vishal Kapoor
01-05-2011 12:48 PM
Hi Thanks for the reply,
Actually my STAMP field is of type
UOW_TIME of type DEC length 11 decimal places 6
In this case what i need to do.
Regards
Jai