Seach help
how to add a new field in the search help exit which is not a part of the selection method??..explain with an example
Hi Mohit,
Check the following link
http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm
Regards,
Kinshuk
Similar Messages
-
Seach help of WBS element in CAT2
Hi All
Is there any way to change the seach help of Receiver WBS element in the CAT2 worklist . I need to get only the WBS elements which are assigned to the relevant person. (standard progam is displaying all the WBS elements)
Thanks.Hi Pradeep,
This is purely technical.
Take the help of an abaper.
Maintain a Ztable with Personnel Number and the WBS Elements.
Now a Search help has to be created for the fields in the Ztable. Im not sure if u need to use a checktable also to validate.
Use this search help in the table CATSD for the field RPROJ (WBS).
Im not completely sure if this will work out. But i have tried it for other fields in some infotype.
This can be done only by an abaper. You can take the help of an abaper and get it done.
Regards,
Brinda L -
Hi Friends,
Here is my query on Sap Search help.
I have created a customised elelemtary search help zclarify in the table EKKO for the field zf_clarify.
This search help i have created under the collective search help MEKK and the included search help ASH_MEKK.
Now my probelem is whenever i am trying to seach the PO using the table by using the zf_clarify as the reference i am not getting anything.
Ex- if you to to the selection criteria screen of EKKO table and try to searhch for any particular Purchase Order by selecting the PO,that po number will display in the selection screen.Similarly if i am trying to search through clarify option i am not getting any value in the clarify field.
Please help me where i am doing wrong, I have one confusion that while creating the Data Element there is a search help option,there i have given MEKK and zclarify,but i am not getting any value in the table seletion screen.
Please give me idea how to create the search help so that my problem will solve.
Thanks a lot
mrutyu n^Hi Raju,
The below code only triggers
FORM USEREXIT_MOVE_FIELD_TO_VBKD.
VBKD-zzfield = xxxx-zzfield2.
ENDFORM.
when there is some manual change done on the Schedule line. So the control of the program will not stop on this form. Kindly suggest.
Regards
Siddharth -
How to restrict the values in seach helps
Dear All,
I am new to the BSP concept.I have a requirement
where in the BSP i need to restrict the values of the search help.i.e. 2 values are coming in the help i need to display only 1 value.
can anybody please explain how to do it.
Cheers,
Deepthee Kasal
Edited by: Craig Cmehil on Sep 2, 2008 8:21 AMHi,
I assume that you read values for the search help with function 'F4IF_FIELD_VALUE_REQUEST' and in a later step you display values with <htmlb:tableview>. If that is true and the function is delivering too many records as you mention, you could then restrict the output table of values like this:
TABLES mara.
DATA: mytable TYPE TABLE OF ddshretval WITH HEADER LINE.
DATA l_repid TYPE syrepid.
PARAMETERS p_mtart LIKE mara-mtart.
AT SELECTION-SCREEN ON VALUE-REQUEST
FOR p_mtart.
l_repid = sy-repid.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'MARA'
fieldname = 'MTART'
dynpprog = l_repid
callback_program = l_repid
callback_form = 'F4CALLBACK'
TABLES
return_tab = mytable
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
OTHERS = 5.
START-OF-SELECTION.
blah, blah, blah
* Form F4_form
* Exclude all material types that start with F & H
FORM f4callback
TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol LIKE ddshf4ctrl.
DATA: aux_struc TYPE ddshselopt.
MOVE: 'H_T134' to aux_struc-shlpname,
'MTART' TO aux_struc-shlpfield,
'E' TO aux_struc-sign,
'CP' TO aux_struc-option,
'F*' TO aux_struc-low.
append aux_struc to SHLP-SELOPT.
MOVE: 'H_T134' to aux_struc-shlpname,
'MTART' TO aux_struc-shlpfield,
'E' TO aux_struc-sign,
'CP' TO aux_struc-option,
'H*' TO aux_struc-low.
append aux_struc to SHLP-SELOPT.
ENDFORM. "F4_form
Mark points if helpful -
Custom seach help for standard field in Web dynpro application
Hi All,
I have a requirement in SRM portal where in I have a to add a custom search help to the 'WBS_ELEMENT' field in the the 'ACCOUNT ASSIGNMENT' tab of the Shopping cart creation screen with some input parameters on the search help.
As the SRM Shopping cartcreation screen is a standard web dynpro application.
Can anyone help me in this regard for addition of search help for a field with some custom fields in the Search help screen.
Any inputs will be very helpful.
Thanks in advance.
Regards,
Ahmed.Hi Ahmed,
If it is an standard application then you will have to do ENHANCEMENT in the component. And for using customised value help you will have to declare attribute in CONTEXT and dynamically change the binding of the Value property of UI element inside post-method of WDDOMODIFY. You can create your own customised value help for newly added attribute.
Thanks,
Vishesh -
Adding Nickname in Seach Help (F4) option
Hello,
My client wants to know if we can have 'Nickname' as a search field in the search help (F4) for PERNR / Person ID.
Else if the Nickname can be added as a Return Value field.
Thanks in advance.Hi,
Please follow SPRO>Personnel Management>Personnel Administration>Basic Settings>Maintain search helps>Maintain in logon language
Select the included search helps tab. Look for PREMJ (Last name - first name - birth name) and check the box.
You should now see a search help titled Current last name - first name - birth name. The last field on that is nickname (PAD_RUFNM).
Hope this helps.
Donnie -
HI!All
I want to create a search help like R/3 F4. How can i acheive this on press of F4 button in EP.
Regards
ParthHi Partha,
This is a simple value help option you are talking about. If you are coding in web Dynpro then you have to create a SVS (Simple Value selector) for that.
You can create a simple type in Dictionary object and then bind this attribute to the input feild where you want this F4 help.
For futher details go thriugh this document:
<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/value%20help%20in%20web%20dynpro%20applications.pdf">Value Selector in WebDynpro</a>
I hope this solves your problem.
Regards
Pravesh
PS: Kindly consider reawrding points if helpful and solved. -
Creating seach help to be used in program as F4 help
Dear All,
I need to create a Search help using two fields, SAKNR and BUKRS. Please help regarding all the parameters.
After the search help is created i need to use it in my program so that when the user clicks on SAKNR the value in BUKRS field should come automatically.
Regards,
AnuragHi Anurag,
You can create search help in transaction 'SE11'.
There select the Search Help radio button and give the name for your search help.
On the next screen it asks you the 'Selection Method' , there you have to give the table name from where the values will be taken .
Next to that in ' Dialog behavior ' select 'display value immediately'.
Give all the search help parameters for which you want the values to be displayed.
for example in your case SAKNR and BUKRS .
in LPos give the number in which place you want the particular field to be displayed.
This is the procedure to create the search help .
there are standard search helps available , you can use them as well .
Hope it helps.
Regards,
Pratap -
Populating out put only field from seach help
Hi all,
We have the following requirement in a custom infotype.
from a search help for a field (eg.objid) having one more column on the hit list for eg. obj name when user select one objid , the corresponding obj name should get populate on another output only field. I have seen this functionality in standard infotypes like 0001,0041 etc.
Could you please explain how I can achieve this functionality.
Thanks,
Rahul.Hi,
In the layout, you can define "Obj Name" as output only.
And inside the program, in the PAI module, check the value of "objid "selected by the user and and fetch corresponding "objname". and assign this value to the screen field .
assign points if helpful. -
pls let me know
hi,
Try this while creating fieldcat.
l_r_fieldcat-tabname = 'G_T_ITAB'.
l_r_fieldcat-fieldname = 'VBELN'.
<b> l_r_fieldcat-ref_tabname = 'VBAK'.
l_r_fieldcat-ref_fieldname = 'VBELN'.</b>
l_r_fieldcat-no_out = ' '.
l_r_fieldcat-input = 'X'.
l_r_fieldcat-edit = 'X'.
l_r_fieldcat-key = 'X'.
l_r_fieldcat-col_pos = 2.
l_r_fieldcat-seltext_m = 'Sales Order'.
APPEND l_r_fieldcat TO g_t_fieldcat.
CLEAR l_r_fieldcat.
i think whatever write in bold will serve ur purpose.
Reward if useful. -
Search Help is not working in PCUI
Hi All,
We are working on CRM 5.0
we have given Seach help for City depend upon Region
This search help is working in SAP-GUI System but
it is not working on PCUI Screen And showing No entry found,
plz help me...
i ll give reward points for helpful ans
Thanks & Regards,
ganeshHi,
Is a search help program attached for the field group (to which this PC-UI field belongs) in transaction CRMC_BLUEPRINT?
Regards,
Annu -
Issue in elementary search help.
Hi,
Facing some issue on Attaching search help directly to the screen Fields.
I have a requirement that
1> Based on a screen field, I have to filter F4 for the other fields.
2> I have to populate 2 screen elements at the same time.
Like:
In my transaction i have 3 fields :
1> PA0001-WERKS : Personnel area.
2> PA0001-PERNR : Personnel number
3> PA0001-ENAME : Employee name.
All 3 have been defined as Dictionary fields on the screen.
Now PA0001-WERKS has its on search help and i use that to select the WERKS.
Then i have to create a search help that takes this as the input and gives me a hit list showing all the personnel number ( and there name) in PA0001 table based on the screen field PA0001-werks.
When i do F4 on say Pa0001-pernr field: a hit list showing all the personnel number ( and there name) in PA0001 table.
When i select a row both PA0001-pernr and PA0001-ENAME should be filled in the screen.
Solution that i tried:
I created a elementary seach help ZSEL_PER and had the PA0001 as the selection table and had the 3 fields as the parameters:
1> WERKS as input
2> PERNR and ENAME as output.
Then i attached the search help to the srceen fields :
1> PA0001-PERNR : Personnel number
2> PA0001-ENAME : Employee name.
Now ,
a> When i do F4 my data does not get restricted as per the WERKS on the screen.
b> When i select a row both the fields on the screen dont get populated, only the field on which i did F4 ( that too always with the colomn 1 only of the hit list )..
Is this possible with elementary search help and if yes then how ? what am i doing wrong...
Thanks, Ad.Hi anuj,
This is the Search Help Process(F4) for a Particular Field.
Go to SE11.
Select Search Help Radio button : Any name with Z or Y.
Create.
Short Description : Any.
Selection Method : Table Name.
Dialog Type : Display Values immediately.
Search Help Parameter : Field Name (for which field ur doing in the table).
Exp : Tick it.
Lpos : 1 Just giving the position.
SAVE CHECK ACTIVATE.
Next Assign the Search Help to the table or field.
SE11.
Your Table Name : Change.
Search Help Button above the fields.
Search Help name : Your search help name.
Copy.
SAVE CHECK ACTIVATE.
Now go and check to the field by F4.
Thats it.
hope this helps you.
reward points for helpfull answers.
regards,
venu. -
What is the significance of data collection nad search help exit field ?
Dear Gurus
I know i am asking very basic quetion of abap but sdn is the only source to learn sap for me.I want to thanks you all for your kind support.
i read most of the post related to search help and trying to create one.
for elementary search help.
SE11 -> SEACH HELP -> ELEMENTARY SEARCH HELP
I have doubts regarding to fields "DATA COLLECTION" and "SEARCH HELP EXIT".
reference to a tutorial it is a maintenance view shall i have to reate a maintenace view first.
and other field is SEARCH HELP EXIT what is this.
please help me .
Thanks in advance.
Chitta Ranjan mahato.
Edited by: chitto123 on Oct 8, 2010 5:59 AMHowdy,
DATA COLLECTION - refers to a database table or view. This is the data that the search help will search through and display based on the parameters provided, so you can create your own view for the search help if you want the search to cover multiple tables.
SEARCH HELP EXIT - You can create a function module to be able to alter the Search Help's selection and results at various events throughout the search help. An example of this function module is provided with some documentation in function module F4IF_SHLP_EXIT_EXAMPLE.
Cheers
Alex -
Error in search help button at selection-screen
hi all,
i have a small issue.
i have created a seach help button in selection screen .
my code is as bellow.
TYPES: BEGIN OF ty_ZSD_SNID,
KUNNR TYPE KUNNR,
BAREA TYPE WERKS_D,
END OF ty_ZSD_SNID.
DATA : it_z TYPE STANDARD TABLE OF ty_ZSD_SNID.
selection-screen : begin of block b with frame title text-000.
select-options : skunnr for zsd_snid-kunnr.
parameters : pbarea like zsd_snid-barea obligatory.
selection-screen : end of block b.
INITIALIZATION.
SELECT KUNNR BAREA FROM ZSD_SNID INTO TABLE it_z.
SORT it_z BY BAREA KUNNR.
DELETE ADJACENT DUPLICATES FROM it_z COMPARING BAREA KUNNR.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR SKUNNR-low.
IF it_z[] IS NOT INITIAL.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'KUNNR' " data base table field name
PVALKEY = ' '
dynpprog = sy-repid " program name
dynpnr = sy-dynnr "screen name
dynprofield = 'SKUNNR-LOW' " layot field name
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = it_z[] " internal talble name
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ELSE.
MESSAGE E000(zsdsn).
ENDIF.
my issue is , its working properly if records are there in my z table.
if no records are there in the table then if i do comment the last message statement then its working.
if i do uncomment like the above code, then its dumming.
what i should i do ??
kind regardsclosed because of no answer.
-
Search help on screen elements
Hi I have a screen where I need to include a seach help on the screen element. The element itself is just a generic char 8 field with no dictionary reference. I have tried using the VRM_SET_ VALUES in the PBO but as soon as I press enter it looses the value selected. So I have now tried the using the process on value_request but despite finding and populating 138 values in the search help pop up, the actual pop up screen shows a blank list, with the text at the bottom saying 138 values.
Any ideas what I am doing wrong?
Set list values
call function 'VRM_SET_VALUES'
exporting
id = lv_vrm_id
values = it_values
exceptions
id_illegal_name = 1
others = 2.
if sy-subrc <> 0.
MESSAGE I000 WITH 'Failed to populate username list values'.
endif.
process on value-request.
field my_field module fill_my_field.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'MY_FIELD
dynprofield = 'MY_FIELD'
value_org = ' '
dynpprog = progname
dynpnr = dynnum
tables
value_tab = it_values "it contains 2 fields that will be shown in the list box
exceptions
parameter_error = 1
no_values_found = 2
others = 3.I'm still having problems with this. Here is my VRM set values - the problem I have with this is as soon as i choose a value from the list and press enter, the value dissappears from the screen element:
data: lv_vrm_id(80) type c.
data: lv_key(3) type n value 1,
lv_index type sy-tabix.
data: it_values type standard table of vrm_value,
s_values type vrm_value.
lv_vrm_id = i_type.
lv_key = 1.
clear it_values.
loop at it_cabn into s_cabn
where ATNAM = i_type.
read table it_cawn into s_cawn with key atinn = s_cabn-atinn
binary search.
while s_cawn-atinn = s_cabn-atinn.
lv_index = sy-tabix.
s_values-key = 1.
s_values-text = s_cawn-ATWRT.
condense s_values-text.
append s_values to it_values.
add 1 to lv_key.
lv_index = lv_index + 1.
read table it_cawn into s_cawn index lv_index.
if sy-subrc <> 0.
exit.
endif.
endwhile.
endloop.
* Set list values
call function 'VRM_SET_VALUES'
exporting
id = lv_vrm_id
values = it_values
exceptions
id_illegal_name = 1
others = 2.
if sy-subrc <> 0.
* MESSAGE I000 WITH 'Failed to populate username list values'.
endif.
And here is my code for the F4 lookup - the problem here is that the search help pop dispklays nothing depsite saying it has 138 values. I am wondering if its my it_values that is the wrong format, or is it the fact that my field type doesn't point to a dictionary element?
TYPES: BEGIN OF ty_values,
type(8),
descr(20),
END OF ty_values.
DATA: it_values TYPE STANDARD TABLE OF ty_values,
s_values type ty_values.
data: lv_key(3) type n value 1,
lv_index type sy-tabix.
* Build lookup values for wood type test
clear it_values.
loop at it_cabn into s_cabn
where atnam = i_type.
read table it_cawn into s_cawn with key atinn = s_cabn-atinn
binary search.
while s_cawn-atinn = s_cabn-atinn.
lv_index = sy-tabix.
* s_values-key = 1.
* s_values-value1 = s_cawn-atwrt.
s_values-type = s_cawn-atwrt.
append s_values to it_values.
lv_index = lv_index + 1.
read table it_cawn into s_cawn index lv_index.
if sy-subrc <> 0.
exit.
endif.
add 1 to lv_key.
endwhile.
endloop.
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values.
progname = sy-repid.
dynnum = sy-dynnr.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'ATWRT'
dynprofield = 'TYPE'
value_org = ' '
dynpprog = progname
dynpnr = dynnum
tables
value_tab = it_values "it contains 2 fields that will be shown in the list box
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
endif.
Maybe you are looking for
-
Unable To Capture View in MM01
Dear All, I am unable to capture the 'Accounting' view in MM01. In recording in SHDB, I find the accounting view cannot be captured. Please advice. Regards, Prosenjit.
-
Can you connect your Ipad to a projector using Bluetooth
Can you connect your Ipad to a projector using Bluetooth, if so what projectors, My situation is that I want to connect my Ipad3 wireless to a projector where there is no wifi available so the apple TV and airplay won't work.
-
If i already have a data carrier setting in my iphone 4, and i want a upgrade for the setting via itunes, will it write over my existing settings?
-
How to define Template Selection Rules according to doc language code
hi All, I am using ucm10g, I need to use DC to convert word to html, by defining Template Selection Rules, it worked perfect. Question is I have to use different template for different content that use different languages, for example, if a content h
-
HT4623 How do I get the Apps back to UK
I have somehow changed the apps to an Australian ssource,How do I remove them and get back to a UK source.?