google-code-export / saplink

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

Runtime error when creating a nugget for an ABAP Unit class #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I create a ABAP Uni Class Z_CL_AU_ETST
2. I try to create a slinkee/nugget from this class.
3.

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

There is an runtime error in ZSAPLINK_CLASS.

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

What version of SAPlink are you using: 0.0.3

Please provide any additional information below.

Original issue reported on code.google.com by tobi.tr...@googlemail.com on 17 May 2007 at 8:03

GoogleCodeExporter commented 9 years ago
Tobias,

It seems the SAP Run time type services are not prepared to handle classes of 
this
type.  The Class plug-in is not successfully able to instantiate a type 
descriptor. 
Currently there is nothing in the "Else" statement.  We will have to look at 
what we
want to do when an object type is not found.  Thanks for finding this.

<pre> 
      CALL METHOD cl_abap_classdescr=>describe_by_name
        EXPORTING
          p_name         = objname
        RECEIVING
          p_descr_ref    = typedescr
        EXCEPTIONS
          type_not_found = 1.
      IF sy-subrc = 0.
        classdescr ?= typedescr.
      ELSE.

      ENDIF.
</pre>
I attached a screenshot of the debug session that shows the SAP class method at 
run time.

Original comment by rquacken...@gmail.com on 18 May 2007 at 12:35

Attachments:

GoogleCodeExporter commented 9 years ago
I just ran into this issue as well.  I'd very much like to be able to export my 
test
classes into nuggets.  Has any progress been made on this issue?

I'd be willing to take a look at a patch for this issue if no one else is 
working on it.

Original comment by esjew...@gmail.com on 4 Jan 2009 at 5:33