on 05-27-2009 9:52 PM
HI All,
I have designed a smartform and when the smartform is executed it genreates a spool number.
I have printed the spool in my local printer . it is printing fine , But when the same is converted to PDf file and save locally on my desktop and printed it is printing shirking format .
The entire desinged has been shirked to the lower size and printed .
Requirement is :
the layout design should be of same size when it is printed directly from spool and when is printed from PDF file,
I have used the funtion module CONVERT_OTFSPOOLJOB_2_PDF' do I need to control anything in this functional module to correct the error
Please help me to reslove the issue
Thanks
Sandhya
you can change the Spool: Output device and check it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check this link .It will be useful for you in printing form output as PDF doc.
http://help.sap.com/saphelp_nw70/helpdata/en/27/67443cc0063415e10000000a11405a/frameset.htm
-
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For PDF conversion of smart forms you can use FM : CONVERT_OTF_2_PDF. It is better than which using by you in your driver program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Execute the program RSTXPDFT4 and give spool number and execute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandhya,
I have the same scenario. Buty I am taking OTF data instead Spool job... try with OTF data.
Its Simple,. beclow is a sample code check out.
DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
W_RETURN TYPE SSFCRESCL,
W_CONTROL TYPE SSFCTRLOP,
V_LEN_IN TYPE SO_OBJ_LEN,
V_BIN_FILESIZE TYPE I,
V_NAME TYPE STRING,
V_EXT TYPE STRING,
V_TITLE TYPE STRING,
V_PATH TYPE STRING,
V_FULLPATH TYPE STRING,
V_FILENAME TYPE STRING,
W_OPTIONS TYPE SSFCOMPOP.
CALL FUNCTION FNAME
EXPORTING
CONTROL_PARAMETERS = W_CONTROL
OUTPUT_OPTIONS = W_OPTIONS
USER_SETTINGS = 'X'
GV_NAME1 = WA_LFA1-NAME1
GV_ORT01 = WA_LFA1-ORT01
IMPORTING
JOB_OUTPUT_INFO = W_RETURN
TABLES
IT_BSAK = IT_BSAK.
I_OTF[] = W_RETURN-OTFDATA[].
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
BIN_FILESIZE = V_LEN_IN
TABLES
OTF = I_OTF
DOCTAB_ARCHIVE = IT_DOCS
LINES = I_TLINE.
CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
EXPORTING
DEFAULT_FILE_NAME = V_NAME
IMPORTING
FILENAME = V_NAME
PATH = V_PATH
FULLPATH = V_FULLPATH.
MOVE V_FULLPATH TO V_FILENAME.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = V_BIN_FILESIZE
FILENAME = V_FILENAME
FILETYPE = 'BIN'
TABLES
DATA_TAB = I_TLINE.
Thanks & regards,
Dileep .C
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 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.