Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Search Keyword

$
0
0

Hi Friends,

                    I Studied about Search Keyword and i am using search keyword in report and i prepared one itab of ty_text having one field text(32) type c and i am filling the itab as follows.

 

 

clear : wa_text.

wa_text-text = 'LMN'.

append wa_text to lt_text.

 

clear : wa_text.

wa_text-text = 'ABC'.

append wa_text to lt_text.

 

clear : wa_text.

wa_text-text = 'ABC.

append wa_text to lt_text.

 

if lt_text[] is not initial.

sort lt_text as text.

search lt_text for 'LMN'.

if sy-subrc eq 0.

write : / 'The Sy-fdpos is ', sy-fdpos.

endif.

endif.

 

But here my problem i am getting sy-fdpos eq 0  but i studied in abap help it will return fdpos .

 

Please Help me.

 

 

Thanks,

Raghunadh.K


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>