<?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: BAPI BAPI_OBJCL_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363365#M7800</link>
    <description>&lt;P&gt;I have had it be 023 MCH1 in the past... MCH1 and 023 both are used for cross-plant batches which makes sense.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2017 15:19:42 GMT</pubDate>
    <dc:creator>raghug</dc:creator>
    <dc:date>2017-01-27T15:19:42Z</dc:date>
    <item>
      <title>BAPI BAPI_OBJCL_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363362#M7797</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;  I am using BAPI BAPI_OBJCL_CREATE for creating classification view.&lt;/P&gt;&lt;P&gt;i am getting error that "An exception was raised".&lt;/P&gt;&lt;P&gt;Below is my code. &lt;/P&gt;&lt;P&gt;W_CLASSTYPE = '023'&lt;/P&gt;&lt;P&gt;  W_CLASSNUM =  'VI_BATCH'.&lt;/P&gt;&lt;P&gt;  W_OBJECTTABLE = 'MCHA'.&lt;BR /&gt; W_OBJECT = 'RM071'.&lt;/P&gt;&lt;P&gt; DATA: W_CLASSIF_STATUS(1).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; CALL FUNCTION 'BAPI_OBJCL_CREATE'&lt;BR /&gt; EXPORTING&lt;BR /&gt;  OBJECTKEYNEW  = W_OBJECT&lt;BR /&gt;  OBJECTTABLENEW  = W_OBJECTTABLE&lt;BR /&gt;  CLASSNUMNEW  = W_CLASSNUM&lt;BR /&gt;  CLASSTYPENEW  = W_CLASSTYPE&lt;BR /&gt; IMPORTING&lt;BR /&gt;  CLASSIF_STATUS  = W_CLASSIF_STATUS&lt;BR /&gt; TABLES&lt;BR /&gt; RETURN  = W_RETURN&lt;/P&gt;&lt;P&gt;thanx in advance&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 12:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363362#M7797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-01-27T12:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI BAPI_OBJCL_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363363#M7798</link>
      <description>&lt;P&gt;Is not '023' related to 'MARA' and not 'MCHA' (browse table INOB)&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363363#M7798</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-01-27T14:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI BAPI_OBJCL_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363364#M7799</link>
      <description>&lt;P&gt;The first thing I notice here is that the Object is wrong. It is usually a concatenation of the material batch and maybe the plant based on your setup.&lt;/P&gt;&lt;P&gt;Based on your setting you maybe able to see the key directly in table AUSP, or you might have to go through the table INOB to get the internal key from the generated (concatenated) key.&lt;/P&gt;&lt;P&gt;You can either concatenate the key manually, or I prefer using a call to BAPI_OBJCL_CONCATENATEKEY to generate the key for me. In my example I am using class type 022 with objecttable MCHA. You are using 023 which may change your object table to MCH1 or MARA. Like Raymond said, check table INOB to figure out your setup.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    l_objecttable = 'MCHA'.

    l_objectkeytable-key_field = 'MATNR'.
    l_objectkeytable-value_int = l_matnr.
    APPEND l_objectkeytable TO li_objectkeytable.

    l_objectkeytable-key_field = 'WERKS'.
    l_objectkeytable-value_int = werks.
    APPEND l_objectkeytable TO li_objectkeytable.

    l_objectkeytable-key_field = 'CHARG'.
    l_objectkeytable-value_int = charg.
    APPEND l_objectkeytable TO li_objectkeytable.

*... § Get object key for the batch
    CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'
      EXPORTING
        objecttable    = l_objecttable
      IMPORTING
        objectkey_conc = l_objectkey
      TABLES
        objectkeytable = li_objectkeytable
        return         = li_return.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jan 2017 15:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363364#M7799</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2017-01-27T15:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI BAPI_OBJCL_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363365#M7800</link>
      <description>&lt;P&gt;I have had it be 023 MCH1 in the past... MCH1 and 023 both are used for cross-plant batches which makes sense.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 15:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363365#M7800</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2017-01-27T15:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI BAPI_OBJCL_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363366#M7801</link>
      <description>&lt;P&gt;In my systems MARA and MCH1 usually carry this value, so OP should check his Customizing with actual requirement to build a correct key. &lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 06:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-objcl-create/m-p/363366#M7801</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-01-30T06:46:51Z</dc:date>
    </item>
  </channel>
</rss>

