<?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 BAPI_DOCUMENT_CREATE2 - adding classification data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-adding-classification-data/m-p/4673267#M1099138</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 want to create document data with the named BAPI.&lt;/P&gt;&lt;P&gt;Not that bad, I thought, implemented the BAPI in my program, provided the required data and then made my first tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;- document created&lt;/P&gt;&lt;P&gt;- no classification data added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the return message from the program part were the classification is added is....&lt;/P&gt;&lt;P&gt;ID = CC / Number 164&lt;/P&gt;&lt;P&gt;"Date is in the past".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats lovely and I don´t understand whats wrong here!&lt;/P&gt;&lt;P&gt;I provided the same data that I use when I create documents via transaction!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anybody have similar experience and a solution for that, means an idea, what´s going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found out is that in the called function module in API_DOCUMENT_MAINTAIN2 (perform save_classification_data -&amp;gt; CACL_OBJECT_ALLOCATION_MAINT) named CLAP_DDB_GET_CLASSIFICATION the value for the date is set empty and the function comes back with an exception 4!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Any help is really appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dirk Meinhard on Oct 20, 2008 4:49 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2008 07:28:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-16T07:28:02Z</dc:date>
    <item>
      <title>BAPI_DOCUMENT_CREATE2 - adding classification data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-adding-classification-data/m-p/4673267#M1099138</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 want to create document data with the named BAPI.&lt;/P&gt;&lt;P&gt;Not that bad, I thought, implemented the BAPI in my program, provided the required data and then made my first tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;- document created&lt;/P&gt;&lt;P&gt;- no classification data added&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the return message from the program part were the classification is added is....&lt;/P&gt;&lt;P&gt;ID = CC / Number 164&lt;/P&gt;&lt;P&gt;"Date is in the past".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats lovely and I don´t understand whats wrong here!&lt;/P&gt;&lt;P&gt;I provided the same data that I use when I create documents via transaction!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anybody have similar experience and a solution for that, means an idea, what´s going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found out is that in the called function module in API_DOCUMENT_MAINTAIN2 (perform save_classification_data -&amp;gt; CACL_OBJECT_ALLOCATION_MAINT) named CLAP_DDB_GET_CLASSIFICATION the value for the date is set empty and the function comes back with an exception 4!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Any help is really appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dirk Meinhard on Oct 20, 2008 4:49 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2008 07:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-adding-classification-data/m-p/4673267#M1099138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-16T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_DOCUMENT_CREATE2 - adding classification data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-adding-classification-data/m-p/4673268#M1099139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered on my own!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, this is for you:&lt;/P&gt;&lt;P&gt;Why the hell is there a field for the change no. in the structure BAPI_CLASS_ALLOCATION (ECNUMBER)?&lt;/P&gt;&lt;P&gt;If you use it, you will fail!&lt;/P&gt;&lt;P&gt;Leave it empty and it runs! &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 09:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-document-create2-adding-classification-data/m-p/4673268#M1099139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T09:32:05Z</dc:date>
    </item>
  </channel>
</rss>

