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: 

OFFSET LENGTH ERROR

Former Member
0 Kudos

I need to clear this particular structure SPELL with offset 403.

In SAP version 4.6 the syntax is as follows

CLEAR SPELL+403. "nur SPELL-DIGnn

But in ECC we get the following error

The offset declaration "403" exceeds the length of the character-type

start (=18) of the structure. This is not allowed in Unicode programs.

if i am trying with the syntax

CLEAR SPELL+0(403).

then too i am getting the same error.

Please guide me.

Your help will be much appreciated.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

The best solution is:

CLEAR:

SPELL-DIG01,

SPELL-DIG02,

SPELL-DIG03,

SPELL-DIG04,

SPELL-DIG05,

SPELL-DIG06,

SPELL-DIG07,

SPELL-DIG08,

SPELL-DIG09,

SPELL-DIG10,

SPELL-DIG11,

SPELL-DIG12,

SPELL-DIG13,

SPELL-DIG14,

SPELL-DIG15.

Regards,

Rama.

8 REPLIES 8

former_member188685
Active Contributor
0 Kudos

How you defined the SPELL can you show..?

0 Kudos

SPELL is a standard structure.

defined as follows

Tables:

spell, "digits and numbers in words

Edited by: kundan jha on Sep 11, 2008 8:49 PM

0 Kudos

SPELL is a structure.. you have to identify which field it is & then clear that field .. for ex:

clear SPELL-DIG01.

~Suresh

0 Kudos

Hi,

The right coding would be like

Clear: spell-dig01(1).

This is the 403rd character in that structure.

0 Kudos

If i wish to clear the whole structure with offset 403.Then what should i do?

0 Kudos

clear spell.

0 Kudos

clear all the fileds in the structure starting with dig01 ie

CLEAR:SPELL-DIG01,SPELL-DIG02,SPELL-DIG03,SPELL-DIG04...

~Suresh

Former Member
0 Kudos

Hi,

The best solution is:

CLEAR:

SPELL-DIG01,

SPELL-DIG02,

SPELL-DIG03,

SPELL-DIG04,

SPELL-DIG05,

SPELL-DIG06,

SPELL-DIG07,

SPELL-DIG08,

SPELL-DIG09,

SPELL-DIG10,

SPELL-DIG11,

SPELL-DIG12,

SPELL-DIG13,

SPELL-DIG14,

SPELL-DIG15.

Regards,

Rama.