Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FTP from server to local computer

former_member188001
Active Participant
0 Likes
607

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

4 REPLIES 4
Read only

Former Member
0 Likes
571

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.

Read only

Former Member
0 Likes
571

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

Read only

Former Member
0 Likes
571

Hi Salil,

You can use the transaction CG3Y.

Regards,

Ravi Kanth Talagana

Read only

former_member188001
Active Participant
0 Likes
571

solved