Hi Sumit
You need this:
data: itab with werks and matnr field.
parameters: p_plant type mard-werks,
p_matnr type mard-matnr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_plant.
SELECT *
FROM mard
INTO CORRESPONDING FIELDS OF TABLE t_tab
where werks = p_plant.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
dynpprog = sy-repid
dynpnr = sy-dynnr "
dynprofield = 'P_MATNR'
value_org = 'S'
TABLES
value_tab = t_tab.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
regards,
Archer