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

OFFSET LENGTH ERROR

Former Member
0 Likes
2,056

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
Read only

Former Member
0 Likes
1,454

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
Read only

Former Member
0 Likes
1,454

How you defined the SPELL can you show..?

Read only

0 Likes
1,454

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

Read only

0 Likes
1,454

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

clear SPELL-DIG01.

~Suresh

Read only

0 Likes
1,454

Hi,

The right coding would be like

Clear: spell-dig01(1).

This is the 403rd character in that structure.

Read only

0 Likes
1,454

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

Read only

0 Likes
1,454

clear spell.

Read only

0 Likes
1,454

clear all the fileds in the structure starting with dig01 ie

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

~Suresh

Read only

Former Member
0 Likes
1,455

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.