cancel
Showing results for 
Search instead for 
Did you mean: 

powl selcrit value

Former Member
0 Kudos

Dear Experts,

If you can direct me, it will be really helpful.

1)      After doing some calculation, I have an internal table filled with key value pairs.

How can I use it in the ‘get_sel_crit’ as the input field f4 help without using OVS.

Again any code will be really helpful.

  1. I.e.

    LOOP AT lt_contextid INTO ls_contextid .
    ls_value-vh_id = ls_contextid-context_name.
    ls_value-vh_value = ls_contextid-context_name.
   
APPEND ls_value TO rt_values.
    ENDLOOP.

How can I use this rt_values as the input field values?

2)    2)  When I use any data element for the f4 help, and on f4 I get the popup with key value pair from the domain.

Now on selecting any of the value, in the UI the key gets entered instead of the value.

  1. Ie. Key – config

Value – configure.

In the UI after selecting which method can handle the action, so that the input field has the value(‘configure’) and not the key (‘config’).

Thanks

Tenzin

Accepted Solutions (0)

Answers (1)

Answers (1)

manigandan_d2
Explorer
0 Kudos

Dear Tenzin,

You can use the first option, populate the selection value in the 'rt_values' and it has to be type "WDR_CONTEXT_ATTR_VALUE_LIST" and get the Node information instance of the attribute that was bindded to the Input field.

  DATA: l_node TYPE REF TO if_wd_context_node,
             l_node_info TYPE REF TO if_wd_context_node_info.

DATA: rt_values TYPE WDR_CONTEXT_ATTR_VALUE_LIST,

           ls_value   TYPE WDR_CONTEXT_ATTR_VALUE.

   LOOP AT lt_contextid INTO ls_contextid .
    ls_value-Vlaue= ls_contextid-context_name.
    ls_value-text = ls_contextid-context_name.
   
APPEND ls_value TO rt_values.
    ENDLOOP.

  l_node = wd_context->get_child_node( name = 'NODE' ).
  l_node_info = l_node->get_node_info( ).
  l_node_info->set_attribute_value_set(
  name = 'ATTRIBUTE'
  value_set = lt_value ).

pls try the code and let me know if you reqired more on the same.

Regards,

Mani

Former Member
0 Kudos

Hi Manigandan,

I think you didn't get my question. What I meant was in get_sel_crit( ) method in powl feeder class,

in the structure  powl_selcrit_sty, which attribute can we use to fill in the lt_value directly.

Normally we only provide a data type or the powl ovs class name. I want to know is there any other way to fill in the selcrit values using the internal table.

Thanks

Tenzin