Hello,
I have a smartform that I am generating thanks to a program.
My program needs to be launched in background and after in the generated spool I should find a PDF containing my smartform.
I succeeded to display the smartform in PDF format thanks to 2 function modules 'HR_IT_DISPLAY_WITH_PDF' and 'SSFCOMP_PDF_PREVIEW' but these two functions don't seem to work in background mode...
Then, I tried to convert my OTF into a PDF table thanks to the fucntion module 'CONVERT_OTF_2_PDF' but how can I then generate the PDF file?
I thought about saving the PDF file on the server then display it but then I face another issue. After using OPEN DATASET. myFile FOR OUTPUT IN BINARY MODE ..... CLOSE DATASET to save my file on server I get a corrupted file...
Does anyone have an idea to solve this problem?
Thanks in advance for your help.
Best regards,