cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Search Help

Former Member
0 Kudos

Hi experts,

Please let me know the code & process of doing dynamic search help.

Here I am describing the scenario--------

In the above screen 'Adjust System'(marked in red) has 2 dropdown values 'MA'

& 'MI'.

When 'MA' is selected 'Counterparty' (marked in blue) search help is set as dictionary search help(set in node property).It is already there.

Now the new change is----------

i. When 'MI' is selected from the dropdown value of 'Adjust System' then 'Counterparty'

   search help will be set as dynamic search help.

ii. If user selects 'MA' from the dropdown then again dictionary search help will be set

    in 'Counterparty' search help & vice versa.

I will be really grateful if you can help me out to resolve the above said 2 points.

Thanks in advance.

Regards,

Anindita Banerjee

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Anindita,

Try  the below.

1. create ovs usage and an event handler method for ovs  for the values to display when 'Adjust System' value  is 'MI'.

2. When  'Adjust System' is 'MA' ,you have automatic search help.

then.

data lo_nd_info type if_wd_context_node_info.

lo_nd_info = lo_nd->get_node_info( ).

Read 'Adjust System' selected value into a variable let it be 'lv_Adjust'.

if  lv_Adjust = 'MA'.

CALL METHOD lo_nd_info->set_attribute_value_help

EXPORTING

name = ' Your attribute Name' "Counterparty'

value_help_mode = '111' "  value help mode

value_help = 'Automatic Search help name'.

else.

CALL METHOD lo_nd_info->set_attribute_value_help

EXPORTING

name = ' Your attribute Name' "Counterparty'

value_help_mode = '131' " value help mode

value_help = 'OVS usage help name'.

endif.

Regards,

Paul.

former_member217546
Participant
0 Kudos

Hi Anindita,

You can set your value help using this method :

try to implement this method.

IF_WD_CONTEXT_NODE_INFO -> SET_ATTRIBUTE_VALUE_HELP.

available options;

begin of C_VALUE_HELP_mode,

                  deactivated             type i value 101,

                  automatic               type i value 111,

                  ddic                       type i value 121,

                  ovs                        type i value 131,

                  application_defined type i value 141,

              end of c_value_help_mode .

Thanks,

Sudheer

former_member183224
Participant
0 Kudos

Hi,

Use Freely Programmed Input Help, using OVS and dictionary search help like this will disable the COPY button.

Web Dynpro provides two types of pre-implemented search helps :

1. ABAP Dictionary Search help

2. OVS

One more help is Freely programmed search help.

[Input Help|http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm]

I have created a blog on implementing OVS help in WDA. You can refer that for sample code.

[OVS Help in WDA|OVS Help in Web Dynpro ABAP]

In addition, you can also provide help through Drop Downs and Select options.

[Working with select-options in WDA|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdf...]

I hope this will helpful.

Aliaksandr
Active Participant
0 Kudos

Hi Anindita,

You can try to use approach which is described in this post.

Kind regards, Aliaksandr.

Former Member
0 Kudos

Hi Anindita,

You can use OVS help for this purpose. Create a custom OVS help and you can include your conditions  in the search help.

http://saptechnical.com/Tutorials/WebDynproABAP/OVS/page1.htm

-Manish