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: 

DATA_UC_STRUCT_C_OFFSET - Runtiem error

Former Member
0 Kudos

Hi all,

I am getting this runtime error - DATA_UC_STRUCT_C_OFFSET .

short text : Offset specification for a structure too large .

CAn any one suggest me how to resolve this error.

4 REPLIES 4

Sm1tje
Active Contributor
0 Kudos

You are obviously defining an offset which is larger then the actual length of your structure.

Say structure is length 10, then what your are saying (doing) is this:

structure+14=....

Former Member
0 Kudos

Dear Micky,

Thanks a lot for ur quick responce. its the same thing for which i am getting error. so how to resolve it as i am using a standard structure.

Sm1tje
Active Contributor
0 Kudos

It doesn't matter whether you are using standard structure or not, but you can avoid this by making sure that your offset (variable) will not exceed the actual lenght of the structure.

How do you define your offset and how are you filling it? How come that the offset exceeds the allowed lenght of the structure? You are probably using an offset dynamically based on some variables in your report, correct? So somehow this will not be correct. Try to find out via debugging why it is that this offset is too large.

Former Member
0 Kudos

Nasreen,

Study the contents of structure in runtime using ABAP debugger, see what data you need, then calculate and modify the offset accordingly.