<?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 Change Document Type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-document-type/m-p/8779312#M1678166</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 have a requirement to create a custom program to change the type of a document. &lt;/P&gt;&lt;P&gt;I did a search in here and found this thread : &lt;A _jive_internal="true" href="https://answers.sap.com/thread/17947"&gt;http://scn.sap.com/thread/17947&lt;/A&gt; but its not changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get errors saying "No user master exists for this user" and "&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;original is already checked in and stored&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'BAPI_DOCUMENT_CREATENEWVRS2&amp;nbsp;&amp;nbsp; , this seems to work...kind of. It creates a new version, but I dont see this version in DRAD, only in DRAW.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'&lt;/SPAN&gt;&amp;nbsp; - this gets the new version i created appropriately&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'&lt;/SPAN&gt;&amp;nbsp; - I get the details of the new version&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;- &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'&lt;/SPAN&gt; - I set the delete flag and the new value for version, but this is where it tosses the error &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;original is already checked in and stored&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Is there an easier way to change the document type that I'm not finding? This just doesnt seem to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;I tried another approach of deleting the old version and creating a new document using bapis, but that gave errors as well that it couldnt create them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Any help will be awarded points! thanks guys and gals!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2012 14:57:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-06-21T14:57:28Z</dc:date>
    <item>
      <title>Change Document Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-document-type/m-p/8779312#M1678166</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 have a requirement to create a custom program to change the type of a document. &lt;/P&gt;&lt;P&gt;I did a search in here and found this thread : &lt;A _jive_internal="true" href="https://answers.sap.com/thread/17947"&gt;http://scn.sap.com/thread/17947&lt;/A&gt; but its not changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get errors saying "No user master exists for this user" and "&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;original is already checked in and stored&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'BAPI_DOCUMENT_CREATENEWVRS2&amp;nbsp;&amp;nbsp; , this seems to work...kind of. It creates a new version, but I dont see this version in DRAD, only in DRAW.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'BAPI_DOCUMENT_GETACTVERSION'&lt;/SPAN&gt;&amp;nbsp; - this gets the new version i created appropriately&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'&lt;/SPAN&gt;&amp;nbsp; - I get the details of the new version&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;- &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'&lt;/SPAN&gt; - I set the delete flag and the new value for version, but this is where it tosses the error &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;original is already checked in and stored&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Is there an easier way to change the document type that I'm not finding? This just doesnt seem to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;I tried another approach of deleting the old version and creating a new document using bapis, but that gave errors as well that it couldnt create them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Any help will be awarded points! thanks guys and gals!!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 14:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-document-type/m-p/8779312#M1678166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-21T14:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change Document Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-document-type/m-p/8779313#M1678167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I continue to get the "original is already checked in and stored"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My client has given me additional information. &lt;/P&gt;&lt;P&gt;These are the four type of documents they would like to have the ability to change:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, sans, sans-serif; background-color: #ffffff;"&gt;DRW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, sans, sans-serif; background-color: #ffffff;"&gt;QTE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, sans, sans-serif; background-color: #ffffff;"&gt;PKG&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, sans, sans-serif; background-color: #ffffff;"&gt;TAR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, sans, sans-serif; background-color: #ffffff;"&gt;I tried to delete the old and create a new document using the same data, but that did not work due to the range of numbers allowed the document number. The internal and external range are seperate and so I would not be able to keep the same document number. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 20:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-document-type/m-p/8779313#M1678167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-19T20:46:40Z</dc:date>
    </item>
  </channel>
</rss>

