2010 Mar 08 7:04 AM
Hi all
I am developing a module pool . In that 3 fileds are there .
I will enter the first filed. According to first filed , it shoud fetch second filed in the F4 help. After I selecting second field , according to that third field should populate in F4 help.
I am getting for first filed. After I selct the second filed , my third filed is not getting populated.
How to achieve this?
Regards
2010 Mar 08 7:53 AM
2010 Mar 08 7:31 AM
Hi,
use the FM 'F4IF_INT_TABLE_VALUE_REQUEST'.
check the below code.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'MATNR'
PVALKEY = ' '
dynpprog = cprog "repid
dynpnr = dynnr "dynnr
dynprofield = 'P_STYLE'
value_org = 'S'
MARK_TAB =
TABLES
value_tab = it_style
FIELD_TAB =
return_tab = it_return
DYNPFLD_MAPPING =
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3
.
IF sy-subrc = 0.
READ TABLE it_return INDEX 1 INTO wa_return.
p_style = wa_return-fieldval.
ENDIF.
Thanks,
sudheer
2010 Mar 08 7:53 AM
2010 Mar 08 11:38 AM