2007 Dec 17 6:22 PM
Hello,
I have my data stored on our company's internal server. I want to send this data to my local system. Can u please tell me how to do an FTP in this case.
Also could you please provide me with a sample code.
Thanks,
Salil
Hello,
I have my data stored on our company's internal server. I want to send this data to my local system. Can u please tell me how to do an FTP in this case.
Also could you please provide me with a sample code.
Thanks,
Salil
2007 Dec 18 1:16 AM
Hi, you have to install the sapftp.exe in your system32 folder.
Are you using the document manager in R/3? In this case you could use BAPI_DOCUMENT_CHECKOUTVIEW2
Regards,
Gustavo Estrada.
2007 Dec 18 1:23 AM
Hi
Here is the code
FUNCTION z_css_download_document.
*"----
""Local interface:
*" IMPORTING
*" VALUE(DOCUMENTTYPE) LIKE BAPI_DOC_AUX-DOCTYPE
*" VALUE(DOCUMENTNUMBER) LIKE BAPI_DOC_AUX-DOCNUMBER
*" VALUE(DOCUMENTPART) LIKE BAPI_DOC_AUX-DOCPART
*" VALUE(DOCUMENTVERSION) LIKE BAPI_DOC_AUX-DOCVERSION
*" VALUE(ORIGINALPATH) LIKE BAPI_DOC_AUX-FILENAME
*" EXPORTING
*" VALUE(RETURN_VAL) LIKE BAPIRET2 STRUCTURE BAPIRET2
*"----
DATA : documentfile2 LIKE bapi_doc_files2.
CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
EXPORTING
documenttype = documenttype
documentnumber = documentnumber
documentpart = documentpart
documentversion = documentversion
documentfile = documentfile2
GETSTRUCTURE = '1'
GETCOMPONENTS = 'X'
originalpath = originalpath
HOSTNAME = ' '
GETHEADER = 'X'
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
IMPORTING
return = return_val
TABLES
DOCUMENTSTRUCTURE =
DOCUMENTFILES =
COMPONENTS =
.
ENDFUNCTION.
hope this help u.
Regards
2007 Dec 18 1:23 AM
Hi Salil,
You can use the transaction CG3Y.
Regards,
Ravi Kanth Talagana
2008 Jan 02 10:32 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |