07-02-2007 9:33 AM
Hi.
Wher e is introduced the code for call function 'F4IF_INT_TABLE_VALUE_REQUEST' for a field of a dynpro.
Thanks.
07-02-2007 9:38 AM
Hi,
For Selection Screen--> Event <b>At Selection Screen On <Field></b>
For Screen --> Event Process On Value Request (<b>POV</b>)
Regards,
Ranjit Thakur.
<b>Please Mark The Helpful Answer.</b>
07-02-2007 9:38 AM
Hi,
Use this FM in Process on value request event.
PROCESS ON VALUE-REQUEST.
FIELD D0200_FIELD_TAB-BUFFER MODULE D0200_VALUE_REQU.
MODULE d0200_value_requ.
"call the FM here.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = tabname
fieldname = fname
* SEARCHHELP = ' '
* SHLPPARAM = ' '
* dynpprog = progname
* dynpnr = dynnr
* dynprofield = ' '
* stepl = dynp_stepl
value = value_bef_f4
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* SUPPRESS_RECORDLIST = ' '
callback_program = progname
callback_form = 'CALLBACK_F4'
TABLES
return_tab = return_tab
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
OTHERS = 5.
....
........
..........
ENDMODULE. "d0200_value_requ
Regards,
Kate
07-02-2007 9:38 AM
07-02-2007 9:39 AM
It is written in the
At Selection-screen on value-request for p_field.
For eg.,if you want a hewlp for the parameter P_MATNR,
Put
AT SELECTION_SCREEN on VALUE_RQUEST for P_MATNR.
Then call the FM.
The control will come here once you take F4 on this field.
07-02-2007 9:42 AM
hi...
Check the demo program <b>DEMO_DYNPRO_F4_HELP_MODULE</b>
regards,
veeresh
07-02-2007 9:43 AM
Hi,
check this
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_mtart-low .
select all material types you want to display in search help into table i_mtart.
PERFORM help_material_type.
&----
*& Form help_material_type
&----
text
----
--> p1 text
<-- p2 text
----
FORM help_material_type .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'MTART'
PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'S_MTART-LOW'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = i_mtart
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.
ENDFORM. " help_material_type
Don't forget to reward if useful...