Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question