<?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: Creating attachments in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962707#M67825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prasanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The GUI CONTROL used by the Class CL_GUI_FRONTEND_SERVICES is SAP GUI dependent. Since you making a Call from the Third Party system, you cannot use the Services available in the CL_GUI_FRONTEND_SERVICES.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   Please look out for the other options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2005 09:26:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-14T09:26:32Z</dc:date>
    <item>
      <title>Creating attachments in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962706#M67824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a PDF document stored on my C: drive. I want to attach it to a RFQ in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFQ is getting created by a RFC which is called from a third party(Non SAP) system.After the RFQ is created, the file in C: drive should automatically get attached to the created rFQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen that the function module SO_DOCUMENTS_NAMAGER can be used to read and create a document in SAP. Later we can use BINARY_RELATION_CREATE to create the link between invoice and the document.Problem is these use Frontennd Services. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I execute these function modules in SAP GUI, it works fine. But when the call is made from a third part system in background, these functions give a DUMP "CNTL_ERROR" in CL_GUI_FRONTEND_SERVICES-&amp;gt;CONSTRUCTOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one has any idea of how a document can be read in background without using Frontend services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 09:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962706#M67824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T09:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating attachments in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962707#M67825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prasanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The GUI CONTROL used by the Class CL_GUI_FRONTEND_SERVICES is SAP GUI dependent. Since you making a Call from the Third Party system, you cannot use the Services available in the CL_GUI_FRONTEND_SERVICES.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   Please look out for the other options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 09:26:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962707#M67825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T09:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating attachments in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962708#M67826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea of other options available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 09:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962708#M67826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating attachments in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962709#M67827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the following function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDS_BUSINESSDOCUMENT_CREATEF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 09:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962709#M67827</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-14T09:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating attachments in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962710#M67828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use the following paramters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logical system = &amp;lt;logical system&amp;gt;&lt;/P&gt;&lt;P&gt;Class name = 'BUS2105'&lt;/P&gt;&lt;P&gt;Class type = 'BO'&lt;/P&gt;&lt;P&gt;Client = &amp;lt;client no&amp;gt;&lt;/P&gt;&lt;P&gt;object key = &amp;lt;RFQ Number&amp;gt; " network no. is 12 char long so the number has to be passed with leading zeros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for the FILES table&lt;/P&gt;&lt;P&gt;directory = "d:\Documents and Settings\user\Desktop\"&lt;/P&gt;&lt;P&gt;(please note that this is case sensitive"&lt;/P&gt;&lt;P&gt;filename = &amp;lt;fielanme.txt&amp;gt; "with extension"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 10:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962710#M67828</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-14T10:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating attachments in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962711#M67829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this and I got a dump  &lt;/P&gt;&lt;P&gt;"CALL_XMLRFC_BACK_REJECTED   "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ShortText                                                 RFC callback calls are not allowed in the current ABAP program                     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What hapenned?                        &lt;/P&gt;&lt;P&gt; The function module "RFC_START_PROGRAM" is to be called as Remote Function Call with destination 'BACK' (RFC Callback) in the ABAP context "SAPMHTTP ", but an RFC callback from the program "SAPMHTTP " was prevented explicitly.This is due to an application problem. The active transaction was " ".             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in the ABAP application program.                                             &lt;/P&gt;&lt;P&gt;The running ABAP program "SAPLSYSE" had to be terminated because a statement cannot be executed.                                                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erroranalysis                                             In the main program "SAPMHTTP ", it was determined that no RFC callbacks are to be called in its ABAP context. Now, a function module was called that has executed an RFC callback via the ABAP statement CALL FUNCTION 'RFC_START_PROGRAM'                              DESTINATION 'BACK'                                                                 &lt;/P&gt;&lt;P&gt;This action was explicitly executed by the application in the transaction " " and in the ABAP main program "SAPMHTTP ". This is due to an application problem.                                                               &lt;/P&gt;&lt;P&gt;Do you have any idea  of why this dump is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling BDS_BUSINESSDOCUMENT_CREATEF in a Custom RFC Z_RFQ_CHANGE. This Z_RFQ_CHANGE is called from a third party system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prasanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 10:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962711#M67829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T10:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating attachments in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962712#M67830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dear all,&lt;/P&gt;&lt;P&gt;thanks to Raja I checked BAPI BDS_BUSINESSDOCUMENT_CREATEF which upload and store files to SAP objects. So, I sucessed to attach the file while testing the BAPI in our SAP system (these are my paramaters):&lt;/P&gt;&lt;P&gt;  Import parameters              Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOGICAL_SYSTEM                 &amp;lt;our system&amp;gt;&lt;/P&gt;&lt;P&gt;  CLASSNAME                      BKPF&lt;/P&gt;&lt;P&gt;  CLASSTYPE                      BO&lt;/P&gt;&lt;P&gt;  CLIENT                         020&lt;/P&gt;&lt;P&gt;  OBJECT_KEY                     024550100042102006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Tables                    Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FILES                    1 Entry&lt;/P&gt;&lt;P&gt;DOC_COUNT               00000001&lt;/P&gt;&lt;P&gt;COMP_COUNT              00000001&lt;/P&gt;&lt;P&gt;DIRECTORY               C:\ZERP&lt;/P&gt;&lt;P&gt;FILENAME                BOOK1.XLS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGNATURE&lt;/P&gt;&lt;P&gt;DOC_COUNT   PROP_NAME         PROP_VALUE                  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;00000001   BDS_DOCUMENTTYPE   ZFI3S_XLS&lt;/P&gt;&lt;P&gt;00000001   BDS_CONTREP        SD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we would like to call this BAPI from VBA (visual basic) program (we use the same parameters as the ones above) but we recieve :ERROR_KPRO and we do not have the message number in the log file of VBA , so we are not able to understand where can be the problem. My question is can we use this BAPI from external application like VBA and if yes what can be our problems . Because in the same VBA we call BAPI_ACC_DOCUMENT_POST and we do not have any problem.&lt;/P&gt;&lt;P&gt;Thansk a lot for any help&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 13:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962712#M67830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T13:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating attachments in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962713#M67831</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;sry for unearth this old thread.&lt;/P&gt;&lt;P&gt;I got similiar error when calling the bapi BDS_BUSINESSDOCUMENT_CREATEF via RFC.&lt;/P&gt;&lt;P&gt;"RFC_START_PROGRAM" doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found a solution for this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 09:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-attachments-in-background/m-p/962713#M67831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-07T09:46:18Z</dc:date>
    </item>
  </channel>
</rss>

