<?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: Pointers needed on Mapping Parameters - BAPI_OBJCL_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pointers-needed-on-mapping-parameters-bapi-objcl-change/m-p/6279909#M1388082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: numc_values type table of bapi1003_alloc_values_num with header line,
        alph_values type table of bapi1003_alloc_values_char with header line,
        curr_values type table of bapi1003_alloc_values_curr with header line,
        return type table of bapiret2 with header line,
        material type bapi1003_key-object.
.
.
  if not data_record-sp_ind is initial.
    move 'spare-part-indicator' to alph_values-charact.
    move data_record-sp_ind to alph_values-value_char.
    append alph_values.
  endif.
.
.
    call function 'BAPI_OBJCL_CHANGE'
      exporting
        objectkey          = material
        objecttable        = 'MARA'
        classnum           = 'SPARES'
        classtype          = '001'
      tables
        allocvaluesnumnew  = numc_values
        allocvaluescharnew = alph_values
        allocvaluescurrnew = curr_values
        return             = return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above is a code snippet from a program we use to maintain chracteristics of a class on material masters. &lt;/P&gt;&lt;P&gt;The object key is indeed the object that is being classified. in this case, the material number. you must first move it to the work field to make sure there is no typing issues with the BAPI. The object table is the table which stores the OBJECT (not the classification table AUSP). The classnum is actuall the NAME of the class, and the class type is the class type (for materials, this is '001' for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the internal tables store the values for the characteristics, and each characteristic goes into one of the three tables, depending on its data type. in the snippet is an example of loading a "character" characteristic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually create a classification manually, and then check it in AUSP, and you will see how the data is stored, and this might also help you. ausp is one of about a dozen or so tables used in classification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this comes from a working, active program, but of course, you use this at your own risk (end of disclaimer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this helps. we do a lot of classification, so if you need any further help, just ask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 18:24:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-09T18:24:54Z</dc:date>
    <item>
      <title>Pointers needed on Mapping Parameters - BAPI_OBJCL_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pointers-needed-on-mapping-parameters-bapi-objcl-change/m-p/6279908#M1388081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to pass correct mapping paramters to BAPI_OBJCL_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to update Characteristics in AUSP table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The paramters being passed:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Import parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OBJECTKEY                      -  &lt;STRONG&gt;what should be the value for Object key ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Should i concatenate Material num and Batch to build Object Key ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OBJECTTABLE                  -  &lt;STRONG&gt;AUSP&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;CLASSNUM                       -  &lt;STRONG&gt;what is Class Num?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CLASSTYPE                      - 023&lt;/P&gt;&lt;P&gt;STATUS                            - '1'&lt;/P&gt;&lt;P&gt;STANDARDCLASS           -&lt;/P&gt;&lt;P&gt;CHANGENUMBER             -&lt;/P&gt;&lt;P&gt;KEYDATE                         -&lt;/P&gt;&lt;P&gt;NO_DEFAULT_VALUES   -  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tables&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALLOCVALUESNUMNEW&lt;/P&gt;&lt;P&gt;ALLOCVALUESCHARNEW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should be populated in the above tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please giude me with some pointers to use the above BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out in this one, its very critical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Madan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 14:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pointers-needed-on-mapping-parameters-bapi-objcl-change/m-p/6279908#M1388081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pointers needed on Mapping Parameters - BAPI_OBJCL_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pointers-needed-on-mapping-parameters-bapi-objcl-change/m-p/6279909#M1388082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: numc_values type table of bapi1003_alloc_values_num with header line,
        alph_values type table of bapi1003_alloc_values_char with header line,
        curr_values type table of bapi1003_alloc_values_curr with header line,
        return type table of bapiret2 with header line,
        material type bapi1003_key-object.
.
.
  if not data_record-sp_ind is initial.
    move 'spare-part-indicator' to alph_values-charact.
    move data_record-sp_ind to alph_values-value_char.
    append alph_values.
  endif.
.
.
    call function 'BAPI_OBJCL_CHANGE'
      exporting
        objectkey          = material
        objecttable        = 'MARA'
        classnum           = 'SPARES'
        classtype          = '001'
      tables
        allocvaluesnumnew  = numc_values
        allocvaluescharnew = alph_values
        allocvaluescurrnew = curr_values
        return             = return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above is a code snippet from a program we use to maintain chracteristics of a class on material masters. &lt;/P&gt;&lt;P&gt;The object key is indeed the object that is being classified. in this case, the material number. you must first move it to the work field to make sure there is no typing issues with the BAPI. The object table is the table which stores the OBJECT (not the classification table AUSP). The classnum is actuall the NAME of the class, and the class type is the class type (for materials, this is '001' for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the internal tables store the values for the characteristics, and each characteristic goes into one of the three tables, depending on its data type. in the snippet is an example of loading a "character" characteristic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually create a classification manually, and then check it in AUSP, and you will see how the data is stored, and this might also help you. ausp is one of about a dozen or so tables used in classification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this comes from a working, active program, but of course, you use this at your own risk (end of disclaimer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this helps. we do a lot of classification, so if you need any further help, just ask.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 18:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pointers-needed-on-mapping-parameters-bapi-objcl-change/m-p/6279909#M1388082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T18:24:54Z</dc:date>
    </item>
  </channel>
</rss>

