cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload SAP script output PDF to FTP server ?

former_member841895
Discoverer
0 Kudos

Hello,

Can anyone tell me how to upload SAP Script PDF output to the FTP server ?!

I need to send the ZCPU output type (Script) pdf to the FTP server. through ABAP

Please provide me the solution to upload it to The FTP.

Thanks.

AlexGourdet
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for visiting SAP Community to get answers to your questions.

As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement & additional resources to your reference that can really benefit you:

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

All the best,

Alex

View Entire Topic
benedict-torres
Participant
0 Kudos

There are basically two things that you wanted to achieve on a high level without giving the code itself.

  1. Run the SAP Script driver program to generate a spool. This should already be readily available and might even be connected to your NACE config right now.
  2. Convert SAPScript Output to PDF file. You would need to run either CONVERT_OTFSPOOLJOB_2_PDF or CONVERT_ABAPSPOOLJOB_2_PDF to convert SPOOL to PDF file in bin format. See reference program RSTXPDFT4 for more details
  3. Send any file via FTP. Run several FTP commands via different FMs like FTP_CONNECT, FTP_COMMAND and FTP_R3_TO_CLIENT to connect, execute FTP commands and transfer files to FTP server. See reference program RSFTP003 for more details.

Read through these two programs and you can tie both together.