Skip to Content
author's profile photo Former Member
Former Member

Reading XML file from UNIX

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2007 at 07:51 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2007 at 08:06 PM

    I am still having problems

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2009 at 08:57 PM

    Resolved myself.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.