cancel
Showing results for 
Search instead for 
Did you mean: 

SStandard SerachHelp with predifined values readonly

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Yep, thats the point. I was irritated because I did not see how to set this up if I use standard structures which should not be changed. I guess a way would be to copy the search help and set a search help exit or so.

But you helped me a lot.

Thank you.

Cheers,

Sascha

Former Member
0 Kudos

Hi Prashanth.

Another solution is to use SET PARAMETER if the attribute has a parameter id.

Cheers,

Sascha

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Prashanth.

So you mean I add a context node and set the strutcure as you mentioned. Afterwards I do the mapping of the search help like described to the fields of the structure and thats it?

Sound easy going I will check it out.

Thanks so far.

PS: I did not found the column cause I was in edit mode of a collective seacrh help

Cheers,

Sascha

Message was edited by:

Sascha Dingeldey

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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