How to print two pages with same content in sap script?

I have created page1 and copied as page2. 1st page is  assigned with Tray1 and 2nd page is assigned with Page2.but while printing page1 is printing properly,but page2's main window values not printing(Note: page2 is not Next page). I need 2 copies printout of check from Tray1 and Tray2.How to do this?

Hi ,
do as following.
Data: wa_options type ITCPO.
wa_optinos-TDCOPIES = '2'.
then call the function module.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZSAP'
LANGUAGE = SY-LANGU
OPTIONS = wa_options.
I have given you for printing multiple copies
But donno what do you mean by Tray 1 and tray 2 ?
Regards,
Nageswar

Similar Messages

  • The report displays more than 3000 pages with same content.

    Respected Sir
    I have a report with form letter layout.
    The report contains only one page,but while running the paper layout ,the report displays more than 3000 pages with same content.
    please anyone give a solution to this problem

    I think there is no bad joining. b'se when the querry is executed in sql, it is working properly(means returns only one record) . This problem is not for a particular report. Any report using the "form layout", the same problem occurs.
    Why this problem occurs. How can we solve it.
    Bye

  • How to separate two contact with same name

    Hi, anyone knows how to separate two contacts with same name in Contacts?  Actually they are two persons from two gmail contacts with same name but different contact numbers, different emails....etc, but Contacts assume they are same person and merge them as one!

    FG,
    In Lion, you have the File > Duplicate option. You will then have two copies of your document open, and the one on top will have the temporary filename "OriginalFileName copy", and your next responsibility is to File > Save (or Command-S) and rename the duplicate. At this point, you edit the copy's name, to perhaps ...copy 1, or whatever you wish. The document you had open when you initiated the File > Duplicate will still be there on your screen, waiting for you to Close it or continue editing.
    Jerry

  • How to print the text in points wise in sap script

    hi friends,
    how to print the text in points wise in sap script.
    ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
    1. hai how ru.
    2. what r  u doing.
    3.where r u.
    like this i want numbering.. waiting for ur replys.
    thanks,
    kiran

    declare a counter
    data : cnt type char 4.
    print :
    cnt = cnt + 1.
    &cnt& &text&
    cnt = cnt + 1. and so on.
    or.
    if the data is in an internal table
    loop at internal_table.
    cnt = cnt + 1.
    write form.
    in script -&cnt& &text&
    endloop.
    Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM

  • 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 ?

  • How to Print two pages in smartforms

    Hi All,
    How to create two different pages in smartforms.In my requirement the first page contains Table data in main window and in second page only the hard coded desription should be printed containg instructions,but the second page is mandatory after first
    page is completed,the first page may have n number of pages after printing those pages my second page should trigger.Help me if any one knows.
    Thanks in advance............
    Regards,
    Satya.

    hi ,
    once a main window size is declared , then that space will be placed in each page created.
    eg. if a table with header and footer is created, first of all the space for header and footer are allocated and body page is allocated.
    so we cannot dynamically change the size of the main window , even it is a copied main window.
    Otherwise another option is to continue the main window into the second page.
    for that first page main window -> create table -> add page break command to page 2 -> hard code description in template.
    page attribute for first page --> GOTO assign same page ( for continuing the same page)
    Page attribute for second page --> no need default is enough

  • How to run two files with same url-  urgent

    hi,
    i created two servlet page and both are working very fine.but at same time i only able to run one file with same url. Is possible to run two or more file at same time with same url name..
    if you r not understanding what i want to ask then, i have two file names under helloWeb directory
    1) helloWorld.java(servletname s1, url /man)
    2) helloWeb.java (servletname s2,url /man)
    to run - http://localhost:7001/helloWeb/man - it runs very first file which is added to deployment module.
    so i want to know how i can run both file with same url, for this what i have to pass on my address bar.
    plz help me i m wating
    <b></b>

    Hi,
    We can give same url mapping to both Servlets but we can access the servlet which is entered first in web.xml because whenever we send a request to the webserver then webserver look at the elements in web.xml file one by one.
    When it finds the corresponding url mapping then immediately sends the response to the client.The same url mapping for the next element will be ignored.
    I think there is no possibility to access both servlets with same url.
    Regards
    Anilkumar kari

  • How to print a PDF with multimedia content?

    I have a 127 page PDF with flash files and other multimedia embedded. How do  go about printing this to a laser printer?

    Thank you Michael
    My problem is, I need to print the document with the mm items.  I work 
    in a print & copy shop, we must deal with whatever the customers send 
    us.
    I actually stumbled around and found I could do it with the MultiMedia 
    Flash Tool, editing the poster options. It's a tedious process though, 
    and I'd like to find a way to set this for the whole PDF file at once.
    If you know how to do this I'd appreciate the info.
    Thanks again,
    Mark

  • How to get two fields with same tech name in LIS Extractors?

    Hi Experts,
    I need "ERDAT" field from two structures (QMSM & QMFE) in 2LIS_18_IOTASK extractor.
    In LBWE first I moved ERDAT from QMSM. When I moved ERDAT from QMFE it gives an error:
    "Field with same technical name is already available in the Extract Structure".
    I don't want to create Append Structure as we need to write User exit.
    Can any one tell me how to get this field added in the extractor from QMSM and QMFE?
    Thanks for your help.
    Regards,
    Sree

    this is not possible as the all those fields are put in one structure. per definition you can't put the same field name twice in a structure, table in the data dictionary...
    hence, you really need to use an append and fill via user exit
    M.

  • How to create two employees with same name as supplier record?

    Dear all,
    We need to create a supplier record for an employee so that we can issue invoice for pretty cash payment. If there are 2 employees with same name, how can we create supplier records for these 2 employees? The system does not allow duplicate supplier name.
    Please advise.
    Regards,
    HY

    Hello,
    In R12 it is possible to create 2 employee with same name but different employee number.
    And also possible to create these 2 employees as suppliers in Payables.
    HTH,
    Vik

  • How to print multiple pages of same form with one print command

    Hi,
    I have created a cheque print form in smartform. There is provision to print multiple cheques. I give multiple cheque numbers from my selection screen and for each cheque the smart form is called in loop.  Currently I get preview of 1st cheque then I print 1st cheque then click on back, cancel or exit button and then I get preview of second cheque ans so on...
    Now I want to print all the cheques with one print command.
    Please advice.
    Regards,

    Instead of looping at the smartform multiple times, pass an internal table with the data content to the smartform and use loop/ Table youroption  in ur smartform in the main window.in this way u can achieve printing multiple cheques at once and avoid previewing the document several times.
    Edited by: Mithun Shetty on Feb 25, 2011 8:56 PM

  • How to create two prompts with same named object?

    Hi to All,
    I am a new user of OBIEE. Actually have only one column called creation date in my report. My requirement is in dashboard, I need to display two text boxes in same prompt with the name Beginning creation date and Ending Creation Date. Actually, I was able to do it with the operator "Between" but when i am doing it, I was not able to determine how can we get the values entered by the user for beginning date and ending date because both dates will get stored in the same prompt only (ie) in my "Creation date" prompt.
    Also, I have an another question, In a single prompt I need to repeat the same object more than once. But When I tried it shows the error "same column exists.. so this action will be ignored". Please help.
    Thanks in Advance,
    Thenmozhi

    Thenmozhi,
    You can think about having 2 different prompts: the first one with the operator >= and the second <=.
    For your second question you cannot have the same column in the same prompt more then once
    Regards
    Adil
    PS:Please assign points and close the thread when your question is answered

  • How to print only pages with selected checkboxes

    Hi
    Here is what I've got:
    - a PDF with 101 pages
    - page 1 is a form
    - end-user fills in his logo (image-field)
    - this is placed on all the following pages
    - end-user fills in price of all 100 products and
    - decides if he wants this item (page) to be printed by checking a check-box
    - end-user hits a buton and voila; only the checked items print-out
    Problem is with this last item; I can not get it right.
    I implemented a script (see below) but it does not work.
    Maybe because I am so not used to this, I putted it in the wrong place?
    I know the script works without a Print-Dialog-Box; I could always first present a message or so with instructions or what the pressed button is about to do.
    Please help? Thank you very much
    if (getField("Check Box1").value !== "Off") {
    print({
    bUI: false,
    nStart : 1, nEnd : 1});
    if (getField("Check Box2").value !== "Off") {
    print({
    bUI: false,
    nStart : 2, nEnd : 2});
    if (getField("Check Box3").value !== "Off") {
    print({
    bUI: false,
    nStart : 3, nEnd : 3});

    You may try writing the following script at "pre-print" event with Javascript as scripting language,
    if(CheckBox1.rawValue == false)
        CheckBox1.relevant = "-print";
    And so an so forth for every other CheckBox<no.> .
    Ensure to save your form as “Dynamic XML Form”.
    -vaibhav

  • How to calculate two wagetypes with same taxcode

    hello,
    we are having senario in india payroll,
    we are having two medical wagetypes assign to the same allwance group having same taxcode.
    As per SAP standard, whichever Wagetypes 1stly maintained in allw. grp table , system will calculate that in payroll.
    i want to knw how we will give both the medical wagetypes to the employee in same month.
    please advice
    Edited by: sdeeps19 on Nov 16, 2010 11:06 AM

    Hi,
    Probably you can maintain another wagetype to accumulate both the wagetypes amount, so that you can maintain one taxcode for the third wagetype.
    Good Luck.
    Om.

  • Mac printing two pages on the same sheet of paper double-sided

    I have a large PDF file that I'm trying to save paper by printing two pages of the file on the same sheet of paper and then printing double-sided, e.g. pages 1-2 would be on the front and 3-4 on the back. I can accomplish the first part by changing the page layout, but then can't figure out how (or if) I can duplex print. Can anyone help? I'm using Adobe Reader 8.1.2 on a Mac running OS 10.4.11.

    Yes I do. Normally, I just have the printer print even pages on one side and odd on the other side. But, putting two pages on the same side fouls up that process. If I try printing odd pages, I get 1 and 3 on the front and 5 and 7 on the back, instead of what I want. Maybe I'm wanting to do something that can't be done. After I changed to the two-page layout, I thought maybe I could do a Save As PDF in the Print dialog box, but that was not allowed by Reader.

Maybe you are looking for