google-code-export / saplink

Automatically exported from code.google.com/p/saplink
1 stars 2 forks source link

Import of a class crashes #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import the attached slinkee.
2.
3.

What is the expected output? What do you see instead?
I get a dump.

What version of SAP are you using?
SAP_ABA Release / Level:   7.0
SAP_BASIS Release / Level: 7.0

What version of SAPlink are you using: 0.1.3

Please provide any additional information below.

The slinkee contains follwoing method:
*
method TEST.
endmethod.

The method CREATEOBJECTFROMIXMLDOC in ZSAPLINK_CLASS contains following 
code, see *TT for my comment

    loop at sourceTable into source.
        check source is not initial.
        translate source to upper case.
        shift source left deleting leading space.
*TT It crashed in the following line because source contains only `*`
        if source+0(6) = 'METHOD'.
          delete sourceTable index sy-tabix.
          EXIT.
        endif.
      endloop.
      describe table sourceTable lines lines.
      while lines > 0.
        read table sourceTable into source index lines.
        if source cp 'endmethod*'.
*TT By the way: In the following line this situation was handled correctly:
          if sy-subrc  = 0 and source+0(1) <> '*'.
*          Got it and not a comment?
            delete sourceTable index lines.
            exit.
          endif.
        endif.

Original issue reported on code.google.com by tobi.tr...@googlemail.com on 17 Aug 2007 at 10:20

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Issue Fixed

Original comment by mepmarc...@gmail.com on 19 Aug 2008 at 2:30

GoogleCodeExporter commented 9 years ago
Fixed (Release0.1.4)

Original comment by mepmarc...@gmail.com on 27 Oct 2008 at 2:44