<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Retrieve textname from characteristic value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602321#M1276741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glenn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution to ur problem. Instead of concatenating atzhl with characteristic number (ATINN) concatenate (ATINN,TXTNR) and then pass into the name parameter of READ_TEXT. u will get TXTNR from CAWN table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve ur problem.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 06:09:31 GMT</pubDate>
    <dc:creator>former_member438956</dc:creator>
    <dc:date>2009-05-18T06:09:31Z</dc:date>
    <item>
      <title>Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602310#M1276730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using FM read_text to get the documentation/long text for a characteristic value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'READ_TEXT'
       EXPORTING
            id                      = c_tdid
            language                = c_tdspras
            name                    = ????
            object                  = c_tdobject
       TABLES
            lines                   = i_tline[]
       EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I don't know how to retrieve the textname of a specific characteristic value.&lt;/P&gt;&lt;P&gt;In transaction CT04, I go to the documentation and then header...&lt;/P&gt;&lt;P&gt;The textname written there is 00000003770001, but is it possible to get this text name using a FM/BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602310#M1276730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602311#M1276731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi glenn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put the characteristic name in cabn table and get atinn field from it. then query cawn table and get atzhl field. concatenate the two fields(atinn and atzhl) and put into name parameter of fm 'READ_TEXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            id                      = 'VALU'&lt;/P&gt;&lt;P&gt;            language                = 'E'&lt;/P&gt;&lt;P&gt;            name                    = CONCATENATE(ATINN,ATZHL)&lt;/P&gt;&lt;P&gt;            object                  = 'FEATURE'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            lines                   = i_tline[]&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            id                      = 1&lt;/P&gt;&lt;P&gt;            language                = 2&lt;/P&gt;&lt;P&gt;            name                    = 3&lt;/P&gt;&lt;P&gt;            not_found               = 4&lt;/P&gt;&lt;P&gt;            object                  = 5&lt;/P&gt;&lt;P&gt;            reference_check         = 6&lt;/P&gt;&lt;P&gt;            wrong_access_to_archive = 7&lt;/P&gt;&lt;P&gt;            OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602311#M1276731</guid>
      <dc:creator>former_member438956</dc:creator>
      <dc:date>2009-05-04T09:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602312#M1276732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi glen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text name is nothing but the document number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example you want to read the header text of the PO, then text name will be PO number&lt;/P&gt;&lt;P&gt;            and if you wnat to read the item text of the PO, then text name will be concatenation of PO item and PO number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see how a text name value is define dfor a particular text object and text id , goto STXH table and input your object and id . so that you can see what is the text names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;vamshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602312#M1276732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602313#M1276733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u can use FM to change ur characteristic name into digits which u will pass in name parameter in READ_TEXT.&lt;/P&gt;&lt;P&gt;The FM is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ATINN_INPUT&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INPUT = ' charactername'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = CHARNUMBER.&lt;/P&gt;&lt;P&gt;This character no.  is to be passed to READ_TEXT in NAME parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602313#M1276733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602314#M1276734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not work for characteristic values, only for characteristics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. I want to know the internal value of characteristic value 'AVAILABLE' of characteristic 'DEVICE_STATUS'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602314#M1276734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602315#M1276735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try your solution.&lt;/P&gt;&lt;P&gt;So there is no FM to get this internal value directly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602315#M1276735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602316#M1276736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What all the inputst u have i.e sales order number, item or material number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this FM&lt;/P&gt;&lt;P&gt;BAPI_CLASS_GET_CHARACTERISTICS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602316#M1276736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602317#M1276737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm now using this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Definition
  DEFINE _convert_atinn.
    call function 'CONVERSION_EXIT_ATINN_INPUT'
         exporting
              input  = &amp;amp;1
         importing
              output = &amp;amp;2.
  END-OF-DEFINITION.


* Get internal value of characteristic
  _convert_atinn 'DEVICE_STATUS' lw_attin.

* Get internal value of characteristic value
  SELECT SINGLE atzhl
  FROM cawn
  INTO lw_atzhl
  WHERE atinn = lw_attin
      AND atwrt = 'AVAILABLE'.

* Concatenate the 2 values
  CONCATENATE lw_attin lw_atzhl INTO lw_name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602317#M1276737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602318#M1276738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this table&lt;/P&gt;&lt;P&gt;/SAPHT/MESZPCHAR&lt;/P&gt;&lt;P&gt;HOPE U CAN GET THE TEXT NAME&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;s.janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602318#M1276738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602319#M1276739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u use the first conversion routine which i posted earliner to get the number so eg. 000081&lt;/P&gt;&lt;P&gt;Now if the value is the first value of this character then u have to append 0001 to 00881&lt;/P&gt;&lt;P&gt;i.e. it becomes 00000000000008810001 (16 fields is the length of this).&lt;/P&gt;&lt;P&gt;Now u pass this value to ur read_text u'll get the right value for the characteristic value(if its 1st value and 0002 if its 2nd value and so on).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602319#M1276739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602320#M1276740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This apparently doesn't work.&lt;/P&gt;&lt;P&gt;When you change the order of the values in CT04, the value CAWN-ATZHL also changes...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 06:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602320#M1276740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T06:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602321#M1276741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glenn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution to ur problem. Instead of concatenating atzhl with characteristic number (ATINN) concatenate (ATINN,TXTNR) and then pass into the name parameter of READ_TEXT. u will get TXTNR from CAWN table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve ur problem.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 06:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602321#M1276741</guid>
      <dc:creator>former_member438956</dc:creator>
      <dc:date>2009-05-18T06:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve textname from characteristic value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602322#M1276742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! That's indeed the solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 06:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-textname-from-characteristic-value/m-p/5602322#M1276742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T06:14:16Z</dc:date>
    </item>
  </channel>
</rss>

