cancel
Showing results for 
Search instead for 
Did you mean: 

dump after support pack

Former Member
0 Kudos

Hi, guys

I got a dump from my webdynpro program. The dump happened when I tried to read the node value in component controller:

ctypenode = wd_context->get_child_node( name = 'CTYPE_NODE' ).

ctypenode->get_attribute( exporting name = 'zzph' importing value = ctypevalue ).

Acturally this node does not contain any data at runtime. This dump never happened before the support pack. Also in production system where support pack has not been applied, it's working fine.

Can anybody help me on this?

Thanks,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The Dump you are getting is because of the following reasons:

1: You are trying to access the get_attribute method with the reference of the node. Kindly get the reference of the element and then use the get_attribute method.

some code snippet:

DATA:

node_flightinfo TYPE REF TO if_wd_context_node,

elem_flightinfo TYPE REF TO if_wd_context_element,

stru_flightinfo TYPE if_componentcontroller=>element_flightinfo ,

it_flighttab TYPE if_componentcontroller=>elements_flighttab.

  • navigate from <CONTEXT> to <FLIGHTINFO> via lead selection

node_flightinfo = wd_context->get_child_node( name = if_componentcontroller=>wdctx_flightinfo ).

  • get element via lead selection

elem_flightinfo = node_flightinfo->get_element( ).

  • get all declared attributes

elem_flightinfo->get_static_attributes(

IMPORTING

static_attributes = stru_flightinfo ).

2: also please check the cardinality of the node, it should be 1..1 or 1...n. Else if you try to read the context with no element present in the memory, it gives a dump..

Hope this resolves your question.

Ashish