Calling DDIC search help
Hello
Is it possible to call a DDIC search help within a WD application without binding it to an input field. We are looking for a way to call a search help on a button pressed event.
Regards, Mathias
Hi Mathias,
Using CL_WDR_VALUE_HELP_HANDLER=>HANDLE_VALUE_HELP is a very easy solution to this problem but, you are advised not follow this approach of using this class & method as they may be stopped at any time by SAP. All the classes which start with CL_WDR* are meant for internal use by SAP and are not meant for use by customers. We are supposed to use only classes which start with CL_WD*. Try go through this [thread |CALL SEARCH HELP IN WEB DYNPRO;which deals with the same same issue.
You can try resolve this problem by creating an [Freely Programmed Value Help|https://wiki.sdn.sap.com/wiki/display/WDABAP/Freely%2bprogrammed%2binput%2bhelp] & when you press on the pushbutton you can call this search help. You can try go through this [thread |freely programed F4 help;where I have explained about how you can create an Freely Programmed value help.
Regards,
Uday
Similar Messages
-
How to call a Search help in a function module?
Hi Experts,
I am a novice to ABAP, I am working on search helps. My requirement is to call a search help in a function module.
Can anyone please throw some light on this.
Any inputs will be helpful.
Thanks,
Amitayes you can do that..
in side the source code ..
write the select statement according to requirement and pass the internal table to below function moduel and return field to yor help field..
call the below fm inside the function module..
'POPUP_WITH_TABLE_DISPLAY' or 'REUSE_ALV_POPUP_TO_SELECT'
see the sample code...
FUNCTION Z_MFG_PLANTS_F4 .
"*"Local Interface:
" IMPORTING
" REFERENCE(W_WERKS) TYPE WERKS OPTIONAL
" IMPORTING
" REFERENCE(W_MATNR) TYPE MANTR OPTIONAL
Alv popup display
DATA : gc_selfield TYPE slis_selfield,
gt_fieldcat_drd TYPE slis_t_fieldcat_alv WITH HEADER LINE.
p_werks = W_WERKS.
data : begin of t_marc occurs 0,
werks type werks,
matnr type matnr,
end of t_marc
select matnr werks from marc into table t_marc where werks = p_werks.
IF t_disp[] IS NOT INITIAL.
gt_fieldcat_drd-seltext_m = 'Material'.
gt_fieldcat_drd-fieldname = 'MATNR'.
APPEND gt_fieldcat_drd.
CLEAR : gt_fieldcat_drd.
gt_fieldcat_drd-seltext_m = 'WERKS'.
gt_fieldcat_drd-fieldname = ''WERKS'.
APPEND gt_fieldcat_drd.
CLEAR : gt_fieldcat_drd.
Allow the user to select the required plant
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Material Selection for Plant'
i_selection = 'X'
i_screen_start_column = 5
i_screen_start_line = 5
i_screen_end_column = 70
i_screen_end_line = 20
i_tabname = 'T_MARC'
it_fieldcat = gt_fieldcat_drd[]
IMPORTING
es_selfield = gc_selfield
TABLES
t_outtab = t_MARC
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc 0.
ENDIF.
READ TABLE t_MARC INDEX gc_selfield-tabindex.
IF sy-subrc = 0.
w_matnr = t_matnr-matnr.
ENDIF.
ENDIF.
ENDFUNCTION.
rgrds,
Shweta -
Hi all,
Is there any Function Module which can be used to call a search help and read the values returned by this search help?
Thanks,
SukruHi,
Try this FM to read the techinical attributes of any Search help
F4IF_GET_SHLP_DESCR
F4IF_SELECT_VALUES
Regards,
Karthik. -
Call SE11 Search Help through ABAP code.
Hello,
I have a requirement in which I need to call various search helps created through SE11 in a Function Module. I want the Search help to return the Values which I would use in my Function Module.
Please suggest if there's a standard FM/ Statement to process SE11 Search helps.
Thanks,
ShalabhTYPE-POOLS: shlp.
DATA: l_shlp TYPE shlp_descr_t,
l_wa TYPE ddshiface,
l_bukrs TYPE char50,
l_repid TYPE syrepid,
L_DYNNR TYPE SYDYNNR,
l_ret_val LIKE ddshretval OCCURS 0 WITH HEADER LINE,
l_t_fields TYPE dynpread OCCURS 0 WITH HEADER LINE.
PARAMETERS: p_bukrs TYPE pa0001-bukrs,
p_werks TYPE pa0001-werks,
p_btrtl TYPE pa0001-btrtl.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks.
FIELD-SYMBOLS <fs> TYPE ddshiface.
l_repid = sy-repid.
L_DYNNR = SY-DYNNR.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = 'H_T500P'
* SHLPTYPE = 'SH'
IMPORTING
shlp = l_shlp
LOOP AT l_shlp-interface INTO l_wa.
IF l_wa-shlpfield EQ 'BUKRS'.
l_wa-valtabname = 'PA0001'.
l_wa-valfield = 'BUKRS'.
ELSEIF l_wa-shlpfield EQ 'PERSA'.
l_wa-valtabname = 'PA0001'.
l_wa-valfield = 'WERKS'.
ENDIF.
MODIFY l_shlp-interface FROM l_wa.
ENDLOOP.
* Process standard searchhelp
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = l_shlp
TABLES
return_values = l_ret_val. -
FM : to call collective Search help and update two fields in SSCR
Hi Experts,
I have problem while using collective serach help.
My scenario is using Collective Search help thru that i want to update 2 fields in my selection screen.
Thru this function module F4IF_INT_TABLE_VALUE_REQUEST i can mapping and update two fields using DYNP_VALUE_UPDATE but using this function module i can't able to call my Collective Search help
in other way
Thru F4IF_FIELD_VALUE_REQUEST i can able to call the collective search help but _i can't mapping field and can't updated the
selection screen field_
Is any otherway to do it, Please help me ASAP.
Regards,
Florian.Hi Friends,
I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
The search help is working fine and i am getting the entries with the following code.
The problem is i am finding extra popup on screen.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = space
fieldname = space
SEARCHHELP = 'MAT1'
MULTIPLE_CHOICE = 'X'
STEPL = 0
value = 'MATNR'
*dynpprog = progname
*dynpnr = dynnum
*dynprofield = 'CARRIER'
CALLBACK_PROGRAM = 'ZTEST_1_PRA'
CALLBACK_FORM = 'F4CALLBACK'
TABLES
RETURN_TAB = RETURN_TAB
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5. -
Matchcode in OO (call the search help when the button is pressed )
Hi Guys,
I'm using the class cl_dd_document in order to fill a form that contains a input element (cl_dd_input_element) and a button element (cl_dd_button_element).
What I need to do now is to simulate (or build) a matchcode for the button.
For example, the input field is for entering the name of a table, and with the button i want to show all the tables that are elegibles for that field.
Any suggestion?
Regards,
Eric
Message was edited by:
Eric Hernandez PardoHi Uwe,
What I want to know is how to call the search help when the button is pressed. (Like the one in SE80 Transaction)
Regards,
Eric
Message was edited by:
Eric Hernandez Pardo -
I'd like to call a search help COBL_EX_FICO within an abap program.
Do not want to change my structure ... maybe a function module ???
ThanksHi Stephan
I'm not sure to understand ?
You speak about that ?
parameters : p_geber type bp_geber matchcode object cobl_ex_fico. -
Dump with calling Custom search help in SRM Portal
Hi,
We are calling a WBS search help from Shopping Cart Cost Assignment screen.
It works fine with ITS and get the results for WBS elements, but when we try to access the search help through the Portal, after clicking on the FIND button it Dumps "SYSTEM_CANNOT_WRITE_TABLE".
Any Ideas ??
Thanks in Advance...!!!Hi
<u>This is clearly a SAP BASIS problem. You need to install GUI Patch 332 (gui46D_332.exe).</u>
<b>Please go through the links below for more details -></b>
Note 842824 - Disposal of the BC-FES-OAC component
Note 392208 - Automation: Error in the automation controller
Hope this will definitely help.
Do let me know.
Regards
- Atul -
Call elemetary search help dynamically
Hi,
I would like to call an elemetary search help at run time based on the contents of a screen field.
e.g. field 1 (case type: value 1/2/3/4)
field 2 (case number (get the case number from SH1/SH2/SH3/SH4 depending on value in field 1)
I tried using a serach help exit for this purpose, however there are too many problems. Is there a FM that I can use at on value-request to call the specific search help for field case number?
Examples would be appreciated.
Thx. LMHello Liza,
There are quite a few standard Function Modules which help you program your own F4 help in the POV event. You can look for FMs starting with F$IF. One of the most common ones, which might be applicable in your case is F4IF_FIELD_VALUE_REQUEST. this Function Module has got elaborate documentation which must help you solve your problem without much difficulty.
Regards,
Anand Mandalika.
P.S. Reward points for this answer if it has helped you solve your problem. -
How to replace a field's search help of DDIC in FPM feeder class?
Hi All,
I want to replace a field's search help in DDIC structure, for an example, in structure HCMT_BSP_PA_XX_R0009, the field BANKL(Bank Keys) has a search help named 'H_BANKL', I want to replace this search help with other one such as 'H_BANKEY' in the FPM feeder class CL_HRESS_PER_DETAIL, I redefined such method:
method if_fpm_guibb_form~get_definition.
field-symbols: <fs_field_description> like line of et_field_description.
call method super->if_fpm_guibb_form~get_definition
importing
es_message = es_message
eo_field_catalog = eo_field_catalog
et_field_description = et_field_description
et_action_definition = et_action_definition
et_special_groups = et_special_groups
ev_additional_error_info = ev_additional_error_info.
read table et_field_description assigning <fs_field_description> with key name = 'BANKL'.
set search help name of field 'bank key'
if <fs_field_description> is assigned.
<fs_field_description>-ddic_shlp_name = 'H_BANKEY'
endif.
endmethod.
I test it and found the search help window was replaced indeed, but all the value of import/export parameters in the new search help was lost, it means, the value of import paramer BANKS(Bank country) and the export parameter BANKA(bank name) were lost. Only the value of BANKL itself can be returned by the new search help window. Can you give me some suggestions about how to maintain the link( value exchange) between structure HCMT_BSP_PA_XX_R0009 and dynamically defined search help 'H_BANKEY' in FPM feeder class?
I tried to use sap memory ID but it doesn't works well.This question was answered at [Webdynpro Forum|how to replace a field's search help of DDIC in FPM feeder class?;:
That is because for the import and export of DDIC Search help values to work in WDA, not in FPM layer.Feeder Class can do nothing about it. -
How to call elem. Search help on Button click event in WD appilcation
Hello All,
i have requirement to call elem. search help on button click event in WD application. currently i am calling FM F4IF_START_VALUE_REQUEST but getting the short dump as below,
The following error text was processed in the system X31 : Screen output without connection to user.
The error occurred on the application server saps_X31_31 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
SYSTEM-EXIT of program SAPLSDH4
Function: F4_PRESEL_WITH_TABSTRIP of program SAPLSDH4
Form: F4PROZ_STEP_PRESEL of program SAPLSDSD
Function: DD_SHLP_SINGLE_STEP of program SAPLSDSD
Form: F4PROZ_LOOP of program SAPLSDSD
Form: F4PROZ of program SAPLSDSD
Function: F4IF_START_VALUE_REQUEST of program SAPLSDHI
Method: ONACTIONSEARCH_CUSTOMER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
is there any way to achieve the required behaviour.
please let me know.
Regards,
ChandraHi Friends,
I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
The search help is working fine and i am getting the entries with the following code.
The problem is i am finding extra popup on screen.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = space
fieldname = space
SEARCHHELP = 'MAT1'
MULTIPLE_CHOICE = 'X'
STEPL = 0
value = 'MATNR'
*dynpprog = progname
*dynpnr = dynnum
*dynprofield = 'CARRIER'
CALLBACK_PROGRAM = 'ZTEST_1_PRA'
CALLBACK_FORM = 'F4CALLBACK'
TABLES
RETURN_TAB = RETURN_TAB
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5. -
Calling search helps dynamically in module pool program
Hi Experts,
I have created two search helps. I need to call these search helps in my module pool program dynamically for a single field (i.e ZMATNR).
you might be known... if it is a single search help, we can assign that in field attributes.
But here... I need to call different search helps for a single field based on the condition.
Pls help me.
Thanks
RaghuHi,
Use the below function module and pass the search help created in search help field according to the condition.
Process on Value-request.
if condition = A.
call function " F4IF_FIELD_VALUE_REQUEST"
TABNAME =
FIELDNAME =
SEARCHHELP = "Mention search help created
Elseif Conditon =B.
call function " F4IF_FIELD_VALUE_REQUEST"
TABNAME =
FIELDNAME =
SEARCHHELP = "Mention search help created
Endif.
Regards,
Prabhudas -
ABAP sentence/code to call search help
Hello,
I created a search help in the Dictionary, and have used it in a module-pool, filling the corresponding field in the Attributes window.
But now I would like to call that search help from my code, in a different program. Is there any ABAP sentence for that purpose?
Thank you very much.Hi Ivson,
You can use the matchcode object concept.Select-options or parameters can be used in case of type 1 programs.
select-options:s_fail for failtable-failcode matchcode object fail. "Fail is the serach help you created.
regards,
MV -
Calling search helps dynamically
Hi all,
I have two search helps. I need to call these search helps in my Application dynamically for a single field (PARNR) based on PARVW.
If it is a single search help, we can assign that in field attributes.
But here... I need to call different search helps for a single field based on the condition.
Pls help me.
Thanks
KiranHi Kiran,
I Think by using OVS help u can acieve this, using WDR_OVS as used component.
here examples... check
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
Cheers,
Kris.
Edited by: kissnas on Mar 26, 2011 5:17 AM -
Search help call without display
Hi
Can I call a search help within a program but not send the output to the screen? I wish to validate an entry against the logic but not display anything.
Cheers
Ianohh I dont think we can stop display of the search help screen...
the max u can do is display the values directly, without any seleciton screen kind of .. to display...
Reward points if u think usefull
jackandjay.
or u can write some validations code in the At selection screen event..
Message was edited by:
jackandjay
Maybe you are looking for
-
Is there a way to create a recurring revenue/billing event in Projects (r12)?
Is there any way to create a revenue/billing event in Projects that can be scheduled (billed monthly until a specified end date) other than a customization?
-
Configuring relevance ranking evaluator 2.1.2 to MDEX engine 6.4.0
Hi CAN some body explain me why is this occuring when i am trying to configure relevance ranking evaluator to my current endeca work bench Unable to query the MDEX Engine. Specified MDEX Engine is: Host: localhost Port 15000 MDEX Engine query failed:
-
How to check from a shell script that a particular software is installed
Hai friends I want to write a shell script which has to check whether a particular software is installed on the machine, or not. If installed, then what version is it using and the get the version number and which type of installer is it? i mean is i
-
Flash Player not working with OSX 10.9.5
I can't help you but Flash Player 15 simply fails to function on OSX 10.9.5. I tried uninstalling and reinstalling. Simply does not work.
-
How I know if a user define field exist?
Hi, I need to add a user define field to the business partner table using the SDK. Before I add the field I would like to create a condition to know if the field exist. I will appreciate any help Thanks.