Application Development 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: 

reference program not found

former_member203501
Active Contributor
0 Kudos

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

Pawan_Kesari
Active Contributor
0 Kudos

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 .

Former Member
0 Kudos

You can find GET_INSTANCE in CL_EXITHANDLER.

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

Former Member
0 Kudos

Hi,

i think it's RS_TEST_IDENTIFY_TEXT.

Regards, Dieter

former_member203501
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

do you look in my answer?

Regards, Dieter

0 Kudos

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.

0 Kudos

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

0 Kudos

Thanks Vijay.