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

Matchcode - HitList

Former Member
0 Likes
544

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
499

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

3 REPLIES 3
Read only

Former Member
0 Likes
500

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

Read only

0 Likes
499

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.

Read only

0 Likes
499

That's what i need.

Thank you very much.