Smart form problem when printing header in table

Hi Friends,
I am facing some problem in smartform. In my smartform there is a table - where I should print "Header" at each start of line items and also at page break. So, I checked both the check boxes in Header as "Start of table" and "Page break".
Now the problem is in main window - it is printing Header and line items are coming. After finished Again the header is coming and line items are coming. In some cases - What is happenning is: If the first page ends at the header only - Header is getting printed in the first page and the page ends here. In the next page also "Header is appearing because i checked page break". So, it is appearing twice.
Could someone please guide me on this issue.
Regards,
Hari

Hi,
At any case the two headers will not be displayed if you select the both "start of table" and "at page break.". Please check whether there is another widow in the form from where the header is displaying.
Thanks ,
Abhijit

Similar Messages

  • Performance problem when printing - table TSPEVJOB big size

    Hi,
    in a SAP ERP system there is performance problem when printing because table TSPEVJOB has many millions of entries.
    This table has reached a considerable size (about 90 Gb); db size is 200 Gb.
    Standard reports have been scheduled correctly and kernel of SAP ERP system is updated.
    I've tried to scheduled report RSPO1041 (instead of RSPO0041) to reduce entries but it is not possible run it during normal operations because it locks the printing system.
    Do you know why this table has increased ?
    Are there any reports to clean this table or other methods ?
    Thanks.
    Maurizio Manera

    Dear,
    Please see the Note 706478 - Preventing Basis tables from increasing considerably and
    Note 195157 - Application log: Deletion of logs.
    Note 1566659 - Table TSPEVJOB is filled excessively
    Note 1293472 - Spool work process hangs on semaphore 43
    Note 1362343 - Deadlocks in table TSP02 and TSPEVJOB
    Note 996455 - Deadlocks on TSP02 or TSPEVJOB when you delete
    For more information see the below link as,
    http://www.sqlservercurry.com/2008/04/how-to-delete-records-from-large-table.html
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=91179
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=83525
    If any doubts Let me know.
    Thomas
    Edited by: thomas_raja on Aug 7, 2011 12:29 PM

  • Problems when printing help topics from OHJ

    We have encountered some persistent problems when printing help topics from Oracle Help for Java (Ice Browser).
    NOTE: When we print the same source files from Oracle Help for the Web, the printing problems are gone.
    (1) Spacing Errors (all printers had identical results)
    Text with special formatting (<b>, <i>) often has either too much space or not enough space.
    Links often have extra spaces underlined before or after the link, itself.
    (2) When printing multiple help topics from the TOC (an entire branch in the tree):
    On some printers, no graphics print correctly, but instead print as one of the following: 1. empty box the size of one character, 2. black box the size of one character, 3. black box the size of the original graphic. We could not detect a pattern that caused 1, 2, or 3.
    NOTE: all graphics are bit maps (screen captures) that were generated in the same manner.
    NOTE: if these same help topics are printed one at a time form Oracle Help for Java, the graphics print fine.
    Is this a problem with the Ice Browser?
    Thanks for the help,
    Wendy Studinski

    There are a known issue with the ICEBrowser printing in some circumstances. The laying out of text by the ICE Browser relies on font metrics (being able to measure the width of a run of text in a given font). On screen it looks great, but when printing, even though the GraphicsConfiguration for the printer is being used, these widths are sometimes off, which can result in text running together at boundaries between text styles. We're not sure what to do about this problem, and we've reported it to IceSoft.
    Not every font has this problem, so varying the font you are using might help the appearance when printed.
    The other problem you report, problems with the images when printing multiple topics, is something that we will look into.

  • Smart Form problem with address layout

    Hello everyone,
    I need your help please for a smart form problem. We need the address layout for great britain with street1, street2 etc. but currently street2 is alligned before street1.
    We are using the FM ADDRESS_INTO_PRINTFORM (SAP standard address node) and according to the documenation the layout for GB is different as we see it currently.
    We have checked the sold-to and all contact persons, they have as country GB and language EN maintained.
    In customizing for address screen layout there is nothing chosen (tested to set up Europe, but did not change anything).
    For the customizing 'specify my countries...' we have maintained GB as country with the address layout key 006, vehicle country key GB and language key EN.
    For the described setting shouldn't there be designed the address in our smart forms according to 006? Anyhting in customizing we missed?
    Thanks a lot for your answers.
    Torsten

    Hi,
    Try to use line priority of FM, below is a brief of documentation. You can read it more in FM documentation:
    Control Parameters
    See also the parameter documentation.
    ADDRESS_TYPE - Address type (from 3.0C)
    There are three types of address:
    Address type '1': addresses of firms or organizations; the address
    structure which is used in most SAP applications as 'Address'.
    Address type '2': address of a person
    Address type '3': work address, usually the address of a contact person
    in a company
    The default value SPACE for the address type is handled like type '1',
    and is needed for the upwards-compatibility of the function module.
    Which parameters are used for which address type is explained in the
    ADDRESS_TYPE parameter documentation.
    The three character "address layout key" of the recipient country (LAND1) controls which of the available country-specific routines is used to format addresses for the country in question. This key is stored in field T005-ADDRS and is entered in Customizing under Global settings -> Set countries -> Define countries, on the detail screen under "Address layout key".
    Keys for customer routines in the SAP enhancement SZAD0001 can be
    maintained via the transaction SM30 (extended table maintenance),table
    name T005A, in the customer name range, and be assigned in country customizing.
    The address attributes are passed in the structures ADDRESS1 (type 1), ADDRESS2 (type 2), ADDRESS3 (type 3) or ADRSWA_IN (type SPACE).
    NUMBER_OF_LINES (ADRSWA_IN-ANZZL)
    The number of lines available for the address layout. If the number of
    lines is not sufficient for the complete layout of an address, then
    lines are consecutively suppressed according to the rules of the country in question. Use the parameter LINE_PRIORITY (ADRSWA_IN-PRIOR) overrules the standard sequence in which the output lines are to be suppressed.
    LINE_PRIORITY (ADRSWA_IN-PRIOR)
    If not equal to SPACE, this field overwrites the standard sequence in
    which the lines are suppressed if the available number of lines ANZZL is
    insufficient.
    The standard sequence is defined as follows:
    Type 1:   'AP43HRT7I86LC2BS5O'       (GB:  'APRT4327I86CBS5LO')
    Type 2:   'APHRT7I86LCBS5O'          (GB:  'PRT7I86CBS5LO')
    Type 3:   'APF43HR7I86TLC2BSND5O'    (GB:  'APRT4327I86CBS5LNDIO')
    where (if they occupy a line of their own):
    A = Title
    P = Mandatory empty line 1
    F = Function of the contact person in the company
    4 = Name 4
    3 = Name 3
    H = Different city
    R = Region
    T = District
    L = Name of country
    C = Postal code
    T = District
    7 = Street 3 (field STR_SUPPL2)
    I = Street 5 (field LOCATION)
    8 = Street 4 (field STR_SUPPL3)
    6 = Street 2 (field STR_SUPPL1)
    L = Country
    C = Postal code
    2 = Name 2
    B = PO Box
    S = Street or PO Box
    5 = c/o name
    N = Name (and title) of a person
    D = Department
    O = City
    Which of these attributes are available for maintenance can vary. All
    fields exist in Business Address Services.
    STREET_HAS_PRIORITY (ADRSWA_IN-WAREN)
    'X': Street has priority over PO Box (delivery address for example)
    ' ': PO Box has priority over street. This is the default value.
    regards,

  • Problem when printing booklets prints pages 1,2 and 11 as if I wants to print all

    I am using XP and 2000 MS word
    I am having a problem when printing booklets from time to time. I get it ready to print in booklet form with 12 pages and my printer gives me the options. “Print all”  “current page”  “selection” or “pages”  Because it is booklet I want to print the first 4 pages to be folded and glued as a small book. When I inter 1-4 as the example shows some times it prints OK but about a week later it prints pages 1,2 and 11 as if it wants to print all. I thought it was the printer but think it could be in some setting of the word program or my computer it self.

    Also does this (i.e. prints web pages over several pages despite changing settings) on my laptop at work with an HP printer. This started when I upgraded to Firefox 9.0.1.

  • Problem when printing in Polish

    Hi
    developers have a problem when printing a Polish form, special charactors like ł, ś, ć etc are all printed as '#'.
    TY
    regards
    Hicham
    Edited by: Juan Reyes on Sep 10, 2009 12:22 PM

    Let me correct your thread...
    problem when printing a Polish
    You cannot print "a polish", you have problems printing "in polish".  :-D
    Regards
    Juan

  • Problem when printing " " using XSL

    I have a problem when printing the "<" .It is always printed as
    "&#60;" in the HTML file.
    I wish to transfer a Javascript text . I tried
    using CDATA . This is an extract of a portion in my XSL File
    which uses CDATA.
    <![CDATA[
    function createLOV(lov_name, array_touse) {
    document.writeln("<select name='" + lov_name + "'>");
    for (var i=0; i < array_touse.length; i++) {
    document.writeln("<option value='" + array_touse[i] + "'>" +
    array_touse[i] + "</option>");
    }]]>
    And this is what the HTML file contains
    function createLOV(lov_name, array_touse) {
    document.writeln("&#60;select name='" + lov_name + "'>");
    for (var i=0; i &#60; array_touse.length; i++) {
    document.writeln("&#60;option value='" + array_touse[i] + "'>" +
    array_touse[i] + "&#60;/option>"); }
    document.writeln("&#60;/select>");}
    I tried using the <xsl:text disable-output-escaping="yes"> but in
    vain.
    If i use < or &x3C; , i still get &#60; in the HTML file.
    How do I solve this problem. I'm using XSQL Servlet with JSDK2.1
    both running on Sun Solaris2.6 .
    Thanks in advance,
    Suresh
    null

    Suresh Seetharam (guest) wrote:
    : I have a problem when printing the "<" .It is always printed
    as
    : "&#60;" in the HTML file.
    : I wish to transfer a Javascript text . I tried
    : using CDATA . This is an extract of a portion in my XSL File
    : which uses CDATA.
    : <![CDATA[
    : function createLOV(lov_name, array_touse) {
    : document.writeln("<select name='" + lov_name + "'>");
    : for (var i=0; i < array_touse.length; i++) {
    : document.writeln("<option value='" + array_touse[i] + "'>" +
    : array_touse[i] + "</option>");
    : }]]>
    : And this is what the HTML file contains
    : function createLOV(lov_name, array_touse) {
    : document.writeln("&#60;select name='" + lov_name + "'>");
    : for (var i=0; i &#60; array_touse.length; i++) {
    : document.writeln("&#60;option value='" + array_touse[i] + "'>"
    +
    : array_touse[i] + "&#60;/option>"); }
    : document.writeln("&#60;/select>");}
    : I tried using the <xsl:text disable-output-escaping="yes"> but
    in
    : vain.
    : If i use < or &x3C; , i still get &#60; in the HTML file.
    : How do I solve this problem. I'm using XSQL Servlet with
    JSDK2.1
    : both running on Sun Solaris2.6 .
    : Thanks in advance,
    : Suresh
    Currently, the parser does not support the xsl:output and
    output-escaping mechanisms. We plan on adding support for this
    in a future release.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • "Problem When Printing" error on Mac Mini

    Hi all,
    I just recently updated my Mac Mini from 10.3 to 10.4. Instead of Archive and Install I formatted and did a clean install.
    I have my printer set up, however whenever I try and print anything from any application I get a very unhelpful "Problem when printing" error, and nothing prints.
    I also get the same error when trying to save to PDF.
    My printer is a HP Deskjet 3750, and the driver is the one included with 10.4 (as per HP's instruction), but I don't think it's a driver problem as Save to PDF gives me the same error.
    I've already tried repairing permissions. Anyone know what could be causing this. Any help is greatly appreciated.
    Thanks.

    Bugger. PSR is often a winner
    You could try installing Gutenprint 5.0.1 available from Sourceforge (it's about 15MB). It's an updated version of the included GIMP-Print drivers and may repair/replace/install some of the core files. Otherwise you may have to contact Apple and see if you can get 10.4.9 mailed to you.

  • How to know no of pages in smart forms to be printed ?

    Hi,
         How to know no of pages in smart forms to be printed ?
    though i got SFSY structure during run time of smartform , even that was not useful.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This  allows you to include texts such as'Page x of y' into your output.
    for that Page &SFSY-PAGE& of &SFSY-FORMPAGES&
    during debug of smart form i don't  understand how it is calculating no of pages  ,as i kept break point before printing page no in smart form.
    please check my  two screen shots, sfsy-formpage still contains current page no only but not total no of pages.
    Help Required.
    Thanks In advance.

    Hi Prakash,
    You will not get these values during debugging.. Let the program execute completely, you will get the right values.
    As Manish said, the value for &SFSY-FORMPAGES& will be known only after all the pages are processed, though it is not necessary that you use them in the final window only. It can be a text node in a window of any type.
    You will get the desired output, just cant see them during debugging within the program. At the time of printing or in the print review, output would be as expected.
    Also, FYI, it would be better to give total pages as &SFSY-FORMPAGES(3ZC)&  as there can be error if the total number of pages exceeds 9, due to lack of sufficient space to print more digits

  • Color management problem when printing

    (sorry for the double post, since the problem affect both illustrator and photoshop and in fact also indesign) in decided to repost it here in the photoshop forum. thank you for any help!)
    hi ! im in charge of a big print lab in a university. All macpro quad running on 10.6.4, CS5 all updated.
    i  have a major problem when printing from all 3 CS5 apps : Illustrator  (being the worst), photoshop and indesign : each one produces a  different print even if i use the SAME color management options (the  application manage color using my own color profile file created with a  i-one tool from greta macbeath and using eye-one match 3). im printing  on a XEROX 7750gx laser printer. very cool printer never had trouble  with colors before with it, in any case it was always the software part  that was causing color problems (like i suspect in this case).
    how  can 3 softwares under the same application collection and brand, using  the same color profile and options (IDENTICAL ! it's triple check all  the options!) can produce 3 different prints when printing the same  image (it's a color psd created under photoshop CS5) ?!
    i  remember having some trouble like this when we first got CS1 in our lab,  but not this bad... i've checked everything... i realy don't know how  to fix this problem...
    the best setting so far is in  Photoshop when the application manage the color and using my color  profile file in perceptual mode. best output so far, not the best i had  in the past, CS4 was way more perfect with color management.
    i  realy need to find a solition 'cause the students expect the color to  be almost perfect (and they almost were using CS4 in the past...
    thanx for any tips & help !
    +

    many thanx for your reply & help.
    i've just recalibrated everything in my workflow : my screen (perfect!), my xerox 7750 color laser printer. i've recreated a new color profile file for the xerox color. and the same thing is happening : a kind of pink color all over my prints and every adobe's applications is printing different results. in photoshop i can manage the problem when forcing to print in perceptual mode. not perfect but it's fine. and with the other software specialy like ACROBAT and INDESIGN there's no option like this so it prints very badly. only option is to print in adobe 1998 rgb or SWOP cmyk (depending of the color space of the image of course)... the image is use for my test is RGB. images in CMYK are doing the same exact thing.
    by the way for calibration is use an x-rite (greta macbeth) eye-one tool with eye-one match 3.6.3. i calibrate the screens and create color profile with this tool since ADOBE CS1 and never had this much trouble with colors...
    here's a capture from photostop CS5 print dialog. when using the option "match print colors" you can see the image with all the PINK NOISE when using the print in RELATIVE colormetric mode (at the bottom right). using perceptual is "fine" (not color perfect but OK).
    http://i53.tinypic.com/qzge12.jpg
    it's worst in Acrobat and Indesign since i can't use perceptual colormetric print mode...
    im realy starting to think that i better uninstal CS5 and go back to CS4...
    thanx for your help !

  • Smart form problem with multiple pages & table problem

    Hi experts,
    I have a problem with my smart form with multiple pages
    Situation: I have a smart form that ALWAYS has at least 2 pages. In one page the quotation, in the second page (basically this is the 3rd page as the 2nd page is optional) the terms and conditions. Sometimes however, when there are many items in the quotation more than 1 page is needed for the quotation.
    The (optional) second page of a quotation has a different header than the first page of a quotation. So I made a second page with 2 secondary windows (where the header texts are in). The main window is after the secondary windows and has to finish the quotation.
    The problem is that my headers of the second page are never printed, it stays a blank space. The table however does continue and is printed.
    Another problem I have is that I have a table (with the quotations) with 6 columns. The first 2 columns are displayed correctly but once the 3rd column the columns are shown on a lign below.
    Regards,
    PJ

    I would suggest another approach to this problem.
    Use just one page. For the headers on the first page, use a secondary window and on the conditions tab, choose the additional event - Only on First Page.
    For the different header on the second page, create another secondary window on the same page (probably even overlapping the first header on your layout). But in this one, on the conditions tab, choose the additional event - Not on First Page.
    The table should flow as you would be using the Main window for this one.
    As for columns, if they are too wide and wont fit in the same line, it would move to the next line. So you would have to re-adjust the line width and test.
    Hope this resolves your problem.
    Regards,
    Ancy
    Edited by: abapfreak on Oct 4, 2010 11:52 AM

  • 1004 Problem when printing an Excel Form

    I have the following code to select 1 or more rows from a worksheet and for each row it populates a form and then prints it.
    The code includes the following in the sub below;
    If RowN > 2 Then
        PrintMRSS_Click
    End If
    If I run it on Excel 2013 works OK. If I run it on excel 2007 it will print the first form, but it fails with 1004 and other errors when it executes the following line when printing the second and subsequent forms.
    Any help would be much appreciated
     ActiveSheet.PasteSpecial Format:="Bitmap", Link:=False, DisplayAsIcon:=False
    If I comment the lines out and use the option of having to click on the PrintMRSS button all the required data prints OK
    Private Sub GetData()
    If RowN > RowMP Then
        Unload Me
        Menu.Show
        Exit Sub
    End If
    Me.MRSSLookup.Caption = "Marine Rescue Sydney - MRSS Vessel Information as at " & Format(Now(), "dd mmm yyyy")
    OpenDataWB
    Sheets("Renewals").Activate
    Me.DMRSSID.Caption = Cells(RowN, 1)
    Me.DNAME.Caption = Cells(RowN, 2)
    Me.DREGISTRATION.Caption = Cells(RowN, 3)
    Me.DMAKE.Caption = Cells(RowN, 4)
    Me.DTYPE.Caption = Cells(RowN, 5)
    Me.DMATERIAL.Caption = Cells(RowN, 6)
    Me.DHULLCOLOUR.Caption = Cells(RowN, 7)
    Me.DSUPERSTRUCTURECOLOUR.Caption = Cells(RowN, 8)
    Me.DLENGTH.Caption = Cells(RowN, 9)
    Me.DBEAM.Caption = Cells(RowN, 10)
    Me.D27MHZ.Caption = Cells(RowN, 11)
    Me.DVHF.Caption = Cells(RowN, 12)
    Me.DMFHF.Caption = Cells(RowN, 13)
    Me.D406EPIRB.Caption = Cells(RowN, 14)
    Me.DEPIRBNUMBER.Caption = Cells(RowN, 15)
    Me.DEPIRBGPS.Caption = Cells(RowN, 16)
    Me.DMMSINUMBER.Caption = Cells(RowN, 17)
    Me.DSAILNUMBER.Caption = Cells(RowN, 18)
    Me.DMOTOR.Caption = Cells(RowN, 19)
    Me.DFUEL.Caption = Cells(RowN, 20)
    Me.DEMERGENCY.Caption = Cells(RowN, 21)
    Me.DMOORINGRAMP.Caption = Cells(RowN, 23)
    Me.DCONTACTNAME.Caption = Cells(RowN, 24)
    Me.DCONTACTNUMBER.Caption = Cells(RowN, 25)
    Me.DOWNERSNAME.Caption = Cells(RowN, 27) & " " & Cells(RowN, 26)
    Me.DHOMEPHONE.Caption = Cells(RowN, 31)
    Me.DWORKPHONE.Caption = Cells(RowN, 32)
    Me.DMOBILEPHONE.Caption = Cells(RowN, 33)
    Me.DEMAIL.Caption = Cells(RowN, 34)
    Me.DCARREGO.Caption = Cells(RowN, 35)
    Me.DTRAILREGO.Caption = Cells(RowN, 36)
    Me.DPHOTO.Caption = Cells(RowN, 37)
    Me.DHP.Caption = Cells(RowN, 40)
    Me.DAUXENGINE = Cells(RowN, 41)
    Me.DAUXHP = Cells(RowN, 42)
    Me.DAUXFUEL = Cells(RowN, 43)
    Me.DVHFDSC.Caption = Cells(RowN, 44)
    Me.DMFHFDSC.Caption = Cells(RowN, 45)
    CloseDataWB
    If RowN > 2 Then
        PrintMRSS_Click
    End If
    End Sub
    Private Sub PrintMRSSForm()
     DoEvents
        keybd_event VK_LMENU, 0, KEYEVENTF_EXTENDEDKEY, 0
        keybd_event VK_SNAPSHOT, 0, KEYEVENTF_EXTENDEDKEY, 0
        keybd_event VK_SNAPSHOT, 0, KEYEVENTF_EXTENDEDKEY + _
            KEYEVENTF_KEYUP, 0
        keybd_event VK_LMENU, 0, KEYEVENTF_EXTENDEDKEY + _
            KEYEVENTF_KEYUP, 0
        Application.Wait Now + TimeValue("00:00:05")
        DoEvents
        Workbooks.Add
        'Application.Wait Now + TimeValue("00:00:02")
        ActiveSheet.PasteSpecial Format:="Bitmap", Link:=False, DisplayAsIcon:=False
        ActiveSheet.Range("A1").Select
        'added to force landscape
        ActiveSheet.PageSetup.Orientation = xlLandscape
    With ActiveSheet.PageSetup
            .PrintTitleRows = ""
            .PrintTitleColumns = ""
        End With
        ActiveSheet.PageSetup.PrintArea = ""
        With ActiveSheet.PageSetup
            .LeftHeader = ""
            .CenterHeader = ""
            .RightHeader = ""
            .LeftFooter = ""
            .CenterFooter = ""
            .RightFooter = ""
            .LeftMargin = Application.InchesToPoints(0.75)
            .RightMargin = Application.InchesToPoints(0.75)
            .TopMargin = Application.InchesToPoints(1)
            .BottomMargin = Application.InchesToPoints(1)
            .HeaderMargin = Application.InchesToPoints(0.5)
            .FooterMargin = Application.InchesToPoints(0.5)
            .PrintHeadings = False
            .PrintGridlines = False
            .PrintComments = xlPrintNoComments
            .CenterHorizontally = True
            .CenterVertically = True
            .Orientation = xlLandscape
            .Draft = False
            .PaperSize = xlPaperA4
            .FirstPageNumber = xlAutomatic
            .Order = xlDownThenOver
            .BlackAndWhite = False
            .Zoom = False
            .FitToPagesWide = 1
            .FitToPagesTall = 1
        End With
        ActiveWindow.SelectedSheets.PrintOut Copies:=1
        ActiveWorkbook.Close False
    End Sub     

    Thanks for the reply. I have tried to explain the issue more fully below.
    The code below calls the form to be populated:
    Private Sub PrintMRSS_Click()
    OpenDataWB
    Application.Visible = False
    Application.ScreenUpdating = False
    Sheets("Renewals").Activate
    RowMP = ActiveSheet.UsedRange.Rows.Count
    CloseDataWB
    RowN = 2
    Unload Me
    VesselLookup.Show
    End Sub
    Then when the form is opened the following code is executed;
    Private Sub UserForm_Initialize()
    GetData
    End Sub
    I also have the following code to emulate an alt + PrtScn keyboard event
    Private Declare Sub keybd_event Lib "user32" _
    (ByVal bVk As Byte, _
    ByVal bScan As Byte, _
    ByVal dwFlags As Long, _
    ByVal dwExtraInfo As Long)
    Private Const KEYEVENTF_KEYUP = &H2
    Private Const KEYEVENTF_EXTENDEDKEY = &H1
    Private Const VK_SNAPSHOT = &H2C
    Private Const VK_MENU = &H12
    Private Const VK_LMENU = &HA4
    getdata populates the form and then calls Sub PrintMRSS  to emulate the Alt+ PrtScn, create a new workbook, paste the clipboard to the active worksheet , set up the page layout etc and then print the form.
    After printing the form the getdata sub checks if another row of data needs to be printed and then populates the form then prints it, or exits when all the rows in the worksheet have been printed.
    All works OK using excel 2013 (Win 8.1), but fails when run on Excel 2007 (Win 7) with  1004 error when the ActiveSheet.PasteSpecial Format:="Bitmap", Link:=False, DisplayAsIcon:=False code is executed.
    If I remove the code
    If RowN > 2 Then
        PrintMRSS_Click
    End If
    from the getdata sub all the forms print, but you must click on the Print Form button each time.
    Hope that makes it clearer

  • Problem when printing objective settings

    Hello all,
    I'm facing a problem with the printing of the objective setting. The smartform that a get displays wrong characters : '#' instead of ' ' '.
    ex: people#s instead of people's.
    It's not a smartform problem. This one receives text with '#'.
    I checked the text with tr phap-catalog and it's stored correctly.
    I don't know where I have to investigate.
    Could anyone help me?
    thanks a lot
    Karim

    Hi,
    refere this OSS note matter. May resolve your issue.
    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
    reward if useful
    regards,
    ANJI

  • Problem with printing footer of table in Smartforms

    Hi Gurus!
    I have created a table in a window in Smartforms. I need to put in the totals at the footer of the table, displaying these values only at the end of the page. The problem I have encountered is that the footer prints immediately after the line of the main area. The form i'm printing right now is pre-printed, so I need to write the footer at a specified area.
    Let's say my table accommodates 20 lines. The footer must be written immediately after the 20th line. If, on the last page, there are only 10 lines, the footer must still print on the area after the 20th line.
    Really need your help guys, i'm hoping for a quick response. Thanks!

    I need to put both the main area and the footer in the same loop because there is a field where, when changed, it must page-break. The fields/values in the main area and the footer are all part of a sub-table that depends on a field of a bigger table.
    my smartform looks like this:
    Loop at header table.
       if order number changes, start new page.
       loop at table x.
           main area - print items of the table where order_number = header_table-order_number.
           footer - print totals of the table where order_number = header_table-order_number.
    Endloop
    So you see, i need to place the footer inside the loop also. It's the only way I know to work around this.
    Thanks.

  • Smart Forms - problem

    Hello All,
      I have created a new smartform from scratch. I am reading in a structure that contains all my data. I just want to read the values and write out the new document.
    In the form interface i have Itab1 type my-structure(name). Then in global definitions i have Itab2 type my-structure(name). then in my loop i have Itab1 into Itab2.
    i get the error msg Itab1 is neither a table of defined as an internal table.
    I then went into Global definitions - type and added statement types: itab1 like zprice_agreement.
    I still get the error.
    Does anyone have any suggestion.. need this ASAP, thanks Scott

    Hi,
    I think the problem is not in smart form. its in the declaration of internal table.
    Check out the sample code.
    report ztest no standard page heading.                
    data: begin of itab occurs 0,                         
        field1(6) type c,                                 
        end of itab.                                                                               
    start-of-selection.                                   
    *data: itab1 like itab.                               
    data : itab1 like itab occurs 0 with header line.     
    loop at itab1.                                        
    endloop.                                                                               
    If you uncomment the line in the code, it gives same error which you have specified.
    Regards,
    Sailaja.

Maybe you are looking for

  • SQL LOADER / INFILE filename as variable in .ctl file

    I stumbled over several threads in the OTN-forums regarding this problem, but neither was it finaly solved nor did I find a FAQ that answered my question. Soooo: We get several datafiles from several sources and process them via SQL Loader and store

  • BAPI for Reset deletion ind. for PO Item using ME22

    Hi Experts, I want to go to Tcode ME22 to Undelete PO Item,    ME22 -> Edit -> Reset deletion ind. I have used BDC, and tested successfully. But you know, BDC is not a very good method, and I want to find a BAPI  for it. Anyone could help me ?  Give

  • Date validations in adobe form

    Hi i have two textfields in adobe form with labels TODATE AND FROMDATE,where TODATE should always be greater than FROMDATE.can you please tell me where to write validations for adobe form and what is the code required for it. Thanks krishna

  • Different number of songs under itouch purchase on device then on purchased on itouch under iTunes store.

    I have the itouch hooked up to itunes, and when you click on the purchased on itouch there is 45 songs, but when you click on the purchased on itouch under the itunes store it only lists 38 songs.  I have transfered purchases, and the songs appear un

  • I can't get my new 3d card to work.

    Hi! I have a problem with the installation of my new graphic card (ATI Radeon 9200SE 128 mb). When I install the graphic card in the computer I get no signal when I start it. How should I do to get i working?