Printing 4 copies with different header in smartform

Hi Friends,
I am printing Delivery Note using smartforms, for that i created form by coping SAP`s standard form LE_SHP_DELNOTE with some layout changes.
Its workin fine., but now user wants that it should print 4 copies of that form with different header, like
CUSTOMER COPY, WAREHOUSE COPY, GATE COPY, OFFICE COPY
This is usually done in other companies on carbonated papers, but they want this to print on normal paper.
Please suggest is it possible, if yes how should i do it...
Regards,
Brijesh Soni

Create a secondary window.Select Window type as u201CCopies Windowu201D.The variable SFSY-COPYCOUNT would provide us count of the copy whether it is a first copy, second copy and others. We would use this field to print the owner of the copy.We would define a string, which would hold the name of the copy (bank copy and others) depending on the value of SFSY-COPYCOUNT. Define a variable in the global definition.
Now select your Copies window, right click u2013 Select Create à Flow Logic à Program Lines 
The output parameter is W_TEXT.
IF SFSY-COPYCOUNT = 001.
W_TEXT = 'Original'.
ELSEIF SFSY-COPYCOUNT = 002.
W_TEXT = 'Duplicate'.
ELSEIF SFSY-COPYCOUNT = 003.
W_TEXT = 'Tripilicate'.
ENDIF.

Similar Messages

  • Print copies with different languages

    Hello Experts,
    I would like to know if it's possible to print 2 copies of a Smartform with the first exemplar print in English and the second one in Spanish?
    Thanks for your advices,
    Tipiah

    Thank you Tamas for your reply,
    In your solution, we need to call twice the FM from the program.
    This involves to have 2 spools... do you know if there is a way to use the number of copies when we're calling the smartforms, yo avoid to call twice the FM?
    Thanks

  • Multiple copies in Adobe form with different header text

    Hi All,
    I have created Adobe form for Invoice and now my requirement is when we create an invoice it should generate 4 copies with different texts like original copy, duplicate copy and triplicate copy.
    I know its possible in samrtforms using the copy window and maintaing text there.Is it possible in adobe form , if yes how can we achieve this.
    Regards
    Lalit

    Are you using a custom driver program?
    If yes, then loop the function module with the number of copies you have.
    the copy name should be a variable which should be passed to the form in the loop change the value of the copy control accordingly.
    Please let me know, if you see any issues.
    Thanks,
    Rakesh

  • LR3 - Questions regarding virtual copies with different exposures and Merge to HDR Pro in Photoshop

    Hello,
    I'm currently testing LR3. I have a master copy and 4 virtual copies with different exposures selected in LR3. I tought to myself that I could simply use the "Edit / In Merge to HDR Pro in Photoshop" option and tune the resulting HDR image in Photoshop but it seems that Photoshop doesn't take in consideration the exposure changes I've made on the virtual copies in LR3. The 5 images are identifical in the HDR Pro tool.
    Is there something I can do to about it ? Maybe there is a step I've forgot in my workflow or something ?
    Maybe I could simply export the master and virtual copies to JPEGs and then import these in the Photoshop HDR Pro tool but I don't think I would get the same results right ?
    Thank you for your help.

    Depending on the image ISO and overall content, you can get some pleasing DR pickup using this routine over simply hitting the fill light slider up and the exposure slider down.  I never really liked the PS approach since it seemed to require too much tweaking inside PS.  I have experimented with LR/Enfuse and Photomatix plug-ins and have settled on Photomatix for my HDR exposures (both "real" with multiple images and "fake" with a single image as you have described).  I think LR/Enfuse is donation ware so you might want to start there.  In both cases, the resultant image still needs a little adjusting back in LR after it is automatically imported into the Library.
    Jeff

  • How to get multiple copies with different decription on header line

    I want to get multiple copies of print out automatically with different description on header line when i click on save or print button.

    is this smartforms....?
    if yes then this can be achieved using the copy windows concept of smartforms.....
    Regards,
    Lalit Mohan Gupta

  • Printing units with different decimals separator "in column"/ smartforms

    Hi.
    I want to print in SMARTFROMS different amounts under each other and the amounts are having different decimals places (depending on unit) - the printing should be, that the decimal separator is "in a column" and the units are in a "column"
    E.g.
    123,23 meters
    10,00   meters
    12,567 kg
    67 PCE
    should be printed as:
    123,23__meters
    10,00_meters
    12,567kg
    67____PCE
    How can I do this?
    Thanks a lot in advance

    Hi,
    Use a paragraph with tabstops. Define your tabs with align with decimal character.
    That defining can be done in smartstyles.  (tabstops are not alone in sapscript but also in smartforms)
    Gr., Frank

  • Print Jtable with multiline header?

    i want to print jtable with multi-lines header and footer
    using the print function that takes MessageFormat as header and footer
    i used MessageFormat header = new MessageFormat("hello\r\nworld");and i used '\n' only
    but it was printed all in the same line
    thnx in advance

    You can try something on the below lines. Set your custom renderer for the tableheader.
    public class MultiLineHeaderRenderer extends DefaultTableCellRenderer{
            public Component getTableCellRendererComponent(JTable table, Object value,
                             boolean isSelected, boolean hasFocus, int row, int column) {
                         JLabel label = (JLabel) super.getTableCellRendererComponent( table,  value,
                              isSelected,  hasFocus,  row,  column);
                        label.setText("<html>a<br>b</html>");
                        return label;
        }Not the best way to do it. And might need to some modifications too to set the font position etc.

  • How to print jTable with custom header and footer....

    Hello all,
    I'm trying to print a jTable with custom header and footer.But
    jTable1.print(PrintMode,headerFormat,footerFormat,showPrintDialog,attr,interactive)
    does not allow multi line header and footer. I read in a chat that we can make custom header and footer and wrap the printable with that of the jTable. How can we do that..
    Here's the instruction on the chat...
    Shannon Hickey: While the default Header and Footer support in the JTable printing won't do exactly what you're looking for, there is a straight-forward approach. You can turn off the default header/footer and then wrap JTable's printable inside another Printable. This wrapper printable would then render your custom data, and then adjust the size given to the wrapped printable
    But how can i wrap the jTable's Printable with the custom header and footer.
    Thanks in advance,

    I also once hoped for an easy way to modify a table's header and footer, but found no way.
    Yet it is possible.

  • Print jTable with a header and footer panel

    Hi Folks,
    I'm currently at a sticking point in a project I'm playing around with. I have a data set of around 300 objects that i'd like printed out in a table. Now, I've gotten the display part down without a hitch but printing the data as well as a header panel and footer panel has been eluding me. I'd basically like something like this...
    Name: some name Order date: some date
    Address: some address Shipped To: some address
    somewhere Some city, some state, etc
    in some city
    Date | Title | Etc | Etc | Etc
    date1 title1 5 $3.00 $15.00
    date1 title1 5 $3.00 $15.00
    date2 title1 5 $3.00 $15.00
    date2 title1 5 $3.00 $15.00
    Total purchases: $60.00
    Total Items: 20
    # of Orders: 2
    Am I barking up the wrong tree by making the first and third sections panels and the second section a table? If not, how the heck do I accomplish this? Most of the time the table has been multiple pages as well - I only need section one on the first page and section three on the last page, but whatever is easiest really.
    My current approach has been basically to make a custom printables, print the first section, figure out how high it was, print the second section and hope for the best, but the third would never show up because it'd never go over two pages.
    Any help would be very much appreciated.
    Thanks,
    Stephen
    Edited by: stephenliberty on May 7, 2009 9:11 AM - more specific subject

    I suppose as a quick update, this is as far as I've gotten and will likely get-
    public class PrintForm extends JFrame implements Printable{
        JComponent headerPanelForPrint;
        JComponent footerPanelForPrint;
        JTable dataTableForPrint;
        public void setPieces(JComponent header, JTable table, JComponent footer){
            this.headerPanelForPrint = header;
            this.footerPanelForPrint = footer;
            this.dataTableForPrint = table;
        public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
            graphics.translate((int)pageFormat.getImageableX(), (int)pageFormat.getImageableY());
            TableFormat tableFormat;
            if(pageIndex>0){
                tableFormat = new TableFormat(0, footerPanelForPrint.getHeight());
            } else {
                headerPanelForPrint.printAll(graphics);
                tableFormat = new TableFormat(headerPanelForPrint.getHeight(), footerPanelForPrint.getHeight());
            MessageFormat footer = new MessageFormat("Page - {0}");
            Printable table = dataTableForPrint.getPrintable(PrintMode.FIT_WIDTH, null, footer);
            int printme = table.print(graphics, tableFormat, pageIndex);
            if(printme == table.NO_SUCH_PAGE){ return table.NO_SUCH_PAGE; }
            return Printable.PAGE_EXISTS;
    class TableFormat extends PageFormat {
        double footerHeight;
        double headerHeight;
        public TableFormat(double headerHeight, double footerHeight){
            this.headerHeight = headerHeight;
            this.footerHeight = footerHeight;
        @Override
        public double getImageableHeight() {
            return super.getImageableHeight() - ( this.footerHeight + this.headerHeight );
        @Override
        public double getHeight() {
            return super.getImageableHeight() - ( this.footerHeight + this.headerHeight);
        @Override
        public double getImageableX() {
            return 0;
        @Override
        public double getImageableY() {
            return this.headerHeight;
    }It works very well with just a header and the table, but I still have not been able to get a footer to show up in the appropriate spot or (preferably) on the last page.
    Edited by: stephenliberty on May 8, 2009 12:29 PM

  • Multiple copies with different footer text --sapscripts

    Hello I have a requirement where in i need to print multiple copies( customer, company, etc). On each copy different footer text is to be printed. Can anyone help me out. Thankyou helpful posts will be rewarded.

    Hi,
    If you have a need wherein the samrtform has to have data differ for each copy of a printout
    eg. Different form title per every print copy.
    then the following code should work.
    case sfsy-copycount0.
    When 000.
    form_title  = 'Order confirmation'.
    when 001.
    form_title = 'Warehouse ticket'
    when 0002.
    form_title = 'Customer ticket'.
    endcase.
    Remember, display the element 'form_title' in a window of type 'copies window'.
    Reward if helpful.
    Regards
    Pavan.

  • SAME LAYOUT with different heading for invoice and service order invoice

    Hi,
    I need to use the same layout for printing both invoice and service order invoice. The layout should print the same data except the title should be changed accordingly ( invoice or service order invoice).
    Please help me with this
    Regards,
    Anik

    Hi,
    It is not clear to me if you are working with sapscript or smartforms.
    You have only to find a variable which identifies the kind of invoice
    I do not know that variable so i use an example variable
    for sapscript:
    /: IF &VBDKR-FKTYP& = '1'
    /  INVOICE
    /: ELSE
    /  SERVICE ORDER
    /: ENDIF.
    In a smartform you can also do something like that.
    but There you work with conditions (eq, BOOLEAN)
    You have only to find the right variable
    success,
    Gr., Frank

  • Print variable with ZPL II in smartforms

    Hi all,
    How can I print a variable in smartforms with ZPL II code?
    I use commant in smartforms with ^FV but it could not be written to the label.
    ZPL II Command String is :  XX is a variable that is stored a value in Programs Line before ZPL II Command.
    S_LZPL_SETUP     'XAFO50,50GB0,203,5FSFWBFO115, 75A0,25,20FVXXFSXZ'
    Best regards,
    Munur

    Hi Jack,
    1.
    data : ZZPL2 type string.
    clear : zsaat,ztarih.
    concatenate ZZCZEIT(2) ':' ZZCZEIT+2(2) ':' ZZCZEIT+4(2)
           into ZSAAT.
    condense ZSAAT no-gaps.
    concatenate ZZCDATE+6(2) '.' ZZCDATE+4(2) '.' ZZCDATE(4)
           into ZTARIH.
    condense ZTARIH no-gaps.
    concatenate '^BY4,2.0^FO20,50^B7N,4,1,1,0,N^FD'
                  ZZKDMAT
                '^FS'
                '^FO490,15^GB0,250,5^FS'  
                '^FWB^FO500,60^A0,25,20^FD'
                ZSAAT                    
                '^FS'                      
                '^FWB^FO525,50^A0,25,20^FD'
                ZTARIH
                '^FS'                    
                '^FWN^A0,25,20^FD'
                '^FS'                      
           into ZZPL2.
    2. In the command :
    S_LZPL_SETUP           ZZPL2
    That's all.
    Best regards,
    Munur

  • Printing problem with gray cells in smartforms

    Hi there,
    i have developed a smart form with some color logo and some gray shaded cells. If i print it by SAPLPD it comes out fine but when i print it on a printer configured in SAP it doesn’t come out properly. All the gray cells print as black cells. Any advice?
    Regards.

    Asif,
    it some times depends upon the printer drivers also
    i faced the same problem with one printer then i tried with the other hpcolor printer then i got the printout perfectly that means sometimes the drivers of the printer will crash with the program
    so its better u try this one in the another printer
    if u have this problem futher let me know
    Regards
    naveen

  • Print JTable with column heading

    Hi,
    I'm very new to this JTable. I'm try to print a Jtable using the print() function (from JDK 1.5)
    JTable.print(JTable.PrintMode.FIT_WIDTH, new MessageFormat(
    _tabledata.getTitle() ),
    new MessageFormat("Page {0,number}"));
    The problem I have is that some time it print and other time it doens't print. Also, if it doesn't print, then the program become very slow or not respond. Is that the probelm with the new JDK or am I doing something wrong?
    Thanks for you help.

    Don't rely on JTable.print() methods too much.
    Sadly Sun didn't think anyone would need to print anything from java so support was added late and half heartedly (programmers hate printing stuff)
    If you are new to java you need to focus on something simpler than printing documents; unfortunatly printing is a tedious burdonsome task for experreineced developers
    for example: learn how to output your data from a table into an HTML formate/file; you can build beautiful reports/printouts easily and view them in java components easily but you will probably want to print them from a browser.
    Even if you find a class or two to help with your printing efforts on the net you will find you need to know many other generic complicated aspects of java to continue
    Sean

  • Can I control the print copies with Adobe forms in WD

    Hi Friends,
    I had one pages in my adobe form designed in SFP transaction.
    And I  had created a Interactive Forms include that  in WDA.
    My requirement is.   >>>
    I want to control the printing of the pages according to my requirement.
    How can I do when I push the print button in the printing from ?
    Please help me,
    Thanks in advance... Q_Q
    Edited by: DDT CHOU on Jun 4, 2010 3:44 AM

    Can you explain how you achieved it with Java, please?
    Best regards

Maybe you are looking for

  • E-mail sent from my server continuously deferred

    Hello there, My name is Michael Reilly, and I work for Chucklefish games.  We host a webserver at http://playstarbound.com/ and forum at http://community.playstarbound.com/ For several months now, I have had issues with sending e-mail from my server.

  • Putting non-itunes movies on my ipod.

    Hey, ive been sent some movies and i want to put them on my ipod and i dont know how, theyre not off itunes and at the moment have nothing to do with itunes. help??

  • IPhone 3GS no longer works with bluetooth since ios 4.3.2 update

    Hi all. Since the ios 4.3.2 update my iPhone 3GS no longer works correctly with the bluetooth in my car (2006 Acura TL).  I know it's not an issue with the car and the only thing that has changed is the update with the phone.  Anybody else having thi

  • Does hp 3056A printer work with windows 8

    does an hp 3056A all-in-one printer work with a windows 8 computer

  • Backspace character

    Hi, i have problems to print backspace character in the text file.It always print rectangular type box. just try this code... import java.util.Vector; public class Test Test test = new Test(); public Test() public static void main(String[] args) Syst