on 09-27-2004 3:30 PM
Hi!
I use SAPLPD with PDFWriter to generate from SAP a PDF file. I use in sap a generic sapscript. With printer 'LOCL' I call saplpd and it call pdfwriter (set as default windows printer). The result is a PDF create on my workstation.
I want to set the job name that saplpd generate automatically but I don't undestand how I can send the attribute from sap to saplpd.
I'm working with R/3 4.5B
Can you help me?
It's very important!
Thanks,
Gianluca
Message was edited by: Simeone Gianluca
It is not related with abap code controlling for saplpd.
I use free pdf converter called pdf995 which can have Three auto-name options to bypass Save As dialog.
You may use following form to initial printer on before data selection and display.
you report will run to results to printer directly.
Set printer = P_dev
----
FORM frm_init_prt *
----
........ *
----
FORM frm_init_prt.
DATA:
tmp_pdest LIKE pri_params-pdest.
SELECT padest FROM tsp03l INTO tmp_pdest UP TO 1 ROWS
WHERE lname = p_dev.
ENDSELECT.
IF sy-subrc <> 0.
MESSAGE i000(db) WITH 'Unable to find printer'.
STOP.
ENDIF.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
no_dialog = 'X'
IMPORTING
out_archive_parameters = arc_params
out_parameters = pri_params
valid = px_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE i000(db) WITH
'Unable to setup print parameter'.
ENDIF.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arc_params
in_parameters = pri_params
layout = cns_layout
line_count = cns_linct
line_size = cns_linsz
no_dialog = 'X'
mode = 'PARAM'
destination = tmp_pdest
immediately = 'X'
IMPORTING
out_archive_parameters = arc_params
out_parameters = pri_params
valid = px_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc <> 0 OR px_valid = space.
MESSAGE i000(db) WITH
'Unable to setup print parameter'.
ENDIF.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pri_params
ARCHIVE PARAMETERS arc_params
NO DIALOG.
ENDFORM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.