<?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: creating classification view for the material in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137540#M1513113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Select klart from AUSP into table t_ausp where OBJEK = wa_final-matnr.



  LOOP AT t_ausp.
    w_classtype = t_ausp-klart.
    CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
      EXPORTING
        classtext            = 'X'
        classtype            = w_classtype
        language             = sy-langu
        object               = w_object
        objecttable          = 'MARA'
*         no_value_descript    = w_no_value_descript
        change_service_clf   = 'X'
        inherited_char       = ' '
        change_number        = ' '
      TABLES
        t_class              = t_class
        t_objectdata         = t_objectdata
        i_sel_characteristic = i_sel_characteristic
        t_no_auth_charact    = t_no_auth_charact
      EXCEPTIONS
        no_classification    = 1
        no_classtypes        = 2
        invalid_class_type   = 3
        OTHERS               = 4.
    IF sy-subrc &amp;lt;&amp;gt; 0.
    ENDIF.

    LOOP AT t_class WHERE class IN s_class.
      CLEAR : t_allocvaluesnum,t_allocvalueschar,t_allocvaluescurr,
              t_lreturn.
      REFRESH : t_allocvaluesnum,t_allocvalueschar,t_allocvaluescurr,
                t_lreturn.
      w_classnum = t_class-class.
*       Getting the reference tables and values----------------
      CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
        EXPORTING
          objectkey        = w_objectkey                      "Old reference Material
          objecttable      = 'MARA'
          classnum         = w_classnum
          classtype        = w_classtype
*          unvaluated_chars = 'X'
        TABLES
          allocvaluesnum   = t_allocvaluesnum
          allocvalueschar  = t_allocvalueschar
          allocvaluescurr  = t_allocvaluescurr
          return           = t_lreturn.
*     Create with reference-----------------------
      w_objectkeynew = wa_inputfile-to_matnr.
      CALL FUNCTION 'BAPI_OBJCL_CREATE'
        EXPORTING
          objectkeynew    = w_objectkeynew                "New Material 
          objecttablenew  = 'MARA'
          classnumnew     = w_classnum
          classtypenew    = w_classtype
        TABLES
          allocvaluesnum  = t_allocvaluesnum
          allocvalueschar = t_allocvalueschar
          allocvaluescurr = t_allocvaluescurr
          return          = t_lreturn.
    ENDLOOP.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 14:02:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-31T14:02:18Z</dc:date>
    <item>
      <title>creating classification view for the material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137539#M1513112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to create a material with various views (as in MM03) based on the material type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using BAPI_MATERIAL_SAVEDATA for it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am able to create almost all the views except the the classification view for the material. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me with code (i need to write) to create a classification view for the material?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 13:56:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137539#M1513112</guid>
      <dc:creator>karthik_rajaspic</dc:creator>
      <dc:date>2010-08-31T13:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: creating classification view for the material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137540#M1513113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Select klart from AUSP into table t_ausp where OBJEK = wa_final-matnr.



  LOOP AT t_ausp.
    w_classtype = t_ausp-klart.
    CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
      EXPORTING
        classtext            = 'X'
        classtype            = w_classtype
        language             = sy-langu
        object               = w_object
        objecttable          = 'MARA'
*         no_value_descript    = w_no_value_descript
        change_service_clf   = 'X'
        inherited_char       = ' '
        change_number        = ' '
      TABLES
        t_class              = t_class
        t_objectdata         = t_objectdata
        i_sel_characteristic = i_sel_characteristic
        t_no_auth_charact    = t_no_auth_charact
      EXCEPTIONS
        no_classification    = 1
        no_classtypes        = 2
        invalid_class_type   = 3
        OTHERS               = 4.
    IF sy-subrc &amp;lt;&amp;gt; 0.
    ENDIF.

    LOOP AT t_class WHERE class IN s_class.
      CLEAR : t_allocvaluesnum,t_allocvalueschar,t_allocvaluescurr,
              t_lreturn.
      REFRESH : t_allocvaluesnum,t_allocvalueschar,t_allocvaluescurr,
                t_lreturn.
      w_classnum = t_class-class.
*       Getting the reference tables and values----------------
      CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
        EXPORTING
          objectkey        = w_objectkey                      "Old reference Material
          objecttable      = 'MARA'
          classnum         = w_classnum
          classtype        = w_classtype
*          unvaluated_chars = 'X'
        TABLES
          allocvaluesnum   = t_allocvaluesnum
          allocvalueschar  = t_allocvalueschar
          allocvaluescurr  = t_allocvaluescurr
          return           = t_lreturn.
*     Create with reference-----------------------
      w_objectkeynew = wa_inputfile-to_matnr.
      CALL FUNCTION 'BAPI_OBJCL_CREATE'
        EXPORTING
          objectkeynew    = w_objectkeynew                "New Material 
          objecttablenew  = 'MARA'
          classnumnew     = w_classnum
          classtypenew    = w_classtype
        TABLES
          allocvaluesnum  = t_allocvaluesnum
          allocvalueschar = t_allocvalueschar
          allocvaluescurr = t_allocvaluescurr
          return          = t_lreturn.
    ENDLOOP.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 14:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137540#M1513113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-31T14:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: creating classification view for the material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137541#M1513114</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;thanks a lot for your information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i do not know what values i need to fill in the tables (used in FM's). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me with it? i mean with some sample data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 14:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137541#M1513114</guid>
      <dc:creator>karthik_rajaspic</dc:creator>
      <dc:date>2010-08-31T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: creating classification view for the material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137542#M1513115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create the classification view for the material...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. first create the material using the function module BAPI_MATERIAL_SAVEDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. call the function module BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. call the function module BAPI_OBJCL_CREATE by passing the material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. again, call the function module BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. use COMMIT WORK statement in the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the classification view will be created for the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks for all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 12:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-classification-view-for-the-material/m-p/7137542#M1513115</guid>
      <dc:creator>karthik_rajaspic</dc:creator>
      <dc:date>2010-09-15T12:41:33Z</dc:date>
    </item>
  </channel>
</rss>

