Skip to Content

SRM get data issue

Hi guys,

I'm following a guide ( to add a button to the screen, and I'm having an issue with the access to UI nodes.

In the example, Ricardo Romero Mata writes:

 lo_nd_oif_application = wd_context->get_child_node( name = wd_this->wdctx_oif_application ).
 lo_nd_variant = lo_nd_oif_application->get_child_node( name = wd_this->wdctx_variant ).
 lo_nd_toolbar = lo_nd_variant->get_child_node( name = wd_this->wdctx_toolbar ).
 lo_nd_other_functions = lo_nd_toolbar->get_child_node( name = wd_this->wdctx_other_functions )

but in my interface, wd_this does not have any of the constants defined. I have only (and none are written by me, it's a generated code in view "CRN_VIEW", attribute WD_THIS ref to associated type IF_CNR_VIEW):

wdctx_context type string value `CONTEXT`.
wdctx_hcp_data type string value `HCP_DATA`.
wdctx_view_data type string value `VIEW_DATA`.

After some debugging I found out that my view "CNR_VIEW" doesn't have a child named "OIF_APPLICATION" as the constant might suggest or the code.

Basicly, I'mt ryint to see which button is pressed and see if it's the custom button, in order to execute a certain custom code.

Can anyone suggest a solution ?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers