<?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: help with materials in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550320#M249719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thanks but do you have an example to use this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2006 18:02:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-07T18:02:38Z</dc:date>
    <item>
      <title>help with materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550317#M249716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first i need to know in wich table is the long description of a material, i looked in the makt but only has the short description. i found in the mm03 if i look my material that is 111 and i select the tab sales text has a text box where is the description of the material. can anybody helpe telling me where is that value storaged?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 17:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550317#M249716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T17:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: help with materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550318#M249717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This long text is stored in sapscript text, tables STXH and STXL,  you can't read it directly though.  You need to read it via the fucntion module READ_TEXT, you will need to know the object and id and the naming convention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 17:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550318#M249717</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-07T17:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: help with materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550319#M249718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the following program, this is how you will get the text.  You need to concatenate the material number with the sales org and distribution channel, this is your NAME,  the object is MVKE and the id is 0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: name type thead-tdname.
data: lines type table of  TLINE with header line.

parameters: p_matnr type mvke-matnr,
            p_vkorg type mvke-vkorg,
            p_vtweg type mvke-vtweg.

concatenate p_matnr p_vkorg p_vtweg into name.


call function 'READ_TEXT'
  exporting
    id                            = '0001'
    language                      = sy-langu
    name                          = name
    object                        = 'MVKE'
  tables
    lines                         = lines
 EXCEPTIONS
   ID                            = 1
   LANGUAGE                      = 2
   NAME                          = 3
   NOT_FOUND                     = 4
   OBJECT                        = 5
   REFERENCE_CHECK               = 6
   WRONG_ACCESS_TO_ARCHIVE       = 7
   OTHERS                        = 8.


loop at lines.
write:/ lines-tdline.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 18:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550319#M249718</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-07T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: help with materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550320#M249719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thanks but do you have an example to use this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 18:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550320#M249719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T18:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: help with materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550321#M249720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For sales text, I believe you'll find your data using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TDOBJECT = 'MVKE'&lt;/P&gt;&lt;P&gt;TDNAME = concatenate of MATNR, VKORG, VTWEG&lt;/P&gt;&lt;P&gt;TDID = usually '0001', but could be different depending on your system.&lt;/P&gt;&lt;P&gt;TDSPRAS = language&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These correspond to OBJECT, NAME, ID, LANGUAGE in the READ_TEXT function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can verify that the record exists by looking at STXH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 18:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550321#M249720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T18:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: help with materials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550322#M249721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;You have to used the READ_TEXT functions to read the SAP long text. To check your long text header, go into the long text. &amp;lt;b&amp;gt;Click Goto -&amp;gt; Header&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'READ_TEXT' 
       EXPORTING 
*           CLIENT                  = SY-MANDT 
          ID                      = &amp;lt;Give the ID&amp;gt; 
          LANGUAGE                = 'E' 
          NAME                    = &amp;lt;Object Name&amp;gt; 
          OBJECT                  = '&amp;lt;Object Name&amp;gt;' 
*         ARCHIVE_HANDLE          = 0 
     IMPORTING 
          HEADER                  = HTEXT 
     TABLES 
          LINES                   = LTEXT 
     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;For Header text details, Click Goto -&amp;gt; Header, then you will find the ID,NAme and Object&lt;/P&gt;&lt;P&gt;For details text, Click Goto -&amp;gt; Detail.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Example Program for your sake:-&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZTEXT . 
TABLES: PBIM. 
* stxh, stxl, stxb - trans tables for text 
* ttxit - text on text-ids 
* ttxot - Short texts on text objects 
* Transaction MD63 
SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR, 
                S_WERKS FOR PBIM-WERKS. 

DATA: BEGIN OF HTEXT. 
        INCLUDE STRUCTURE THEAD. 
DATA: END OF HTEXT. 

DATA: BEGIN OF LTEXT OCCURS 50. 
        INCLUDE STRUCTURE TLINE. 
DATA: END OF LTEXT. 

DATA: BEGIN OF DTEXT OCCURS 50. 
DATA:   MATNR LIKE PBIM-MATNR. 
        INCLUDE STRUCTURE TLINE. 
DATA: END OF DTEXT. 

DATA: TNAME LIKE THEAD-TDNAME. 

SELECT * FROM PBIM WHERE WERKS IN S_WERKS. 
  MOVE PBIM-BDZEI TO TNAME. 
  CALL FUNCTION 'READ_TEXT' 
       EXPORTING 
*           CLIENT                  = SY-MANDT 
          ID                      = 'PB' 
          LANGUAGE                = 'E' 
          NAME                    = TNAME 
          OBJECT                  = 'PBPT' 
*         ARCHIVE_HANDLE          = 0 
     IMPORTING 
          HEADER                  = HTEXT 
     TABLES 
          LINES                   = LTEXT 
     EXCEPTIONS 
          ID                      = 1 
          LANGUAGE                = 2 
          NAME                    = 3 
          NOT_FOUND               = 4 
          OBJECT                  = 5 
          REFERENCE_CHECK         = 6 
          WRONG_ACCESS_TO_ARCHIVE = 7 
          OTHERS                  = 8. 
  LOOP AT LTEXT. 
    IF LTEXT-TDLINE NE ''. 
      MOVE LTEXT-TDLINE TO DTEXT-TDLINE. 
      MOVE PBIM-MATNR TO DTEXT-MATNR. 
      APPEND DTEXT. 
    ENDIF. 
  ENDLOOP. 
ENDSELECT. 
LOOP AT DTEXT. 
  WRITE:/ DTEXT-MATNR, DTEXT-TDLINE. 
ENDLOOP. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Mark all the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 18:08:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-materials/m-p/1550322#M249721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T18:08:17Z</dc:date>
    </item>
  </channel>
</rss>

