Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception CX_SY_RANGE_OUT_OF_BOUNDS at line 555 #7

Open
jaymealonso opened this issue Jun 13, 2023 · 0 comments
Open

Exception CX_SY_RANGE_OUT_OF_BOUNDS at line 555 #7

jaymealonso opened this issue Jun 13, 2023 · 0 comments

Comments

@jaymealonso
Copy link

After commenting the try catch in the main block to discover the issue an exception was being raised

In line 555

DATA(character_after) = substring( val = ls_type-typesrc off = result-offset + result-length len = 1 ).

Its raising an exception CX_SY_RANGE_OUT_OF_BOUNDS in cases where ls_type-typesrc is like the line below:

## begin of TS_C_MM_MATERIALGROUPVALUEHELP,## MATERIALGROUP type C length 9,## MATERIALGROUPTEXT type C length 60,## MATERIALGROUPNAME type C length 20,## end of TS_C_MM_MATERIALGROUPVALUEHELP

I've wrapped the code around a try catch but I believe there is a more elegant way to do that. the code was trying to find a dot in the end of the line.

Anyway, I was trying that on the GW service MM_PUR_PR_PROFNL_MAINTAIN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant