Creating select option with the search help based on other select option
Hi,
I have displayed a selection screen with two select options S1 and S2.
My requirement is that the values in the search help of S2 should get filled based on the values selected in S1.
Note: User has option to select multiple values in S1.
Does anybody know how to implement this?
Thanks,
Feroz
>
Sanjeeva wrote:
> Hi,
>
> With standard f4 you cannot acheive this. You need to write customise with OVS or Simple value selector by reading S1 selected values.
>
> Thanks,
> Sanjeev
I'm getting fairly tired of seeing this completely incorrect information on this forum. As stated before and already found out by this poster, you can map input and output values between multiple data dictionary search helps. You do NOT have to resort to using OVS for this option.
Similar Messages
-
SELECTION-SCREEN with defined search help
Dear all,
I'd like to specify in my selection screen a variable that will contain the value to display when search help triggered.
DATA: w_lgort LIKE mard-lgort.
DATA: storage(4) TYPE c.
SELECT lgort INTO w_lgort FROM mard WHERE werks = 'p_plant'.
ENDSELECT.
storage = 'w_lgort'.
SELECTION-SCREEN BEGIN OF BLOCK bl1 WITH FRAME TITLE text-204.
PARAMETERS : p_plant LIKE zmm13jpn-mag_emetteur DEFAULT 'C300',
p_store LIKE (storage).
SELECTION-SCREEN END OF BLOCK bl1.
My idea would be that storage contains only result of above select while using LGORT data element.
Any idea?
Regards.Hi cany,
report zabc.
parameters: p_bukrs type t001-bukrs,
p_butxt type t001-butxt,
p_ort01 type t001-ort01,
p_land1 type t001-land1.
data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.
at selection-screen on value-request for p_bukrs.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = 'T001'
fieldname = 'BUKRS'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P_BUKRS'
tables
return_tab = return
exceptions
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
others = 5.
break-point.
refresh dynfields.
read table return with key fieldname = 'P_BUKRS'.
Add it back to the dynpro.
dynfields-fieldname = return-retfield.
dynfields-fieldvalue = return-fieldval.
append dynfields.
Get the company code from db and add to dynpro
data: xt001 type t001.
clear xt001.
select single * into xt001
from t001
where bukrs = return-fieldval.
dynfields-fieldname = 'P_BUTXT'.
dynfields-fieldvalue = xt001-butxt.
append dynfields.
dynfields-fieldname = 'P_ORT01'.
dynfields-fieldvalue = xt001-ort01.
append dynfields.
dynfields-fieldname = 'P_LAND1'.
dynfields-fieldvalue = xt001-land1.
append dynfields.
Update the dynpro values.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynfields
exceptions
others = 8.
start-of-selection. -
SELECT LIST - with values after have values in other Select List
My friends.
I need a select list that is self - complemented, after being selected a value in another select list above.
Can you help?
pesquisarGood afternoon,
Try this for the definition of your select list:
select emp.emp_name as display_column,
emp.emp_id as return_column
from employees emp
where emp.department = :P1_DEPT_NO
order by emp.emp_name;This will look at the select_list called :P1_DEPT_NO, capture the value that is currently selected and then populate the EMPLOYEE select list based on the results. Just use a query like this as the one that defines your second select list.
This seems to be a popular question. Search this forum for other information.
Don.
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :) -
Modifying result of the output of the search help
Hello Experts,
I am creating search help on field FUNCID in table EQUZ. Thing is I need to only display those values of FUNCID which has some values.. i.e if there is blank entry FUNCID in table EQUZ it should not be gettin displayed.
Thanks in advance.
Regards,
saurabh chhatreHi saurabh chhatre,
If u want to hide some values or blank values in search help then try this one.
create the search help and in the Dialpg type choose "dialog with value restriction". then use this in your program. when u execute it, it will ask u to give the condition based on which it will display the search help values. -
When i create the apple ID with the above procedure, i dont see "none" options under credit card selection, please help.
Apple needs people like you.
-
How to limit the search help in the selection screen?
Hi All,
I got a selection option in a selection screen,
say SELECT-OPTIONS KSCHL FOR VAKE-KSCHL.
I want to limit the output list of the search help of this field, e.g. 33 entries for a specific application and usage.
What should I do ?
Thz.Hi,
U can check with these two
<b>... NO-EXTENSION</b>
Effect
The user can only make an entry on one line. Calling the additional "Multiple Selection" screen is not supported and no pushbutton for this appears on the selection screen.
Addition 12
<b>... NO INTERVALS</b>
Effect
The selection option is displayed on the selection screen without a 'to' field. The pushbutton for calling the "Multiple Selection" screen appears immediately after the 'from' field.
This addition thus allows you to generate a simplified display on the selection screen. This is particularly useful if you are not making any range selections for this selection option.
Notes
On the "Multiple Selection" screen, you can also enter ranges for selection options with "NO INTERVALS".
By combining this addition with "NO-EXTENSION", you can restrict the user to entry of a single value for the selection option, but with the possibility of also choosing single value options like 'Greater than' or 'Less than or equal'.
By using the addition " NO INTERVALS" with SELECTION-SCREEN BEGIN OF BLOCK, you can activate the simplified display for all selection options in a block.
The function module SELECT_OPTIONS_RESTRICT allows you to restrict the set of selection options available for a SELECT-OPTION (for example, only single values and patterns, i.e. 'EQ' and 'CP' are allowed). You can also forbid the leading sign 'E' (= 'Exclude from selection'). This means that you can considerably restrict the selections which can be entered on the selection screen.
Just now tried it out to limit the search help u have to use NO-EXTENSION.
<b>Try this simple code.
Tables: mara.
SELECT-OPTIONS: s_matnr FOR MARA-matnr NO-EXTENSION.</b>
Hope this helps.
Kindly reward points and close the thraed if ur problem got solved.
U havent rewarded any points?
Message was edited by: Judith Jessie Selvi -
How to restrict the values for selection in the search help..
hi,
i have a requirement regarding screen programming. i have added a i/o field in a screen and i linked a search help for that field.
i used the standard search help it holds some 15 values for selection...
when i click on the search help i m getting some 15 values for selection. but i dont need all the 15 values. i need only 4 values for selection..can any one help me regarding this...
waiting for ur reply...
Uday.
Edited by: uday13 on May 31, 2010 9:17 AMHello,
Refer the below code and you can provide your own search help to a parameter depending on the value in another parameter:-
PARAMETERS : p_belnr TYPE belnr,
p_bukrs TYPE bukrs.
DATA : BEGIN OF itab OCCURS 0,
bukrs TYPE bukrs,
END OF itab.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
PERFORM f4_bukrs_help USING p_bukrs.
*& Form f4_bukrs_help
FORM f4_bukrs_help USING p_bukrs.
DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
v_belnr TYPE belnr.
CLEAR: tb_dynpfields.
REFRESH: tb_dynpfields.
MOVE 'P_BELNR' TO tb_dynpfields-fieldname.
APPEND tb_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'Z_F4' "program name
dynumb = '1000' "screen number
TABLES
dynpfields = tb_dynpfields
IF sy-subrc NE 0.
ENDIF.
READ TABLE tb_dynpfields INDEX 1.
IF sy-subrc EQ 0.
v_belnr = tb_dynpfields-fieldvalue.
ENDIF.
SELECT bukrs from <db_table> INTO TABLE itab WHERE belnr = v_belnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BURKS' "internal table field
dynpprog = 'Z_F4' "program name
dynpnr = '1000' "screen number
dynprofield = 'P_BUKRS' "screen field name
value_org = 'S'
TABLES
value_tab = itab "internal table
IF sy-subrc NE 0.
ENDIF.
ENDFORM. " f4_bukrs_help
Hope this helps you.
Regards,
Tarun -
I ripped a new CD to iTunes and backed up to the cloud. The songs are already on my iPhone 4S, but I can't get them on my iPad. I already connected the iPad to my laptop and selected "Sync with the iPad over Wi-Fi". On the iPad I forced a Sync. Help!
Try deleting and redownloading by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
How to assign search help using ovs for select options for ALV in web dynpr
how to assign search help using ovs for select options for ALV in web dynpro
Hi,
refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
Thanks,
Chandra -
Enhancing standard (single select)search help for Multiple value selection
Hi,
Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
Is there a way to do it.
I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
Appreciate your help,
Thanks,
Sri
Edited by: Sri on Sep 9, 2010 8:50 PM
Edited by: Sri on Sep 9, 2010 8:52 PMAs far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me. -
How to display our own selected data in a search help using a exit
Hello,
I had created a Search Help Exit to restrict the values to be displayed in the search help. This code was written under the event 'DISP' in the exit. But it is not giving the desired result. So I want to replace the RECORD_TAB of the exit with my own selected data. For this I had written code for selection under the event 'SELECT'. But when I try to overwrite RECORD_TAB with this, this create errors.
What should I do to overwrite the values of the RECORD_TAB field with my own values?
Regards,
AbijithHi,
This is how we implemented the code modify the values in search help exit.
Check if display process button is pressed
IF callcontrol-step = 'DISP'.
Read the parameter ID for company code.
GET PARAMETER ID 'BUK' FIELD lv_bukrs.
IF sy-subrc EQ 0.
lwa_bukrs-sign = 'I'.
lwa_bukrs-option = 'EQ'.
lwa_bukrs-low = lv_bukrs.
APPEND lwa_bukrs TO lr_bukrs.
ENDIF.
Check if any entry is made in Test account/Testity account name
LOOP AT shlp-selopt INTO lwa_selopt.
CASE lwa_selopt-shlpfield.
WHEN 'ZZTEST'.
lwa_roy-sign = lwa_selopt-sign.
lwa_roy-option = lwa_selopt-option.
lwa_roy-low = lwa_selopt-low.
APPEND lwa_roy TO lr_roy.
WHEN 'ZZTEST_NAME'.
lwa_roy_name-sign = lwa_selopt-sign.
lwa_roy_name-option = lwa_selopt-option.
lwa_roy_name-low = lwa_selopt-low.
APPEND lwa_roy_name TO lr_roy_name.
ENDCASE.
ENDLOOP.
Get customer in entered for a company code
SELECT kunnr
bukrs
FROM knb1
INTO TABLE lt_knb1
WHERE kunnr IN lr_roy
AND bukrs IN lr_bukrs.
IF sy-subrc EQ 0.
SORT lt_knb1 BY kunnr.
Get customer name for the customer.
SELECT kunnr
name1
FROM kna1
INTO TABLE lt_kna1
FOR ALL ENTRIES IN lt_knb1
WHERE kunnr EQ lt_knb1-kunnr
AND mcod1 IN lr_roy_name.
IF sy-subrc EQ 0.
SORT lt_kna1 BY kunnr.
ENDIF.
ENDIF.
Get Values for Testty account selected by standard search help
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
parameter = 'Ztest'
fieldname = 'Ztest' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
results_tab = lt_test_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
Get Values for Testty account Name selected by standard search help
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
parameter = 'Ztest1'
fieldname = 'Ztest1' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
results_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
LOOP AT lt_knb1 INTO lwa_knb1.
CLEAR lwa_kna1.
READ TABLE lt_kna1
INTO lwa_kna1
WITH KEY kunnr = lwa_knb1-kunnr
BINARY SEARCH.
IF sy-subrc EQ 0.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lwa_kna1-kunnr
IMPORTING
output = lv_kunnr.
lwa_roy_help-ztest1 = lv_kunnr.
lwa_roy_help-ztest = lwa_kna1-name1.
APPEND lwa_roy_help TO lt_roy_help .
ENDIF.
ENDLOOP.
SORT lt_ztest_help.
DELETE ADJACENT DUPLICATES FROM lt_roy_help COMPARING ZTEST1.
Finally transport the computed numbers into the search help data.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'ZTEST1'
fieldname = 'ZTEST1'" Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
source_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
Finally transport the computed numbers into the search help data.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'ZTEST''
fieldname = 'ZTEST'' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
source_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
ENDIF.
Nabheet -
Do we have search help facility in variable selection (F4 help).
Hi All,
At my client place users are comfort with R/3 search help (F4), and looking for the same feature in Bex Reporting. Is it possible to have the same kind of feature in Bex reports.
Example.
In R/3 T-Code MB5B, user searches with material description or with some other options like sales material by general product hierarchy. Can we get the same kind of feature.
And my client says that if we drop down for material it is taking huge amount of time to display the material numbers and description, we want to know how to reduce the time for displaying the material or customer master data text in variable selections.
In Bex we are aware of material text is going to display as small or medium or long descriptions, when we drop down.
Your suggestions are most valuable to us.
Thanks in Advance.
AkashGoto se11
in data type : put KIDNO change mode ... avoid the messges ....
there in theDefinition : put your new Search Help activate it ....
so that it will be attached..
otherwise there so many ways of attaching the serach help for F4 ..
Implementing search Helps
Search helps can be implemented in a variety of ways:
1 .Add to Table field Added via SE11: Place cursor on desired field within database and select menu path Goto->Search help->for field
Effect: If field used to create screen field, search help will be called when user executes F4/drop down input help. All fields on screen will be populated if appropriate fields exist in search help and screen.
2.Add to Table Added via SE11: Place cursor on desired field within database and select menu path Goto->Search help->for table
3.Add to Data element Added via SE11: Select desired data element (double click), enter search help name and parameters in appropriate fields on screen. Will be applied to all fields associated with that data element
4.Add to Screen field Added via screen painter: One of field attributes is search help. Will only populate the one screen field.
5.Add to Sel. screen parameter (MATCHCODE) Added using 'matchcode' addition for parameters declaration: Search help name must be no more than 5 characters long.
e.g. PARAMETER p_prog LIKE trdir-name MATCHCODE OBJECT zsh.
Rewatrd points if it is usefull ...
Girish -
The PDF has fields to fill in but then to save a copy I need to "print" to PDF not save as a pdf because that is not an option with the document. Is there a way to do this? HELP!
Sorry I thought was just a one off, it would be no use for large volumes.
Do you not have this avaiable in the print menu in Preview with these documents?
I have also found a link on the Adobe web site that discusses that this facilty is enabled by the creater of the PDF.
http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd61510979419 5ff-7e0d.w.html
If you do a web search there are various claims on how to save a protected PDF, I have'nt a way to test the proceedures. I would want a copy of any forms that I sent off, not sure why they protect them in this way, there must be a reason. -
How to restrict the results in the search help
Hi Friends,
My current assignment calls for a program using search help. The scenario is.. there are different radio buttons for organizational units and if a unit is selected, corresponding users need to be displayed in the screen. Multiple selection should be allowed.
I created the search help and attached it to the screen field userid. I am able to display all the users.
But my problem is , i need to consider the organizational unit before displaying the users... If the radio button for A/R is selected, only the A/R should be displayed.....
Is there any way that we could restrict the entries in the search help? Please help me with your expert advices and
suggestions.
Thanks
PoornimaHi,
Refer this link:
http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
Regards,
Prashant -
Problem with custom search help for std SD_DEBI
Hi,
I have created a custom zcustom search help and included in std search help SD_DEBI.
In the custom serach help i have added the fields ktokd and sales area fields(sales org, Disb channel, division).
now when i goto va01 transaction and hit F4 for sold to party i was able view the KTOKD and sales area fields in the custom tab
when i select the values from f4 help and hit enter they are not getting displayed in sold to party field.
when i select only sales area fields from f4 and press enter they are getting displayed in sold to party field.
problem is with the ktokd field that i have included.
Any suggestions please let me knowHi deepti,
I think you have missed parameter assignment from your Z append search help to standard search help.
Select the search help and click on Param Assignment button and assign the refernece parameter(KUNNR) of your
append search help to std collective search help (KUNNR).
Thanks,
Pawan
Maybe you are looking for
-
Can our hp laserjet enterprise 500 color printer m551use 67lb card stock?
The printer specifications list card stock but no weights. This question was solved. View Solution.
-
Help! Anti-Virus Software
I recently bought a macbook pro two weeks ago and with my previous laptops (they were windows) ive always had to get anti-virus software. Do i need security for my macbook pro?
-
When i receive an invite from a different time zone, it adds it to the calendar with that time zone instead of mine and shows "floating" instead of the timezone... how do I solve this?
-
Pinch to Zoom not working - iOS6
Hi Just upgraded to iOS6 on my 4S and noticed pinch to zoom is not working on any browser Safari/Chrome. Is this a known bug? BTW, upgrade was smoth and hassle free. - Xpert_Warrior
-
My wireless keyboard isn't paired with my iMac. I don't have a keyboard that isn't wireless, and my computer is locked with password protection. HELP!