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

DATA_LENGTH_0

Former Member
0 Likes
1,097

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

5 REPLIES 5
Read only

Former Member
0 Likes
962

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

Read only

0 Likes
962

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.

Read only

0 Likes
962

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!

Read only

0 Likes
962

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.

Read only

0 Likes
962

SAP Note 1696315 solved the issue. thank you anyways for your help!