Issue 131 in zaplink: CONDENSE_ABAP_SOURCE -> dump

3 views
Skip to first unread message

zap...@googlecode.com

unread,
Dec 15, 2011, 7:03:04 AM12/15/11
to zaplink...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 131 by SpatnyN...@gmail.com: CONDENSE_ABAP_SOURCE -> dump
http://code.google.com/p/zaplink/issues/detail?id=131

Dectected-on V0.0.008

Hi, I think there is a problem in class ZAPLINK_TOOLS, method
CONDENSE_ABAP_SOURCE, line 7.

Code:
...
<l> = conv_abap_line( <l> ). condense <l>.
if <l>(1) = '"'. delete table. continue. endif.
...

In the case the <l> contains ONLY spaces, they are removed by the condense
statement, the <l>(1) check in the next line leads to a dump.

Dump:
STRING_OFFSET_TOO_LARGE
CX_SY_RANGE_OUT_OF_BOUNDS

I think that there should be a correction like this:

if <l> is initial or <l>(1) = '"'. delete table. continue. endif.


I have checked source of the new 0.0.009 version and it looks the problem
is not solved there.

Regards, B.


zap...@googlecode.com

unread,
Dec 15, 2011, 8:56:56 AM12/15/11
to zaplink...@googlegroups.com
Updates:
Status: Accepted
Labels: -Priority-Medium Priority-High Detected_on_Release-0.0.008
Release-0.0.010

Comment #1 on issue 131 by tar...@bensiali.net: CONDENSE_ABAP_SOURCE -> dump
http://code.google.com/p/zaplink/issues/detail?id=131

(No comment was entered for this change.)

zap...@googlecode.com

unread,
Dec 15, 2011, 9:00:58 AM12/15/11
to zaplink...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 131 by tar...@bensiali.net: CONDENSE_ABAP_SOURCE -> dump
http://code.google.com/p/zaplink/issues/detail?id=131

Here is the fix : IF <l> IS INITIAL. CLEAR <l>. CONTINUE.
ENDIF. " Issue 131

Here is the whole method code.

METHOD condense_abap_source.
FIELD-SYMBOLS <l> TYPE ANY.
LOOP AT table ASSIGNING <l>.
IF <l> IS INITIAL. DELETE table. CONTINUE. ENDIF. " Condense
IF <l>(1) = '*'. DELETE table. CONTINUE. ENDIF. " Condense
<l> = conv_abap_line( <l> ). CONDENSE <l>.
IF <l> IS INITIAL. CLEAR <l>. CONTINUE. ENDIF. " Issue 131
IF <l>(1) = '"'. DELETE table. CONTINUE. ENDIF. " commented line
like : " comment
ENDLOOP.
ENDMETHOD.

Please confirm it's OK with your case to enable closure of this issue.
Sorry for the inconvenience

zap...@googlecode.com

unread,
Dec 15, 2011, 9:15:06 AM12/15/11
to zaplink...@googlegroups.com

Comment #3 on issue 131 by SpatnyN...@gmail.com: CONDENSE_ABAP_SOURCE ->
dump
http://code.google.com/p/zaplink/issues/detail?id=131

I confirm the correction solved the problem.

Thanks for quick fix. Kind regards B.

zap...@googlecode.com

unread,
Dec 15, 2011, 3:33:51 PM12/15/11
to zaplink...@googlegroups.com
Updates:
Status: Verified

Comment #4 on issue 131 by tar...@bensiali.net: CONDENSE_ABAP_SOURCE -> dump
http://code.google.com/p/zaplink/issues/detail?id=131

Thanks for you reply.

Reply all
Reply to author
Forward
0 new messages