Printing smartform
Hi All,
My requirement is to convert the smartform to PDF and print it simulteneously. I'm using the fm <b>convert_otf_2_pdf</b> to convert the smartform into PDF. How can I print the smartform soon after converting it to PDF format?
Hai Rajesh
Go through the following Links & Sample Code
Mail a sapscript
SAPscript: Autotmatically e-mail as PDF
How to convert sapscript(Purchage order) inot pdf format & send in mail
Check the following Code
REPORT ZSMARTFORMS_0003.
DATA: ITCPO LIKE ITCPO,
TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
FORM SEND_FORM_VIA_EMAIL *
FORM SEND_FORM_VIA_EMAIL.
CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
MAILTXT-LINE = 'Here is your file'.
APPEND MAILTXT.
Prepare Packing List
PERFORM PREPARE_PACKING_LIST.
Set recipient - email address here!!!
MAILREC-RECEIVER = '[email protected]'.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = ' '
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
CLEAR: MAILPACK, MAILBIN, MAILHEAD.
REFRESH: MAILPACK, MAILBIN, MAILHEAD.
DESCRIBE TABLE MAILTXT LINES TAB_LINES.
READ TABLE MAILTXT INDEX TAB_LINES.
MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
CLEAR MAILPACK-TRANSF_BIN.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 0.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'RAW'.
APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM GET_OTF_CODE.
LOOP AT SOLISTI1.
MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
APPEND MAILBIN.
ENDLOOP.
DESCRIBE TABLE MAILBIN LINES TAB_LINES.
MAILHEAD = 'TEST.OTF'.
APPEND MAILHEAD.
Creation of the entry for the compressed attachment
MAILPACK-TRANSF_BIN = 'X'.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 1.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'OTF'.
MAILPACK-OBJ_NAME = 'TEST'.
MAILPACK-OBJ_DESCR = 'Subject'.
MAILPACK-DOC_SIZE = TAB_LINES * 255.
APPEND MAILPACK.
ENDFORM.
Form GET_OTF_CODE
FORM GET_OTF_CODE.
DATA: BEGIN OF OTF OCCURS 0.
INCLUDE STRUCTURE ITCOO .
DATA: END OF OTF.
DATA: ITCPO LIKE ITCPO.
DATA: ITCPP LIKE ITCPP.
CLEAR ITCPO.
ITCPO-TDGETOTF = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST_FORM'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DIALOG = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
MOVE-CORRESPONDING ITCPO TO ITCPP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = ITCPP
TABLES
OTFDATA = OTF
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR SOLISTI1. REFRESH SOLISTI1.
LOOP AT OTF.
SOLISTI1-LINE = OTF.
APPEND SOLISTI1.
ENDLOOP.
ENDFORM.
Regards
Sreeni
Similar Messages
-
Error while printing smartforms
Hi Friends,
I am getting error "<b>Invalid value for parameter ARCHDEST</b>" while printing smartforms. This is happening only in IDES server. In Development the same smartform is working normally. I have checked in transaction SU53, to see whether all the authorisations have been given for IDES server. There is no problem in authorisation also. So what might be the reason for this. Please give me the solution to solve this problem.
Thanks & Regards,
RanjithHi Beginner,
In the layout you have taken window or layout taken the big width in that case only you will get this type error syntatically it shows correct when you exicute the smart from try to give the print or see the print preview you will get this error (suggestion is better to check the window sizes)
Thanks
Ashok -
Problem while printing smartform in dot matrix printer
Hi Experts,
When i am printing smartform using dot matrix printer only the last page prints but all the pages displays in print privew.
For example suppose there are three pages to be print 1/3, 2/3 , 3/3 , i get all the three pages in print privew as well as when i take its printout in laser printer i get all three pages as print, but when i am using dot matrix printer i get only the last page ie 3/3 as print.
Regards
Varun SharmaHai Varun,
If things are coming properly then its no more ABAP issue.
Need to check out with the BASIS team along with the IT / hardware department.
Just try to take print out on a other dotmatrix printer, if its somewhere close to you as usually they are heavy and large in size can't be moved.
Hope this helps,
Cheers,
Suvendu -
Hello Experts,
I am developing new SMARTFROM.
Requirement: On entering the Personnel number(s) on the selection it should print SMARTFORM. for one entry there are two page. so for 2 entries it should show 4 pages. It should work like mass printing.
Error: currently it is working for single entry. but when i entered multiple enteries on selection-screen in print-preview i can see only 2 pages for first. for viewing second entry i need to comback to Printer specification page.
how do i achieve if i enter 2 entries on selection-screen in print preview it should show 4 pages.
ie. for 1st entry two page and for 2nd entry last two page.
Regards
Saurabhcheck the following code, the control parameters need to be changed accordingly.
LOOP AT it_acct.
AT NEW kunnr.
READ TABLE it_acct INDEX sy-tabix.
READ TABLE it_kna1 WITH KEY kunnr = it_acct-kunnr.
READ TABLE it_adrc WITH KEY addrnumber = it_kna1-adrnr.
IF sy-subrc = 0.
wa_adrc = it_adrc.
READ TABLE it_landx WITH KEY land1 = it_adrc-country.
IF sy-subrc = 0.
l_landx = it_landx-landx.
ENDIF.
ENDIF.
CALL FUNCTION 'ZSDG_COMPANY_ADDRESS'
EXPORTING
i_bukrs = it_acct-bukrs
IMPORTING
o_comp_addr = g_comp.
REFRESH it_acct1.
IF g_over = 'X'.
r_duedt-sign = 'I'.
r_duedt-option = 'LE'.
r_duedt-low = date.
APPEND r_duedt.
ENDIF.
LOOP AT it_acct WHERE kunnr = it_acct-kunnr AND duedt IN r_duedt.
MOVE-CORRESPONDING it_acct TO it_acct1 .
APPEND it_acct1.
CLEAR: it_acct,it_acct1.
ENDLOOP.
c_nofopr = c_nofopr + 1.
* t_control_parameters-DEVICE = 'LP01'.
t_control_parameters-no_dialog = 'X'.
t_control_parameters-preview = 'X'.
IF c_nop <> 1.
CASE c_nofopr.
WHEN 1.
t_control_parameters-no_open = ' '.
t_control_parameters-no_close = 'X'.
WHEN c_nop.
t_control_parameters-no_open = 'X'.
t_control_parameters-no_close = ' '.
WHEN OTHERS.
t_control_parameters-no_open = 'X'.
t_control_parameters-no_close = 'X'.
ENDCASE.
ENDIF.
IF doct = 'X'.
doc = 'X'.
ELSE.
doc = 'Y'.
ENDIF.
CALL FUNCTION lf_fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = t_control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
g_comp = g_comp
wa_adrc = wa_adrc
landx = l_landx
p_seldate = date
waers = waers
doc = doc
intrvl1 = intrvl1
intrvl2 = intrvl2
intrvl3 = intrvl3
intrvl4 = intrvl4
g_over = g_over
TABLES
it_acct = it_acct1
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDAT.
ENDLOOP. -
How to print Smartform in Draft mode.
HI all,
we are using Wipro LQ DSI 5232 printer, our problem is while printing smartform , its coming in Roman but it should come in Draft Mode.
When it goes to Roman mode the printing become very slow.
How to set in default Draft mode.
Regards,
Rahul.Hi,
there is an SBO setting inside
Administation>System Init>Print preferences>Print Draft Watermark on Draft
Then a "DRAFT" watermark will appear if it's printed before adding.
In CR use a stored proc to get data back according to the Objectid@.
Then if its the object id of a draft then add a CR watermark.
Hope this helps.
Regards,
D -
How to print smartform from a report
Im displaying a report, which contains several documents, whereby which ewch document is connected to a smartform.
The page displaying the report contains a button 'Print'
When clicking on the Print button, all the documents in the report should be printed.
But my program is creating a spool file of the report, which will be printed further - its not what I want
I want the program to print the smartforms of each documents on the report directly.
heres my code and I dont know what I should do to be able to print the smartforms directly
Get the function module name of the smartform.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = '/EU000/FI_PRINT_DEBIT_NOTE'
IMPORTING
fm_name = g_fm_name.
gw_options-tdnoprev = ' '.
gw_options-tddest = 'LOCL'.
gw_options-tdprinter = 'LOCL'.
gw_options-tdnewid = 'X'.
gw_options-tdimmed = 'X'.
gw_control-preview = ' '.
gw_control-no_dialog = 'X'.
write: text-006,' ', text-007, ' ', text-008.
write:/.
For all the documents
LOOP AT gi_all_data INTO gw_all_data.
write: gw_all_data-gjahr(4), ' ',gw_all_data-belnr,' ', gw_all_data-belnr.
write:/.
CASE SY-UCOMM.
WHEN 'PRINT'.
Call the smarform
CALL FUNCTION g_fm_name
EXPORTING
gw_all_data = gw_all_data
user_settings = ' '
output_options = gw_options
control_parameters = gw_control.
WHEN 'BACK'.
LEAVE SCREEN.
ENDCASE.DATA: x_control_parameters TYPE ssfctrlop,
x_output_options TYPE ssfcompop.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_prin LIKE usr01-spld.
SELECTION-SCREEN BEGIN OF LINE.
INITIALIZATION.
SELECT spld
FROM usr01
INTO p_prin UP TO 1 ROWS
WHERE bname = sy-uname.
ENDSELECT.
START-OF-SELECTION.
x_output_options-tdimmed = c_x.
x_output_options-tddest = p_prin.
x_output_options-tdnewid = c_x.
x_output_options-tdreceiver = sy-uname.
x_output_options-tdcopies = '001'.
x_control_parameters-device = 'PRINTER'.
x_control_parameters-no_dialog = c_x.
x_control_parameters-langu = sy-langu.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_SMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = f_name1
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF P_PRI = 'X'.
CALL FUNCTION F_NAME1
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = X_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = X_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
wa_header = wa_zmexh51
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
tab_item = TAB_ZMEXD51
tab_item1 = TAB_ZMEXS51
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSEIF P_PRE = 'X'.
CALL FUNCTION F_NAME1
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = X_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = X_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
wa_header = wa_zmexh51
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
tab_item = TAB_ZMEXD51
tab_item1 = TAB_ZMEXS51
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Check the above code its just similar requirement it may helpful to you.
Thanks,
Phani. -
Printing Smartform for a series of data
hello People,
i am stuck up in a situation which sums up like this
i am having a range of check numbers for which the details of checks have to be printed.
the req is all the check between the range has to be printed in that many pages and printer should be assigned once only
that is for 10 checks smartform should have 10 pages.
the code i have designed is mentioned below
it is working fine in terms of execution, the only problem is that
only the last check in the range is showing in the preview.
all other are bieng overwritten.
in the debugger i can see the values for all checks being assigned.
<u><i><b>the thing is i want the first time the loop execute it should print check in first page
the next time the loop executes it should print check in second page
and so on till the tenth.</b></i>.</u>
<b>few points i wud lik to mention :
its not the standard check format, so dont think in dat direction,
the whole content including the main and secondary window is changing not just the table in main window</b>
please help
here is the code i devised
upper = upper.
lower = lower.
itab = itab.
select chect
from payr
into table itab
where HBKID EQ BANK
AND CHECT between lower and upper.
break-point.
DATA: l_char18 TYPE char18,
l_p TYPE p DECIMALS 2.
loop at itab into wa_itab.
SELECT SINGLE zbukr
hbkid
hktid
rzawe
chect
lifnr
kunnr
ubhkt
vblnr
zaldt
waers
rwbtr
pridt
zanre
znme1
FROM payr
INTO wa_payr
WHERE chect EQ wa_itab-chect
and hbkid eq bank.
IF sy-subrc EQ 0.
SELECT SINGLE lifnr
adrnr
FROM lfa1
INTO wa_lfa1
WHERE lifnr EQ wa_payr-lifnr.
SELECT SINGLE addrnumber
date_from
nation
name1
name2
name4
city1
post_code1
po_box_loc
street
tel_number
region
FROM adrc
INTO wa_adrc
WHERE addrnumber EQ wa_lfa1-adrnr.
SELECT bukrs
belnr
gjahr
buzei
augbl
shkzg
mwskz
dmbtr
qbshb
FROM bseg
INTO TABLE it_bseg
WHERE augbl EQ wa_payr-vblnr
AND shkzg = 'H'.
IF sy-subrc EQ 0.
SELECT bukrs
belnr
gjahr
xblnr
FROM bkpf
INTO TABLE it_bkpf
FOR ALL ENTRIES IN it_bseg
WHERE belnr = it_bseg-belnr.
LOOP AT it_bseg INTO wa_bseg.
READ TABLE it_bkpf INTO wa_bkpf
WITH KEY belnr = wa_bseg-belnr.
wa_disp-billno = wa_bkpf-xblnr.
wa_disp-amount = wa_bseg-dmbtr.
l_char18 = wa_bseg-dmbtr.
SHIFT l_char18 LEFT DELETING LEADING space.
wa_disp-amount = l_char18.
l_p = wa_disp-amount.
CLEAR wa_disp-amount.
wa_disp-amount = l_p.
CLEAR l_p.
SHIFT wa_disp-amount LEFT DELETING LEADING space.
wa_disp-tdsamt = wa_bseg-qbshb.
l_char18 = wa_bseg-qbshb.
SHIFT l_char18 LEFT DELETING LEADING space.
wa_disp-tdsamt = l_char18.
l_p = wa_disp-tdsamt.
CLEAR wa_disp-tdsamt.
wa_disp-tdsamt = l_p.
CLEAR l_p.
SHIFT wa_disp-tdsamt LEFT DELETING LEADING space.
APPEND wa_disp TO it_disp.
CLEAR wa_disp.
ENDLOOP.
ENDIF.
ELSE.
MESSAGE 'Entered Cheque No is Incorrect' TYPE 'E' RAISING exc1.
ENDIF.
endloop.
help people
thanks & regards
Nitinhi Nitin
just give a try with this .
create one loop and for that give your int_tab which holds the records of all the checks say 10 checks.
also create one program lines wherein you l set the flag to 1 whenever the itab count increases if not then set the flag to 0.
now inside the main window create one command node and check the go to new page checkbox and give your second(or next page) name , and in the conditions tab keep the flag = 1.
the extra work you need to do is you have to create one next page with all the same windows which will triggers for evry new line item.
hope it may be helpful to you.
plz reward points if helpful
Regards
Zarina -
Problem during printing smartforms
Hi,
We are using Epson 9 pin printer for printing. We have custom page layout used in our sap script and smartforms with size 12 inch / 9 inch (80 column dot matrix printing).
We are using SWIN (windows default printing) driver. Problem we are facing are -
1. The second page doesnt start properly from scond page. It starts at the end og first page only.
2. If there are more than one page, then a blank page is printed after each page.
Please suggest how to contrl this and do printing setting in SAP.
RRHi,
Do you use a custom page format for the 12 x 9 inch page size? if so check the thread below.
Re: Correct preview, but wrong print out.
You probably also need to create the default windows page format.
Regards,
Aidan -
Printing smartform for multiple customers
Hi Experts,
can anybody send me the code for printing the smartform for multiple customers, i need print the customer data by pagewise means in selection screes if user enter multiple customers ,i need to print by each customer, if customer 1 is different from customer 2 need to start in new page .
pls guide........
thanks in advance.Hi,
You can handle it in your form by checking the customer.
Write code in your main window there you check the present customer with previous one. if not equal then trigger the next page
Regards
SHiva -
Printing smartform in Dot matrix printer
Hi ,
i am giveing the printout of the smartform in the dot matrix printer. But in the print out the template is not getting printed and in the second table i am getting extra lines in the table. Please give me any suggestions and is there any settings to be changed in the printer.
Warm Regards
Phani.There may be some isssue with the loop used to printing the table ....
There might be only 2 reasons either there is loop repeating or not data is not cleared concentrate on this two issues only .
try debugging the table jus before printing .if its is fine , then
Sometimes even the problem with the print catridge could have resulted in this .
Edited by: Martina Floriette on Jun 23, 2009 7:50 AM -
Print Smartforms in Inventory Management
Dear Sappers,
My client requires a lot of samrtform in INventory Management including SC DC, Stock Transfer DC, GR etc.GR Smartform is coming as per my configuration.But other smartforms are not coming as per y configuration.
When I see the material documnet in MB02.I saw all the o/p types are coming for the respective transaction.Foe ex: If i'm going for Stock Transfer Smartform Print, I can see all the O/P types in the material document.So when I'm going to Print in MB90, the smartform is not triggering and system is giving one message.
Output could not be displayed (it may not be complete) Message no. VN069
Same thing applicable to S/C DC and other smartforms.
Is there any link between movement types and O/P types with access sequence??
Is there any other settings are there to take print????
Our client requires a smartform for Sub Contract DC.It's developed.In Inventory management I've assigned the programme name and smartform name and made the necessary settings.Even though I made the print is not coming.
Can anybody tell me where I've done the mistake?
I've created my o/p copying the standard WLB3 and created my own.
IN general data I put access sequence as 0004 & in default value I put dispatch time as 3 and transmission medium as 1.I made Print parameter as 7 plant/ storage location.
In processing routine I put the necessary programme name and smartform name.
In NACE, I've taken ME - Inventory Management.Out O/P type and Trans/Event Type as WA, print Version 3, Print Item 3 and debit/Credit Indicator as H (Credit).
I assigned the Printer name there.
Apart from that I made the goods movement respect to plant and storage location as well as movement type.
Still my print is not coming.
Any suggestions.
Thanks & Regards
PKB
Edited by: Pranaya Barik on Oct 13, 2009 1:48 PMHi
I'm waiting for the reply still I'm not getting any suggestions from.
We've developed smart form for Sub Contract DC.I've made the necesssary settings for this. Still Smartform print is not coming.If anyone works on Smartform for S/C DC, tell me how to do the necessary settings to get print preview of S/C DC.
Waiting for the respond??
Thanks & Regards
PKB -
Font size incorrect when printing smartform
Hi,
I have a smartform containing many smaller windows with frames. One big window should show a word in grey and in big letters behind all the other windows.
In my smartstyles, I have used the font family "HELVE", font style bold and the size 72. When I print to a sap printer device, the word is printed in very small letters and in black. When I´m printing about LOCL and then on the same printer, the fontsize is correct.
What can I do to change that?
The second problem is, that the letters are shown over the frames of the other windows, but it should be completely in the background. I put the window with the backgorund letters as the first window on the screen to get it behind all others, but it´s not working....
Cheers Arnethere is some proble in printer setting.....
contect the basis person....
method for font size....
Define the paragraphs & character formats using SMARTSTYLES & use them in your smartform.
You have to give the smartstyle name in the Form attributes-->Output options for the formats to be used in your smartform.
frm ur pc only u can get this font file..
go to control panel , in tat go to font and select your desired font file..
now give the path of this font file in se73..
after doing that this file will be uploaded into ur SAP server.
Se73 - > True type font installation - > Font name - > specify the name of the font file - > execute -
Issue in Printing Smartforms through Dotmatrix Printer
Hi,
I have a Smartform which has many tables. When I print it through a Laser printer it comes out fine. But when I direct it through the Epson 2090 a 24 pin head dotmatrix printer some lines in the tables are not getting printed.
May be it's that there is no room for printing line. What will be the best solution for this?, What's the best Font & Unit of Measure I should use? Or Anyother solution?
Thanks,
KishanHi,
I have a very similar problem to the original posting. I have a SAPScript form that print fine on a HP Laser Jet printer. But we cannot get it to print correctly on a Epson DOT Matrix. We tried two different models and get the same bad results. The print size is smaller on the DOT matrix even though I am using the following printer initialization
# set to 10 CPI
0x1B0x50
# select LQ quality
0x1B0x780x01
# select non-proportional spacing
0x1B0x700x00
# set left margin to 0
0x1B0x6C0x00
# set right margin to 85
0x1B0x510x85
# cancel bottom margin
0x1B0x4F
It is also printing a hex value on the first line and has top, side, and botton margins of about 3/8 inch So apparently, it is ignoring the printer initialization. Note, I had also tried the same initializations using \e in place of the Epson Escape hex value \0x1B
Message was edited by: Bob Ackerman -
Not able to print Smartforms page
Hi,
I am not able to print more than one page in smartforms.
Even in the print preview, I can see just content of page one ?
I have alse made the next page attribute of page 1 as page 2 ?
Still it does not work.Tushar,
Assume you have 2 pages Page1 and Page2 . Page2 is the next page for Page1. So what u have to do is make a command line in Page1(right click on window -> create -> flow-logic -> command) and in there choose Page2 as your Go to New Page. This should solve your problem.
Regards,
Vinay -
Not able to print preview or print Smartform after the changes
Hi Experts,
I made a small change to the smartform, saved it and activated it. Transport it to our QAS system for testing.
But while trying to print preview the form i am not able to see any print/print preview. After my debug in the report that calls the form i found that at
call function G_FM_NAME it is not importing any values at all.
There was no change made on report or call function, we only change it on the smartform.
Could somebody tell me what might be the problem.
Thank you
Mamathai have no clue what your problem is, it would be too much of a guessing.
But i have a way how you can find out what the problem is:
After your "CALL FUNCTION fm_name"
adopt your coding with following:
IF sy-subrc NE 0.
CALL FUNCTION 'SSF_READ_ERRORS'
IMPORTING
errortab = yy_lt_errors.
ENDIF.
this will give you a list of errors if there are any.
Then have a look at that internal table, see the errornumbers and goto SE91 for outputclass "SSFCOMPOSER" and check what the message behind your error class is.
This has helped me quite often.
regards -
Hi All,
I have a requirement where i need to display Large Font size in Smartform. I am able to display the same for the PRINTER in print preview.
But when i print the smartform, the font is printed in very small size.
I think it is because the printer is not supporting the font.
Please let me know the workaround for such problem.
Thanks,
Best regards,
Prashantmethod for font size....
Define the paragraphs & character formats using SMARTSTYLES & use them in your smartform.
You have to give the smartstyle name in the Form attributes-->Output options for the formats to be used in your smartform.
frm ur pc only u can get this font file..
go to control panel , in tat go to font and select your desired font file..
now give the path of this font file in se73..
after doing that this file will be uploaded into ur SAP server.
Se73 - > True type font installation - > Font name - > specify the name of the font file - > execute
Maybe you are looking for
-
Automatic purchase requistion in sales order
Dear All, I have created materials with the material type :SERV,and i have created Z... item category , now i want to create purchase requisition automatically when i save the sales order, so pls anyone guide me on detail of implementing part, or tel
-
How to add external images onto a control and still be able to resize
Hello, I'm a LabVIEW newbie. I'm trying to customize the appearance of my VIs, and one of the things I like to do is to import external image and paste it onto the faceplate of the gauge indicator. I've followed the instruction in the Labview appli
-
Getting an error after migrating VS2012 to VS2013 .
Hi, I have installed VS2013 and opened my project. So web.config added " <add assembly="System.Spatial, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />" and giving compile error : "Could not load file or assembly 'System.Spatia
-
F4 help for "Tracking Number" field at Item Overview level in ME51n
Dear Experts, I want add F4 help in tracking number filed (i.e. BEDNR) at item overview. Scenario - While creating material Purchase requisition, I have to give the related Service PO number in tracking number filed. Client requirement is, drop down
-
Is there a way to mark favorites radio stations?
Whether I'm using the ATV Radio app or iTunes radio playing to ATV, it seems I have to navigate to my favorite stations each time. Is there a way to mark your favorite radio stations to make it easy to flip around? Thanks.