google-code-export / saplink

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

Nugget Import of a Class crashes #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import the attached nugget or try to create a nugget from a class that 
has following source code:
*1
*2
*3
METHOD testmethod.
  WRITE: / 'Hello World'.
ENDMETHOD.

What is the expected output? What do you see instead?

I get an exception in the method CREATEOBJECTFROMIXMLDOC of class 
ZSAPLINK_CLASS. The problem is that a method starts with following code:

*1
*2
*3
METHOD testmethod.
  WRITE: / 'Hello World'.
ENDMETHOD.

The problem is the foloowing code:
        if source+0(6) = 'METHOD'.
          delete sourceTable index sy-tabix.
          EXIT.
        endif.

Just catch the system exception by adding try - endtry.

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.

Original issue reported on code.google.com by tobi.tr...@googlemail.com on 14 Mar 2007 at 11:31

Attachments:

GoogleCodeExporter commented 9 years ago
You can close this issue - it is the same as Nr. 61.

Original comment by tobi.tr...@googlemail.com on 14 Mar 2007 at 1:10

GoogleCodeExporter commented 9 years ago
duplicate issue #61

Original comment by ewherrm...@gmail.com on 16 Mar 2007 at 1:03