06-29-2007 11:52 AM
Hi,
I have created some fields as select-option fields from LFA1 table.But I am not getting F4 help for those fields.How can i get F4 help for those fields?
Thanks and Regards,
Hema
06-29-2007 11:56 AM
Use
<b>F4_IF_FIELD_VALUE_REQUEST </b>- Use values from a DDIC table to provide a list of possible values. TABNAME and FIELDNAME are required fields, and when MULTIPLE_CHOICE is selected, more than one value can be returned.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BEGRU'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
Message was edited by:
Santosh Kumar Patha
06-29-2007 11:56 AM
HI..
Change your code with this ref.
DATA: BEGIN OF wa_locid ,
enttyp LIKE zmd_blend_tsw-locid,
END OF wa_locid.
DATA:it_locid LIKE TABLE OF wa_locid WITH HEADER LINE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_locid .
SELECT DISTINCT locid FROM zmd_blend_tsw INTO TABLE it_locid.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_tswloc .
PERFORM f0600_locid.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'P_LOCID'
PVALKEY = ' '
dynpprog = 'ZMDU_BLEND_TBL'
dynpnr = '1000'
dynprofield = 'P_LOCID'
STEPL = 0
window_title = 'TSW Location'
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ''
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = it_locid
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.
Reward all helpfull answers.
Regards.
Jay
06-29-2007 11:56 AM
Use
<b>F4_IF_FIELD_VALUE_REQUEST </b>- Use values from a DDIC table to provide a list of possible values. TABNAME and FIELDNAME are required fields, and when MULTIPLE_CHOICE is selected, more than one value can be returned.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BEGRU'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
Message was edited by:
Santosh Kumar Patha
06-29-2007 11:58 AM
Hi Hema,
Use foll. statement in ur code for the field u need F4 help..
AT SELECTION-SCREEN ON VALUE-REQUEST FOR field
for more details, check out this link,
http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a246d9b511d1950e0000e8353423/frameset.htm
Hope it helps
06-29-2007 12:02 PM
hi
put the fields that u have taken from LFA1 into any custom table.then create foreign key relationship for those fields. then u will get search help.
foreign key -
select a field(complete row- click on key symbol. it will display the check table. genarate proposal--click on copy) save and activate.
reward if useful..
06-29-2007 12:11 PM
06-29-2007 12:16 PM
hi
good
check out your select-options statement properly,the syntax might be wrong otherwise it must come if there is value for that field in the TABLE LFA1.
THANKS
MRUTYUN^