2007 Jul 11 11:52 AM
Hi,
Can anyone tell how to provide F4help for a select-option field?
Regards,
Hema
2007 Jul 11 11:54 AM
Place your cursor on the field and press the F4 button, see easy!
Reward if helpful please.
2007 Jul 11 11:54 AM
Hello,
If you created a search help in the DDIC...Then check the check box EXPORt parameter for one of the fields
If you used the function module Make sure you pass the correct values..Also the field name in CAPITAL letters..
Check this code..
TABLES: T005T.
DATA: BEGIN OF t_t005 OCCURS 0,
land1 TYPE t005-land1,
END OF t_t005.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(6) v_text FOR FIELD P_LAND1.
PARAMETERS: p_land1 TYPE t005-land1.
SELECTION-SCREEN COMMENT 13(35) v_text1.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
v_text = 'Country'.
v_text1 = ' '.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1.
REFRESH: t_t005.
SELECT land1
INTO TABLE t_t005
FROM t005.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = 'T005'
PVALKEY = ' '
retfield = 'LAND1'
dynpprog = sy-repid
DYNPNR = sy-dynnr
dynprofield = 'P_LAND1'
callback_program = sy-repid
value_org = 'S'
TABLES
value_tab = t_t005
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
Deepu.K
2007 Jul 11 11:56 AM
Use the FM 'F4IF_INT_TABLE_VALUE_REQUEST'
tables kna1.
data:
begin of t_values occurs 2,
value like kna1-begru,
end of t_values,
t_return like ddshretval occurs 0 with header line.
select-options s_begru for kna1-begru.
at selection-screen on value-request for s_begru-low.
clear t_values.
t_values = 'PAR*'.
append t_values.
t_values = 'UGG'.
append t_values.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 's_begru'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc = 0.
read table t_return index 1.
s_begru-low = t_return-FIELDVAL.
2007 Jul 11 11:58 AM
Hi,
<b>SELECT-OPTIONS: selcrit for <data>.</b>
Now use
<b>AT SELECTION-SCREEN ON VALUE-REQUEST FOR selcrit-LOW.</b>
*Using the FM F4IF_INT_TABLE_VALUE_REQUEST to show the F4
<b>AT SELECTION-SCREEN ON VALUE-REQUEST FOR selcrit-HIGH.</b>*Using the FM F4IF_INT_TABLE_VALUE_REQUEST to show the F4
Regards,
Sesh
2007 Jul 12 10:03 AM
Hi Hema,
1. Create a search help (say ztest) in SE11 for the field.
2. Then in your program you can write
"select-options : s_field for .... MATCHCODE OBJECT ztest. "
Hope it helps..
Regards,
Arpita