F4IF_INT_TABLE_VALUE_REQUEST - No of hits
Hi,
I am passing an internal table of more than 500 values to the function module F4IF_INT_TABLE_VALUE_REQUEST, but it's automatically restricting this to 500 entries. Kindly let me know, how I can customize this restriction to the value I need.
Thanks and Regards,
Ashok
Hi,
The actual problem is that only: I don't see that no of hits option when I click the downward arrow. Pls find the code that I have used to call this function module.
select aufnr into table lt_aufnr
from aufk
where auart = 2000
and astkz = 'X'.
if sy-subrc = 0.
call function 'DYNP_GET_STEPL'
IMPORTING
POVSTEPL = lv_stepl
EXCEPTIONS
STEPL_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.
*call function 'HELP_VALUES_GET_WITH_TABLE'
EXPORTING
FIELDNAME = 'AUFNR'
TABNAME = 'AUFK'
IMPORTING
SELECT_VALUE = ZSDYN_ZCHECK2-AUFNR
tables
fields = lt_fields[]
valuetab = lt_aufnr[]
EXCEPTIONS
FIELD_NOT_IN_DDIC = 1
MORE_THEN_ONE_SELECTFIELD = 2
NO_SELECTFIELD = 3
OTHERS = 4
*if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*endif.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'AUFNR'
pvalkey = ' '
dynpprog = lv_repid
dynpnr = lv_dynnr
dynprofield = 'ZSDYN_ZCHECK2-AUFNR'
stepl = lv_stepl
tables
value_tab = lt_aufnr[]
field_tab = lt_fields[]
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.
endif.
Similar Messages
-
F4IF_INT_TABLE_VALUE_REQUEST with Maximum Number of Hits.
Hi, all,
Currently i'm doing a customized F4 help for a selection-option filed on a report by using the function module 'F4IF_INT_TABLE_VALUE_REQUEST'. When i execute my report and go to the selection-option filed just now i created and press F4, i can see a list of data in my search help. However when i go to the tab 'Restrictions', i can't see the 'Maximum No. of Hits' option.
So anyone have any idea about this? or how to make the 'Maximum No. of Hits' box come out in my F4 help?
Thanks in advance.My full code :-
TABLES : BSIK , DDSHF4CTRL .
DATA: BEGIN OF T_ZUONR OCCURS 0,
ZUONR TYPE BSIK-ZUONR,
END OF T_ZUONR.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : ASGN_CK FOR BSIK-ZUONR.
SELECTION-SCREEN : END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR ASGN_CK-LOW.
SELECT ZUONR FROM BSIK INTO TABLE T_ZUONR.
SORT T_ZUONR BY ZUONR.
DELETE ADJACENT DUPLICATES FROM T_ZUONR.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'DYNR'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
VALUE_ORG = 'S'
CALLBACK_PROGRAM = SY-REPID
CALLBACK_FORM = 'F4CALLBACK'
TABLES
VALUE_TAB = T_ZUONR.
RETURN_TAB = T_ZUONR.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR ASGN_CK-HIGH.
SELECT ZUONR FROM BSIK INTO TABLE T_ZUONR.
SORT T_ZUONR BY ZUONR.
DELETE ADJACENT DUPLICATES FROM T_ZUONR.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'DYNR'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
VALUE_ORG = 'S'
CALLBACK_PROGRAM = SY-REPID
CALLBACK_FORM = 'F4CALLBACK'
TABLES
VALUE_TAB = T_ZUONR.
RETURN_TAB = T_ZUONR.
PERFORM F4CALLBACK.
*& Form F4CALLBACK
text
--> p1 text
<-- p2 text
FORM F4CALLBACK.
*TABLES RECORD_TAB STRUCTURE SEAHLPRES
*CHANGING SHLP TYPE SHLP_DESCR
CALLCONTROL LIKE DDSHF4CTRL.
DATA : SHLP TYPE SHLP_DESCR,
CALLCONTROL LIKE DDSHF4CTRL.
SHLP-INTDESCR-DIALOGTYPE = 'C'. " Dialog type ( Dialog with value restriction )
CALLCONTROL-NO_MAXDISP = '500'. " For getting Maximum no of hits tab
ENDFORM. " F4CALLBACK
*But it is not working, Please help. There is some problem with the Perform F4CALLBACK Module. Please help. -
F4IF_INT_TABLE_VALUE_REQUEST up to 500 hits
hi,
i am using the FM F4IF_INT_TABLE_VALUE_REQUEST for displaying search help for a field.
the possible values for this field are stored in an internal table which is filled by another FM which i
cannot change. this FM returns itabs with 20,000 lines. when i try to use the search help from screen
the program crash ( MEMORY_NO_MORE_PAGING ).
i want to limit the search help to up 500 hits , so the program won't crash, but i dont want to filter
the itab by taking only 500 becasue the user can enter in field ' 2* ' and then press F4
and if there are more then 500 values that start with 1 i won't get any values in search help
(because i took only the first 500 - which all starts with 1).
is there a way to achieve what i want?
Thanks
TomerHi,
You can make use of CALLBACK_FORM parameter which is available in the F4IF_INT_TABLE_VALUE_REQUEST function module to restrict the number of entries.
FORM F4CALLBACK
TABLES RECORD_TAB STRUCTURE SEAHLPRES
CHANGING SHLP TYPE SHLP_DESCR
CALLCONTROL LIKE DDSHF4CTRL.
ENDFORM.
Make use of DDSHF4CTRL structure which gives you more options.
Regards
Srini -
F4IF_INT_TABLE_VALUE_REQUEST- how to add Maximum No. of hits
Hi Experts,
I am using F4IF_INT_TABLE_VALUE_REQUEST. Can someone please help me. I am getting 2,100 hits I need to limit it to 500 hits. There is no Maximum number of hits when you click the Downward pointing arrow above the toolbar. How can I add the field for maximum number of hits just like in the standard F4 help function.
Thanks!Dispay the source code of this function module in Se37.. you will notice that the following is commented out..
CALLCONTROL-MAXRECORDS = 500.
deleteing lines in your program is probably the only option..
ie
data w_lines type i.
w_lines = lines( itab ).
delete itab from 201 to w_lines.
~Suresh -
Hi,
I'm using FM F4IF_INT_TABLE_VALUE_REQUEST to show a pop-up with my internal table values. The internal table has 3 fields, ATINN, ATZHL and a description field ATWTB. ATINN and ATZHL are needed to complete the unique table key, however this FM will only return the value of one field in any line I select.
How can I see all the values in the line I select in the return table?
My code is as follows:
DATA: tbl_cawnt LIKE cawnt OCCURS 0,
wa_cawnt LIKE cawnt,
BEGIN OF tbl_list OCCURS 0,
atinn LIKE cawnt-atinn,
atzhl LIKE cawnt-atzhl,
atwtb LIKE cawnt-atwtb,
END OF tbl_list,
wa_list LIKE tbl_list,
tbl_return LIKE ddshretval OCCURS 0,
wa_return LIKE ddshretval,
tbl_fields LIKE dfies OCCURS 0,
tbl_dynp LIKE dselc OCCURS 0.
REFRESH: tbl_list, tbl_cawnt.
SELECT atinn atzhl atwtb
FROM cawnt
INTO CORRESPONDING FIELDS OF TABLE tbl_cawnt
WHERE spras EQ sy-langu.
LOOP AT tbl_cawnt INTO wa_cawnt.
CLEAR wa_list.
MOVE: wa_cawnt-atwtb TO wa_list-atwtb,
wa_cawnt-atinn TO wa_list-atinn,
wa_cawnt-atzhl TO wa_list-atzhl.
APPEND wa_list TO tbl_list.
ENDLOOP.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ATWTB'
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = tbl_list
return_tab = tbl_return
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.
ENDIF.
Thanks!Hi,
Use the structure DYNPFLD_MAPPING
With this internal table you can easily define that you want to return
other columns of the hit list in addition to field RETFIELD to the
screen.
In this IT you can MAP the screen fields to the serch help screen fields this has three fields
FLDNAME this is the field anme from the search help
FLDINH This has to be blank which would be field with the field value that you want to map
DYFLDNAME THis is the screen field name.
So here you can get the values for the other fields that you want which are on the search help just populate the name of the fields in FLDNAME.
Regards,
Himanshu -
F4IF_INT_TABLE_VALUE_REQUEST -Restrictions dialog box
Hi,
I am using the function module F4IF_INT_TABLE_VALUE_REQUEST in screens, to implement a search help in my program , but instead of directly displaying the hit list , i want the restrictions screen to be displayed first with some default values, and the list should be displayed only based on the valuies entered in thius restrictions screen. How can i do this using this function module.
To be more precise,
i need the restrictions dialog box to be displayed and this will have 6 fields. i have to pass values to 2 fields from my program, the first field need not be filled and teh remaining fields should be left for the user to enter.
how do i achieve this?
Please help.Check the sample code. Using the Event PROCEE ON VALUE-REQUEST we can get the F4 Help.
PROGRAM ztest_duplica.
DATA: kunnr1(10),
kunnr2(10).
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
*& Module get_help INPUT
* text
MODULE get_help INPUT.
DATA:i_retab TYPE TABLE OF ddshretval,
wa_ret TYPE ddshretval.
TYPES: BEGIN OF x_itab,
kunnr TYPE kunnr, "it should be type to some standard data element
END OF x_itab.
FIELD-SYMBOLS: <fs> TYPE ANY.
CLEAR : kunnr1, kunnr2.
DATA: dynfield TYPE help_info-dynprofld,
wa_itab TYPE x_itab,
i_tab LIKE TABLE OF wa_itab WITH HEADER LINE.
CLEAR dynfield.
IF sy-dynnr = '0100'.
dynfield = 'KUNNR1'.
ELSE.
dynfield = 'KUNNR2'.
ENDIF.
SELECT kunnr FROM kna1
INTO TABLE i_tab
UP TO 20 ROWS.
"retfield we will pass the column name we are going to get from f4
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'KUNNR' "<---Return field column name
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = dynfield
value_org = 'S'
TABLES
value_tab = i_tab
return_tab = i_retab.
IF sy-subrc EQ 0.
READ TABLE i_retab INTO wa_ret INDEX 1.
ASSIGN (dynfield) TO <fs> .
<fs> = wa_ret-fieldval .
UNASSIGN <fs>.
ENDIF.
ENDMODULE. " get_help INPUT
Flow logic for 100 screen
screen consists of Input field pointing to KUNNR1
PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
process on value-request.
field kunnr1 module get_help.
Create a Tcode and Intitial screen 100. and check it .
Regards
Vijay Babu Dudla -
I am building an internal table and displaying it as search help using F4IF_INT_TABLE_VALUE_REQUEST. How can I tell what line was selected from the search help? Only one field is filled with the selection, but there are several other fields attached to this that I need in my program - but I can't tell which line was selected, and the one field is not enough information to use to get the record from the internal table.
Hi,
RETURN_TAB would have the selected values.
FIELD_TAB will have the hit list fields.
DYNPFLD_MAPPING will have the Assignment of the screen fields to the internal table.
Regards, -
Define Max hits in F4 help:
Hi All,
I am using fuction F4IF_INT_TABLE_VALUE_REQUEST for F4 help. In my case internal table having more than 5000 records. I want to give optiosn on screen to choose the used for maximum hits. Please let me know what are the parameter i have to pass in function to provide the require option.
I am using below piece of code.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = ' ZKEY'
DYNPROFIELD = 'ZKEY'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
VALUE_ORG = 'S'
TABLES
VALUE_TAB = HELP_ITEM11.
Regards,
Piyush MathurDispay the source code of this function module in Se37.. you will notice that the following is commented out..
CALLCONTROL-MAXRECORDS = 500.
if u want to pass only 200 records to the internal table instead of all records.
deleting lines in your program is probably the only option..
ie
data w_lines type i.
w_lines = lines( itab ).
delete itab from 201 to w_lines. -
Hi friends,
when hitting a f4 help on a field. SAP is restricting to first 5000 hits and i would like to get the max no. of hits.
and i'm using a FM for f4 help.
thanks ,
katHi,
if you are using the FM F4IF_INT_TABLE_VALUE_REQUEST there you have the parameter MAXRECORDS there you can set.
for more info
F4IF_INT_TABLE_VALUE_REQUEST- how to add Maximum No. of hits
hope it helps you.
Regards! -
Hi all,
Im writing a pricing report which has a field condition type on the selection screen.
I want to limit the hit list of this field to merely display the condition types with usage A, application M when user clicks F4.
What should I do? Should I use matchcode?
Thanks in advance.you can use the following FM to provide your own values to the F4
F4IF_INT_TABLE_VALUE_REQUEST
check out this link for sample code
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap faqs.faq#q-9
<b><u>alternate method.</u></b>
wf_repid = sy-repid.
wf_dynnr = sy-dynnr.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = 'TKA03'
fieldname = 'STAGR'
searchhelp = 'Y_TKA03'
* SHLPPARAM = ' '
dynpprog = wf_repid
dynpnr = wf_dynnr
dynprofield = 'WF_F_STAGR'
* STEPL = 0
value = 'HC*'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* SUPPRESS_RECORDLIST = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* TABLES
* RETURN_TAB =
* EXCEPTIONS
* FIELD_NOT_FOUND = 1
* NO_HELP_FOR_FIELD = 2
* INCONSISTENT_HELP = 3
* NO_VALUES_FOUND = 4
* OTHERS = 5 .
<b>This would return values starting with HC*</b>
Regards
Raja -
Hi Everyone,
I had created a selection screen with two parameters.
1st parameter have search help.
I got F4 help on value request for 2nd parameter.
My requirement is, after entering value in 1st parameter, relavant records from table should be fetched
and only those data should be in f4 help for 2nd parameter.
Everything is working fine as per requirement.
Only problem is , after entering data in parameter1, till a ENTER Hit, F4 help for Parameter 2 is not workking.
I think this is for a event trigger, But how can i over come this issue to avoid ENTER HIT.
Thanks in Advance,
Regards
RaviHay try this,(DYNP_VALUES_READ)
data: begin of i_afpo occurs 0,
aufnr type afpo-aufnr,
end of i_afpo.
data : dyname like d020s-prog value sy-repid,
dynumb like d020s-dnum value '0100'.
data: begin of dynpfields occurs 3.
include structure dynpread.
data: end of dynpfields.
refresh dynpfields.
move 'PARAMETER 1' to dynpfields-fieldname.
append dynpfields.
*--> FETCHING PURCHASE ORDERS RELATED TO PLANT.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-repid
dynumb = dynumb
translate_to_upper = 'X'
REQUEST = ' '
PERFORM_CONVERSION_EXITS = ' '
PERFORM_INPUT_CONVERSION = ' '
DETERMINE_LOOP_INDEX = ' '
tables
dynpfields = dynpfields
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
read table dynpfields
with key fieldname = 'PARAMETER 1' transporting fieldvalue.
move dynpfields-fieldvalue to var1.
select aufnr
from afpo
into table i_afpo
where pwerk eq var1.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
DDIC_STRUCTURE = ' '
retfield = 'AUFNR'
PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = PARAMETER 2
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = i_afpo
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
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.
endif. -
I have deployed 2 different web application on IIS 7.5 running on Windows Server 2008 R2 but on different port numbers i.e. one application deployed on port no. 1776 and another on 8091. I want to rewrite URL in such a way that if i hit any page of first
application such as default.aspx then it will be redirected to particular page of another application along with some changes in url.
Example: if i access any page from first application like:
http://g2wv126rbsc:1776/sites/main/commercial/commercial-solutions/financing/default1.aspx
then it should redirect to specific page of another application along with some changes in url:
http://g2wv126rbsc:8091/main/commercial/commercial-solutions/financing/default2.aspx
Note: In above mentioned url, also removed "sites".
I tried to create a inbound rule through URL Rewrite module (installed on IIS 7.5) by selecting Action as "Rewrite" but didn't find any success.
I need some examples if anyone has come across same kind of issue.
Thanks in advance.Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).
-
My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more. Was working while watching a movie but when I pulled it out from the computer and put it back in the system would no longer mirrorr the screen on the TV.
The best option is an appointment at an Apple store genius bar. The evaluation will be for FREE!
Ciao. -
Please help me how to cancel or downgrade the icloud memory
since i accidentally hit the upgrade button.If you know the answers to your security questions, you should be able to change your password without using email authentication (see http://support.apple.com/kb/HE36). If you don't, you may be out of luck.
-
I was working with a support person at Constant Connect, and to solve a problem I was having, she suggested I hit Command+4+up arrow. I did. All the text in the article I was viewing became tiny, tiny. I now can't get out of this setting.
Hi, Tim...
Command + 0 didn't solve my problem. But Option + 0 did. (Us Mac people have to be different, huh?)
Thanks so much for getting me onto the right road!
Deb
Maybe you are looking for
-
Where can I obtain the AHT on disk for my Mac Pro 4.1?
Where can I obtain a disk (iso) of the AHT for my Mac Pro 4.1 (latest OS X Yosemite) that I am busy upgrading?
-
Groove Agent 2 (3rd party plugin) with Logic
Hi, I'm attempting to use Steinberg Groove Agent 2 (cool virtual drumbox) with Logic 7.1.0. (I saw a friend using them together via laptop on a gig, and I never had trouble using Spectrasonics Stylus with Logic so I assumed this should also work; I h
-
Silverlight Help! Please I beg of you!
I just bought a brand new mac book pro yesterday, I am currently running os x 10.8.3 and when I go to download silverlight it will not install because it is from an unidentified source :[ this is killing me because it is not allowing me to watch netf
-
What is the best practice when it comes to transferring positions in between org units. My client currently drags the positions in PPOME and since i'm not a specialist on this I'm not sure if this is the correct way for them to be doing it, as I hav
-
How to query automatically in quickQuery component
Hi, I have a quickQuery component and a table in the page. On entering the page initially, I would like to query automatically to show all data in the table. Currently, no data is shown in the table until doing a search in the quickQuery component. I