<?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 Extract the classification data into internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108538#M440348</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;I having requirement to extract classification data for material number.&lt;/P&gt;&lt;P&gt;1) Provide the selection option for material number (MATNR).&lt;/P&gt;&lt;P&gt;2) Based on the material number, then extract all that data into internal table as below layout. My problem is how to retrieve the following data from different table based on the MATNR (material number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the sample code for select the following data. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classification table&lt;/P&gt;&lt;P&gt;OBJEK  (from AUSP table)&lt;/P&gt;&lt;P&gt;MAFID (from AUSP table)&lt;/P&gt;&lt;P&gt;KLART (from AUSP table)&lt;/P&gt;&lt;P&gt;CLASS  (from KLAH table)&lt;/P&gt;&lt;P&gt;ATWRT (from AUSP table)&lt;/P&gt;&lt;P&gt;MSEHI  (from CABN table)&lt;/P&gt;&lt;P&gt;OBTAB (check if class type=002, set it as &amp;#147;MARA&amp;#148;)&lt;/P&gt;&lt;P&gt;STDCL (from KSSK table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2007 02:08:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-04T02:08:32Z</dc:date>
    <item>
      <title>Extract the classification data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108538#M440348</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;I having requirement to extract classification data for material number.&lt;/P&gt;&lt;P&gt;1) Provide the selection option for material number (MATNR).&lt;/P&gt;&lt;P&gt;2) Based on the material number, then extract all that data into internal table as below layout. My problem is how to retrieve the following data from different table based on the MATNR (material number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the sample code for select the following data. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classification table&lt;/P&gt;&lt;P&gt;OBJEK  (from AUSP table)&lt;/P&gt;&lt;P&gt;MAFID (from AUSP table)&lt;/P&gt;&lt;P&gt;KLART (from AUSP table)&lt;/P&gt;&lt;P&gt;CLASS  (from KLAH table)&lt;/P&gt;&lt;P&gt;ATWRT (from AUSP table)&lt;/P&gt;&lt;P&gt;MSEHI  (from CABN table)&lt;/P&gt;&lt;P&gt;OBTAB (check if class type=002, set it as &amp;#147;MARA&amp;#148;)&lt;/P&gt;&lt;P&gt;STDCL (from KSSK table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 02:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108538#M440348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T02:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the classification data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108539#M440349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something to correct my Classification table, it should be as below. Could I know how i can select the below data from different table into internal table. What I the linking between below tables. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJEK (from AUSP table)&lt;/P&gt;&lt;P&gt;MAFID (from AUSP table)&lt;/P&gt;&lt;P&gt;KLART (from AUSP table)&lt;/P&gt;&lt;P&gt;CLASS (from KLAH table)&lt;/P&gt;&lt;P&gt;ATWRT (from AUSP table)&lt;/P&gt;&lt;P&gt;ATAW1 (from AUSP table)&lt;/P&gt;&lt;P&gt;OBTAB (check if class type=002, set it as &amp;#147;MARA&amp;#148;)&lt;/P&gt;&lt;P&gt;STDCL (from KSSK table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 04:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108539#M440349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T04:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the classification data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108540#M440350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand, you´re trying to get information from the classification system for the material. You can use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: clases LIKE TABLE OF sclass WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      datos LIKE TABLE OF clobjdat WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          class              = 'DESK'               "clase a buscar&lt;/P&gt;&lt;P&gt;          classtype          = '001'                "tipo de la clase&lt;/P&gt;&lt;P&gt;          features           = 'X'&lt;/P&gt;&lt;P&gt;          language           = sy-langu&lt;/P&gt;&lt;P&gt;          object             = 'PM00A000C055'       "Material&lt;/P&gt;&lt;P&gt;          objecttable        = 'MARA'&lt;/P&gt;&lt;P&gt;          key_date           = sy-datum&lt;/P&gt;&lt;P&gt;          initial_charact    = 'X'&lt;/P&gt;&lt;P&gt;          change_service_clf = 'X'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;          t_class            = clases&lt;/P&gt;&lt;P&gt;          t_objectdata       = datos&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          no_classification  = 1&lt;/P&gt;&lt;P&gt;          no_classtypes      = 2&lt;/P&gt;&lt;P&gt;          invalid_class_type = 3&lt;/P&gt;&lt;P&gt;          OTHERS             = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at datos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 09:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108540#M440350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T09:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the classification data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108541#M440351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've solved my own. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 02:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-the-classification-data-into-internal-table/m-p/2108541#M440351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T02:30:51Z</dc:date>
    </item>
  </channel>
</rss>

