<?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 create batch classification using FM VB_CREATE_BATCH in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338072#M1539074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my situation, some of the batch dose not have classificatioin when displaying using MSC3N, so I have to create the classification of the batch in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a test of using FM VB_CREATE_BATCH , I execute FM VB_CREATE_BATCH directly in SE37 and the result is successfully and in the return table of YMCHA, the CUOBJ_BM has value filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I go to table INOB using the CUOBJ_BM for selection, but no result exits in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the classification of the batch dose not created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else should I do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me some advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Oct 2010 04:31:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-22T04:31:15Z</dc:date>
    <item>
      <title>create batch classification using FM VB_CREATE_BATCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338072#M1539074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my situation, some of the batch dose not have classificatioin when displaying using MSC3N, so I have to create the classification of the batch in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a test of using FM VB_CREATE_BATCH , I execute FM VB_CREATE_BATCH directly in SE37 and the result is successfully and in the return table of YMCHA, the CUOBJ_BM has value filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I go to table INOB using the CUOBJ_BM for selection, but no result exits in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the classification of the batch dose not created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else should I do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me some advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 04:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338072#M1539074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T04:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: create batch classification using FM VB_CREATE_BATCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338073#M1539075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Use below code : &lt;/P&gt;&lt;P&gt;I mean Use BAPI.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; it_object-key_field = 'MATNR'.&lt;/P&gt;&lt;P&gt;   it_object-value_int = wa_tab-matnr.&lt;/P&gt;&lt;P&gt;   APPEND it_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   it_object-key_field = 'WERKS'.&lt;/P&gt;&lt;P&gt;   it_object-value_int = wa_tab-werks.&lt;/P&gt;&lt;P&gt;   APPEND it_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   it_object-key_field = 'CHARG'.&lt;/P&gt;&lt;P&gt;   it_object-value_int = wa_tab-charg.&lt;/P&gt;&lt;P&gt;   APPEND it_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;build the object key&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   CALL FUNCTION 'BAPI_OBJCL_CONCATENATEKEY'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       objecttable    = w_obtab&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       objectkey_conc = w_object&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       objectkeytable = it_object&lt;/P&gt;&lt;P&gt;       return         = rettab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;extract the original characteristic data if exists&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   CLEAR:  numtab, chatab, curtab, rettab.&lt;/P&gt;&lt;P&gt;   REFRESH:  numtab, chatab, curtab, rettab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       objectkey       = w_object&lt;/P&gt;&lt;P&gt;       objecttable     = w_obtab&lt;/P&gt;&lt;P&gt;       classnum        = class&lt;/P&gt;&lt;P&gt;       classtype       = klart&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       allocvaluesnum  = numtab&lt;/P&gt;&lt;P&gt;       allocvalueschar = chatab&lt;/P&gt;&lt;P&gt;       allocvaluescurr = curtab&lt;/P&gt;&lt;P&gt;       return          = rettab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Change your characteristics here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_OBJCL_CHANGE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       objectkey          = w_object&lt;/P&gt;&lt;P&gt;       objecttable        = w_obtab&lt;/P&gt;&lt;P&gt;       classnum           = class&lt;/P&gt;&lt;P&gt;       classtype          = klart&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       allocvaluesnumnew  = numtab&lt;/P&gt;&lt;P&gt;       allocvaluescharnew = chatab&lt;/P&gt;&lt;P&gt;       allocvaluescurrnew = curtab&lt;/P&gt;&lt;P&gt;       return             = rettab.&lt;/P&gt;&lt;P&gt;   LOOP AT rettab WHERE type = 'E' OR type = 'A'.&lt;/P&gt;&lt;P&gt;     PERFORM update_error_tab USING rettab-message ' ' wa_tab-matnr wa_tab-charg.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 04:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338073#M1539075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-22T04:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: create batch classification using FM VB_CREATE_BATCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338074#M1539076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;You cannot assign values to characteristics of an object if, at first, the object is not assigned to the class which contains the characteristics you want to valuate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general you have to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Assign the object to the class&lt;/P&gt;&lt;P&gt;2. If step 1 is done, then you can assign values to the characteristics of the class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before start with the characteristics valuation you need to verify if the material is assigned to the batch class (Type 022/023); batches without classification data often mean just that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A typical scenario for this behavior occurs when the batches are created during the goods receipt, the classification is not automatic and the user doesn't have the authorization to classify the material during the goods receipt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you 2 function modules for your issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To assign the material to the class use CACL_OBJECT_ALLOCATION_MAINT&lt;/P&gt;&lt;P&gt;To evaluate the characteristics of the CACL_OBJECT_VALIDATION_MAINT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 08:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338074#M1539076</guid>
      <dc:creator>andrea_olivieri</dc:creator>
      <dc:date>2010-10-22T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: create batch classification using FM VB_CREATE_BATCH</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338075#M1539077</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;You can very well use "BAPI_BATCH_SAVE_REPLICA", this will update the batch characteristics..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 09:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-batch-classification-using-fm-vb-create-batch/m-p/7338075#M1539077</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2010-10-22T09:06:21Z</dc:date>
    </item>
  </channel>
</rss>

