on 03-18-2009 2:46 PM
Hi,
I have a document created in Smartforms which is needed to be sent in 4 copies. I am using different bitmaps at the copies that the reason for the copies.
The document is a message from the invoice.
When I print the document I get the 4 copies and everything is OK, but when I want to sent the document as an e-mail only the first page is sent.
Does anyone know about it is possible to sent copies in an e-mail or is only possible to sent the "original"?
Kind regards
Nethe Riis
Hi,
check below link
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/mailsendthroughoutputcontrols
Regards,
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nethe,
how have you managed to make the 4 copies.
It are not real copies because they print different bitmaps.
Maybe inthat is the problem, but i have to little information to fuigure it out.
Gr., Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the field "Number of messages" in the "Communication method" for the message at the Invoice (transaction VF02) I say that I want 4.
As long as I want to print it it works fine but when I want the output in an E-mail (medium 5 External send) I only get 1.
Kind regards
Nethe Riis
Edited by: Nethe Riis on Mar 20, 2009 8:56 AM
Hi,
U can give a printer a parameter which says: print 4 times (TDCOPIES)
U cannot give email an option send 4 times (in 1 email).
The conversion of OTF to PDF converts 1 page. I think you will modify your program sothat the conversion takes place 4 times (according to TDCOPIES).
below you see 2 of the most use convert functions. none of them has a copies parameter.
But you can do it yourself. I think.
Gr., Frank
*-Convert OTF Spool to PDF
if v_nast = ''.
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = p_spool
no_dialog = ' '
IMPORTING
pdf_bytecount = l_bytecount
TABLES
pdf = it_pdf
EXCEPTIONS
err_no_otf_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_dstdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11.
if sy-subrc = 0.
xi_pdf[] = it_pdf[].
else.
xi_pdf[] = it_pdf[].
endif.
else.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = l_size
TABLES
OTF = it_otf
DOCTAB_ARCHIVE = lt_doc
LINES = it_pdf
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
IF SY-SUBRC 0.
v_retcode = 1.
perform protocol_update. exit.
else.
xi_pdf[] = it_pdf[].
endif.
endif.
Hi,
I found another convert function with a copy number in it.
Try:
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'ASCII'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0 """" HERE HERE
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE =
BIN_FILE =
TABLES
otf =
lines =
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
For the sending you can follow the wiki from Madhu.
Gr. Frank
User | Count |
---|---|
74 | |
26 | |
10 | |
10 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.