<?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: CVAPI_DOC_CHECKIN error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844626#M44940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also trying to checkin an original to a document in SAP, by using the BAPI document_checkin2 in VBA, but it doesn´t work. I think the Problem is the wrong declaration for using the librfc32.dll. You wrote that you solved the problem, could you maybe post your VB-Code for the checkin? These two posted lines don´t help very well, because I don´t know where to put them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robert Barnebeck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2006 11:27:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-12T11:27:52Z</dc:date>
    <item>
      <title>CVAPI_DOC_CHECKIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844623#M44937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have written a "Z" function moudle which uses API_DOCUMENT_MAINTAIN2 to attach a docoment to a WBS element and CVAPI_DOC_CHECKIN to check in the same document in one of our IXOS Server. This "Z" BAPI/Function module is getting called from a VB code. When this function module is getting executed via SE37 transaction it works fine no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   When I run this from a VB code I get the error "RFC Partner does not allow to start the required P", The last "P" I think is "program". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the stange thing is, When I debug the VB Code (With ABAP Debug On - I.e from VB it open a new abap window - This I achived by setting RFC_DEBUG = 1 in the Environment variables) it works fine no erros are reported. I am not sure why the same function module call from VB is behaving differently in Debug mode and Normal Mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the ABAP Code which calles these 2 APIs&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'API_DOCUMENT_MAINTAIN2'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              PF_TRANSACTION  = 'CV01'&lt;/P&gt;&lt;P&gt;              PS_API_CONTROL  = LIT_API_CONTROL&lt;/P&gt;&lt;P&gt;              DOCUMENTDATA    = LIT_DOCUMENTDATA&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              DOCUMENTNUMBER  = LV_DOC_NUMBER&lt;/P&gt;&lt;P&gt;              DOCUMENTPART    = LV_DOC_PART&lt;/P&gt;&lt;P&gt;              DOCUMENTVERSION = LV_DOC_VERSION&lt;/P&gt;&lt;P&gt;              RETURN          = LIT_RETURN2&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              OBJECTLINKS     = LIT_OBJECTLINKS&lt;/P&gt;&lt;P&gt;              DOCUMENTFILES   = LIT_DOCUMENTFILES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LIT_PT_FILES-APPNR = '1'.&lt;/P&gt;&lt;P&gt;      LIT_PT_FILES-STORAGE_CAT = LV_STORAGECATEGORY.&lt;/P&gt;&lt;P&gt;      LIT_PT_FILES-PATHNAME = LV_CVPATHNAME.&lt;/P&gt;&lt;P&gt;      LIT_PT_FILES-FILENAME = LV_FILENAME.&lt;/P&gt;&lt;P&gt;      APPEND LIT_PT_FILES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'CVAPI_DOC_CHECKIN'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                PF_DOKAR       = LV_DOKAR&lt;/P&gt;&lt;P&gt;                PF_DOKNR       = LV_DOC_NUMBER&lt;/P&gt;&lt;P&gt;                PF_DOKVR       = LV_DOC_VERSION&lt;/P&gt;&lt;P&gt;                PF_DOKTL       = LV_DOC_PART&lt;/P&gt;&lt;P&gt;                PS_API_CONTROL = LIT_API_CONTROL&lt;/P&gt;&lt;P&gt;                PF_FTP_DEST    = 'SAPFTPA'&lt;/P&gt;&lt;P&gt;                PF_HTTP_DEST   = 'SAPHTTPA'&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                PSX_MESSAGE    = LIT_PSX_MESSAGE_1&lt;/P&gt;&lt;P&gt;           TABLES&lt;/P&gt;&lt;P&gt;                PT_FILES_X     = LIT_PT_FILES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read other postings which tells that SAPFTP.exe and SAPHTTP.exe should be placed in WINDOWS/SYSTEM32 folder. I have done that as well.&lt;/P&gt;&lt;P&gt;Another Post tells about putting &lt;/P&gt;&lt;P&gt;ReturnCode = RfcAllowStartProgram("sapftp;saphttp") in the VB code I have done this as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me out in resolving this issue as to why in Debug mode the Document is getting attached and Archived. But in normal mode it is failing in Checkin BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2005 04:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844623#M44937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-19T04:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: CVAPI_DOC_CHECKIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844624#M44938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very good preparation of this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think, your coding has a bug. I guess, it's either a authority or foreground / background problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are testing in SAP (and via debug?), you are using a different user than with default RFC login. Check in transaction SM59, which user is assigned to your RFC. Then have a look in log of transaction SU53 (after testrun).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get an additional information in the other question: test your function module in R/3 starting in background (and as RFC); -&amp;gt; write little test report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope, these tests might bring a new idea about what's going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2005 05:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844624#M44938</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-05-19T05:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: CVAPI_DOC_CHECKIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844625#M44939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to do it and now it's working fine. The issue was the VB code was not making the call to RfcAllowStartProgram Function in LIBRFC32 DLL properly. Once I fixed that issue, I am able to CHECKIN document from VB Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Const RAccess  As String = " "&lt;/P&gt;&lt;P&gt;Private Declare Function RfcAllowStartProgram Lib "librfc32" (ByVal RAccess As String) As Integer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReturnCode = RfcAllowStartProgram("sapftp;saphttp")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is the VB code to call the RfcAllowStartProgram and it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2005 05:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844625#M44939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-19T05:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: CVAPI_DOC_CHECKIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844626#M44940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also trying to checkin an original to a document in SAP, by using the BAPI document_checkin2 in VBA, but it doesn´t work. I think the Problem is the wrong declaration for using the librfc32.dll. You wrote that you solved the problem, could you maybe post your VB-Code for the checkin? These two posted lines don´t help very well, because I don´t know where to put them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robert Barnebeck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 11:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cvapi-doc-checkin-error/m-p/844626#M44940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T11:27:52Z</dc:date>
    </item>
  </channel>
</rss>

