cancel
Showing results for 
Search instead for 
Did you mean: 

add_parameter_field in tree

Former Member
0 Kudos

Hello all,

i have a tree like strucuture in my screen and on click of the same i need to display a selection screen on the right hand side. I have createa a tray and have placed an element with linkto action property inside the tray. Now on click of the element, i need to display a selection screen on the right hand side. In the view, i have written the code like

  wd_this->m_helper->add_block(

           i_id         = `BL01`
           i_block_type = if_wd_select_options=>mc_block_type_tray
           i_title      = '').

        create data lr_field type RSLOGSYSNEW.
*       Sets the airline code initial value


*       Add the parameter to the group
         wd_this->m_helper->add_parameter_field(
           i_id           = `ZSID`
           i_within_block = `BL01`
           i_value        = lr_field
           I_OBLIGATORY   = abap_true ).

but the selection screen is not getting created . The above code works fine in another program.Can some one help me understand why it does not work here and what needs to be done to get it worked?

Regards,

Vaishnavi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi vaishnavi,

     If u slect element  automatically it triggers the ONACTION() Event . So u just mentioned the code for initializing selection screen   all those things in that method .. And u mentioned the code above where u placed... pls give some clarity about it ...

Regards,

Venkat

Former Member
0 Kudos

Hello,

Any thoughts?

Regards,

Vaishnavi

Former Member
0 Kudos

It is working. I did not add the view properly in the view container.