2018 Jul 30 4:15 PM
Hi All,
I have used ARCHIVOBJECT_GET_TABLE to retrieve the data into two output tables i.e IT_ARCHIVOBJECT and IT_BINARCHIVOBJECT.
OPEN DATASET is used to write the pdf file into application server for the IT_BINARCHIVOBJECT.
The file is successfully saved in the application server.
When i try to download the pdf file manually and read, the file is not getting opened in the local machine (after downloading).
If the same internal table (IT_BINARCHIVOBJECT) is passed into gui_download and the file is successfully downloaded in the local and the file is readable if we open.
BUT, why the pdf is getting corrupted when i download it from application server?
Did i miss anything before writing the file into application server?
Please help..
Regards
Pavan
Hi All,
I have used ARCHIVOBJECT_GET_TABLE to retrieve the data into two output tables i.e IT_ARCHIVOBJECT and IT_BINARCHIVOBJECT.
OPEN DATASET is used to write the pdf file into application server for the IT_BINARCHIVOBJECT.
The file is successfully saved in the application server.
When i try to download the pdf file manually and read, the file is not getting opened in the local machine (after downloading).
If the same internal table (IT_BINARCHIVOBJECT) is passed into gui_download and the file is successfully downloaded in the local and the file is readable if we open.
BUT, why the pdf is getting corrupted when i download it from application server?
Did i miss anything before writing the file into application server?
Please help..
Regards
Pavan
2018 Jul 30 5:04 PM
because either your "DATASET code" or the way you get the file from the application server is buggy.
2018 Jul 30 5:43 PM
Hi Sandra,
I have used the statement like this in my code.
OPEN DATASET p_path FOR OUTPUT IN BINARY MODE.
The variable p_path is having application server with filename with .pdf extension.
When we see the AL11 destination folder, the pdf file will be seen with it's name.
If the same file is downloaded into local machine by transaction CG3Y, the file can not be opened with the following error.
Adobe Acrobat reader can not open file <filename>.....
2018 Jul 31 1:34 AM
could you try to convert it to 255 raw type before transfer to application server,like this:
CL_RMPS_GENERAL_FUNCTIONS=>CONVERT_1024_TO_255( ).
you may read dataset right after transfer to application server and download by gui_dowload to check if your uploaded file really uploaded succesful or not.
2025 Feb 07 6:46 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |