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

reference program not found

former_member203501
Active Contributor
0 Likes
1,144

hi all,

i am working with the class CL_TEXT_IDENTIFIER , there is no method called GET_INSTANCE for instance creation, but it is giving me dump(if i am not declaring an instance). i searched and i found program RS_TEXT_IDENTIFY_TEXT for reference of this class in this link http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm

but the program is not existing in ECC 5.0 and ECC 6.0 too. could you please help me how to work with this class.

Thanks in advance.

9 REPLIES 9
Read only

Pawan_Kesari
Active Contributor
0 Likes
1,109

Instance of the class can be created using CREATE OBJECT statement. See code below

DATA : ob_text TYPE REF TO cl_text_identifier ,

       it_text TYPE tttext255                 ,
       ls_text TYPE text255                   .

CREATE OBJECT ob_text .

CALL METHOD ob_text->get_available_texts
  EXPORTING
    tabname         = 'MARA'
    fieldname       = 'MATNR'
    max_nr_of_texts = 10
  IMPORTING
    texts           = it_text.

LOOP AT it_text INTO ls_text .
  WRITE ls_text .
ENDLOOP .

Read only

Former Member
0 Likes
1,109

You can find GET_INSTANCE in CL_EXITHANDLER.

But I am not clear about your question,would you explain in detail please

Read only

Former Member
0 Likes
1,109

Hi,

i think it's RS_TEST_IDENTIFY_TEXT.

Regards, Dieter

Read only

former_member203501
Active Contributor
0 Likes
1,109

I am looking for the reference program....RS_TEXT_IDENTIFY_TEXT

Read only

0 Likes
1,109

may be that is mistakenly printed, you can refer the program RS_TEST_IDENTIFY_TEXT as mentioned by Dieter.

Read only

0 Likes
1,109

Hi,

do you look in my answer?

Regards, Dieter

Read only

0 Likes
1,109

Thanks vijay,

i have seen the program RS_TEST_IDENTIFY_TEXT. But how can it be corrected in the SDN help portal. Can you tell me a way for doing this, will i need to raise a request in any portal for this .

Thanks Dieter. I saw it.

Read only

0 Likes
1,109

The link is pointing to SAP's official help documentation. So i am not sure..but you can get some help from Market place.

Read only

0 Likes
1,109

Thanks Vijay.