‎2006 Sep 13 7:36 PM
Hi everyone.
I'm working on a search help, using a search help exit.
When I test the search help, the results appears in a hit list. I need to know if it is possible to select data from this hit list and select data from another table using the data selected from the hit list. I also need to show the new data in a new hit list.
Thank you very much.
Regards.
‎2006 Sep 13 8:41 PM
hi,
i worked on ur question.... i dont understand for one field like matnr in mara u want search help... ok fine.. when u add search help it shows all matnr's in mara and u select one matnr.... and with the selected matnr why u need to go for other table... if u want search help for matnr only..
can u pls give some more information... like which field u use for search help and which tables u want...
i am trying with 2 fm's f4if_int_table_value_request.
but need some information from u
regards
‎2006 Sep 13 8:41 PM
hi,
i worked on ur question.... i dont understand for one field like matnr in mara u want search help... ok fine.. when u add search help it shows all matnr's in mara and u select one matnr.... and with the selected matnr why u need to go for other table... if u want search help for matnr only..
can u pls give some more information... like which field u use for search help and which tables u want...
i am trying with 2 fm's f4if_int_table_value_request.
but need some information from u
regards
‎2006 Sep 13 10:10 PM
hi,
as i understand...
check this code....
and rewards if it helps...
if it is not u what exactly want then let us know...
TABLES : mseg, makt, mara.
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 mat like makt-matnr.
data mak like makt-maktx.
DATA : RETURN LIKE TABLE OF DDSHRETVAL WITH HEADER LINE.
*----
parameters : maktx like makt-maktx.
*----
AT SELECTION-SCREEN ON VALUE-REQUEST FOR MAKTX.
PERFORM MYPOPULATE.
FORM MYPOPULATE.
REFRESH ITAB.
SELECT matnr FROM mara INTO TABLE ITAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = ' '
dynprofield = ' '
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.
mat = return-fieldval.
unpack mat to mat.
IF RETURN[] IS NOT INITIAL.
select maktx from makt into table btab where matnr = mat.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MAKTX'
dynprofield = 'MAKTX'
dynpprog = sy-REPID
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = BTAB
return_tab = return.
maktx = return-fieldval.
ENDIF.
ENDFORM.
‎2006 Sep 14 9:51 PM