PRINT TWO FORMS
HI EXPERTS,
I HAVE TWO LINE ITEMS IN MY ITAB AND I NEED TO PRINT EACH LINE ITEM IN DIFFERNT PAGE .
I AM NOT USING ANY MAIN WINDOW IN MY SMARTFORMSS?
SO HOW TO DO THIS?
RAGRDS,
MANI
Make use of NEW-PAGE Command.
<u>Example For 2 lines in itab.</u>
loop at itab.
loc_index = sy-tabix.
at new itab-f1.
write: itab-f1.
endat.
at end of itab-f1.
if loc_index < 2. "Total lines in itab that can be obtained byDESCRIBE statement
<b> new-page.</b>
endif.
endat.
endloop.
Similar Messages
-
1042 form will not print two forms per page
Hello gurus,
We are testing printing 1042 forms using the Generic Withholding Tax Reporting transaction S_P00_07000134 in 4.7.
If I have 5 different vendors to report on for example, the program will output three sheets with vendor 1 on the top of the first sheet, vendor 3 on the top of the second sheet and vendor 5 on the top of the third sheet. The bottom (or second 1042 on the sheet) is printing the form but not the withholding data. It therefore seems that it's skipping every other record. However, the log lists the 5 vendor payments. That's where I noticed the pattern of every other record.
I appreciate your thoughts on what the cause might be!
DeborahFor Macintosh the AdobeViewer Plugins does not function and Hasn't since Acrobat 8. Adobe has no intention of fixing it, I received a nasty reply: what feature do you want removed in order fix the problem. Its not worth it and we have no intention of ever fixing it. However its shipped and installed on the Mac version
The only PDF Plugin that works is PDFBrowser Plugin by Schubert of Germany, and it appears he has discontined updating although Thankfully It works in OSX.8 with most mdern Updates. You can Only fill out forms by opening Chrome, iCab , and OperaNext only Safari doesn't work and any product using the Gecko Rendering engine (Mozilla Products , FireFox and SeaMonkey Form Fields don't work or crash the browser. (depending upon version of the pdfBrowser Plugin). -
Form is printing two times from MRRL, output type ERS
Hi,
I have copied the standard script MR_PRINT to custom script and done changes in the script to print the invoice form using MRRL transaction (for output type = ERS). Now I am facing two issues. Please help.
1) The form is printing two times on ise my custom form and one is the standard form.Checked the configuration output type ERS is assigned to my custom form only.
2)The form is printing a new invoice document for every line item of a Purchase order. Suppose if a PO has two lines item. MRRL is printing the form 4 times. That is custom form for each line item and standard form for each line item. How to fix the issue.
Are these the technical issues or configuration isssues. I have done changes to only my custom script layout.
Regards,
SudhaPlease reply. If any one has any idea???
-
Hi folks,
I had an question, related to printing the form using sapscript. I am printing a sapscript form using two printers. The first one is HPLJ4000 : HP Laserjet 4000 and the model is Dell Printer and using this printer the form is printing fine.
However when I print using another printer HPLJ4000 : HP Laserjet 4000 but a different model HPLJ 2100TN some of the data is not printing in the right font size. The font I am using is HELVE and I believe it is not recognising it.
I do not know how to work on the issue, asked the Basis guy too he has no clue about it.
Any thoughts or ideas will be helpful?
Thanks,
SkHi
See this OSS notes
OSSNote:960341
Symptom
In some device types (e.g HPLJ4, HPLJ5) you experience non-uniform character spacing in the PDF document after the PDF conversion of SAPscript or Smart Forms documents, using HELVE or TIMES fonts. You want to know the reason.
Other terms
CONVERT_OTF, SAPscript, Smart Forms
Reason and Prerequisites
The problem is not due to an error in the PDF converter but due to the fact, that the printer font, underlying the device type (e.g. Univers or CG Times in PCL-5 device types), is not available for the PDF converter and is either not available in Adobe Reader. The PDF converter has to try to simulate the layout of the printer font by means of a font which is predefined in Adobe Reader. This is done by assigning the letter widths of the printer font to the font used in Adobe Reader.
The PDF file contains a table with letter widths, used by Adobe Reader in the output of text, for each used printer font (except PostScript fonts).
Example:
%Charwidth values from HP4300 HELVE 060 normal
/Widths
[ 278 333 500 633 633 1000 758 333 333 333 633...
Adobe reader converts this width table, by modifying the space between each character, so that the specified letter width (= space between the current and the next letter) is kept.
This 'Simulation' of printer fonts results in the sometimes visible irregular spaces in PDF.
The PDF converter always uses the Helvetica Adobe PostScript font for the display of HELVE and the Times Roman Adobe PostScript font for the display of TIMES. However, for these Adobe PostScript fonts, Adobe Reader often uses a Windows TrueType font, which differs slightly from the original PostScript font.
Solution
Workaround: Use the POST2 PostScript device type or the PDF1 PDF device type for the PDF conversion of documents in the Latin-1 character set. They both use the Adobe PostScript fonts Helvetica or Times Roman for the HELVE/TIMES printer fonts.
Header Data
Release Status: Released for Customer
Released on: 30.06.2006 12:44:06
Priority: Recommendations/additional info
Category: Consulting
Primary Component: BC-CCM-PRN Print and Output Management
Secondary Components: BC-SRV-SCR SAPscript
OSS Note: 776507
Symptom
Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
Other terms
SAPscript, SmartForms, printing, device types, OTF
Reason and Prerequisites
Help required to choose proper fonts in a SAPscript or SmartForm
Solution
When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
1) The language version of the form used to produce the printout.
Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
3) The output character set of the device type
Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
4) The set of available printer fonts for a given device type
When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
Note on SAPscript/SmartForms Print Preview:
The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
Which fonts are suitable for a given language?
Language(s): Font family to use in a form:
Latin-1 (Western Europe/Americas) *******
DE,EN,FR,ES,NL,SV COURIER, HELVE, TIMES
(LETGOTH, LNPRINT)
Latin-2 (Central Europe) ****************
PL, CZ COURIER, HELVE, TIMES
ISO 8859-4 (Baltic) *********************
ET, LT, LV COURIER, HELVE, TIMES
ISO 8859-5 (Cyrillic) *******************
BG, RU, SR, UK COURCYR, HELVCYR, TIMECYR
ISO 8859-7 (Greek) **********************
EL COUR_I7, HELV_I7, TIME_I7
ISO 8859-8 (Hebrew) *********************
HE COURIER, HELVE, TIMES
ISO 8859-9 (Turkish) ********************
TR COURIER, HELVE, TIMES
Simplified Chinese **********************
ZH CNHEI, CNKAI, CNSONG
Japanese ********************************
JA JPMINCHO, DBMINCHO, DBGOTHIC
Korean **********************************
KP KPBATANG, KPDODUM, KPGULIM
KPGUNGSE, KPSAMMUL
Traditional Chinese *********************
ZF TWDPHEI, TWMING, TWSONG
Thai ************************************
TH THANGSAN, THDRAFT, THVIJIT
Arabic (Unicode systems only) ***********
AR ANDALE_J
Verify your output by examining the OTF data
When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
Goto->Display Requests->Settings
and choose
Display Mode: Raw
Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
//XHPLJ8000 0700 00000000001
IN04EALEXTEST_ZEBRA
IN05%PAGE1
OPDINA4 P 144 240 1683811906000010000100001
IN06%WINDOW2
MT0024401289
CP11000000E
FCHELVE 120 00109XSF100SF101110000067E X
UL +0000000000000
SW00067
CT00000000
ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
//XHPLJ8000 0700 00000000001
The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
IN04EALEXTEST_ZEBRA
In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
OPDINA4 P 144 240 1683811906000010000100001
The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
CP11000000E
Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
FCHELVE 120 00109XSF100SF101110000067E X
Header Data
Release Status: Released for Customer
Released on: 22.08.2005 09:57:20
Priority: Recommendations/additional info
Category: Customizing
Primary Component: BC-CCM-PRN Print and Output Management
Secondary Components: BC-SRV-SCR SAPscript
BC-SRV-SSF Smart Forms
<b>Reward points for useful Answers</b>
Regards
Anji -
Request suggestions for PDF printing of forms such as paychecks, W2's
This question is on two levels. I see this as an up and coming project at work, and even there I doubt we will be purchasing BI Publisher as we are in cutback mode. More inportantly, for my own clients who want an application on the cheap. I have seen posts about PLPDF. I would consider it, but then I am not sure who could host the application with the condition of needing plpdf as a requirement.
I have looked at FOP, and even installed it. Like many others, I don't have a lot of xslt formatting experience, and a cheap or free tool for creating a report format would be really helpful. Having to purchase a $600 tool really cuts into a $1000 dollar project.
What are available options? The key concept is I am trying to replicate other people's forms in PDF, such as W2's and Paychecks, so the look and feel has to be professional.
Way back in the day, I would write a Visual FoxPro app that used Crystal Reports to format the report. It wasn't too difficult to write applications for small companies that have a real business need and not lots of cash. I want to accomplish the same thing with a Web application using Oracle XE, APEX, and perhaps FOP or another tool. I just need suggestions from those that have already solved this problem!
Thanks!
Ken LeeSuggestion. (you caught my attention with the Visual Foxpo talk.. Been there, done that, glad I am doing Oracle now).. If your budget is $1000, maybe you should look at a hosting company to host your app that offers BI Publisher. Revion.com (http://www.revion.com/hosting/apex.html) has a $9.95 a month hosting plan that INCLUDES BI Publisher as a feature).
In the APEX development projects I have , I have them hosted there to save the clients money & effort, since they don't need to deal with the hosting issues and can just use the applications I build and have access to BI Publisher for reporting needs.. You do need to download the Bi publisher desktop add-on for MS Word, but then you can access existing templates to print W2 forms, paychecks and whatever..
Not saying its the ONLY way, but I have found it the more affordable way..
(No I don't work for them, or get a commission for directing people there, I just send people to a company I trust working with..)
Thank you,
Tony Miller
Webster, TX -
We are looking for a PDF template solution where we can print two 1099 forms per page. I can see there is an Enhancement Request BUG 7604141 but we need a fix sooner than that may become available.
Our organization is having this issue with the new Adobe forms that were released. The 1099 smartforms print 2 forms per page but the 1099 adobe forms are only printing 1 form per the OSS note that was just released - Note: 1949022. Is there somewhere in config that we can select to print 2 per page?
We are using IDWTCERT_US_1099MISC which will print just 1 form per page ( we also had to make some adjustments because the top gets cut off...)
form IDWTCERT_US_1099MISC1 will print 2 forms per page but it is not a new vendor that prints on the form it is a copy of the first on the page
The 1099 Interest adobe form prints 2 per page with IDWTCERT_US_1099INT - this is curious too because the smartform prints 3 forms per page
Has anyone else experienced this issue? Do you know how to resolve it?I am considering putting in a problem report.
Thank you -
Hi, I have a problem when I sent to print several dynamic template in duplex in the same transaction file.
I sent 2 dynamic template diferents of 3 pages every one, and print the first form well, but the second form it begins back the second sheet. This means that in the same sheet lets two forms and it´s necessary what the second form print it in other sheet.
CURRENT PRINT - ERROR
sheet 1
form 1 first page front
form 1 second page duplex
Sheet 2
form 1 third page front
form 2 first page duplex - error - i want that change to the other sheet
Sheet 3
form 2 second page front
form 2 third page front
GOOD PRINT
sheet 1
form 1 first page front
form 1 second page duplex
Sheet 2
form 1 third page front
Sheet 3
form 2 first page front
form 2 second page duplex
Sheet 4
form 2 third page front
I have a graphic example, please give me a mail, for to send it.yes, no problem getting it to print properly. If you have a duplexing problem, send me your ifd and a sample data file and I will be happy to look at it.
[email protected] -
Hi Guys,
I have Created a Business Object (Eg- Preview) .
Can anybody help me out in creating a solution for providing more than one preview option to the end user in the Purchase order/Sales order Scenario.
Like, while looking at the Purchase Order preview, we get two options- Cancelled PO, & Changed PO.
thanks & regards
Manoj Kannaujiya.Hi Thomas,
i want to print two different print form from a single preview button .
i have added some extension field in sales order through adaptation.
Now my customer want to print default sales order form as well as extended field with default sales order form.
these two form would be available on choices like a purchase Order Preview button in the system .
is it possible ..?
thanks
Manoj Kannaujiya. -
Smartform - HCM - Print two paychecks/remuneration by page
Hi.
SAP ECC 6.0.
I need to develop a Zsmartform to print two documents (front/back) per page (landscape). The client needs it in SAP because they already have the same functionality in legacy system and want it same way in SAP.
I thought to solve it by creating a smartform with two pages (one to print front and other to print back) in landscape.
To the first (front/landscape) page, creating two equal windows (side by side) with same size and structures type. To do this, I use a rotine/form (inside smartform windows) to read exact employee data to each window, but program calls smartform sending two employee data using the same mixed in the strutcture.
E.g.:
PAGE1: Employee1 and Employee2 front.
PAGE2: Employee1 and Employee2 back (each back match with its correct employee).
I guess it's quite complex, but is it possible ?
thanks.
Glauco
Edited by: Glauco Kubrusly on May 6, 2011 4:47 PMHi Glauco,
Kindly set the print mode = d(duplex printing). the overflow data from 1st page will flow to next page, i.e. back page.
Hope this info is sufficient to solve ur issue.
BR,
Vinit -
How to print two tables adjacent to each other?
Hi,
Scenario
I have a form with a body page and two tables. The property of the body page is set to 'Flowed', 'top to bottom' as flow direction and the check box for page break is set.
Requirement
The two tables need to be printed adjacent to each other.
Approach followed until now
1. Since the body page is 'Flowed' type, the two tables are placed one below the other (Tab1 & Tab2). So I tried to set the Flow direction of the Body page to 'Western text'. But this did not solve the issue as since it is set to 'western text', only after Tab1 is rendered, table Tab2 starts printing itself, which is not desired. Both the tables should be printed at the same time.
2. I wrapped both the tables in one sub form with 'Type' set to 'Positioned' and set the check box for page break. Now I arranged the tables adjacent to each other. But the check box for page break for both the tables were disabled and because of this if there is not enough space to print the total records of both the tables, the complete tables is shifted to another page leaving the previous page blank.
Kindly suggest how to resolve this issue.
Regards
s@kDear Andres,
I tried as per you suggestion and it works fine. Thanks a lot.
Now adding to this, I am trying to print the 'formatted text'. The tables have two columns. the first column is a normal field and the second column is table having the 'formatted text'.
As per your suggestion, I concatenated the two tables in one table. So the final table has 2 normal fields and 2 tables.
Final table structure:
Column1 Column2(Table) Blank Column3 Column4(Table)
Settings maintained:
I have set the 'Body' row of the table to 'Flowed' with direction as 'Western text' (Top to bottom does not help ).
The settings for Column 2 & 4 (tables) are maintained as:
1. The Table is set to 'Flowed' with direction 'Top to Bottom'.
2. The body row is 'Flowed' with direction 'Western Text'
(The Border 'Edges' for the tables, columns is maintained as 'None')
Issue:
The sample data has around 10 entries in the (final) table. When I try to print the form, if column2(table) is initial, the data in Column3 and 4 are shifted towards Left hand side.
Kindly suggest how to resolve this issue.
Regards
s@k -
Printing two lines of text in Print Module
Is it possible to print two, or more lines of text, say on a contact sheet, such as filename and caption. If so, how?
Lightroom automatically wraps text under the thumbnail in contact sheets. The Text Template Editor does not allow you to enter line breaks. So, if your Filename is long enough to fill the first line, the caption will start with the second. If not, you can tweak the template somehow so that it looks the way you want.
-
How to get HttpServletRequest parameters from two forms in a JSP
I have this JSP with two forms calling the same servlet. Problem is, when I use a submit button in the second form, I am unable to retrieve the request parameters from the form through the servlet. I am wondering if anybody could give me some info on how to get the request parameters from the second form. I tried to see all the parameter names in the request by calling request.getParameterNames(). But the parameters in the second form are not even seen in the request although I am clicking the submit button in this form!
First, two forms works fine in one jsp so no need to argue about that.
Second, did you put the form actions and type ("multipart/formdata " ?) explicit in every form header ? Did you supply different form names ?
Try to call the submit function through javascript - document.forms[0].submit() for your first, and document.forms[1].submit() for your second form...
Did you forget to close the form tag by chance ? -
OfficeJet 4500 will not print two sided over network
I'm running on Windows 7 with an OfficeJet 4500 G510n-z over WiFi. Printer works great except that it will not print two sided. We've used a non-WiFi 4500 to print two sided before. With the new printer the first pages print and the pop-up shows on the laptop (prompt to flip paper over) but nothing happens. The second pages never print.
I've run all of the HP print and network diagnostics. Everything appears to be OK.The solution below was found on the sticky post at the top of this board "Fixes and Workarounds from HP"
I think the patch below only applies if you have the original printer software installed, I assume this issue was fixed in later versions of the printer software, Read the patch information carefully.
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-69847-2&lc=en&dlc=en&cc=us&...
This Print Driver Update contains improvements for issues related to the following applications and/or print functionality:
Microsoft Office 2007
Duplex printing via network
Printing from Intuit applications
Print margin accuracy
Thai language font -
Printing PDF forms to an impact printer
Greetings,
I hope I've found the correct forum for this question.
We are having difficulty printing PDF forms to an impact printer. We are required by regulations to print to multi-part forms from our GTS landscape, which is going live soon. Since Adobe is the direction SAP is headed with forms, we have been utilizing ADS. However, the need for impact printing has presented a problem. Has anyone utilized PDF printing to an impact printer? I'll list some details in case it will help.
Printer: Lexmark Forms Printer 2590
Backend Print Solution: HP Output Server on AIX
SAP GTS: NetWeaver 7.0 SP17 w/ SLL-LEG 720 SP7
Our printer has printer languages of Epson Emulation and Personal Printer Data Stream (PPDS). Neither of these are included in the standard device types for PDF as specified in OSS Note 685571. I do not see an appropriate XDC file to copy and modify.
Has anyone else run into this issue and found a resolution?
Many thanks for your assistance.
Wesley Tollettthe PortName should be changed accordingly.
if you are using printer port , commonly lpt1, you should change it to lpt1
ur command line could work , i think
i've tried it locally in my machine, it works fine. -
How to print two sides with one page?
I have a PDF that is one page long and I'd like to print the same thing twice (front and back) on one page. Can I do that?
I've tried printing two copies with the printer set to double-sided, but it just printed two sheets with one side on each sheet.Well sure; Go back to the authoring application that created the documents and do a 2-UP page. Make the existingg page large enough to accomodate the extra content. Is that what you're asking or do you really mean print to a printer with a back up ? In that case just flip the page over and print page 2 on the other side.
Or are we missing something ?
Maybe you are looking for
-
My problem is simple: my recently changed Password does not work
my problem is simple: my recently changed Password does not work
-
Upon choosing a XMLelement in the structure i need it's object on the page selected. How to do that using JS? i can't find the "goto item" in ES toolkit. Please advise. Thank you.
-
When ever there is an error in BDocs its going to everyones inbox. Is there a way to send this message to just to one person?If So how?
-
Video Tutorials are WHERE?
a quote from the "installing your software" pamphlet: "Logic Studio Demo Songs and Tutorials DVD: This DVD contains a collection of demo songs and video tutorials for your Logic Studio applications. The disk is also a DVD-Vdeo, so you may view the tu
-
Data Encryption after Migration
Hi, I have recently upgraded a single server deployment of on-premise MSCRM 2011 to MSCRM 2013. Data Encryption NOT enabled yet. Then have migrated this upgraded MSCRM 2013 to another server. During migration, ignored the warning message for Data Enc