Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reading XML file from UNIX

Former Member
0 Kudos

I am reading XML file from unix using :

FORM read_file USING p_name.

DO.

READ DATASET p_name INTO WXML_LINE LENGTH LENG.

.

ENDDO.

Then I am using subroutine below where I get a short dump at

case X_NODE->get_type( ).

FORM get_data tables Y_CAPXML structure GV_CAPXML

using value(x_node) type ref to if_ixml_node.

data: INDENT type i.

data: PTEXT type ref to if_ixml_text.

data: STRING type string.

data: TEMP_STRING(100).

case X_NODE->get_type( ).

when if_ixml_node=>co_node_element.

STRING = X_NODE->get_name( ).

GV_NODETEXT = STRING.

when if_ixml_node=>co_node_text.

PTEXT ?= X_NODE->query_interface( IXML_IID_TEXT ).

if PTEXT->ws_only( ) is initial.

STRING = X_NODE->get_value( ).

case GV_NODETEXT.

when 'NIIN'.

move STRING to GV_CAPXML-NIIN.

when 'FED_x0020_STOCK_x0020_CLASS'.

move STRING to GV_CAPXML-fed_stock_class.

when 'DODIC'.

move STRING to GV_CAPXML-dodic.

endcase.

The text for the short dump is : STACK_STATE_NO_ROLL_MEMORY

Can someone please explain what is it mean.

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

May be this blog can help:

<a href="/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach for Blog</a>

Sri

4 REPLIES 4

Former Member
0 Kudos

May be this blog can help:

<a href="/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach for Blog</a>

Sri

0 Kudos

The blog uses CALL METHOD cl_gui_frontend_services=>gui_upload to upload the file from workstation and in my case I am reading file from Unix. I am not sure how Unix treats XML tags and why am I getting a short dump.

Thanks

Former Member
0 Kudos

I am still having problems

Edited by: Sergey on Aug 26, 2009 4:56 PM

Former Member
0 Kudos

Resolved myself.