11-23-2011 12:29 PM
Hi All,
In report, I have created a search help using fm F4IF_INT_TABLE_VALUE_REQUEST on parameter. Is it possible to restrict user to select only F4 values. By disabling parameter although I can restrict users from not entering vague value but at the same time even F4 selection won't work. <removed by moderator>.
Thanks in advance.
Regards
Randhir Jha
Edited by: Thomas Zloch on Nov 23, 2011 1:50 PM
11-23-2011 2:28 PM
Check my response in
Note the parameter display = 'F' "F = Force. If its a module pool , then it screen attributes just mark the check box output field and follow the same approach
11-23-2011 12:36 PM
Please go through the documentation of F4IF_INT_TABLE_VALUE_REQUEST parameters. Its there.
Keshav
11-23-2011 12:42 PM
Hi,
Use the FM F4IF_SHLP_EXIT_EXAMPLE.
Please go through
http://wiki.sdn.sap.com/wiki/display/ABAP/SAPGUISearchHelps
Thanks,
Manish
11-23-2011 12:43 PM
There are several ways to implement it ones better than others.
This is one of them
REPORT ztest .
TYPES: BEGIN OF type,
bukrs TYPE p0001-bukrs.
TYPES: END OF type.
DATA: g_tabla TYPE TABLE OF type.
DATA: l_prog TYPE syrepid.
DATA: l_dynp TYPE sydynnr.
SELECT * INTO CORRESPONDING FIELDS OF TABLE g_tabla FROM pa0001 UP TO 10 ROWS.
l_prog = sy-repid.
l_dynp = sy-dynnr.
PARAMETERS p_uno TYPE p0001-bukrs.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name EQ 'P_UNO'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_uno.
LOOP AT SCREEN.
IF screen-name EQ 'P_UNO'.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'BUKRS'
* PVALKEY = ' '
dynpprog = l_prog
dynpnr = l_dynp
dynprofield = 'P_UNO'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
TABLES
value_tab = g_tabla
.
LOOP AT SCREEN.
IF screen-name EQ 'P_UNO'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
11-23-2011 2:16 PM
Hi Jose,
Thanks Jose for your prompt reply.
I tried your code. Although F4 field gets disabled but no values are found. After commenting below code I do get F4 list but "Enter" button is disabled. i.e I can not select any thing from F4 list.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_uno.
LOOP AT SCREEN.
IF screen-name EQ 'P_UNO'.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards
Randhir Jha
11-23-2011 1:18 PM
11-23-2011 2:28 PM
Check my response in
Note the parameter display = 'F' "F = Force. If its a module pool , then it screen attributes just mark the check box output field and follow the same approach