<?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: How to use  BAPI_OBJCL_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333563#M1396388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First obtain all the details through BAPI_OBJCL_GETDETAIL and then perform the change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the object number,&lt;/P&gt;&lt;P&gt;INOB-OBTAB,KLAH-CLASS,KLAH-KLART as the input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 11:33:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-27T11:33:13Z</dc:date>
    <item>
      <title>How to use  BAPI_OBJCL_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333561#M1396386</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;For a Batch Number, I need to change the Characteristic value in MSC2N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have MATNR,WERKS,CHARG, AND  I am also passing BATCH_CLASS as Class  CLASSNUM, 022 as class type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and In tables paramerter  I am exporting the values to the parameter ALLOCVALUESCHARNEW.( Z_STD_BARRIER_MAT,test( value to be updated),STAND / BARRIER &amp;amp; GEL A/B as character description).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am getting the error while testing the function module as Enter the Batch Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am concatenating material number,plant and Batch number and passing to  OBJECTKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly, let me know if anybody has already used the function-module BAPI_OBJCL_CHANGE,if anyother function module for the same purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;xavier.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333561#M1396386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  BAPI_OBJCL_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333562#M1396387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_OBJCL_CHANGE" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_OBJCL_CHANGE&lt;/A&gt;&lt;EM&gt;for&lt;/EM&gt;modifying&lt;EM&gt;characteristics&lt;/EM&gt;values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1041729"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kpsgoutam on Oct 27, 2009 12:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:28:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333562#M1396387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T11:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  BAPI_OBJCL_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333563#M1396388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First obtain all the details through BAPI_OBJCL_GETDETAIL and then perform the change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the object number,&lt;/P&gt;&lt;P&gt;INOB-OBTAB,KLAH-CLASS,KLAH-KLART as the input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333563#M1396388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T11:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  BAPI_OBJCL_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333564#M1396389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen the Posting. I have tried to pass batch number as Object key and MCHA as Object table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am getting the error as Enter the batch Number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333564#M1396389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T11:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  BAPI_OBJCL_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333565#M1396390</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;DATA : OBJECTKEY type BAPI1003_KEY-OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BAPI1003_KEY-OBJECT&lt;/STRONG&gt; this is structure having some fields. just double click you will find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTKEY-OBJECT = Matnr --&amp;gt;You need to Use the Conversion Exits if required. --&amp;gt; double click on Matnr Domain here you can find the Conversion Routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTKEY-OBJECTTABLE = MCHA  --&amp;gt; This is the Table you need to update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For More Clarity click on the Where Used List of FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For More info Please go through the FM documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333565#M1396390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T11:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  BAPI_OBJCL_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333566#M1396391</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;Chk the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: git_bapi1003 type table of bapi1003_alloc_values_num,

      git_values_char type table of bapi1003_alloc_values_char,

      git_values_curr type table of bapi1003_alloc_values_curr,

      git_bapiret2    type table of bapiret2,

      ls_bapiret2           type bapiret2.

data: gs_bapi1003     type bapi1003_alloc_values_num,

      gs_values_char  type bapi1003_alloc_values_char,

      gs_values_curr  type bapi1003_alloc_values_char,

      gc_flag_x(1)       type c value 'X'.

 gs_values_char-charact = 'VIEWS_ID'.       "Characteristics

 gs_values_char-value_char = '012'.         "characteristics value

 append gs_values_char to git_values_char.

CALL FUNCTION 'BAPI_OBJCL_CHANGE'

  EXPORTING

    objectkey                = '1100000028' "Customer

    objecttable              = 'KNA1'         

    classnum                 = 'CATALOG_VIEW_CUST' "Class Number

    classtype                = '011'               "Class Type

*   STATUS                   = '1'

*   STANDARDCLASS            =

*   CHANGENUMBER             =

*   KEYDATE                  = SY-DATUM

*   NO_DEFAULT_VALUES        = ' '

* IMPORTING

*   CLASSIF_STATUS           =

  tables

    allocvaluesnumnew        = git_bapi1003

    allocvaluescharnew       = git_values_char

    allocvaluescurrnew       = git_values_curr

    return                   = git_bapiret2

          .

call function 'BAPI_TRANSACTION_COMMIT'

 exporting

   wait          = 'X'

 importing

   return        = ls_bapiret2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;&lt;P&gt;Harini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 11:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-bapi-objcl-change/m-p/6333566#M1396391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T11:50:50Z</dc:date>
    </item>
  </channel>
</rss>

