2008 Aug 08 11:53 AM
Hi ,
I have a problem in search help.
i have two parameters on the selection screen
one is Company code - search help name Ybuk
second is customer No - Search help name Ykun
user will enter the value for the :company Code
when user trys for search help in Customer no it should display the Company Code
as default on the selection criteria of the Customer Search help.
please suggest,
Regards
Sudha
Hi ,
I have a problem in search help.
i have two parameters on the selection screen
one is Company code - search help name Ybuk
second is customer No - Search help name Ykun
user will enter the value for the :company Code
when user trys for search help in Customer no it should display the Company Code
as default on the selection criteria of the Customer Search help.
please suggest,
Regards
Sudha
2008 Aug 08 11:59 AM
Sudha
when u are creating the search help in parameters table control you can see defalt value .
There you can set your default value for selection criteria in search help
regards
hitesh
2008 Aug 08 12:19 PM
Hi Hitesh,
Thanks for your reply.
But my requirement is not to have the same value,
it varies based on the user input in the Company code field the same as to be displayed in the search help selection criteria for customer.
Regards
Sudha
2008 Aug 08 12:26 PM
Hi...
Suppose ur parameter for plant is pa_plant.
then create an event initialization...under that wirte.
pa_plant = '1261'.
here u can give wat ever value u like to be defaulted,.....
then ur parameter will contain the default value....
2008 Aug 08 12:26 PM
Dear Karan
When you collect values for your customer search help, put what u selected company code with where condition.
then it will filter only customer code with selected company codes.
<REMOVED BY MODERATOR>
Thanks
Edited by: Alvaro Tejada Galindo on Aug 8, 2008 5:17 PM
2008 Aug 08 12:39 PM
You have to manage the F4 (be it in a AT SELECTION-SCREEN ON VALUE-REQUEST FOR or a PROCESS ON VALUE-REQUEST.)
There call the function module [F4IF_FIELD_VALUE_REQUEST|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=f4if_field_value_request&adv=false&sortby=cm_rnd_rankvalue] with the CALLBACK_PROGRAM and FORM parameter filled to link to a form in your program.
The form should begin with
FORM <NAME> TABLES RECORD_TAB STRUCTURE SEAHLPRES
CHANGING SHLP TYPE SHLP_DESCR_T
CALLCONTROL LIKE DDSHF4CTRL. In this form you have some different way to process, some examples : (choice only one solution)
- use FM [DYNP_VALUES_READ|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=dynp_values_read&adv=false&sortby=cm_rnd_rankvalue] to get the Society value. and add your criteria to SHLP-SELOPT (type RANGE)
- Change SHLP-INTERFACE to link the society parameter of the search help to the field of your dynpro.
Read cautiously the documentation of parameter [CALLBACK_FORM in function module F4IF_FIELD_VALUE_REQUEST.|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=callback_form+f4if_field_value_request&cat=sdn_all]
Samples :
- [ function for calling search [email protected]|http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-for-calling-search-help-286775]
- SE38 demo program [BCALV_F4|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=bcalv_f4&adv=false&sortby=cm_rnd_rankvalue]
Regards
2008 Aug 08 1:54 PM