on 07-23-2012 11:11 AM
Hi all,
I'm wondering, is it possible to convert an alv report to pdf format without using a spool no?
Thanks for your attention.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
actually, i think it doesn't convert the alv to pdf, so it can't open that. The error is like this.
"Adobe Reader could not open 'xxx.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."
FORM pc_download TABLES it_data
USING e_filename LIKE rlgrap-filename.
CLEAR e_filename. "hah074648
* FB mit Eingabe-Popup
DATA ld_title TYPE string.
DATA ld_fullpath TYPE string.
DATA ld_dummy TYPE string.
ld_title = text-001.
CLEAR e_filename.
* FB mit Eingabe-Popup
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
window_title = ld_title
* default_extension = '*.txt'
default_file_name = '*.pdf'
CHANGING
filename = ld_dummy
path = ld_dummy
fullpath = ld_fullpath.
e_filename = ld_fullpath.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = ld_fullpath
* FILETYPE = 'ASC'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
codepage = '1101' "mix772413
* IMPORTING
* FILELENGTH =
TABLES
data_tab = it_data
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
ENDFORM. "pc_download
Hi Ghan,
Try ,
Execute the ALV Report.
In left corner .
LIST --> EXPORT --> LOCAL FILE--> PATH & FILE TYPE.
Thanks,
Pradeep.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.