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
1,020

Hello all,

I have implemented an elementary Search help with few fields.

I have attched a search help exit and now i need to chnge the Description of one my field appearing on the search help.

E.g : The Text coming from the standard data element is DESCRIPTION (2) and i need to change it to DESCRIPTION LINE.

I was trying to implement the code in SELECT step.But it is not working.

Can anyone suggest.

Regards,

Arun

Hello all,

I have implemented an elementary Search help with few fields.

I have attched a search help exit and now i need to chnge the Description of one my field appearing on the search help.

E.g : The Text coming from the standard data element is DESCRIPTION (2) and i need to change it to DESCRIPTION LINE.

I was trying to implement the code in SELECT step.But it is not working.

Can anyone suggest.

Regards,

Arun

7 REPLIES 7
Read only

awin_prabhu
Active Contributor
0 Likes
975

Hi Arun,

Put ur code in DISP step. This step gets executed before displaying the hit list. So its the right place to change description of search help field .

*Before displaying hitlist

IF callcontrol-step = 'DISP'.

" Here u have to modify value in field REPTEXT in table SHLP_TAB - FIELDDESCR with ur new description

Endif.

Hope helps u.

Any further questions revert back

Thanks,

Edited by: Sap Fan on Oct 30, 2009 12:39 PM

Read only

0 Likes
975

Hello.

I have implemented the following code in the search help exit.

But still the value is not getting changed.

CASE callcontrol-step.

  • Change column header texts appearing on the search help hit list

LOOP AT shlp-fielddescr INTO wa_fielddescr.

CLEAR v_tabix.

v_tabix = sy-tabix.

CASE wa_fielddescr-fieldname.

WHEN 'TXA50'.

wa_fielddescr-fieldtext = 'Description Line 2'.

wa_fielddescr-reptext = 'Description'.

wa_fielddescr-scrtext_s = 'Description'.

wa_fielddescr-scrtext_m = 'Description Line 2'.

wa_fielddescr-scrtext_l = 'Description Line 2'.

MODIFY shlp-fielddescr FROM wa_fielddescr INDEX sy-tabix

TRANSPORTING fieldtext reptext scrtext_s scrtext_m scrtext_l.

ENDCASE.

ENDLOOP.

ENDCASE.

Kindly suggest if i am doing anything wrong.

Regards,

Arun

Read only

0 Likes
975

Please find my code which i have written.

CASE callcontrol-step.

  • Change column header texts appearing on the search help hit list

WHEN 'SELECT'.

LOOP AT shlp-fielddescr INTO wa_fielddescr.

CLEAR v_tabix.

v_tabix = sy-tabix.

CASE wa_fielddescr-fieldname.

WHEN 'TXA50'.

wa_fielddescr-fieldtext = 'Description Line 2'.

wa_fielddescr-reptext = 'Description'.

wa_fielddescr-scrtext_s = 'Description'.

wa_fielddescr-scrtext_m = 'Description Line 2'.

wa_fielddescr-scrtext_l = 'Description Line 2'.

MODIFY shlp-fielddescr FROM wa_fielddescr INDEX sy-tabix

TRANSPORTING fieldtext reptext scrtext_s scrtext_m scrtext_l.

ENDCASE.

ENDLOOP.

ENDCASE.

Regards,

Arun

Read only

0 Likes
975

Hi Arun,

Use below code. I have changed few lines in ur code.

CASE callcontrol-step.

  • Change column header texts appearing on the search help hit list

WHEN 'DISP'. " <--- Use 'DISP' step

LOOP AT SHLP_TAB-fielddescr INTO wa_fielddescr. " <--- Loop at SHLP_TAB instead of shlp

CLEAR v_tabix.

v_tabix = sy-tabix.

CASE wa_fielddescr-fieldname.

WHEN 'TXA50'.

wa_fielddescr-reptext = 'Description Line 2'. " <----- Change only REPTEXT

MODIFY shlp_tab-fielddescr FROM wa_fielddescr INDEX sy-tabix "<--- Modify SHLP_TAB-fielddescr

TRANSPORTING reptext.

ENDCASE.

ENDLOOP.

ENDCASE.

Thanks,

Read only

former_member191735
Active Contributor
0 Likes
975

Better to use your own data element if you can - this will fix your problem without writing 100 lines of code

Edited by: Sampath Kumar on Oct 30, 2009 7:42 AM

Read only

Former Member
0 Likes
975

Thx

Read only

0 Likes
975

Hi Arun,

Whether its working fine?

Thanks