How to Tranfer data in PDF format to local file ?

Question: Dear All,

I have converted a TC - Test Certificate into PDF format. Now I would like to download the same onto a local file. I have to schedule this job, hence would like to know how this can be done? I am told that datasets might help, but I do not know how to do this. Please help.

Answer:
Use function WS_DOWNLOAD as such (example):

CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = DOC_SIZE
FILENAME = L_FILENAME
FILETYPE = 'BIN'
SILENT = 'S' "DOWNLOADS IN BACKGROUND
TABLES
DATA_TAB = HTLINE
EXCEPTIONS
INVALID_FILESIZE = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'DOWNLOAD FAILED'.
EXIT.
ENDIF.




Good luck!

Answer:
Genius, perhaps you can explain to the rest of us how he is going to schedule a program with WS_DOWLOAD in a job???



Use function WS_DOWNLOAD as such (example):

CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = DOC_SIZE
FILENAME = L_FILENAME
FILETYPE = 'BIN'
SILENT = 'S' "DOWNLOADS IN BACKGROUND
TABLES
DATA_TAB = HTLINE
EXCEPTIONS
INVALID_FILESIZE = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
OTHERS = 6.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'DOWNLOAD FAILED'.
EXIT.
ENDIF.




Good luck!

Answer:
...
FILENAME = L_FILENAME
FILETYPE = 'BIN'
SILENT = 'S' "DOWNLOADS IN BACKGROUND
TABLES
DATA_TAB = HTLINE
...

So adding the comment " "Downloads in background " makes it so???

DK

Answer:
Since you think you're the "genius", maybe you can figure it out that this would be in a simple abap that would scheduled as a background job. [edited by moderator]

Answer:
Please, no idiots post....

Answer:
Topic Locked due to personal abuse.

The OP may repost their question - although I suggest that they search the forum with the keywords FILE + BACKGROUND.
_________________
Kind Regards

Rosie Brent

Please remember to search the forum and check the FAQ before posting questions, thank you.

Tuly Idiot most of the time, part-time Guru
Copyright ?2007 - 2008 www.jt77.com