‎2009 Apr 27 1:12 PM
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.
‎2009 Apr 27 1:36 PM
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 .
‎2009 Apr 27 1:38 PM
You can find GET_INSTANCE in CL_EXITHANDLER.
But I am not clear about your question,would you explain in detail please
‎2009 Apr 27 1:41 PM
‎2009 Apr 27 1:57 PM
I am looking for the reference program....RS_TEXT_IDENTIFY_TEXT
‎2009 Apr 27 2:09 PM
may be that is mistakenly printed, you can refer the program RS_TEST_IDENTIFY_TEXT as mentioned by Dieter.
‎2009 Apr 27 2:15 PM
‎2009 Apr 27 2:22 PM
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.
‎2009 Apr 27 2:26 PM
The link is pointing to SAP's official help documentation. So i am not sure..but you can get some help from Market place.
‎2009 Apr 27 2:32 PM