on 05-03-2011 5:40 AM
Hi Friends,
I want to upload PDF file from presentation server to DMS. As I dont want application server in this regards , so am using FTP server instead. But the problem am facing is in WD abap the filepath is in XSTRING format. So how to upload Xstring pdf file in FTP server and how can i pull the same data to DMS server.
My problem is just how to upload PDF in FTP server using web dynpro abap. The FM 'BAPI_DOCUMENT_CREATE2' will upload the same PDF file from FTP to DMS server.
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi kissnas ,
Thanks for your reply .Yes am using FILE UPLOAD UI ,but either of the link wont work as I am using FTP server and i dont want to use application server here.
I just want to know how can i transfer XSTRING data from File Upload UI to my FTP server.I dont want to use DATASET here in this case.
Regards,
Santosh
>I just want to know how can i transfer XSTRING data from File Upload UI to my FTP server.I dont want to use DATASET here in this case.
Not really a web dynpro related question, but why not use the SAPFTP function modules - SFTP function group. Just be sure to use the SFTPA destination as you want the FTP to happen relative to the application server and not the SAPGUI.
Hi Thomas,
Thanks for the reply.My requirement is very simple I want to transfer PDF file from desktop to DMS server . I know this can be done by using application server.But client doesn't want to give authorisation to application server.So the only option left is FTP server.
Can you provide with a sample code on how to convert Xstring data that comes from FILEUPLOAD UI element so that PDF gets uploaded in FTP server and also how to fetch the same PDF file into DMS server.Here i dont want to use application server at all.
Regards,
Santosh
>Here i dont want to use application server at all.
Did you study the above mentioned SFTP function modules (and sample programs in the same package)? That allow you to transfer data in ABAP memory to a remote FTP site. It doesn't require that your users have access to the application server file system at all.
Yes I have been with these Function Modules but couldnt find any FM that Converts Xstring PDF file to FTP server .
Use function module FTP_R3_TO_SERVER. The tables parameter BLOB is how you pass in the PDF content. It doesn't take an XSTRING, but instead a binary table. You can convert this pretty easily. For instance you might use the class CL_BCS_CONVERT and method XSTRING_TO_SOLIX.
For an example of how to use FTP_R3_TO_SERVER, see program RSFTP004.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.