11-04-2009 6:11 AM
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.
11-04-2009 8:54 AM
hi,
I still can't see the 'Maximum No. of Hits' input box appear in my F4 help.
The number of hits will restrict how many records appear inside the list in the F4 help.
Can give me some more guildes?
Thanks in advance.
11-04-2009 7:04 AM
Hi ,
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.
Thanks
Shambhu
11-04-2009 7:27 AM
Do as above,
FORM F4CALLBACK
TABLES RECORD_TAB STRUCTURE SEAHLPRES
CHANGING SHLP TYPE SHLP_DESCR
CALLCONTROL LIKE DDSHF4CTRL.
DDSHF4CTRL-MAXRECORDS = '10' or '10,000' " depends on ur req
ENDFORM.
pass this into the 'F4IF_INT_TABLE_VALUE_REQUEST' in the parameter call_back_form
11-04-2009 7:54 AM
Hi Jiansi Lim, <li>Actually It should show Max number hits input field if you have created search help in Dictionary. <li>When you use F4IF_INT_TABLE_VALUE_REQUEST function module to display F4 values for field, It only displays first 5000 entries. It even shows popup message saying 5000 entries are shown. <li>Try to pass table with more than 5000 entries and check. Thanks Venkat.O
11-04-2009 7:59 AM
Hi Lim,
Try like below in Callback form,
FORM f4callback
TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol LIKE ddshf4ctrl.
shlp-intdescr-dialogtype = 'C'. " Dialog type ( Dialog with value restriction )
ENDFORM.
Thanks,
Edited by: Sap Fan on Nov 4, 2009 9:01 AM
11-04-2009 8:09 AM
Thankyou everyone.
Anyway, what and how should i pass it to the parameter called 'callback_form'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
callback_form = ' '
TABLES
value_tab = itab.
Thanks in advance.
11-04-2009 8:11 AM
Hi Lim,
See below.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
callback_form = 'F4CALLBACK' " <----
Form name
TABLES
value_tab = itab.
FORM f4callback
TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol LIKE ddshf4ctrl.
shlp-intdescr-dialogtype = 'C'. " Dialog type ( Dialog with value restriction )
ENDFORM.
Thanks
Edited by: Sap Fan on Nov 4, 2009 9:12 AM
11-04-2009 8:54 AM
hi,
I still can't see the 'Maximum No. of Hits' input box appear in my F4 help.
The number of hits will restrict how many records appear inside the list in the F4 help.
Can give me some more guildes?
Thanks in advance.
11-04-2009 3:19 PM
Hi Lim,
Sorry for incomplete information.
Try like below.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'DYNR'
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
callback_program = sy-repid " <------- Current Program name
callback_form = 'F4CALLBACK' " <------ Form name
TABLES
value_tab = g_tplant " <---- Value table for F4 values
return_tab = l_t_retdynr.
FORM f4callback
TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol LIKE ddshf4ctrl.
shlp-intdescr-dialogtype = 'C'. " <----
Dialog type ( Dialog with value restriction )
callcontrol-no_maxdisp = ''. " <----
For getting Maximum no of hits tab
ENDFORM.
Thanks,
Edited by: Sap Fan on Nov 4, 2009 4:19 PM
11-06-2009 1:07 AM
04-05-2010 6:13 AM
FORM f4callback
TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol LIKE ddshf4ctrl.
shlp-intdescr-dialogtype = 'C'. " <----
Dialog type ( Dialog with value restriction )
callcontrol-no_maxdisp = ''. " <----
For getting Maximum no of hits tab
ENDFORM.
Could somebody help me with this FM. Getting error msg.Not getting the max. hit box.
04-05-2010 6:16 AM
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.
02-25-2014 1:14 PM
Check the below code.. Its working
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BOLNR'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'LIKP-BOLNR'
window_title = text-001
value_org = 'S'
multiple_choice = space
display = space
callback_program = sy-repid
callback_form = 'F4CALLBACK'
TABLES
value_tab = lit_airway
return_tab = lit_sel
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.
READ TABLE lit_sel INTO lwa_sel INDEX 1.
IF sy-subrc EQ 0.
likp-bolnr = lwa_sel-fieldval.
ENDIF.
ENDIF.
*&---------------------------------------------------------------------*
*& Form f4callback
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->RECORD_TAB text
* -->SHLP text
* -->CALLCONTROL text
*----------------------------------------------------------------------*
FORM f4callback TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol LIKE ddshf4ctrl.
shlp-intdescr-dialogtype = 'C'.
callcontrol-no_maxdisp = ' '.
ENDFORM. "f4callback