Table - search help - restrict user entries .
I have created table with
Field Data element.
WERKS WERKS_D
MTART MTART
MATKL MATKL
created_by SYUNAME
Changed_by SYUNAME
1).I am getting search help for WERKS and MATKL
However I am not getting search help for MTART field.
Can you tell me how to get search help for MTART also
2). In WERKS and MTART fields wild cards (*) should not be permitted.
How/where to code this.
3). I need to make created_by and changed_by fields not editable.
when user create the entry, then user name can appeared in created_by and Changed_by fields.
And wherever another user changes the same record ...his user id should come under changed_by field.
how /where can I do this.
i know there are three questions. but I also suggest me how to give more points...because there are three questions.
YOUR HELP IS APPRECIATED.
Thanks in ADVANCE.
Total Posts: 585
Total Questions: 321 (170 unresolved)
Please clean up your old posts....
3) Search!!
Rob
Similar Messages
-
How to display check box in the search help restriction pop-up window
Hi Experts,
I have created one searc help with dialog value restrictions. Search help contains 4 fields.
Out of which one field has length one character.
As oon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 4 fields.
I would like to show that field ( one character length field) as check box in search help restrictions pop-up window.
Pls help me ,... How can we acheive this..
Thanks
RaghuUr Exact Requirement,
Types : begin of itab,
fields type c,
Check type c,(For Check Box)
end of itab.
data it_tab type standard table of itab.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_input-low.(If it is in select-options)
CLEAR v_input.
GET CURSOR FIELD s_input VALUE v_input.
CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
EXPORTING
i_input = v_input
i_langu = sy-langu
IMPORTING
e_output = v_input.
CLEAR s_input-low.
IF v_input NE '' .
IF v_input NE '?'..
v_input1-sign = 'I'.
v_input1-option = 'CP'.
v_input1-low = v_input.
APPEND v_input1.
ENDIF.
ENDIF.
SELECT DISTINCT Field
FROM Table
INTO TABLE it_tab
WHERE field IN v_input.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Select Colors'
i_selection = 'X'
i_zebra = 'X'
i_screen_start_column = 5
i_screen_start_line = 5
i_screen_end_column = 30
i_screen_end_line = 12
i_checkbox_fieldname = 'CHECK'
i_tabname = 'IT_TAB'
i_scroll_to_sel_line = 'X'
it_fieldcat = it_fieldcat1
i_callback_program = sy-repid
i_callback_user_command = 'USER_COMMAND1'
IMPORTING
es_selfield = selfield
TABLES
t_outtab = it_tab
EXCEPTIONS
program_error = 1.
Cheers,
Naveen -
Disable fields in search help restriction window
Hi Experts,
Here is the situation:
I have created the new search help for material number and assigned this search help in my module pool program.
As soon as user press F4 button on material number , it will display search help restrictions window with 4 fields ( material, material type, plant, plant status).
I have set default value for the material type in search help itself. But I would like to disable this field.
I mean .... user should not enter any other values other than my default value. So I should disable the material type field in searh help restrictions window.
Pls help me.
Thanks
RaghuHi Vinod,
In the FM F4IF_INT_TABLE_VALUE_REQUEST, pass exporting parameter callback_form = 'SUB_CALL_BACK'.
Define the sub routine with the SUB_CALL_BACK with below logic
FORM SUB_CALL_BACK TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol TYPE DDSHF4CTRL.
callcontrol-MULTISEL = 'X'.
ENDFORM.
Hope it helps.
Regards
Gangadhar -
CheckBox in search help restriction dialog.
Hi Experts,
I have created one search help with dialog value restrictions. Search help contains 6 fields.
Out of which three fields has length one character(Data Element XFELD).
As soon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 6 fields.
I would like to show that fields(with Data Element as XFELD) as Check Box in search help restrictions pop-up window.
Pls help... How can we do this.
Thanks
VinodHi,
Kindly check the standard search help "F4TESTCHECKBOX". Copy it and change the dialog type to 'Display with restrictions' . On execution, you will notice that -
i) On the restriction screen the checkbox is displayed as textbox .
ii) In list display , checkbox is displayed correctly .
Follow Raymond's suggestion,
You could define your own selection-screen, and display it in a search-help exit : if step = 'PRESEL', display your screen, modify selected values in table shlp-interface and force next step as 'SELECT' to bypass standard selection-screen.
Regards,
DPM -
F4-Help without using a table search help
Hi,
We´re using CRM 2007 and I have created several F4-Helps for different fields on the webui.
There it was always necessary to use an existing table search help in the GET_V-method:
CREATE OBJECT rv_valuehelp_descriptor
TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = lv_help_id "search help name
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap
iv_trigger_submit = abap_true.
But how can I create a f4-help without an existing search help. I have an internal table that I want to be shown like an f4-help (not as dropdown -> a dropdown-field wouldn´t be a problem).
Structure of the internal table: COML_PROD_CAT_REL_F4
Thanx for help.
Greetings,
Sven
Edited by: Sven Keller on Aug 13, 2008 4:26 PMHi Sven,
you already pasted the correct call for creating a value help. Now what you have to alter is the variable lv_help_id to reflect a F4-Valuehelp class.
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = '(CL_CRM_UIU_BP_IDTYPE_2_F4)' "#EC NOTEXT
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
As you can see CL_CRM_UIU_BP_IDTYPE_2_F4 is a normal ABAP class implementing interface IF_BSP_WD_CUSTOM_F4_CALLBACK. Please take a look at it.
It should not be very hard to implement the single method
cheers Carsten -
Search Help - Restricting entries in standard search helps
Hi, is there any way to restrict entries in an SAP supplied search help? The search help in question is 'SSH_T007A', this search help also has a user exit 'F4_TAXCODE_USER_EXIT'. I'm not sure if the user exit is of any use or how to use it. Ideally what I need to do is to restrict the list of applicable tax codes to only those that we want our users to select. Does anyone have an idea of how to do this with a minimum of customization?
Thanks in advance,
Kevin MayHi Seshatal,
Thanks for the input, but this field does NOT have any ON VALUE REQUEST event associated with it ....
as soon as F4 is hit, it goes to Function help_start ,so I don't think we can make any changes here as it is standard .
I think including a standard search help will help....how to achieve this ?
Thanks, -
Table Search Help to Remove Duplicate Entry
Hi All Tha ABAP GURUS,
I have created 2 tables say A with fields main description and sub decription and another table B in which there are these 2 fields with other fields. I want to display search help for Table B for fields main description and sub decription separately and I have done the same by creating Elementary Search Help (ZDS and ZDM resp.) . For sub description it is working fine and for main description it is displaying value but duplicate. How to remove these duplicate values.
For Eg Values are
Main Desc Sub Desc
1 A
1 B
1 C
2 D
2 E
In my case it is showing
1
1
1
2
2
but I want
1
2
I want to achieve this without creating any ZProg. Can I use search help exit.Kindly guide me in this matter how to use it.
Thanks & Regards,
Bharti JainYes you can delete duplicates in a search help exit, but not without "without creating any ZProg" as you will create a Function Module (and Group)
Duplicate the sample FM F4IF_SHLP_EXIT_EXAMPLE in a customer function group, and delete duplicate records of RECORD_TAB in the step 'DISP' (executed before display).
You could also perform the select yourself adding a DISTINCT option to the statement in the 'SELECT' step but this will take more time to develop, as you must read the other parameters to use selections provided by user or program.
Regards
Raymond, -
Search help for custom entries in selection screen
Hi Gurus,
I have a requirement of adding four entries as a search help to a selection screen field P_TABLE.I tried using the function module F4IF_INT_ TABLE_VALUE_REQUEST as below.I want to add four entries Revenue,Cost,RIH and Summarised WBS Actual Data for the selection screen field P_TABLE but the problem is the function module is not getting triggered.
See the code below.
REPORT Z_DEL_OHTABLE.
DATA: V_RESPONSES(6),
V_TEXTS LIKE ALDBOUT,
V_PROG TYPE SY-REPID,
V_DYNNR TYPE SY-DYNNR.
DATA: begin of it_openhubs occurs 0,
v_tabname type c length 30,
end of it_openhubs.
DATA:
it_return type STANDARD TABLE OF DDSHRETVAL,
wa_return like line of it_return,
l_i_field_tab TYPE STANDARD TABLE OF dfies INITIAL SIZE 0,
l_i_dynpfld_mapping TYPE STANDARD TABLE OF dselc INITIAL SIZE 0.
SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE title.
parameters:P_TABLE(30) type c. " USER-COMMAND UPD,
SELECTION-SCREEN END OF BLOCK B0.
V_PROG = SY-REPID.
V_DYNNR = SY-DYNNR.
it_openhubs-v_tabname = 'Cost and Expense'.
append it_openhubs.
it_openhubs-v_tabname = 'Revenue'.
append it_openhubs.
it_openhubs-v_tabname = 'Revenue in Hand'.
append it_openhubs.
it_openhubs-v_tabname = 'Summarised WBS Actual Data'.
append it_openhubs.
CLEAR IT_OPENHUBS.
INITIALIZATION.
title = 'OH TABLE DELETION- DELETE CAREFULLY'.
START-OF-SELECTION.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TABLE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'v_tabname'
PVALKEY = ' '
DYNPPROG = V_PROG
DYNPNR = V_DYNNR
DYNPROFIELD = 'P_TABLE'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = it_openhubs
FIELD_TAB = l_i_field_tab
RETURN_TAB = it_return
DYNPFLD_MAPPING = l_i_dynpfld_mapping
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
READ TABLE it_return INTO wa_return INDEX 1.
IF sy-subrc EQ 0.
p_table = wa_return-fieldval.
endif.
Please help me out.
Thanks,
Srini.
Edited by: Srinivasan Ganapathy on Jan 28, 2010 6:05 AMHi ,
Change your code as below:
1. Fill the internal table it_openhubs inside the event "at selection screen on value request".
2. Always follow the below sequence:
Initialisation
At selection screen
Start of selection.
3. The declaration of variable v_tabname is changed from type c length 30 to type char30.
I tried the below code , its working fine.
DATA: V_RESPONSES(6),
V_TEXTS LIKE ALDBOUT,
V_PROG TYPE SY-REPID,
V_DYNNR TYPE SY-DYNNR.
DATA: begin of it_openhubs occurs 0,
v_tabname type char30, " length 30,
end of it_openhubs.
DATA:
it_return type STANDARD TABLE OF DDSHRETVAL,
wa_return like line of it_return,
l_i_field_tab TYPE STANDARD TABLE OF dfies INITIAL SIZE 0,
l_i_dynpfld_mapping TYPE STANDARD TABLE OF dselc INITIAL SIZE 0.
SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE title.
parameters:P_TABLE(30) type c. " USER-COMMAND UPD,
SELECTION-SCREEN END OF BLOCK B0.
INITIALIZATION.
title = 'OH TABLE DELETION- DELETE CAREFULLY'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TABLE.
V_PROG = SY-REPID.
V_DYNNR = SY-DYNNR.
clear IT_OPENHUBS.
it_openhubs-v_tabname = 'Cost and Expense'.
append it_openhubs.
it_openhubs-v_tabname = 'Revenue'.
append it_openhubs.
it_openhubs-v_tabname = 'Revenue in Hand'.
append it_openhubs.
it_openhubs-v_tabname = 'Summarised WBS Actual Data'.
append it_openhubs.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'v_tabname'
dynpprog = v_prog
dynpnr = v_dynnr
dynprofield = 'P_TABLE'
value_org = 'S'
TABLES
value_tab = it_openhubs
return_tab = it_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
READ TABLE it_return INTO wa_return INDEX 1.
IF sy-subrc EQ 0.
p_table = wa_return-fieldval.
ENDIF.
ENDIF -
Search help for user field for WBS element
Hi,
how can I add a search help to one of the user fields for WBS elements without modification? Is there an exit which I can use? I want to have a search help for field PRPS-USR02.
Thanks for your help.Hi
Create an elementary serach help using the Table USR01 or USR03
see the steps
1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
3)An elementary search help defines the standard flow of an input help.
4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
CREATION:
Go to SE11 Tcode
select search help
give the 'z' search help name and create
select the selection method ur table name eg : 'mara'
dialog module 'display value immediately'.
add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
where left position when displaying and spos = search position
and then save and activate ..
See the links:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
Search Help Exits:
Re: dynamic values for search help
Re: Dynamic search help
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm
http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm
https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818
Regards
Anji -
Search Help - No of entries returned
Hello ,
I am working on a search Help exit and noticied that even we change the Value assigned to Parameter " Maximum no of Hits" to 9999 system brings backonly 1st 5000 entries. Somehow SAP is controlling that. I tired to change CALLCONTROLL-MAXRECORDS TO 5000 in Debug Mode also but still get's only 5000 entries.
anyone knows about a OSS note or something written somewhere in R/3 Library about this limitation.
Thanks
LHi Lakhbir,
Check the Note "Note 172687 - Collective note: search help control".
Restrictions on the length of the hit list
The number of the entries that the search help control
displays on its hit list is limited to a sensible number
of entries for a search help (5000).
Increasing the length of the hit list causes serious
performance and stability problems in the control
used for displaying. If you need a hit list with more
than 5000 entries switch to the usual search help
frontend:
Switching between R/3 dialog and ActiveX support
It is possible to toggle the support of the search
help by the search help control according to your needs.
To do this there are three setting options:
Search help with ActiveX - support
Search help without ActiveX - support
System settings
The system settings are valid for all clients and
are defined by the administrator. To do this, the
administrator profile must contain the
authorization object 'S_ADMI_FCD' and
the ID 'S_ADMI_FCD' with the 'F4MX' FIELD. -
Regarding search help restrictions...
Hi Experts,
I have created search help with dialog type C (i.e Dialog with restrictions). As soon as user hits F4 on particular field , it will give pop-up with restriction count.
I want to set restrict count by default 10 instead of 500. How can we acheive this.
Please help me .
Thanks in advance
Raghu[search help exit|http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm]
[Search help Help|http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm]
check my wiki for the code for a search help exit.
J@Y -
Only Using Search Help Value When Entry Value
Hi Experts,
I'm using search help at my screen field for entry value. But I dont want to entry value with using hand/finger/manuel.
I want to use only search help at my field.
Is this possible?
Best regards.Thanks All for answers.
I mixed your solution and I find new way for my issue.
I did like this.
I added Input/Output Field at screen and I did input properties false.
And I added button near the I/O Field.
I wrote at PAI - User_Command for button on click.
May there is different way but so my solution.
My draft code below.
WHEN '&BTN_PREPARE'.
DATA : BEGIN OF ITAB OCCURS 0,
KTANIM TYPE CHAR9,
IPTPKOD LIKE ZKZN_004-IPTPKOD,
KYPTYPEID LIKE ZKZN_004-KYPTYPEID,
FIILOLS LIKE ZKZN_004-FIILOLS,
END OF ITAB.
CLEAR : ITAB.
REFRESH : ITAB.
SELECT IPTPKOD KYPTYPEID FIILOLS
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM ZKZN_004
WHERE SILINDI = ''.
LOOP AT ITAB.
CONCATENATE ITAB-IPTPKOD ITAB-KYPTYPEID
INTO ITAB-KTANIM SEPARATED BY SPACE.
CONCATENATE ITAB-KTANIM ITAB-FIILOLS
INTO ITAB-KTANIM.
MODIFY ITAB.
ENDLOOP.
DATA : DFIES LIKE DFIES OCCURS 0 WITH HEADER LINE,
DDSHRETVAL LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE,
DSELC LIKE DSELC OCCURS 0 WITH HEADER LINE.
CLEAR : DFIES, DDSHRETVAL, DSELC.
REFRESH : DFIES, DDSHRETVAL, DSELC.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'KTANIM'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
FIELD_TAB = DFIES
RETURN_TAB = DDSHRETVAL
DYNPFLD_MAPPING = DSELC.
BREAK MELIHM.
READ TABLE DDSHRETVAL INDEX 1.
IF SY-SUBRC = 0.
ZKZN_DATA01_S01-IPRJSCR01 = DDSHRETVAL-FIELDVAL.
ENDIF. -
Search help restricted selection
Dear All,
Can we restrict search help to display only desired value.
for example I have two input fields one each for plant and storage location and I want to display possible values for Storage location based on the input plant.
is it possible?
I am using a search help based on table T001L
Can you guys help me on this.
Thanks
AmitFor plant and storage location, this is handle automatically by the standard search helps. I believe you need to use the memory ids to force this behavior. Please try this as it works good in my system.
report zrich_0001.
tables: mseg.
select-options WERKS for MSEG-WERKS memory id WRK.
select-options LGORT for MSEG-LGORT memory id LAG.
Regards,
Rich Heilman -
Hi, search help -- restricted value
hi
there is already a search help for a field in one of the transaction codes in fico. i think this search help is attached in code by writing match code syntax.
but my prob is that this search help for the particular field shows 10 char and out of this 10 char i need to show only 5 char from 3 to 7 when the user press f4.
eg. 1234567890 i need to show 34567 only without changing the se38 code.
when user press f4 he gets lots of records and all records should show 5 char only, now it is showing 10 char.
is it possible, if yes, then how???
pl can anybody help me.
thanx
rockyHi rocky,
You can do like this.
Use the below logic with your table, you will get as desired,
DATA: BEGIN OF gt_matnr OCCURS 0,
matnr TYPE mara-matnr,
END OF gt_matnr,
BEGIN OF gt_list OCCURS 0,
field1(5) TYPE c,
END OF gt_list.
PARAMETERS: p_matnr TYPE mara-matnr.
INITIALIZATION.
SELECT matnr
FROM mara
INTO TABLE gt_matnr.
LOOP AT gt_matnr.
gt_list-field1 = gt_matnr(5).
APPEND gt_list.
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
CALL FUNCTION 'POPUP_WITH_TABLE'
EXPORTING
endpos_col = 30
endpos_row = 20
startpos_col = 10
startpos_row = 10
titletext = 'Select MATNR'
IMPORTING
choice = p_matnr
TABLES
valuetab = gt_list
EXCEPTIONS
break_off = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
Hello all,
I am creating a search help to find users based on User ID and name. This is the scenario:
1) when the user clicks on the search help, he should be able to view a list of all users. Only 2 fields should be displayed in this list viz. User ID and User name.
2) I have managed to find that user id is placed in table USR01-bname. I am unable to link it to user name.
Please help.
Thanks in advance,
MzHi:
You can create your own search help, have a look with a link
[Link|http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm]
Regards
Shashi
Maybe you are looking for
-
I am extremely disappointed and angry with Apple service. I am a writer and booked three weeks in Spain so that I could finish my book. On the second day my laptop cut out on me asI was working on it, so I took it to Goldenmack in Cadiz. Not only
-
My Captivate projects crash while I am working on them, giving the error message 'Adobe Captivate has encountered a problem and needs to close. We are sorry for the inconvenience'. I am then unable to make any further edits to the projects: anythin
-
Role SAP_J2EE_ADMIN is not assigned to user J2EE_ADMIN
Dear All, I am new to sap... I tried installing SAP NETWEAVER 7.X SR3 While installing i got a error at phase 33 0f 50. The error message is CJS-30196 Role SAP_J2EE_ADMIN is not assigned to user J2EE_ADMIN. I am here copying the error log below.. Ca
-
Could any one give me direction towards creating asset with REST/javascript
could any one give me direction towards creating asset with REST/javascript?
-
How user experience leads to contract management success
You've likely heard a version of "Let's Call the Whole Thing Off, the song that made differences in pronunciation (e.g. toe-may-toe vs. toe-mah-toe) famous. This song is an important lesson in how people approach language and make it their own. While