cancel
Showing results for 
Search instead for 
Did you mean: 

WD application-selection screen - Parameter passing error

Former Member
0 Kudos

Hi,

In my WD application selection screen I am using a parameter(COSP-VERSN)

When i read this using read context i am getting an error saying "Could not find attribute KOKRS"

In context I have created a node with COSP-VERSN. My Kokrs will be contstant everytime.

For getting my version I need to pass KOKRS values.How can overcome this issue?

Here is the read context for versn which I have created in context Create-> NODE Option

DATA lo_nd_pversn TYPE REF TO if_wd_context_node.
      DATA lo_el_pversn TYPE REF TO if_wd_context_element.
      DATA ls_pversn TYPE wd_this->element_pversn.
*     navigate from <CONTEXT> to <PVERSN> via lead selection
      lo_nd_pversn = wd_context->get_child_node( name = wd_this->wdctx_pversn ).

*     get element via lead selection
      lo_el_pversn = lo_nd_pversn->get_element(  ).

*     get all declared attributes
      lo_el_pversn->get_static_attributes(
        IMPORTING
          static_attributes = ls_pversn ).

Rgds

Vara

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Resolved myself by creating a custom Dropdownbykey.

Rgds

vara