Problem in search help field clear
Hi,
I have two customised screen fields for these i created search helps through FM F4IF_INT_TABLE_VALUE_REQUEST.one is type and another one is subtype.If i select a type then corresponding subtypes will be displayed for subtype field.for this iam maintaining a table with these two fields.i have one blank value for subtype.my problem is if select a type, then i go for subtype if i choose a value it's displaying propely.After that if i select a blank value for subtype it's not replacing the value with blank.it's showing previous value.Here iam sending the code too.
MODULE ONVALUE_REQUEST_ZZINSSUBTYPE1 INPUT.
REFRESH: GT_ZZINSSUBTYPE,
GT_RETURN1.
clear ekko-zzinssubtype1.
SELECT ZZINSTYPE ZZINSSUBTYPE FROM ZINS_DATA INTO TABLE GT_ZZINSSUBTYPE
WHERE ZZINSTYPE = EKKO-ZZINSTYPE1.
CLEAR: GT_RETURN1,
EKKO-zzinssubtype1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'EKKO-ZZINSSUBTYPE1'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = GT_ZZINSSUBTYPE
RETURN_TAB = GT_RETURN1
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
IF SY-SUBRC EQ 0.
clear ekko-zzinssubtype1.
READ TABLE GT_RETURN1 INDEX 1.
MOVE GT_RETURN1-FIELDVAL TO EKKO-ZZINSSUBTYPE1.
ELSE.
MESSAGE 'THERE IS NO INSURANCE SUB TYPE' TYPE 'I'.
ENDIF.
ENDMODULE. " ONVALUE_REQUEST_ZZINSSUBTYPE1 INPUT
Hi,
Try with this
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'ZTABLE5-HEADER_NAME'
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
No need to move
Cheers,
Sasi
Similar Messages
-
Problem with search help and date fields
Dear experts,
I have two text fields and to each i assigned cacs_calendar search help.
It works well normally but if i make text box output only then i cannot select date.
I want that text box in its disabled form can be used to select date from cacs_calendar search help
that i assigned.User should not provide manual input which means fiedls should be otherwise listed in grey.Hi Aditya
If a I/P output field is provided an attribute as output only and though search help is provided , the values in the search help list will also be in read-only mode and u cannot select them at all, may be you can solve ur problem thru different approach.
when a manual entry is done with wrong value which is not present in F4 help/search help list and
execution is done SAP will by default throw error saying invalid value -
Problem in Search help in Table control
Dear ABAPers,
I am using the Table control.In that i am using F4 help.the F4 Value should be based o the
another field in the Table control.how to do this.
Thanks & Regards,
Ashok.I had a similar requirement. In this table control the values for the F4 help for the shipping conditions depend on the vendor the user selects in the first column.
Here is my code:
PROCESS ON VALUE-REQUEST.
FIELD gs_pod_screen-ship_cond
MODULE f4_ship_cond.
MODULE f4_ship_cond INPUT.
PERFORM f4_pod_shipping_conditions.
ENDMODULE. " f4_ship_cond INPUT
FORM f4_pod_shipping_conditions .
DATA: lt_return TYPE TABLE OF ddshretval,
ls_return TYPE ddshretval,
lv_line TYPE i,
lv_vendor TYPE bu_partner,
ls_shlp TYPE shlp_descr,
ls_selopt TYPE ddshselopt,
ls_if TYPE ddshiface,
lv_c(132) TYPE c.
* where on the table control did we hit F4?
GET CURSOR LINE lv_line.
READ TABLE gt_pod_sales
INTO gs_pod_screen
INDEX lv_line
TRANSPORTING vendor.
CHECK NOT gs_pod_screen-vendor IS INITIAL.
* the possible values always depend on the vendor => build it every time
* get the search help parameters first
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = gc_shlp_shipcon
IMPORTING
shlp = ls_shlp.
* now we have to set restrictions based on the vendor
CLEAR ls_selopt.
ls_selopt-shlpname = gc_shlp_shipcon.
ls_selopt-shlpfield = gc_name_vendor.
ls_selopt-sign = gc_i.
ls_selopt-option = gc_eq.
ls_selopt-low = gs_pod_screen-vendor.
APPEND ls_selopt TO ls_shlp-selopt.
* set the field for the output
READ TABLE ls_shlp-interface INTO ls_if
WITH KEY shlpfield = gc_name_ship_cond.
IF sy-subrc EQ 0.
ls_if-valfield = gc_field_shipcon.
MODIFY ls_shlp-interface FROM ls_if
INDEX sy-tabix TRANSPORTING valfield.
ENDIF.
* pass in the base date and call the search help
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = ls_shlp
TABLES
return_values = lt_return.
READ TABLE lt_return INTO ls_return INDEX 1.
IF sy-subrc EQ 0.
gs_pod_screen-ship_cond = ls_return-fieldval.
ELSE.
CLEAR gs_pod_screen-ship_cond.
ENDIF.
* transfer the value
MODIFY gt_pod_sales
FROM gs_pod_screen
INDEX lv_line
TRANSPORTING ship_cond.
ENDFORM. " f4_shipping_conditions
Hope that helps,
Michael -
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 PMHi check my weblog: https://wiki.sdn.sap.com/wiki/x/du0
-
Pass a value to search help field
Hi all,
i have two fields on my screen.
I have a elementary search help for one the field.
I have fld1 and fld2 and i have search help for fld2.
The user puts the value in fld1 and when i do search help for field2 , i get 3 field for input in search help window.
In one of those fileds i have to fill with one value based on the input in fld1.
When ever i do F4 on fld2 , i have to one field filled with a value based on fld1 and if the user wants they should be able to change it.
Let me know how to achieve this
I have a search help exit for for fld2 search help
ThanksHi ,
I guess you haven't understood my issue.
I have everything , all i want is to apass a value to one of the field in search help window.
when ever i click the f4 help this value should display in the search help window
hope iam clear
thanks -
F4 functionality not available for a Search help field
Dear All,
I have created one search help ZMVGR1 containing :
1) MATNR
2) VKORG
3) VTWEG
4) MVGR1
Selection Method: MVKE
Dialog type: Display value with restriction.
Field iMPORT EXPORT LPOS SPOS
MATNR X 4
VKORG X X 1 1
VTWEG X X 2 2
MVGR1 X X 3 3
First I will put VKORG, VTWEG and MVGR1 on screen and then fetch all the fields based on the selection criteria. The problem is on the screen, F4 help for MVGR1 is not coming, for VKORG and VTWEG it is showing. Also while testing in SE11, after filling i parameters when I am pressing F4 help on any other field., F4 on MVGR1 is coming but F4 on field for which I pressed does not come. At a time out of 3 only two F4 comes. Can anybody tell me how to resolve it. Is it a standard SAP functionality or is there any way to bypass it. I need F4 for all the fields in import parameters, so that all the values gets displayed in export parameters in list. Also note that dialog type is display value with restriction , not display value immediately.
Regards
DebopriyoSolved. I added one search help exit and inserted the following code after that F4 for all the field are coming in the dialog screen.
field-symbols: <shlp1> type SHLP_DESCR,
<shlp2> type ddshiface.
IF CALLCONTROL-STEP = 'PRESEL'.
ASSIGN SHLP TO <SHLP1> .
READ TABLE <SHLP1>-INTERFACE assigning <shlp2> with key f4field = 'X'.
IF sy-subrc = 0.
<shlp2>-f4field = ' '.
endif.
ENDIF.
Regards
Debopriyo -
Hi problem with search help?
Hi friends,
i am creating a search help for one of my inputout field of name Zabc-Formno present in my screen.
If have created a search help ZSH and assigned for that input/output field. Search help is working. My problem is in input/output field when i select a option from search help it is taking, here i want to display the details of the selcted field when i click display so the select statement tht i wrote is -
when 'display'
SELECT * FROM ZABC WHERE FORMNO = SLNO.
DATES = ZABC-DATES.
CLIENT = ZABC-CLIENT.
In place of FORMNO in select statement actually i am having (ZABC-FORMNO) in this case wht i have to do.
ThksIn your data element for slno, there should be a parameter id set up. If your parameter id is SLNO.
In the program code prior to your select:
GET PARAMETER ID 'SLNO' FIELD v_slno.
SELECT * FROM ZABC WHERE FORMNO = v_slno. -
Hi,
I have included a parameter(CHAR 50), say field X in a search help for field Y (Y shud be selected based on X).
I have attached a search help to X's data element, for providing a drop down.This search help's selection method is a text table for X.
When I select a value from the dropdown for X in the search help, only the first 19 characters are passed to the search help's screen field.
Is there any restriction on the length of the value that can be passed to a search help selection?
Pls let me know.
Thanks in advance,
Arthi.Hi
Herewith i am giving some points about Search Help and the Data Element.
ATTACHING SEARCH HELP TO A DATA ELEMENT ->
The search help can be used by all screen fields that refer to the data element. All the fields with the same meaning therefore have an identical input help.
When the search help is attached to a data element, an export parameter of the search help must be assigned to the data element. If the user selects a line of the hit list in the input help, the contents of this parameter are returned to the corresponding screen field. It is not possible to return several values when the search help is attached to a data element.
If the parameter assigned to the data element is also an import parameter of the search help, the contents of the search field are used for the value selection if they contain a pattern. Other import parameters of the search field cannot be taken into consideration when the search help is attached to a data element.
Assign a search help=> You can assign the data element a search help. This search help is offered on all the screen fields referring to this data element when the input help (F4 help) is called . To assign the search help, you must specify its Name in the data element maintenance screen and an export parameter of the search help in the Parameter field.
Search Helps =>
The input help (F4 help) is a standard function of the R/3 System. The user can display the list of all possible input values for a screen field with
There are two types of search help:
Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
Screen Display =>
I think you r talking about the 255 character that a screen lengh can take,but more than 255 character also we can dispaly in a screen.
go through this link
http://www.allsaplinks.com/files/using_table_in_screen.pdf
I hope this will help you to solve your problem.
Thanks
Mrutyunjaya Tripathy -
Description on search help field get truncated by it input enable field
Hi expert,
I'm facing one problem, description of the fields on the search help dialog screen gets truncated by it own input fields. I want that full description of the fields should appear on the screen. what i need to do for that.my friend ... you are refferning the field in your program from the field of Ztable which you have created ....
please check the field lable and change it as 40 lenght in the field label give the full descrition activate it ...
so that your problem will be solved ..
see for example .
i write a program in that i use parameter declaration as
tables : pa0001 .
parameters : d_pernr like pa0001-pernr.
then in the MENU path GOTO-TEXT ELEMENT -> select the check box from the dictionary ...
it was refferencing the field of Long text only ....
only thing is we have maintian the long text as 40 length and descrition as what you want .
reward points if it is usefulll ,....
Girish -
How to populate data from screen on to search help field
Hello all,
I have a requirement in which for a field i have attached a search help and i am calling the search help by using the FM
F4IF_FIELD_VALUE_REQUEST it is working fine.
I have one additional requirement that whernever any data is entered on the screen field say ( A* ) then F4 is pressed on the search help in the field this value must be considered. Now it appears blank but i want this data to get populated from the screen
field how can i achieve it.
Warm Regards,
Naveen Mhii naveen,
YOu have to make use of the function modules:
DYNP_VALUES_READ Read screen field values before PAI field transport
DYNP_VALUES_UPDATE Change screen field contents w/o PBO
Each of which is very well documented
or
trigger the drop-down in POV.
PROCESS PAI.
FIELD <FIELD>.
PROCESS ON VALUE-REQUEST.
FIELD FIELD MODULE F4HELP_FOR_FIELD.
MODULE F4HELP_FOR_FIELD.
> Call search help: see the fm VRM_* to manage dropdown list
DATA: DYNAME LIKE D020S-PROG,
DYNUMB LIKE D020S-DNUM.
DATA DYNPFIELDS LIKE STANDARD TABLE OF DYNPREAD WITH HEADER LINE.
DYNPFIELDS-FIELDNAME = <other field name>.
DYNPFIELDS-FIELDVALUE = <value>.
APPEND DYNPFIELDS.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
DYNAME = DYNAME
DYNUMB = DYNUMB
TABLES
DYNPFIELDS = DYNPFIELDS.
ENDMODULE.
rgrds,
Shweta -
Hi Abapaers,
i have created a serach help realted to status and descriptiopn .
i have used it in 2 tables . for one table f4 is working for other not working .
Please suggest how can i solve this .
Regards
Arun .hi,
please use any of these methods for applying search help, it will definately help u
you can use function module F4IF_INT_TABLE_VALUE_REQUEST
or
can follow these simple steps for search help:
go to se11==>
put some name after ticking search help radiobutton==>
create==>
then tick " elementery search help " and press enter ===>
then put description and table name in selection method ===>
then put the field on which u want search help in search help parameter==>
tick IMP EXP ==>
write 1 in lpos and spos===>
save and activate===>
double click on table name ===>
select that field and press *search help tab* above===>
then copy
i hope it will help u a lot
thaks and regards
rahul sharma
Edited by: RAHUL SHARMA on Sep 30, 2008 12:52 PM
Edited by: RAHUL SHARMA on Sep 30, 2008 12:53 PM
Edited by: RAHUL SHARMA on Sep 30, 2008 12:54 PM -
Problem in Search Help[F4] - Values Not being Dsplayed
Hi,
Search help values are not being displayed.
F4 help pop up is being displayed with the text on top: ' xxxx number of entries found".
But no values are visible in that popup where it normaly displayes all values for selection. This is happening with all search helps.
Example: I tried for Tcode: ME21, for field Vendor.
=><i>No patch has been applied on Server recently.</i>
Any clue on that..??
Any help is appriciated.
Regards,
Vijay RahejaHello Vijay,
This is simple as well.
Go to help then settings and then F4 help. Under system defaults tab strip you will find Display tab strip. Here go to change mode and choose dialog. The other choice will be for control only ( 2 radio buttons only this time around). However to do so make sure you have the authorization object S_ADMI_FCD with value TCTR.
Ask yoru authorization adminstrator to make these changes. He would be having these authorizations. Normally all users dont have this authorization as this is part of security audit considerations.
Please award points if issue got solved.
Regards.
Ruchit. -
Hide search help fields in webdynpro
Hi,
I have a requirement to hide the search help input fields for a webdynpro field. As it is standard search help, I can't change the search help. What is the best way to hide them ?Hi,
You can deactivate it at context attribute level by selecting DEACTIVATED or if it is a standard component you can enhance the view to create a post exit for WDDOMODIFYVIEW and hide the search help for that NODE.
Thanks,
Anubhav -
Hi,
Is it possible to change the field positions in the Hit List of a standard search help without using the access key?
Please let me know.
Thanks,
BinuHi Binju,
I am not sure whether this will be listed in SPAU during upgrade.
Yes, you didnt require access key to change field positions, add/delete search help parameters which are available in selection method i.e database/view fields for search help.
This change effect the search help assigned to data eleements and tables assigned in SAP, so be caution before doing the change. If your change is specific to a particular instance then go for append search help. Copy the search help and provide this search help as new tab to your standard search help.
Thanks,
Vinay -
A student having problem with search help.
Dear All,
I'm studying from a book about search help.
I have a field of a dictionary structure. From now on, I will call this field 'Field A'.
In the book that I read, it is said that if Field A refers to a check table, then the contents of the check table are automatically offered as the Field A's input help. Furthermore, if the check table has a search help, then the search help is used as Field A's input help instead of the key fields of the check table. The search help is also used as input help for any field that refers to the check table I mentioned previously.
Are the last 2 sentences true?
Curiously, I created a dictionary structure of several fields. One of the fields refers to a check table. I also created a simple screen with fields that refer to the dictionary structure I mentioned earlier to test each field's input help. When I tried the field that refers to the check table, it is true that the contents of the check table are offered as the possible values. Later, I created a search help for the check table in a way that makes me easily notice that the search help is actually used as the input help, not the standard input help of check table contents. When I tested my screen again and tested the input help of the field that refers to the check table, the shown possible values were not changed. It still used the standard input help that shows the contents of the check table instead of my search help.
Could I do something wrong or is the statements in my book incorrect?
Regards,
HarisDear Suman,
Thank you for the help. However, there are still some doubts in me. To improve tha clarity of my question, I'll rewrite it:
Let 'CT' is the name of my check table.
Currently there are many dictionary objects that refers to CT as their check table. Therefore, the contents of CT are offered as possible values / input help of those dictionary objects.
Later, I created a search help.
Let 'SH' is the name of my search help. SH is attached to the check table CT.
Now, does this means SH is automatically used as the input help of all the dictionary objects that refer to CT as their check table,
Or
I still have to attach SH to all the dictionary objects that refer to CT in order to use SH as their input help?
Regards,
Haris
Edited by: harissahlan on May 3, 2011 12:42 AM
Maybe you are looking for
-
Copying images from a server linked to InDesign document?
I have a issue where I have images on a windows server in a "hold folder", when I finish with my images I move them to a "done folder" on the same volume. If my InDesign 5.5 document(mac) is open those images move to the "done folder", but also leave
-
How to connect to MsSql server in J2ee
I use J2ee, and it is connected to cloudscape by default. And I have download one Jdbc driver to connect to Mssqlserver. How can I install this driver to J2ee and set J2ee connected to MsSqlserver? Thank you very much! [email protected]
-
What's new in Adobe Presenter 8.0
This question was posted in response to the following article: http://help.adobe.com/en_US/presenter/using/WS5f497c91827355fd-5f2f6997137bf36849a-8000.ht ml
-
I had airplaine mode on for 2 weeks cant start My iPad again
I cant start My IPad its blocked, had airplaine mode on for two weeks and now it says that its no securitycopy done and that I have to do certain things but I cant because IPad dont answer, I can not either open or close, so I cant change from Airpla
-
Best way to do analysis of data
I have 18,000 or so records, each marked with a date field, and each recording the elapsed time it took to perform some action, in seconds, as of a particular hour/minute/second. For example: TESTTIME TESTDURATION 7:03:21 2.4 7:03:32