Application Development 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: 

How to save PDF recive from webservice into filesystem

0 Kudos

Hello guys, I get a PDF from a web service in base64, I need to save it on SAP file system, I can't found any example I only found examples Like how to save a PDF on file system generating from Samrtform using CONVERT_OTF' but I am not using smartform to create a PDF, I recive this from webservice


Could anyone can tell me if its possible to do this?

Thanks and regard.s

1 REPLY 1

Sandra_Rossi
Active Contributor
There are 2 steps:
  1. CString base 64 (RUTA_PDF) -> XSTRING variable (bytes)
  2. Write Xstring variable to SAP file system (open dataset dset for output in binary mode, transfer Xstring to dset, close dataset dset)

What is your issue?