cancel
Showing results for 
Search instead for 
Did you mean: 

Freely Programmed search help for multiple input fields

kshamatha_eda2
Explorer
0 Kudos

  Hi,

   Is it possible to create multiple views in the component for the freely programmed provider i.e i have multiple input fields for which i need to create freely programmed search help. Each input field will have different search criteria so is it possible to map these to different views in the main freely programmed provider component. Or do i need to create individual component for each field.

Thanks

Kshamatha

Accepted Solutions (0)

Answers (2)

Answers (2)

chengalarayulu
Active Contributor
0 Kudos

Kshamatha,

It is possible by identifying from which field you are taking help. Based on that we can show the corresponding view on Help Window. To capture help field name please refer the below document. there is no hard-coding while reading attribute value & as well setting attribute value.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fd6096-a4b6-2d10-bfa8-bbd9001e0...

on above document go to page no. 8.. you can find how to get help atttibute name.

 

lv_attrib_name = lo_listener->f4_attribute_info-name.

You can compare in help navigation from which attribute help is triggered.

if lv_attrib_name = 'MATNR'.

     <<<< do something >>> / <<< display View1 >>>>>

elseif lv_attrib_name = 'MATNR1'.

          <<<< do something >>> / <<< display View1 >>>>>

elseif ..... and so on

endif.          

kshamatha_eda2
Explorer
0 Kudos

"You can compare in help navigation from which attribute help is triggered."

Where would you trigger this code. Is it in the actual consumer from where f4 is triggered or in the provider?

Former Member
0 Kudos

Hi

http://www.saptechnical.com/Tutorials/WebDynproABAP/Search/Page2.htm

I think this link will help you to solve your problem.

Regards

Pradeep