<?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: Batch Characterisitcs-QC01_BATCH_VALUES_READ-Validity date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225808#M1379852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Charg XYZ-A--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------" /&gt; Material 5678&lt;DEL&gt;&lt;HR originaltext="---" /&gt; plant ABC&lt;/DEL&gt;Sy-datum &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I passed the above entries to the FM to fetch the VARIETY where in I got two entries.I guess here there should be a concept of Validity start date and validity end date here which I was not able to figure out.MCHA,MCHB and MCH1 I checked but it didn't help me much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2009 12:00:52 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2009-10-08T12:00:52Z</dc:date>
    <item>
      <title>Batch Characterisitcs-QC01_BATCH_VALUES_READ-Validity date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225806#M1379850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the above mentioned FM  to fetch the batch charctersitics.Here I came across a case where two vendors are having the same batch and same materials as well during which I want to know how to differentiate it to get the desired characateristics.I checked MCHA,MCHB and MCH1 but in vain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI,we are passing material,plant and charg to fetch the data from the FM.The output of this table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vendor A----&lt;DEL&gt;- Charg XYZ-A&lt;/DEL&gt;&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------" /&gt; Material 1234--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; plant ABC&lt;/P&gt;&lt;P&gt;Vendor A----&lt;DEL&gt;- Charg XYZ-B&lt;/DEL&gt;&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------" /&gt; Material 1234--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt; plant ABC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VendorB--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt; Charg XYZ-A&lt;DEL&gt;&lt;HR originaltext="------" /&gt; Material 5678&lt;/DEL&gt;--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; plant ABC&lt;/P&gt;&lt;P&gt;VendorB--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt; Charg XYZ-B&lt;DEL&gt;&lt;HR originaltext="------" /&gt; Material 5678&lt;/DEL&gt;--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; plant ABC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case the VARIETY is having two entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 11:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225806#M1379850</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2009-10-08T11:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Characterisitcs-QC01_BATCH_VALUES_READ-Validity date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225807#M1379851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand exactly what the problem you have. But i just give you code that i use for reading batch characterisitics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lit_allocvaluesnum  like BAPI1003_ALLOC_VALUES_NUM  occurs 0,
           lit_allocvalueschar like BAPI1003_ALLOC_VALUES_CHAR occurs 0,
           lit_allocvaluescurr like BAPI1003_ALLOC_VALUES_CURR occurs 0.

  data: lit_return like bapiret2 occurs 0,

  data: lf_OBJEK TYPE  OBJNUM,
        lf_OBTAB TYPE  TABELLE,
        lf_KLART TYPE  KLASSENART,
        lf_class type klasse_d.

*   Get batch object key
    CALL FUNCTION 'VB_BATCH_2_CLASS_OBJECT'
      EXPORTING
        I_MATNR = ls_mseg-matnr
        I_CHARG = ls_mseg-charg
        I_WERKS = ls_mseg-werks
      IMPORTING
        E_OBJEK = lf_objek
        E_OBTAB = lf_obtab
        E_KLART = lf_klart
        E_CLASS = lf_class.

*   Get batch classification details
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
      EXPORTING
        OBJECTKEY       = lf_objek
        OBJECTTABLE     = lf_obtab
        CLASSNUM        = lf_class
        CLASSTYPE       = lf_klart
      TABLES
        allocvaluesnum  = lit_allocvaluesnum
        allocvalueschar = lit_allocvalueschar
        allocvaluescurr = lit_allocvaluescurr
        return          = lit_return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 11:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225807#M1379851</guid>
      <dc:creator>Petr_Plenkov</dc:creator>
      <dc:date>2009-10-08T11:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Characterisitcs-QC01_BATCH_VALUES_READ-Validity date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225808#M1379852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Charg XYZ-A--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------" /&gt; Material 5678&lt;DEL&gt;&lt;HR originaltext="---" /&gt; plant ABC&lt;/DEL&gt;Sy-datum &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I passed the above entries to the FM to fetch the VARIETY where in I got two entries.I guess here there should be a concept of Validity start date and validity end date here which I was not able to figure out.MCHA,MCHB and MCH1 I checked but it didn't help me much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 12:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225808#M1379852</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2009-10-08T12:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Characterisitcs-QC01_BATCH_VALUES_READ-Validity date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225809#M1379853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that BAPI_OBJCL_GETDETAIL will return several characteristics, because it has an optional parameter keydate which is equal to sy-udate if is not defined. If u want to check it rigth in the database u need to look into AUSP table with CUOBJ from MCH1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 12:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-characterisitcs-qc01-batch-values-read-validity-date/m-p/6225809#M1379853</guid>
      <dc:creator>Petr_Plenkov</dc:creator>
      <dc:date>2009-10-08T12:37:38Z</dc:date>
    </item>
  </channel>
</rss>

