2007 Dec 06 8:52 AM
Hi All
My query is related to search help.
I have created 1 search help ....with a export n import parameters ...wen i click on the F4 it gives me the desired hit list... but when i click on the specific entry it give me the last entry of the hit list in to the field ....
please help me with the same....
Thanx
Amruta.
Hi All
My query is related to search help.
I have created 1 search help ....with a export n import parameters ...wen i click on the F4 it gives me the desired hit list... but when i click on the specific entry it give me the last entry of the hit list in to the field ....
please help me with the same....
Thanx
Amruta.
2007 Dec 06 9:02 AM
<b>Hi Amruta..</b>
may be u have not use<b> refresh itab</b>
check your codewith this ...
tables: mara, makt.
data mat like mara-matnr.
data: begin of itab occurs 0,
matnr like mara-matnr,
end of itab.
data : begin of btab occurs 0,
maktx like makt-maktx,
end of btab.
data mak like makt-maktx.
DATA : return like ddshretval occurs 0 with header line.
data: begin of dynpfields occurs 3.
include structure dynpread.
data: end of dynpfields.
parameters: p_matnr like mara-matnr,
p_maktx like makt-maktx.
Initialization.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
REFRESH ITAB.
SELECT matnr FROM mara INTO TABLE ITAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR '
dynprofield = 'P_MATNR '
dynpprog = sy-REPID
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.
mat = return-fieldval.
unpack mat to mat.
select single maktx from makt into mak where matnr = mat.
p_matnr = return-fieldval.
refresh return.
clear return.
move 'P_MAKTX' to dynpfields-fieldname.
move mak to dynpfields-fieldvalue.
append dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'SY-REPID'
dynumb = '1000'
tables
dynpfields = dynpfields.
refresh return.
clear return.
2007 Dec 06 9:34 AM
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MANR.
PERFORM GET VALUE.
REFRESH PASSING ITAB.
REFRESH ITAB.