Dynamic Search Help in webdynpro abap
Hi,
I have 2 fields in my UI- say Object Type and Object Name. Both the fields are search helps which i have created.
Based on the selection made in the Object Type, the Object Name search help will be populated with values accordingly.
For Ex: Object Type can have values - Program, Project Cluster, etc.
If i select Program, then in my Object Name search help i should get values ERP Package 5.0, Netweaver, etc
and if i select Project Cluster, then in my Object Name search help i should get values HCM, FIN, etc.
How can i do this?
Regards,
Wilma.
Hi Ralf.
I checked the test application WDR_TEST_DDIC_SHLP. If it had behaved like the way you explained, then it would perfectly match my requirement.
But in the test application, in the search help for Country, there are no values for the country that i can select and only cities can be selected. The entry that i select in the input help for Country forms the input for the city field.
Kindly check and let me know.
Regards,
Victoria Wilma
Similar Messages
-
Organizational Structure Search Help in Webdynpro ABAP
Hi,
I need an organizational structure search help in webdynpro abap.
It should list the organizational structure in tree view like RH_OBJID_REQUEST lists.
I tried to use RH_OBJID_REQUEST function in webdynpro but I got " A RAISE statement in the program
"CL_GUI_CUSTOM_CONTAINER=======CP" raised theexception condition "CNTL_ERROR" short dump.
Is there such a function for webdynpro abap and how can I achive this with select options?
Thanks in advance..
MERALGreat article. I also had this probelm a year ago. My problems questions are:
Is it possible to select more then one entry in the tree?
What about selecting all childrens with one click?
In my solution I inserted this tree, into a table and the table had a checkbox, row, so the user can check the required org units, (more then one) and there was a separate button, for "select all children" -
hi all,
I am new to webdynpro abap.i want to implement search help for input feilds in my application,.can anyone give me step by step procedure to create search help
thanx in advance.
regards,
AnushaHi Anusha,
Web Dynpro provides two types of pre-implemented search helps :
1. ABAP Dictionary Search help
2. OVS
[Input Help for WDA|http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm]
I have created a blog on implementing OVS help in WDA. You can refer that for sample code.
[OVS help in WDA|/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap]
In addition, you can also provide help through Drop Downs and Select options.
[Working with Select options in WDA|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e]
Plz reward if helpful.
Thanks.
Shruti -
Clear error message on F4 standard search help in webdynpro abap
Hi Gurus,
We have a check on the data entered by the user in our webdynpro producing a error message if the data are not correct. My problem is that this message is also diplayed in the search help afterwards when the user clicks on the search help. I know how to clear an error message but I can't find the event triggered by the F4 search help to put my code. The search help is a standard search help and thus I can't modify it.
All I want is to find the event triggered when the user clicks on the search help. The field is in an alv but the alv click or alv action are not triggered when the user clicks on the search help.
Thanks for your help in advance guys.Yes. It is called a Freely Defined Value Help if you want to have complete control of the UI that is displayed in the dialog:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm -
Custom search help in webdynpro ABAP
Hi,
I have a requirement where I have to display a popup with tree ALV on F4 for a field in a webdnpro ABAP application. Is it possible to call a popup on pressing F4 for a field. If yes please let me know how.
Regards
NilanjanYes. It is called a Freely Defined Value Help if you want to have complete control of the UI that is displayed in the dialog:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm -
Dynamic Search Help in WDA Table
Hello Expert,
I would like to assign the standard search help for Webdynpro abap table in item level,
I know using the below code we can assign the search help for particular input field ,
DATA lo_nd_info TYPE REF TO if_wd_context_node_info.
lo_nd_info = lo_nd_eqt_partner->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'PARTNER' " Your attribute Name
value_help_mode = '121' " Valid value help mode
value_help = 'DEBI'. " Search help name.
But my scenario is i have one table which is having threee columns,
Partner type partner name,
so based on the partner type i would like to call the standard search help ,
if the line item 1 is having partner type 'KU' then i need to assign DEBI search help
if the line item 2 is having Partner type 'LI' or 'AG' then i need to assign KRED search help ,
If the line item 3 is having Partner type 'AP' then i need to assign VKNK search help
so please help me to achieve the same.
Thanks,
SankarOne method to achieve this functionality would be :
1. Find out the maintenance screen and function group of the table maintenance generator say 2000 and ZFGRP.
2. Go to SE80 and open ZFGRP screen number 2000.
3. For Field number 1 , it is assumed that there is already a standard search help for it.
4. For field 2 - create a module in Process on Value Request Event in PAI of the maintenance screen ( Similar to any module pool program)
5. Use FM DYNP_VALUES_READ to read the value of field 1 on the screen ( Because this is before enter is pressed and field 1 on the module pool porogram would not be populated with value )
6. While creating internal table for this FM, filter out all the values that are not required based on value obtained above.
call the FM F4IF_INT_TABLE_VALUE_REQUEST( In Process on Value request event of field 2 in PAI) -
How Can I get multi column values from dynamic search help?
Hi Gurus;
I'm using dynamic search help in my program.
I want to get multi column values from search help. But I dont know solution for this issue.
I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
How Can I get multi column values from dynamic search help?
Thanks.Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
There are like 3 steps.
You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined (just to keep it straight, i will be putting here) data: It_return type standard table of ddshretval.
Next step is to call the function module. Make sure you have values in IT_VALTAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FLD2'
value_org = 'S'
tables
value_tab = It_VALTAB
return_tab = It_return
dynpfld_mapping = It_dynpfld
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.
else.
perform get_selected_fields tables It_return.
endif.
The code within the perform GET_SELECTED_FIELDS - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
I need a internal table as well as a work area here. like,
data: lt_fields type table of dynpread,
la_fields type dynpread.
field-symbols: <fs_return> type ddshretval.
so fill out LT_FIELDS from the IT_RETURN table
loop at lt_return assigning <fs_return>.
la_fields-fieldname = <fs_return>-retfield.
la_fields-fieldvalue = <fs_return>-fieldval.
append la_fields to lt_fields.
clear: la_fields.
endloop.
Call the FM to update the dynpro
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-repid
dynumb = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
tables
dynpfields = lt_fields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
good luck -
How to create generic search help in wd abap
Hi experts,
How to create generic search help in wd abap.
Regards...
Arun.Hi Arun,
Following links have step by step procedures for creating search helps and other related topics.
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm">ABAP Dictionary Search Help for WD</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9b/c51c42735b5133e10000000a155106/content.htm">Input Help in WD ABAP</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm">Search Helps</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm">Creating Elementary Search Help</a>
Regards,
Neha
<i><b>PS:Reward if helpful</b></i> -
Dynamic Search-help in Selection Screen Parameter
Hi,
Please can you provide some solution for the below requirements.
I have 2 fields ( Organization channel and Team ) in my selection screen. Under one organization channel there can be many teams.
And I am trying a dynamic search help on both the fields using event AT selection-screen on Value request and
FM 'F4IF_INT_TABLE_VALUE_REQUEST'.
But I am facing the below issue .
First I am giving some values in field 'Organization channel' . Then I am clicking on F4 button on my 2nd field 'Team' .
and in debugging mode under the event 'At selection-screen on value request', Select option SO_Team is blank.
The value provided in the Organiozation channel is not being captured in SO_TEAM-Low
Please have a look on the below codes.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_team-low .
if not so_orgchannel-low is initial. "Here so_orgchannel-low value is coming as Zeros.
select * from HRP1001 into table GT_HRP1001
where objid = so_orgchannel-low.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ORGID'
value_org = 'S'
dynpprog = 'ZTEST'
dynpnr = '1000'
TABLES
value_tab = gt_hrp1001
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.Hi,
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_team-low .
"Add This Begin
CLEAR t_dynpfields.
REFRESH t_dynpfields.
t_dynpfields-fieldname = 'SO_ORGCHANNEL-LOW'.
APPEND t_dynpfields.
w_repid = sy-repid.
* reading Screen variables and Values
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = w_repid
dynumb = sy-dynnr
TABLES
dynpfields = t_dynpfields
EXCEPTIONS
OTHERS.
READ TABLE t_dynpfields INDEX 1.
so_orgchannel-low = t_dynpfields-fieldvalue.
"Add this End
if not so_orgchannel-low is initial. "Your code is here
select * from HRP1001 into table GT_HRP1001
where objid = so_orgchannel-low.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ORGID'
value_org = 'S'
dynpprog = 'ZTEST'
dynpnr = '1000'
TABLES
value_tab = gt_hrp1001
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
Regards,
Prabhudas -
How to put dynamic search help in web dynpro ABAP.
Hi,
I have a table element with two columns in my web dynpro ABAP.Both the columns are F4 helps.
Based on the value of the first column,the F4 help of second column must change dynamically.Kindly tell me how to do this.
Thanks & Regards,
Raji.Hi ,
Use this code to dynamically assign search help and to deactivate search helps.
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'ATTR1' " Your attribute Name
value_help_mode = '121' " Valid value help mode
value_help = 'Z187442'. " Search help name
The various possible values that you can pass to value_help_mode are as shown below.
deactivated 101
automatic 111
ddic 121
ovs 131 -
Search Help in Webdynpro For ABAP
Hi Experts,
In my application I want to attach search help to a field. My problem is that table field for which I am creating search help contains duplicate values. I dont want those duplicate values. How can I achieve this?
I am using trfgr field of table T510.
Please help.
Thanks & Regards,
Pratibha ShuklaI have coded like this . But I am getting short dumb. It says field symbol not assigned. Please help.
FUNCTION zexit_search_trfgr.
*"*"Local Interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCT
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" REFERENCE(SHLP) TYPE SHLP_DESCR
*" REFERENCE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
DATA : BEGIN OF it_trfgr OCCURS 10,
trfgr TYPE pa0008-trfgr,
END OF it_trfgr.
DATA : itab LIKE LINE OF it_trfgr.
IF callcontrol-step = 'SELECT'.
*******Fetch trfgr from table t510
SELECT DISTINCT trfgr FROM t510 INTO TABLE it_trfgr WHERE molga = 40.
CALL FUNCTION 'F4UT_RESULTS_MAP'
EXPORTING
SOURCE_STRUCTURE = 'T510'
* APPLY_RESTRICTIONS = ' '
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = it_trfgr
changing
shlp = shlp
callcontrol = callcontrol
* EXCEPTIONS
* ILLEGAL_STRUCTURE = 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.
ENDIF. -
Trigger Automatic Search Help in WebDynpro for ABAP
I have a WDA application for creating a Purchase Order. The first screen has 2 options - one for creating a PO from scratch; and one for copying an original PO.
The second view ('Copy PO') for copying a PO has a single field (PO document) with a Search Help attached (freely programmed). The Search Help works well.
Now for the question:
When firing the second screen ('Copy PO'), I would like to trigger the Search Help without actually entering the view. Is there some way of firing an event that triggers the Search Help without entering the 'Copy PO' view?
Any help would be gratefully accepted.hi gareth.......
a solution for you.....
instead of triggering a search help....
in you wddoinit method... call a popup which ahs a table with all the required values...
so when the user selects one... it has to be bound to an attribute....
which is then passed to the po field.
---regards,
alex b justin -
Dynamic Search Helps In An Input Field
Hi Experts,
I need to populate an input field with different search helps based on the user action i.e when user selects "Audit" i hav to show the audit search help for my input field, when he selects "Audit Plan" i would hav to show audit plan search help.
My Questions >
1> i intend to use the method set_attribute_value_help of the interface if_wd_context_info and do the coding as :-
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'identification' (attribute Name)
value_help_mode = '121'
value_help = 'plm_auditplan'.(Help Name)
Is this the correct way to go if not plz suggest a more appropriate method.
2> in the context for that attribute ,what should i specify for the property input field
Input Help Mode
i.e should it be deactivated , automatic or should i give the dictionary serach help and specify one of the search helps by giving its name.
Your responses will be greatly appreciated,
Chaitanya.Hi Ebru,
Yes, it is possible using OVS, freely programmed and dictionary help.
For OVS, refer this blog: /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
For Dictionary Search Help, refer http://help.sap.com/saphelp_nw70/helpdata/EN/47/9f724642314aabe10000000a42189b/frameset.htm
For freely programmed, refer:
http://help.sap.com/saphelp_nw70/helpdata/EN/47/9ef8cc9b5e3c5ce10000000a421937/content.htm
I hope it helps.
Regards
Arjun -
How to create an elementary and collective search help in webdynpro
Hi all,
my requirement is i have to create an collective search help. and that should be same as other tcode search help functionality.
and now the ztcode is in r3 system and my webynpro development is going on bw system how to copy that tcode from r3 to bw system. and then for my input field is cost center and for this input field i should create the search help functionalty.kindly help me how to achieve this functionality i am new to this webdynpro so kindly send me the detail steps.
Thanks & Regards,
NaveenHi Naveen,
There's no difference to using a collective search help or a regular search help.
in the attribute of the context that you want the search helps to appear for - specify that the input help is of type dictionary search help, then specify that the input help is your collective search help.
Search helps in WDA, if search help is available at dictionary level, no need to create any search help, you get automatically.
If you want to create search help for any input field, another option is using OVS. we have WDR_OVS component for search helps, you need to reuse this component in your custom component, just change some coding according to your requirements you get search help.
Go through these documentation and helps...
http://help.sap.com/saphelp_nw73/helpdata/en/cf/21ee45446011d189700000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw73/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
OVS search help..
http://wiki.sdn.sap.com/wiki/display/Snippets/OVSSearchHelpinWebDynproAbap
freely programmed inputhelp
http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help
http://wiki.sdn.sap.com/wiki/display/WDABAP/UsingSearchhelpattachmentsforWebDynproABAP
Thanks,
Kris. -
Search Help in Webdynpro displays specific text in German language
We have created a custom search help which is being displayed using a custom Webdynpro application. We found that for this search help, although all other texts are displayed in English, a specific text ( 'Show filter criteria' ) is being displayed in German. Also, the same problem exists for search helps used in certain standard Webdynpro applications as well ( eg. WDT_FLIGHTLIST, TEST_DDIC ). Is there any SAP note to address this issue?
Hi,
see SAP note 1050954
Regards, Heidi
Maybe you are looking for
-
I posted a few days ago re failing HDD on mid-2007 iMac. Long story short, took it into Apple store, Genius worked on it for 45 mins before decreeing it in need of new HDD. After considering the expenses of adding memory, new drive, hardware and inst
-
Legacy IDE Hard Drive and DVD Drive
I wondered if anybody could send me in the right direction with this... I have got the A55M-E33 motherboard and try to connect my old hard-drive and DVD drive (both IDE) to the motherboard using IDE to SATA converters. The BIOS detects both drives, h
-
How to run Java Application in Weblogic 8.1
Hi, I'm new to Weblogic 8.1. I just deployed a EJB with WebLogic 8.1 Server and I don't know how to run my Java Application against the EJB I deployed earlier. I tried to run "java Client_1" in a console window. It gives me the following message: C:\
-
Hi everybody, I have some problems with the fft-analysis using the BF537 Blackfin Board: Although the FFT works (I used the debug mode to display the spectrum) pretty good, the whole program takes too much time for execusion. I think the problem is t
-
288Kbps sync on a 22Meg connection!?
Hi guys, I have recently been having some ongoing problems with my phone line which I am still trying to track down. For some reason the modem has become more unreliable lately and has got to the silly point of it resyncing repeatedly. On Monday befo