2009 Oct 30 9:18 AM
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
2009 Oct 30 11:37 AM
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
2009 Oct 30 1:25 PM
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
2009 Oct 30 1:30 PM
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
2009 Oct 30 2:10 PM
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,
2009 Oct 30 1:42 PM
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
2009 Nov 02 7:59 AM
2009 Nov 02 8:08 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |