sweetstuff4u / zaplink

Automatically exported from code.google.com/p/zaplink
0 stars 0 forks source link

After introducing ZAPLINK_RAW_DATA maping (read) no longer works #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This issue has been created AND corrected during build 0.0.002.
It has been provided to keep in mind why changes in class ZAPLINK_EASYXML
has been made.

What steps will reproduce the problem?
1.extract any object raw node is empty
2.import any object raw component is initial

What is the expected output?
Raw node not empty
Component parsed

What do you see instead?
Raw node empty
Comonented is initial

Analyse :
ZAPLINK_EASYXML=>ADD_OBJECT & READ_OBJECT
When determinig component type using :
cl_abap_classdescr=>describe_by_object_ref(
this is the interface reference which is returned : here ZAPLINK_RAW_DATA
instead of /CLASS.
So workaround :
  IF o_obj->absolute_name = '\CLASS=OBJECT'.
    o_obj ?= cl_abap_classdescr=>describe_by_object_ref( p_object_ref =
object ).
* Replace in stack '\CLASS=OBJECT' => '\CLASS=XXXX'
    unstack( ).
    attr_name = o_obj->absolute_name.
    stack( attr_name ).
  ENDIF.
which detect the previous type of raw with was the general type OBJECT, so
this workaround has to be applied all the time.

Original issue reported on code.google.com by taryck%b...@gtempaccount.com on 2 Feb 2010 at 3:32