‎2007 Oct 12 4:20 PM
Hi all,
I need a F4 help for a field in select-options. when i use the code
AT SELECTION-SCREEN ON VALUE-REQUEST FOR OBJID. it is asking for low or high value but i need same F4 help for both low and high value of OBJID.How can i achieve this without using two AT SELECTION-SCREEN commands.
Thanks in advance
‎2007 Oct 12 4:24 PM
Hi,
Create a search help(match code) in se11 and assign that to OBJID.
Hope this will solve ur problm
Regards,
Niyaz
‎2007 Oct 12 4:26 PM
hi,
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.
other way would be..............
SELECT-OPTIONS: selcrit for <data>.
Now use
AT SELECTION-SCREEN ON VALUE-REQUEST FOR selcrit-LOW.
*Using the FM F4IF_INT_TABLE_VALUE_REQUEST to show the F4
AT SELECTION-SCREEN ON VALUE-REQUEST FOR selcrit-HIGH.*Using the FM F4IF_INT_TABLE_VALUE_REQUEST to show the F4
‎2007 Oct 12 4:28 PM
hi,
one more way is
in data dictionary (SE11), create search help: Enter Table name, field name, set import and export for the field, activate. It's easy.
Then
SELECT-OPTIONS selcrit FOR f ... MATCHCODE OBJECT <name if search help>
‎2007 Oct 12 5:21 PM
Hi Naveen
Actually based on another field that is object type that enterd in the selection screen i have to fetch the values of object Id and display in F4 help. where Object id is select-option.
Thanks