Application Development 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: 

Upgrade errors:Unicode programs offset/lenght declarations are not allowed

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

Hi,

In unicode enabled program, you can read data using offset from individual fields not from the complete structure.

Thanks

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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