Skip to Content
avatar image
Former Member

Freely Programmed search help for multiple input fields

  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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 30, 2012 at 04:23 AM

    Hi

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

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

    Regards

    Pradeep

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 30, 2012 at 05:07 AM

    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-bbd9001e0d0e?QuickLink=index&overridelayout=true

    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.          

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      "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?