Problem in Search Help Exit
Hi Experts,
I have aproblem in Search help Exit. I have added tab to the standard search help by creating elemntry search help and assigned that search help to standard search help. I am calling function module for search help exit. I dont have any selection method.
I am getting the epected results by using the funtion module F4UT_RESULTS_MAP. This funtion module displays all the results list. My only problem i have is when i select the value from the results list the value is not populating in to the field.
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = lt_export
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 1
OTHERS = 2.
The callcontrol-step = 'RETURN'.
how can i handle this step to populate the select record in the field.
Thanks,
Edited by: FRANCIS REDDY on Jun 11, 2008 5:42 PM
Hi check my weblog: https://wiki.sdn.sap.com/wiki/x/du0
Similar Messages
-
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 -
T-code PA30(SAP HR) search help exit problem.
Hi Experts ,
I have a requirement to restrict/show particluar Wage Types in PA30 t-code on basis a company code of a given the employee (PERNR).
The field PERNR/Company code are not there in the parameters or selection method of the elementary search help H_T5W3A(PA0151-LGART field) .
I have managed to add the field pernr to the parameters of this elementary serach help H_T5W3A and also given it as a importing parameter in the custom search help exit FM.
When i debug the PERNR/Company code don't get populated in the FM parameters.
I need this PERNR/Comp code to be poulated in order for the search help entries to be restricted as this is the requirement.
Please tell me what step i am missing here.
Any other workarounds for this requirement.Hi,
Adding an importing parameter just provides the user to restrict the search by entering the field value. For this you need not write a search help exit. You only need to join the tables with the fields properly in the search help. However if the Wage types need to be populated as per the company code and if you have included the company code as an importing parametr, then everytime the user clicks on the F4 help for Wage type, he "has" to enter the company code in the pop up that appears for selection criteria, otherwise how would the search help know the value that you have entered for company code.
Without entering the company code in the pop up that would appear to restrict the search, the search help won't work as there won't be any other way to make it aware of the value entered. -
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 -
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 -
Search help exit for CSH_T003 not working in FB60
Hi. We need to restrict document types per transaction code.
I know we can use authorisations but it would look nicer to actually restrict the list available, so the user can only choose a valid one, rather than choose any but then be told of authorisation problems.
I put a user exit on the collective search help CSH_T003 and also on the individual H_T003 and set a break point right at the start of the user exit, but it does not break in transaction FB60.
Does anyone know if it is possible to use a search help exit in transaction FB60? If it is possible what am I doing wrong?
Thanks a lot for your help.
Regards,
Dave.Hi ,
If you are looking to retrict a specific document type for FB60. You can do so, by customizinng "a/c payable & receivable> Busi Trans > Outgoing invoices/Credit memo>Outgoing invoices/Credit memo enjoy.
Then in Fb60, go to "editing option" and hide the doc type under "Document type option". This will only work if you want to use a specific doc type for FB60.
Thanks
Ron
Edited by: Ron on Dec 2, 2009 8:45 PM -
Customer field account assignment - F4 - search help exit
Hi all,
I have a question with regard to a F4 search help exit I'm try to build for a new CUF in the account assignment (include INCL_EEW_PD_ACC_CSF).
I've successfully created everything (search help + F4 search exit (read R/3 table)), but when I want to include restricted the search with certain filter values entered on the screen I'm stuck.
I tried to achieve this by passing the parameters entered on the search screen to the RFC read table function, but in fact I'm not able to read the <b>screen values</b> (using 'DYNP_VALUES_READ'):
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = lc_dyname_1
dynumb = lc_dynumb_1
translate_to_upper = 'X'
TABLES
dynpfields = li_fields_filter
I'm always getting an invalid dynpro error (I've tried passing SAPLBBP_PDH_ACC, SAPLBBP_SC_UI_ITS, SAPLBBP_CUF,...).
Does anybody know how I can include de filter values of my search screen in my search ?
Thanks in advance,
KristofHi
Which SRM version are you using ? What's your detailed requirement ?
<b>You need to call these function modules inside your search help exit to fetch the user-entered value and then process it accordingly as per your requirements.</b>
<u>Please go through these function modules.</u>
*--- Get the user-entered fieldname
<u> CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'</u>
*--- Map the Results
<u> CALL FUNCTION 'F4UT_RESULTS_MAP'</u>
<b>Other related links -></b>
Re: Search helps - CASE sensitive
Re: Search Help - format problem
Hope this will help.
Regards
- Atul -
Hi all,
In transaction code IW51: Create Notification.
Equipment Field is on Main screen and Ship-to Party is on Subscreen. I have created a new elementary Search help for Ship-to party and attached to collective search help DEBI in which I am displaying one column of equipment number attached to ship-to party.
Requirnment is when user hits F4 on Ship-to party, all the equipment associated to this ship-to party are displayed,if user clicks on any of equipment number , this has to be filled in equipment field which is on Main screen.
I think if fields are on same screen it will be filled automatically, but here the equipment is on main screen.
Please help me if any of you have faced this type of problem.
Thanks in Advance,
VijendraHi,
If you trying supply value for the equipment field in the main screen, i guess you wouldn`t be able to do it using the search help exit. Rather on the exit you can supply values for the equipment field directly.
just for eg. xxxx-equip. = <user selected value>.
Regards -
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 -
How to implement the search help exit to MM01 for Material by product hiera
Hi,
How to implement the search help exit to MM01 T-code for Material by product hierarchy,
but system default it gives the data from MVKE table, my client wants from MARA table,
i created the one Function Module, write this code in that FM.
IF CALLCONTROL-STEP EQ 'DISP'.
REFRESH RECORD_TAB.
SELECT * FROM MARA INTO TABLE RECORD_TAB
WHERE PRDHA =
ENDIF.
I Face the problem what variable i have to pass in WHERE CONDITION, FROM THE MM01 T-code.
is't require to IMPORT variable from MM01 program, what is that import variable, please give me the solution.
thanks to all.Hi there..
check my web blog on search help exit...
[Search help exit code|https://wiki.sdn.sap.com/wiki/x/du0] -
Hello,
We have added a search help exit for sales order reason codes to restrict the values allowed by order type. It works great except when the user changes the order type. The system does not pass thru the search help exit again and refresh the values for the new order type unless the user calls transaction VA01 to start over again. How can I force the system to refresh the search help exit without starting the transaction again?
Thanks.
MaggieFor VA01 there is an inlude MV45AFZZ. In this include there is a form called FORM userexit_field_modification.
Put in this form the following code and the problem is solved.
CASE SCREEN-NAME.
WHEN 'VBAK-AUGRU'.
CALL FUNCTION 'VRM_DELETE_VALUES'
EXPORTING
id = 'VBAK-AUGRU'
ID_CONTAINS_PROGNAME =
EXCEPTIONS
ID_NOT_FOUND = 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.
ENDCASE.
Regards,
Robert -
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 -
Search Help Exit in Modal Display of Search Help
I have created a new search help within the collective search help kred (Vendors/Creditors). The new search help shows up in FK01,2,3 as a separate tab and uses value restriction. Furthermore, I have written a Search Help Exit for it. THE PROBLEM: Everything works fine when in Control(amodal) mode (menu path: help -> settings -> F4 help), but has a problem when in Dialog(modal) mode. The Filter button produces a blank dialog box when selected. Callcontrol-step is PRESEL after the button is selected, do I need to use some function module for this callcontrol-step in the exit to get Filter functionality?
Message was edited by: Jason DeLucaclosed
-
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
Maybe you are looking for
-
Can't update iTunes Match after upgrading to 11.1.5
Hi, Is anyone else (in Australia) having problems with iTunes Match after upgrading to iTunes 11.1.5 on Mac? I've found that whenever I play a track (i.e. update the play count), set a rating or edit a playlist, all my cloud songs become greyed out,
-
I'm trying to determine if I am dealing with an RFC connection issue or just an error resulting from the RFC itself. The error says "Processing of change number...cancelled (raised by...ECCHostXYZ)". I thought this was a problem with my RFC config be
-
How to Find partition name by value ?
hey, I have a big loading process into a certain fact table. the table is partitioned first by interval on a date column and then sub partitioned by hash. this is a big fact table so there are alot of bitmap indexes on it. i want to disable all index
-
Can't Reset Password. Lost all account info.
My husband's computer crashed. He's not very technically oriented and cannot remember his user name or password access for Itunes. I tried his email and it doesn't work. Nor does any other possible combination. So what's my next step. Do I set up a
-
Delivery without shipping point
Hai guru,s Can we do delivery without shipping point.......... In which business process it will work.if yes......... any configurations required.........if .yes..... thanking u one and all who are helping me........ regards anjan