<?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 Batch classification in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433542#M206966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find a place, exit or BADI, where any transaction that creates or changes the classification of a batch passes by.&lt;/P&gt;&lt;P&gt;The goal is to have the classification of the batch, in order to copy it to Z table where the values will be available directly by batch number. Like this the performance will increase, because there's no need to use SAP functions that read it, using IBIN, AUSP, INOB...&lt;/P&gt;&lt;P&gt;I'm working with version 470.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jul 2006 15:10:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-11T15:10:05Z</dc:date>
    <item>
      <title>Batch classification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433542#M206966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find a place, exit or BADI, where any transaction that creates or changes the classification of a batch passes by.&lt;/P&gt;&lt;P&gt;The goal is to have the classification of the batch, in order to copy it to Z table where the values will be available directly by batch number. Like this the performance will increase, because there's no need to use SAP functions that read it, using IBIN, AUSP, INOB...&lt;/P&gt;&lt;P&gt;I'm working with version 470.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 15:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433542#M206966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T15:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Batch classification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433543#M206967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this access don´t have performances issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CLEAR: cuobj, klart.
  klart = '023'.
  SELECT SINGLE cuobj_bm FROM mch1 INTO cuobj
    WHERE matnr = matnr
      AND charg = charg.

  CHECK NOT cuobj IS INITIAL.

  SELECT * FROM ausp INTO TABLE t_ausp
    WHERE objek = cuobj
      AND klart = klart
      AND datuv LE sy-datum
      AND lkenz = space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 15:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433543#M206967</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-07-11T15:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Batch classification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433544#M206968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peluka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right this access is not very bad when performed for a batch. But we have millions of batches, each one with more then 30 characteristics, that's why we want to kept some of the characteristics in a Z table and make a select only by batch number!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2006 16:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433544#M206968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-11T16:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Batch classification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433545#M206969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the soluction!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using BADI MB_DOCUMENT_BADI and method MB_DOCUMENT_BEFORE_UPDATE I can get the classifiction used on a material document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_BEFORE_UPDATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS: c_ausp(25)  VALUE '(SAPLCLFM)ALLAUSP[]'.&lt;/P&gt;&lt;P&gt;  DATA: l_ausp    TYPE          rmclausp,&lt;/P&gt;&lt;P&gt;        lt_ausp   TYPE TABLE OF rmclausp,&lt;/P&gt;&lt;P&gt;        l_zmmmcha TYPE          zmmmcha,&lt;/P&gt;&lt;P&gt;        l_mseg    TYPE          mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: BEGIN OF l_batch_class,&lt;/P&gt;&lt;P&gt;          atnam TYPE atnam,&lt;/P&gt;&lt;P&gt;          atwrt TYPE atwrt,&lt;/P&gt;&lt;P&gt;          atflv TYPE atflv,&lt;/P&gt;&lt;P&gt;        END OF l_batch_class.&lt;/P&gt;&lt;P&gt;  DATA: lt_batch_class LIKE TABLE OF l_batch_class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;ausp&amp;gt; LIKE lt_ausp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT xmseg INTO l_mseg.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get batch classification&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ASSIGN (c_ausp) TO &amp;lt;ausp&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;pass the information to temporary internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT &amp;lt;ausp&amp;gt; INTO l_ausp.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'CONVERSION_EXIT_ATINN_OUTPUT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        input  = l_ausp-atinn&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        output = l_batch_class-atnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_batch_class-atwrt = l_ausp-atwrt.&lt;/P&gt;&lt;P&gt;    l_batch_class-atflv = l_ausp-atflv.&lt;/P&gt;&lt;P&gt;    APPEND l_batch_class TO lt_batch_class.&lt;/P&gt;&lt;P&gt;    CLEAR: l_batch_class.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_zmmmcha-matnr = l_mseg-matnr.&lt;/P&gt;&lt;P&gt;  l_zmmmcha-werks = l_mseg-werks.&lt;/P&gt;&lt;P&gt;  l_zmmmcha-charg = l_mseg-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT lt_batch_class INTO l_batch_class.&lt;/P&gt;&lt;P&gt;    CASE l_batch_class-atnam.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  INSERT zmmmcha VALUES l_zmmmcha.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 09:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433545#M206969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T09:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch classification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433546#M206970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U CAN USE FUNCTIONAL MODULE &lt;/P&gt;&lt;P&gt;QC01_BATCH_VALUES_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(I_VAL_MATNR) LIKE  MARA-MATNR&lt;/P&gt;&lt;P&gt;*"     VALUE(I_VAL_WERKS) LIKE  VBDPL-WERKS OPTIONAL&lt;/P&gt;&lt;P&gt;*"     VALUE(I_VAL_CHARGE) LIKE  VBDPL-CHARG&lt;/P&gt;&lt;P&gt;*"     VALUE(I_LANGUAGE) LIKE  SY-LANGU DEFAULT SY-LANGU&lt;/P&gt;&lt;P&gt;*"     VALUE(I_DATE) LIKE  SY-DATUM DEFAULT SY-DATUM&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(E_CLASS) LIKE  KLAH-CLASS&lt;/P&gt;&lt;P&gt;*"     VALUE(E_CLASS_TYPE) LIKE  KLAH-KLART&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      T_VAL_TAB STRUCTURE  API_VALI OPTIONAL&lt;/P&gt;&lt;P&gt;*"      T_CHAR_TAB STRUCTURE  API_CHAR OPTIONAL&lt;/P&gt;&lt;P&gt;*"      T_ATT_TAB STRUCTURE  API_CH_ATT OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      NO_CLASS&lt;/P&gt;&lt;P&gt;*"      INTERNAL_ERROR&lt;/P&gt;&lt;P&gt;*"      NO_VALUES&lt;/P&gt;&lt;P&gt;*"      NO_CHARS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 04:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433546#M206970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T04:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Batch classification</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433547#M206971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the functional module&lt;/P&gt;&lt;P&gt; QC01_BATCH_VALUES_READ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 04:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-classification/m-p/1433547#M206971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T04:54:08Z</dc:date>
    </item>
  </channel>
</rss>

