01-15-2009 9:17 AM
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.
01-15-2009 9:21 AM
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=....
01-15-2009 9:34 AM
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.
01-15-2009 9:38 AM
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.
01-15-2009 9:40 AM
Nasreen,
Study the contents of structure in runtime using ABAP debugger, see what data you need, then calculate and modify the offset accordingly.