2008 Jun 04 5:33 AM
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 .
2008 Jun 04 5:36 AM
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
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
2008 Jun 04 5:36 AM
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
2008 Jun 04 5:38 AM
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!
2008 Jun 04 5:47 AM
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
2008 Jun 04 5:56 AM
2008 Jun 04 6:03 AM
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.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |