‎2016 Aug 12 9:54 AM
Hi,
getting shortdumps with DATA_LENGTH_O and exception CX_SY_RANGE_OUT_OF_BOUNDS in class CL_ALINK_CONNECTION. I have already regenerated related business object as suggested in SAP note 1743980 but this did not solve the issue. Also tested FM SWO_QUERY_KEYFIELDS and it returns keyfields, so this is not the cause.
Any suggestions how to solve this issue?
Thanks,
Tim
‎2016 Aug 12 12:14 PM
I have checked this more closely in the debugger and for some reason, there is FM SWO_QUERY_KEYFIELDS which in some cases does not return anything for the related business object. and then the dump occurs. Any idea what could cause the fact that key fields are not found for the business object?
Thanks, Tim
‎2016 Aug 12 12:39 PM
You didn't give the context of what operation you are doing when the short dump occurs.
Anyway, it's possible with a business object type, that it's instantiated with object "blank" so that to access the static members (flagged "instance independent"). So maybe it's your issue.
‎2016 Aug 12 1:11 PM
Thanks for your reply and sorry for missing out the details. The context is related to processing invoice Idocs and creating/attaching document and links to it.
When I execute the FM SWO_QUERY_KEYFIELDS manually, then it always returns the keys correctly, but then in the background, it sometimes does not find the keys. Yes, it could be connected to the instance. What can I do about it?
Thanks!
‎2016 Aug 12 1:17 PM
I still don't have a correct understanding of the context 🙂
Could you please attach the short dump (.txt.zip) so that we can have a look at the call stack, and other stuff.
‎2016 Aug 18 7:24 AM
SAP Note 1696315 solved the issue. thank you anyways for your help!