Urgent-SEARCH HELP EXIT ISSUE
Hi All,
I have developed a search help exit for the search help-H_T604, for field STAWN-commodity code.
When I logon with the my user id, and press F4 for this field, the search screen appears. However, when I use any other login, I do not get this search option and nor are the value options displayed. Please note that this happens only for the material master(MM03). When we are in transaction ME23N, when we press F4 for the same field(STAWN), irrespective of the user login id, we get the search option.
Please Help.
Thanks and Regards
Veena
Hello Veena,
hav u checked onething. Any of the exit in MM03 does they checked Sy-UNAME. Please check it.
Vasanth
Similar Messages
-
Issue Search Help Exit for Material Group
Dear Expertsl,
I developed a search help exit for material group for the search helps both H_T023 and H_2023_MEPO to restrict certain material groups from the actual display as follows
1) I developed custom table to hold the Invalid material groups
2) Developed search help as same as in the bellow link
link:[https://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterial+Group]
3) Before the statement
SELECT matkl wgbez wgbez60 FROM t023t INTO s_t023t
WHERE matkl IN t_matkl
i selected the Invalid materials from the custom table into an internal table
4) i am restricting the entries with the following code.
LOOP AT a_tab.
only move values that meet the requirements
after you convert to upper case.
MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
MOVE a_tab-wgbez TO a_tab-wgbez_test.
TRANSLATE a_tab-WGBEZ_test TO UPPER CASE.
MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
IF a_tab-wgbez60_test IN i_wgbez60 AND
a_tab-wgbez_test IN i_wgbez AND
a_tab-matkl IN i_matkl.
ADD 1 TO findex.
MOVE a_tab-matkl TO temp_tab-matkl.
MOVE a_tab-WGBEZ TO temp_tab-WGBEZ.
MOVE a_tab-wgbez60 TO temp_tab-wgbez60.
IF findex > callcontrol-maxrecords.
MOVE 'X' TO callcontrol-maxexceed.
EXIT.
ENDIF.
READ TABLE i_invalid INTO w_invalid
WITH KEY matkl = a_tab-matkl.
IF sy-subrc NE 0.
APPEND temp_tab.
ENDIF.
CLEAR temp_tab.
ENDIF.
ENDLOOP.
This is working fine when we press F4 in ME21N Transaction and give some description and then press enter the popup screen.
But my requirement is user will enter some description in ME21N material group field and press enter ( Not pressing the F4 here) at this moment this is not going through the search help exit and displaying all the entries including the Invalid materials.
Note: We can delete the Invalid material groups but the documents which are having the invalid material already will have an issue and need to be corrected all the documents. But our requirement is only to use the correct materials groups from now onwards.
I would appropriate if any one can helping this regard.
Thanks in advance.,
Regards,
VenkatHi Venkat,
You can call your ZSEARCH_HELP from the PAI , on the event SY-UCOMM = Enter using the function module F4IF_FIELD_VALUE_REQUEST.
For example, your screen field is MARA-ZXXXX, screen 0100 and search help : ZSEARCH_HELP
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'MARA'
fieldname = 'ZXXXX'
searchhelp = 'ZSEARCH_HELP '
dynpnr = '0100'
dynprofield = 'MARA-ZXXXX'
TABLES
return_tab = lt_returntab.
This F4IF_FIELD_VALUE_REQUEST will call your custom search help exit.
Regards
Deepa. -
I am having a problem in Search help exit.
Currently we have a search help Z_srchlp. In the Selection method of this search help we have a Help view z_view.
In this view we have a join on Tables KNA1 and KNVV. But now the requirement is to fetch some fields(STR_SUPPL1 and STR_SUPPL2) from ADRC table also. I have to write a Search help Exit for that.
The search help is on SHIP-TO PARTY in VA01. In the Output I need to Display the fields (STR_SUPPL1 and STR_SUPPL2) from ADRC based on adressnumber i.e., ADDRNUMBER in addition to what we are displaying currently.
Please let me know How can I achieve it. It will be great help if u can send me the Code as it is very urgent.Hi,
take a look to the search help F4IF_SHLP_EXIT_CUSTOMER with SE37.
Regards
Nicole -
Search Help Exit for ECC 6.0
Greetings,
I'm working in ECC 6.0. I'm trying to create a Help screen exit using F4IF_SHLP_EXIT_EXAMPLE as a model. The problem is that it will not compile due to the fact that a 'LIKE' parameter type is used in the function definition tables tab. This is not allowed in 6.0.
I've tried several work arounds without success. I have search for a 6.0 version of this function without success.
Does anyone have a solution?
rvHi Richard,
We too are running ECC 6.0 (release 701) and the LIKE definition doesn't cause a problem in our system. Maybe it has to do with a particular support pack level. Anyway, since you have presumably copied F4IF_SHLP_EXIT_EXAMPLE to a custom function module, you can manually change the typing of the Changing parameter. I tried this below and the search help exit executes as expected.
If this doesn't resolve the issue for you, you may want to repost your question to the ABAP Development community.
Cheers,
Amy -
Search Help Exit with portal (webdynpro)
Hi,
I'm implementing a customised search help for CAT2. In the portal it is using the webdynpro. I'm using the search help exit to populate the hit list that i want it to appear at both the R/3 backend and the portal side. I've also added the search help to the the table TCATS_SHLP_ITS where it defines the display field for the portal side.
It is working fine where the hit list is populating correctly. However, when the user select the record from the hit list, i want to display another value that i've populated at the search help exit to the expected field on the portal screen. HOw can i do that? FYI, the 1st display field in the table TCATS_SHLP_ITS, is not the value that i want it to display at the selected field on the portal screen.
Kindly assist. Many thanks.
Cheers,
LooHi,
Were you able to resolve this issue.
Thanks,
Tanuj -
Hi Every one,
when sales order creation or change, while selecting the route i have written a code for to fetch the data from ztable.till here it is ok then now my boss wants
while F4 help in route when it is hitting the list i have copied a search help exit F4IF_SHLP_EXIT_EXAMPLE , there i have selected control = 'DISP' , there when i have to filter the data in exit but i am not getting any importing parameterslike plant, customer,storage location from the sales order.
How to rectify this problem, pls explain me its urgent..
Thanks in advance.Hi,
I think you are using elementary search help for this. Check your search help dailog type , It should be "dialog with value restriction" and also check the search help paramters ie "Spos" column positions. Always give the order in which your fields dislayed in search help.
Look at the below link
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm
Regards
Sudheer -
SY-TABIX within a search help exit...
Hallo all,
I tried to find an answer in earlier postst, but did not succeed, therefore this message.
I have built a customtabel with several columns. For one of the columns I have built a custom search help, including some coding in the search help exit. In this coding I want to do a different selection based on the value in another column (BUKRS) of the same table. Do you understand what I mean?
The trick is to retrieve the right value of in the column BUKRS in the same line of the table, at the moment I am pushing F4 for another column.
And I dont know how to do this. I dont have the right SY-TABIX value, so this is not helping.
Does anybody have an idea as how to tackle this?
Kind regards,
ErikHello Francois & Holger,
Thanks for the reply, but Iu2019m calling this searh help from the transaction SE16 itself, so I donu2019t have my own table control. I am also using the search help in another situation (from a custom-made screen) and here I can pass on the value via a parameter, but this is not working in the case I described.
So the SY-STEPL is not working too....
Kind regards,
Erik -
Help with DYNP_VALUES_READ and DYNP_GET_STEPL in search help exit
Hi,
I'm coding a search help exit for a field on a table control and I need to get access to the value of another field that's on the same line in order to limit the hit list. I can use DYNP_VALUES_READ to return the values from the step loop, but I can't find out which line of the step loop I'm on. DYNP_GET_STEPL always returns 0, presumably because I'm now in a function group and the step loop is getting reset. Any ideas?
Thanks in advance,
AndrewI want to read EBELP and INFNR.
Below is code that i'm using:
MOVE 'MEPO1211-EBELP' TO t_campos-fieldname.
APPEND t_campos.
MOVE 'MEPO1211-INFNR' TO t_campos-fieldname.
APPEND t_campos.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = 'SAPLMEGUI'
DYNUMB = '1211'
TABLES
DYNPFIELDS = t_campos
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
READ TABLE t_campos INDEX 1.
l_ebelp = t_campos-fieldvalue.
READ TABLE t_campos INDEX 2.
l_infnr = t_campos-fieldvalue.
The sy-subrc = 0, but the FM didn't bring the values of the screen fields. Is there some wrong with the filed name?
Thanks. -
Getting values from screen to search help exit
Hi Experts,
I have created a search help in which I am not using selection method but search help exit. Dialog type is 'Dialog with value restriction'. My requirement is to get the values entered in restriction screen into search help exit. Please suggest a parameter which will hold this value in search help exit function module.Hi M,
As you know there are 5 steps in search help exit. For each step, the values in parameter of your search help exit is different.
For your requirement, you need process in step 'DISP', and get the selection value from 'SHLP-SELOPT'.
Example:
*Build range for customer number
LOOP AT shlp-selopt INTO ls_selopt WHERE shlpfield = 'KUNNR'.
lr_kunnr-sign = ls_selopt-sign.
lr_kunnr-option = ls_selopt-option.
lr_kunnr-low = ls_selopt-low.
lr_kunnr-high = ls_selopt-high.
APPEND lr_kunnr.
CLEAR: lr_kunnr.
ENDLOOP.
Then using the lr_kunnr range in your select statement.
regards,
Archer -
Populate and display internal table results using search help exit...
I have copied F4IF_SHLP_EXIT_EXAMPLE and made changes. I want this search help exit to populate and display contents related to 'FIELD1' when the user enters a specific value for it in the search help screen, meaning when the user restricts the search by that value. For field2, field3, field4, field5, field6, field7, and field8 I am using a custom view.
Following is the code:
TYPES: BEGIN OF t_search,
field2 TYPE field2,
field3 TYPE field3,
field4 TYPE field4,
field5 TYPE field5,
field6 TYPE field6,
field7 TYPE field7,
field8 TYPE field8,
field1 TYPE field1,
END OF t_search.
DATA: it_itab TYPE TABLE OF t_search,
wa TYPE t_search,
wa_selopt TYPE ddshselopt,
wa_fielddescr TYPE dfies.
ranges: r_field1 for std_table1-field1
STEP SELECT (Select values)
FREE: r_field1.
**Get the value entered for FIELD1 in search help
LOOP AT shlp-selopt INTO wa_selopt.
CASE wa_selopt-shlpfield.
WHEN 'FIELD1'.
r_field1-sign = wa_selopt-sign.
r_field1-option = wa_selopt-option.
r_field1-low = wa_selopt-low.
r_field1-high = wa_selopt-high.
APPEND r_field1.
CLEAR: r_field1.
ENDCASE.
ENDLOOP.
**Select 'ID' and 'FIELD1' from table into lt_itab
SELECT id field1
INTO TABLE lt_itab
FROM std_table1
WHERE field1 IN r_field1.
IF sy-subrc = 0.
**Now, based on the particular IDs from lt_itab, I need to select other values
from other tables which also have 'ID' as the key.
SELECT std_table2~field2
std_table2~field3
std_table3~field4
std_table3~field5
std_table3~field6
std_table4~field7
std_table4~field8
std_table1~field1
INTO CORRESPONDING FIELDS OF TABLE it_itab
FROM std_table2
INNER JOIN std_table3 ON
std_table3mandt = std_table2mandt AND
std_table3id = std_table2id
INNER JOIN std_table4 ON
std_table4mandt = std_table2mandt AND
std_table4id = std_table2id
INNER JOIN std_table1 ON
std_table1mandt = std_table2mandt AND std_table1id = std_table2id
WHERE
std_table1~field1 IN r_field1.
'id' is common in all the std_tables --> std_table1, std_table2, std_table3, std_table4.
STEP DISP (Display values)
**Then I need to gather all the results in my internal table it_itab and display
in search help results for the value of FIELD1 entered by the user in the search help.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'FIELD1'
fieldname = 'FIELD1'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = it_itab
CHANGING
shlp = shlp
callcontrol = callcontrol.
I am not getting all the data in my internal table and wanted to know if there is anyting wrong in my select statement.
Any guidance will be appreciated and awarded appropriate points.
Thanks.the webdynpro fieldname and the search help input parameter name were made same.
-
How to create Search help exit, and then assign it to a collective search
hi gurus,
i have an intersting question for you, well my scenario is like i have to create a search help exit using some function module cause i didt found table for my search help but i can find the value through FM, i know we can create a search help exit and then assign it to collective search help,
my problem is what are the parameters i need to pass to this search help exit FM, and in the function module i want to use the value entered on the f4 selection screen to extract data through FM. i need to give a solution asap.
any reply will be highly appreciated
n rewards points for sure.
thanks mandyHi mandy,
Have a look at this code,
FUNCTION SHLP_SHOW_LIST.
""Local interface:
*" IMPORTING
*" VALUE(PLANT) TYPE WERKS_D OPTIONAL
*" VALUE(DISPLAY_ONLY) TYPE FLAG OPTIONAL
*" EXPORTING
*" REFERENCE(ITEM_SELECTED) TYPE CHAR20
*" EXCEPTIONS
*" POPUP_CANCELED
TYPE-POOLS SHLP .
CONSTANTS:
co_shlpname TYPE shlpname VALUE 'SHLP_CONTAINER',
co_shlpfield_itemalias TYPE ddshlpsfld VALUE 'CONTAINER'.
DATA: l_shlp TYPE shlp_descr_t,
l_subrc TYPE sysubrc,
l_return_tab TYPE STANDARD TABLE OF ddshretval,
l_return_wa TYPE ddshretval,
l_interface_wa TYPE ddshiface.
Get details for search help
CLEAR l_shlp.
l_shlp-shlpname = co_shlpname.
l_shlp-shlptype = 'SH'.
CALL FUNCTION 'DD_SHLP_GET_HELPMETHOD'
CHANGING
shlp = l_shlp.
Assign virtual screen field
READ TABLE l_shlp-interface INTO l_interface_wa
WITH KEY shlpfield = co_shlpfield_itemalias.
l_interface_wa-value = space.
l_interface_wa-valtabname = 'X2'. "virtuel screen field
l_interface_wa-valfield = 'Y2'. "virtuel screen field
MODIFY l_shlp-interface FROM l_interface_wa INDEX sy-tabix.
Call F4 popup
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = l_shlp
disponly = display_only
IMPORTING
rc = l_subrc
TABLES
return_values = l_return_tab
EXCEPTIONS
OTHERS = 0.
IF sy-subrc = 0 AND l_subrc = 0.
Value selected
READ TABLE l_return_tab INDEX 1 INTO l_return_wa.
item_selected = l_return_wa-fieldval.
ELSE.
Popup canceled / no value selected
RAISE popup_canceled.
ENDIF.
ENDFUNCTION.
make sure to call these FMs and populate accordingly...
Thanks
Madhu -
SELECT-OPTIONS Values via DYNP_VALUES_READ in a Search Help Exit
Hi all,
I appended a standard search help of a standard report with a search help of my own. Now I am trying to retrieve the values the user has entered into the selection screen of the report using the FM DYNP_VALUES_READ in my search help exit FM. It works fine for single values defined by PARAMETERS and for low and high values of SELECT-OPTIONS (so_example-LOW and so_example-HIGH), but I need the entire SELECT-OPTIONS table. I cannot make any changes in the report, so do you have any solutions I could implement in my search help exit FM?
Many thanks!
Vladan
P.S.
I found several questions on this topic but they either just different enough not to be applicable in my case or the formatting has made the replies useless.Most of the time we just copy the standard FM F4IF_SHLP_EXIT_EXAMPLE to a new one and give our own name.
You can see that on the 12th line there is the following code
* EXIT immediately, if you do not want to handle this step
IF CALLCONTROL-STEP <> 'SELONE' AND
CALLCONTROL-STEP <> 'SELECT' AND
" AND SO ON
CALLCONTROL-STEP <> 'DISP'.
EXIT.
ENDIF.
you should comment those line in order for the control to reach the PRESEL step (which is already defined in the SH Exit FM) which is on line 44.
Most of the time, when someone says they don't hit PRESEL, this is the problem.
Edited by: ajithkpunnoose on Jan 5, 2012 12:00 PM -
Adding a new field to the search help exit
Hi friends,
adding a new field to the search help exit. How does it work ?
Thanks in advace
IlhanThe search help exit allows you to modify functionality of search help. If you add a new field to the
parameter list that is not contained on the selection method you can manually populate it within the search
help exit.
This would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
Therefore you need to read table SHLP in-order to locate position of value within string.
Example:
To find position of personnel number (PERNR) within elemenory search
help M_PREMN you would use the following code:
Loop at record_tab.
read table shlp-fielddescr into wa_shlp
with key tabname = 'M_PREMN'
fieldname = 'PERNR'.
You could then use this information in the following way, for
example, to find a persons organisation unit:
select orgeh endda
up to 1 rows
from pa0001
into (ld_orgeh,ld_endda)
where pernr eq record_tab-string+wa_shlp-offset(8)
u201Cpernr length is 8
order by endda descending.
endselect.
select single orgtx
from t527x
into ld_orgtxt
where orgeh eq ld_orgeh and
sprsl eq sy-langu and
( endda ge sy-datum and
begda le sy-datum ).
If you have added a new field to the end of the parameters list
the next step is to populate it by adding this data to the end of
the record_tab string:
concatenate record_tab-string ld_orgtxt into record_tab-string.
modify record_tab.
endloop. -
Steps for creation of search help exit for a search help
Hi,
I have created a search help. I need to create a search help exit for this search help.
Please let me know how to create a search help exit as well as how to link it to my search help.1)Copy the FM F4IF_SHLP_EXIT_EXAMPLE to write your own FM. (check the documentation and coding of FM F4IF_SHLP_EXIT_EXAMPLE).
2)write your code depending upon the functionality you want.
3)attach the FM in search help through SE11 in "search help exit" field.
A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
A search help exit is called at certain timepoints in the input help process.
Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
This module has been created as an example for the interface and design of Search help exits in Search help.
All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
A search help exit is called repeatedly in connection with several events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
For more detailed information please refer to the documentation describing the concept of the search help exit.
The module must react with an immediate EXIT to all steps that it does not know or does not want to handle. -
Help needed in search help exit
Hi Experts,
I have used a search help exit in IL03 transaction to include a field in a particular search tab. I have written the code in timepoint PRESEL1 and it is showing the search field in that search tab when I directly enter into that tab.
But the problem comes when I go to some other search tab and come to the required search tab the field which I have included is not displayed.
Please give your suggestions to solve this problem.
Thanks in Advance,
Arasu KHi,
In that case. you can do one thing.
in your search help, following field will have the value entred by the user.
SHLP_TAB[1]-INTERFACE[1]-VALUE
Read this table SHLP_TAB index 1 and do your logic.
Reward points if useful.
Regards,
Niyaz
Maybe you are looking for
-
LSMW - Logical File Path not pointing to Physical Path
Hi All, I'm trying to upload some MIGO goods movement transactions through LSMW. I'm to step 7, specifying files, and am getting the error "No logical file path has been specified. I saw another thread which helped me, but I am still stuck after re
-
Mass creation of Marketing attributes under attribute set
Hi All, Please let me know if there is a possibility for mass creation of Marketing attributes and marketing attribute sets in SAP CRM Standard functionality. I am not talking about below " creation & assignment to BPs using the expert tools. " CRMD_
-
Active Directory domain migration with Exchange 2010, System Center 2012 R2 and File Servers
Greeting dear colleagues! I got a task to migrate existing Active Directory domain to a new froest and a brand new domain. I have a single domain with Forest/Domain level 2003 and two DC (2008 R2 and 2012 R2). My domain contains Exchange 2010 Organiz
-
i changed my primary email,and now when i go to buy itune songs,my old email keeps coming up,how do i get my old email off of the phone
-
HELP - FRUSTRATED - iTunes 7 Downloaded but will not install
Hi....I have downloaded iTunes. But when I then run the iTunesSetup.exe to install it, I keep getting the exact same message: "The installation of QuickTime did not complete successfully. iTunes requires QuickTime" That's it. No error number or furth