Skip to Content
avatar image
Former Member

SStandard SerachHelp with predifined values readonly

Hi all.

When using a standard search help in WD4A how can i set predefined values and furthermore makes this values read only in the serach help?

Thanks,

Sascha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jun 05, 2007 at 09:51 AM

    Hi Sascha,

    If you want to make some fields as display in selection screen.

    -> Open the DDIC search help in edit mode using se11

    -> Set the indicator SDis for the attribute which needs to be displayed in display mode in selection screen.

    IF you want to set some predefined values to some attributes of the searchelp.

    -> if the value is constant i.e, it will not change at runtime. Then you can mention this value in the default column of the attribute in the searchhelp.

    -> if the value needs to populated at runtime, then you need to do the mapping of search help fields to structure fields.

    => Open the structure ( which is used for the context of webdynpro ) in edit mode.

    => Select the field for which searchelp needs to be specified.

    => Goto EntryHelp/Check tab

    => Click on searchhelp, there specify the searchelp that you want for this attribute instead of specifying in the webdynpro

    => Press OK and define the mappings.

    => In the webdynpro component, set the serachhelp as AUTOMATIC for the attribute for which you want to display the searchhelp.

    I hope this will help you.

    Thanks,

    Prashanth

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Prashanth.

      Two mor questions:

      Where to find indicator SD in the serach help in se11?

      How to define the mapping for the structure? When I add the serach help i can map serach help attributes to table/field. But how can I manage to set for example vkorg in s_mat1 depending on the current web dynpro user?

      Thanks.

      Cheers,

      Sascha

  • avatar image
    Former Member
    Jun 05, 2007 at 11:23 AM

    Hi Sascha,

    After opening the search help , you will find out columns IMP, EXP, LPOS, RPOS and SDis. SDIs Column is for setting display purpose.

    Values that are existing in context will be used for mapping. Suppose if you want to set vkorg in s_mat1 depending on the current web dynpro user, then you need to set the value in the context then automatically these values will be passed to search help as import values.

    EG: Context is associated to str. STR1.

    STR1 has fields ATT1, ATT2,ATT3.

    For ATT3 Search Help SH1 is defined.

    SH1 is having IMP1,IMP2 and EXP1 as field.

    IN the structure, mapping is done as follows for SH1.

    ATT1->IMP1

    ATT2->IMP2

    ATT3->EXP1

    IF we want to pass some value using IMP1 then ATT1 should be populated with the same value in the context which will be mapped to IMP1 automatically and to the search help exit module..

    Hope this will help you.

    Thanks,

    Prashanth

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi again.

      I am sorry but I am missing something.

      Let's take this example:

      node_customer

      - attribute_kunnr

      The search help desbis is attached to the attribute kunnr. How could I predefine the value postal code with 11111 (not as constant value, but dynamically) for example?

      Thank you very much.

      Sascha

      Message was edited by:

      Sascha Dingeldey

  • avatar image
    Former Member
    Jun 05, 2007 at 02:47 PM

    Hi Sascha,

    node_customer -> structure STR1

    attr_kunnr->asscociated to SH DEBSIS.

    Now, you want to generate the value of Postal Code in search help selection screen( I guess, this is import parameter of SH ) dynamically depending on some condition. Is this right?

    If this is the case, then you need to add on more attribute to node_customer's structure( STR1 ) for postal code and do the mapping of this field to Search Help's POstal code field. Get the dynamic values for postal code and bind the value to context whenever you are binding other values.

    If you cant change the structure, then there is no way to pass the dynamic value to DDIC search help from webdynpro ( As per my knowledge 😊 ). In this case the better option would be OVS or freeely programmable search help in which you can do whatever you want without any restrictions.

    Thanks,

    Prashanth Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 06, 2007 at 03:11 AM

    Hi Sascha,

    So, you are setting the value in the search help exit using set parameter when callcontrol-step is 'PRESEL'. THis solution seems to be easy as value doesnt depend on the values entered in webdynpro webpage. If value needs to derived from the values that are entered already in the webdynpro page then this solution wont work.

    Eg. In the view

    Product Category and Product fields are there.

    ->user entered some value in the product category.

    -> Uses product search help, in this case user wants to filter only products that are related to above product category.

    ->So, product category that is entered already needs to be passed to Search Help.

    Thanks,

    Prasahnth

    Add comment
    10|10000 characters needed characters exceeded