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

run time error

Former Member
0 Likes
703

hi experts !

while executing a z program following run time error occurs .

" The system tried to access field "WA_EMP-JOBTI" with type "C" and length

81 in the current program "ZHRPTRP0001 " using offset 27 and length 56.

Partial field access is not allowed with offset and length

specifications that are

larger than actual field length. "

plz help me in this regard .

thanks .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
677

Hi,

what the error says is, the length of WA_EMP-JOBTI is 81, but in teh program you may e using a syntax WA_EMP-JOBTI+27(56) where u want to access starting from the 27th character to 56th character where the total comes to 83 characters. So change your program to access correct length.

Shruthi

5 REPLIES 5
Read only

Former Member
0 Likes
678

Hi,

what the error says is, the length of WA_EMP-JOBTI is 81, but in teh program you may e using a syntax WA_EMP-JOBTI+27(56) where u want to access starting from the 27th character to 56th character where the total comes to 83 characters. So change your program to access correct length.

Shruthi

Read only

Former Member
0 Likes
677

hi,

As you have mentioned,field WA_EMP-JOBTI is 81 char long.If you want to fetch the data from 56th character onwards then write : WA_EMP-JOBTI+56(25). The offset length that you have provided is exceeding the limit.So the error is coming!

Read only

0 Likes
677

Hi,

Change the length of WA_EMP-JOBTI field or change the offset length..

sum of offset length should not exceed the length of WA_EMP-JOBTI field.

Thanks

Murugan.B

Read only

Former Member
0 Likes
677

hi

close the thread once it is answered.

regards

sachin

Read only

Former Member
0 Likes
677

Ranjna,

Welcome to SDN!

Please be conscious about the offset and its length as you mention you are using from 27 character and 56 character i guess it becomes 83 but your variable length is 81.

so how come it possible.

Please close this thread after giving mark.

Amit.