Skip to Content
author's profile photo Former Member
Former Member

Search View with Value Node


Hi Experts,

I have to develop search page with value node(Custom fields) as I don't require any model node as per requirement, I will retrive Standard table data based on value node fields data given in search event. My question is can we create search view with value node.. I have created empty with value node, then changed view controller super class to CL_BSP_WD_ADVSEARCH_CONTROLLER , changed context node class to CL_BSP_WD_CONTEXT_NODE_ASP But I don't see Value node fields in configuration. Please suggest. Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Feb 10, 2014 at 06:26 AM

    Hi Tim,

    I'm afraid its not possible to add a value node to a search view.

    If you want to search a standard table there will be a standard search object available.

    Or another option is to make your own custom search component to do the search alone, but in this case too you will have to use your custom model node.

    In case if you find any way to achieve your actual requirement please let me know 🤪.

    Thanks and Regards JP

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 10, 2014 at 07:50 AM

    You can still create s search view with value node..You might to have to write all the logic... like...building where clause , if you want to support different operator for search...which might become overhead for you...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 10, 2014 at 09:52 AM

    Hi,

    Do check out this thread to get more idea on this topic.

    https://scn.sap.com/thread/2111354

    I hope this helps.

    Regards,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 10, 2014 at 09:50 PM

    Hi,

    Set or Populate value nodes with value using CL_BSP_WD_VALUE_NODE

    1. TYPES: BEGIN OF str,
    2. status TYPE char20,
    3. END OF str.
    4. *
    5. * Structure of status context node.
    6. DATA lr_struct_ref TYPE REF TO str.
    7. *
    8. * Structure of your context node
    9. data ls_struct type str.
    10. *
    11. DATA lr_value_node TYPE REF TO cl_bsp_wd_value_node.
    12. *
    13. CREATE DATA lr_struct_ref.
    14. CREATE OBJECT lr_value_node
    15. EXPORTING
    16. iv_data_ref = lr_struct_ref.
    17. ls_struct-status = 'Your Value'.
    18. lr_value_node->if_bol_bo_property_access~set_properties( ls_struct ).
    19. *
    20. *Add Value Node to a collection
    21. typed_context->testnode->collection_wrapper->add( lr_value_node ).

    Regards,

    Sumeet

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 21, 2014 at 11:24 AM

    Hi Tim Michael,

    have you full fill your requirement.. if not give me reply i have answer for this question..

    Thanks & Regards,

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 08, 2014 at 09:16 AM

    Hi Tim,

    Change the context node super class to CL_BSP_WD_CONTEXT_NODE_TV. The classes which you have used is for component / views which use dynamic queries. Since you are using value nodes you have to change the context node super class as CL_BSP_WD_CONTEXT_NODE_TV. Change the view controller class as CL_BSP_WD_VIEW_CONTROLLER and context node as mentioned.

    Regards,

    Mahesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.