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 Exit

Former Member
0 Likes
909

I have created a Search help exit and it is working fine showing a pop-up ALV display.

but wen i double click on any row then it is giving me value in debugging but not returning that value to my field for which i made this search help.

this is code which i'm writing to update value

*&--Call the module to dispatch the values

CALL FUNCTION 'F4UT_RESULTS_MAP'

TABLES

shlp_tab = shlp_tab

record_tab = record_tab

source_tab = t_source_tab

CHANGING

shlp = shlp

callcontrol = callcontrol

EXCEPTIONS

illegal_structure = 1

OTHERS = 2.

IF sy-subrc = 0.

LOOP AT record_tab INTO wa_record_tab.

wa_record_tab-string = w_lifnr.

MODIFY record_tab FROM wa_record_tab TRANSPORTING string.

ENDLOOP.

*&--Pss the command return for leaving the help

callcontrol-step = 'RETURN'.

ENDIF.

-


Thanks and Regards,

Vivek Gaur

I have created a Search help exit and it is working fine showing a pop-up ALV display.

but wen i double click on any row then it is giving me value in debugging but not returning that value to my field for which i made this search help.

this is code which i'm writing to update value

*&--Call the module to dispatch the values

CALL FUNCTION 'F4UT_RESULTS_MAP'

TABLES

shlp_tab = shlp_tab

record_tab = record_tab

source_tab = t_source_tab

CHANGING

shlp = shlp

callcontrol = callcontrol

EXCEPTIONS

illegal_structure = 1

OTHERS = 2.

IF sy-subrc = 0.

LOOP AT record_tab INTO wa_record_tab.

wa_record_tab-string = w_lifnr.

MODIFY record_tab FROM wa_record_tab TRANSPORTING string.

ENDLOOP.

*&--Pss the command return for leaving the help

callcontrol-step = 'RETURN'.

ENDIF.

-


Thanks and Regards,

Vivek Gaur

7 REPLIES 7
Read only

former_member156446
Active Contributor
0 Likes
878

open the search help in se11 and check the import export check boxes as per you requirement.

Read only

0 Likes
878

already checked and it is fine

Read only

0 Likes
878

check if you have the parameter assignment done right.

Read only

0 Likes
878

i'm not using any export parameter rather i'm just updating this RECORD_TAB only..

Read only

0 Likes
878

Check if this [code>>|https://wiki.sdn.sap.com/wiki/x/du0] helps you

CALL FUNCTION 'F4UT_RESULTS_MAP'

Read only

0 Likes
878

I'm already using it man..read the question it is clearly stated there.

Thanx.

Read only

0 Likes
878

ok tell me one thing that how do you display ALV in SEARCH EXIT