<?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 for DMS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163019#M1370500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I update DMS characterstic values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using BAPI_DOCUMENT_CHANGE2, but the characterstic value is not getting updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Does anyone have a working example of how to use the BAPI to update Document characterstic values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 18:48:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-30T18:48:29Z</dc:date>
    <item>
      <title>BAPI for DMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163019#M1370500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I update DMS characterstic values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using BAPI_DOCUMENT_CHANGE2, but the characterstic value is not getting updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Does anyone have a working example of how to use the BAPI to update Document characterstic values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 18:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163019#M1370500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T18:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for DMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163020#M1370501</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;Have you called BAPI_TRANSACTION_COMMIT after successfully calling BAPI_DOCUMENT_CHANGE2 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 02:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163020#M1370501</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-10-01T02:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for DMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163021#M1370502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the commit was performed after the successful execution of BAPI_DOCUMENT_CHANGE2  and the characteristicvalues table was populated.  No data was updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone has successfully updated characteristicvalues via BAPI_DOCUMENT_CHANGE2, can you provide some example code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RGSAP2008 on Oct 1, 2009 1:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 11:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163021#M1370502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-01T11:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for DMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163022#M1370503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Trupti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using the BAPI_DOCUMENT CHANGE2 but I am creating new DMS document using the BAPI_DOCUMENT_CERATE2 and it does the work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I am using. I hope that can help to compare with BAPI_DOCUMENT_CHANGE2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
****** Key fields of the document
  DATA: lf_doctype    LIKE bapi_doc_aux-doctype, " bapi_doc_draw2-documenttype,
        lf_docnumber  LIKE bapi_doc_aux-docnumber, " bapi_doc_draw2-documentnumber,
        lf_docpart    LIKE bapi_doc_aux-docpart, " bapi_doc_draw2-documenttype,
        lf_docversion LIKE bapi_doc_aux-docversion. " bapi_doc_draw2-documenttype.
******  Originals that are checked in simultaneously
  DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE,
        lt_drat  LIKE bapi_doc_drat   OCCURS 0 WITH HEADER LINE,   "   Short texts
        lt_drad  LIKE bapi_doc_drad   OCCURS 0 WITH HEADER LINE,   " Object links
        lt_charact LIKE bapi_characteristic_values OCCURS 0 WITH HEADER LINE.
***** Allcoate document data
  ls_doc-documenttype   = P_dokar.
  ls_doc-documentnumber = p_doknr.
  ls_doc-documentversion = '00'.
  ls_doc-documentpart = '000'.
  ls_doc-statusintern = 'FR'.   " Status Release
  ls_doc-statuslog = 'Your text'.
  ls_doc-wsapplication1 = 'ACR'.  " Adobe PDF file to upload
***** Check in original 1 simultaneously in the SAP Database
  REFRESH lt_files.
  CLEAR lt_files.
***** Short texts
  CLEAR lt_drat.
  REFRESH lt_drat.
***** English short text
  lt_drat-language = 'EN'.
  lt_drat-description = 'YOURDESCRIPTION'.
  APPEND lt_drat.
** Characteristics
  lt_charact-classtype = p_ctype. " Classifiaction - Class Type
  lt_charact-classname = p_cname. " Classification - Assignments Class
  lt_charact-charname  = p_name.  " Classification - Characteristic Description
  lt_charact-charvalue = p_value. " Classification - Characteristic value
  APPEND lt_charact.

** Create document
  CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
  EXPORTING: documentdata = ls_doc
  IMPORTING: documenttype = lf_doctype
                      documentnumber = lf_docnumber
                      documentpart = lf_docpart
                      documentversion = lf_docversion
                      return = return
  TABLES: documentdescriptions = lt_drat
                documentcharacteristicvalues = lt_charact.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If filling the characteristic table doresn't work, there are only possibilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The information pass to the table is not right&lt;/P&gt;&lt;P&gt;2. There is a bug into the BADI_DOCUMENT_CHANGE2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;dstj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 21:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-dms/m-p/6163022#M1370503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T21:05:28Z</dc:date>
    </item>
  </channel>
</rss>

