Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

search help error please help urgent....

Former Member
0 Likes
394

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.

2 REPLIES 2
Read only

Former Member
0 Likes
371

<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.

Read only

Former Member
0 Likes
371

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MANR.

PERFORM GET VALUE.

REFRESH PASSING ITAB.

REFRESH ITAB.