<?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: Uploading File using a BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829211#M1589824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a custom Web Service (which sounds like a Provider WS), then after the WS gets the file from the client - call the appropriate FM from my list (it does not need to be remote-enabled once inside of SAP) and convert the file into XSTRING format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2011 20:17:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-12T20:17:01Z</dc:date>
    <item>
      <title>Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829206#M1589819</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 created a BAPI which is exposed as a webservice and is called in JAVA program.&lt;/P&gt;&lt;P&gt;I need to upload a file from JAVA Client into SAP and attach it to the claim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM  BDS_BUSINESSDOCUMENT_CREA_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this Fm requires file content in XSTRING. HOw do i get the XSTRING of the file ..???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has a different view of uploading the file please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 18:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829206#M1589819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-12T18:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829207#M1589820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you do a where-used on the function for examples?  Or look at test program BDSTESTOO?  Why do you think the data has to be in XSTRING format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 18:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829207#M1589820</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-05-12T18:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829208#M1589821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM BDS_BUSINESSDOCUMENT_CREA_TAB that i use, accepts file content in Binary format .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if i get the XSTRING of the file i can convert it to binary and pass it to my FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 19:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829208#M1589821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-12T19:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829209#M1589822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used some of these FMs in the past for similar needs:&lt;/P&gt;&lt;P&gt;SCMS_BINARY_TO_XSTRING&lt;/P&gt;&lt;P&gt;SCMS_FTEXT_TO_XSTRING&lt;/P&gt;&lt;P&gt;SCMS_STRING_TO_XSTRING&lt;/P&gt;&lt;P&gt;SCMS_TEXT_TO_XSTRING&lt;/P&gt;&lt;P&gt;SCMS_XSTRING_TO_BINARY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 19:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829209#M1589822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-12T19:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829210#M1589823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are not RFC ... i can not use them in my BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have another idea for uploading file in sap using BAPI ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 20:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829210#M1589823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-12T20:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829211#M1589824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a custom Web Service (which sounds like a Provider WS), then after the WS gets the file from the client - call the appropriate FM from my list (it does not need to be remote-enabled once inside of SAP) and convert the file into XSTRING format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 20:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829211#M1589824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-12T20:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829212#M1589825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sawti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I am unclear as to which application is in control of the transaction - is the Java client in control or SAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default - SAP provides many methods to upload a file from any client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 20:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829212#M1589825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-12T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829213#M1589826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are not RFC ... i can not use them in my BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Of course you can...what makes you think that?  But there are more up to date ways to convert if you'd peruse the ABAP syntax or search the forums.  Your content, however, doesn't even need to be binary in format...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 21:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829213#M1589826</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-05-12T21:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829214#M1589827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for everyones input..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Java client is calling the WS. How do i upload file present in Java Client to SAP??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_upload doesnt seem to work .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.. since i could not get it uploaded i thought getting file in binary format would help me ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide if i am heading to a wrong direction .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Swati.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 12:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829214#M1589827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T12:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829215#M1589828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Java client is calling the WS. How do i upload file present in Java Client to SAP??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_upload doesnt seem to work .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_UPLOAD will not work in an RFC.  Either load the file in the Java app (binary or base64 encoded) and transfer it via your BAPI call or mount the location on your app server and load it using OPEN DATASET/READ DATASET/... as usual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 14:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829215#M1589828</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-05-13T14:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829216#M1589829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please elaborate on the methods that can upload file from any client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 14:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829216#M1589829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T14:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829217#M1589830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK - so the Java Client is in control of the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On what hardware and OS is this Java Client running?  Is the hardware "hard-wired"  to the same network that holds SAP?  Or you trying to upload from the BlackBerry or the like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 15:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829217#M1589830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T15:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829218#M1589831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No the JAVA system is not at all connected to our SAP system..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have a JAVA application , this calls our BAPI..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File is in JAVA Client ... somewhere in their directory structure.. so SAP does not have access to file..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the problem of uploading the file..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 16:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829218#M1589831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T16:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829219#M1589832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Brad earlier reply. You have to mount the file system. Did you ever talk to BASIS people about this issue. If not, ask them if they can mount the file system that is in the structure (java file system or whatever it is). They should have answer for you. From ABAP side, it is either use GUI functions if accessing via GUI else use Read data set function to read from application server which i meant file system&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 16:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829219#M1589832</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2011-05-13T16:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829220#M1589833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK . I guess i have only 2 options left now..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either connect to their file system and mount file in our application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get the file content in BInary format and then try attaching .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will 1st try 2nd options if it works good.. other wise  i have no option but 1st.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 17:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829220#M1589833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-13T17:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829221#M1589834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either way, Post your solution here. Helpful to others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 17:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829221#M1589834</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2011-05-13T17:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading File using a BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829222#M1589835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Function Modules may helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NLS_STRING_CONVERT_FROM_SYS&lt;/P&gt;&lt;P&gt;NLS_STRING_CONVERT_TO_SYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bhargav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 14:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file-using-a-bapi/m-p/7829222#M1589835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T14:07:25Z</dc:date>
    </item>
  </channel>
</rss>

