How to print 20 lines in one page and remaining lines in another in script?

Hi I created 2 pages in script for page1 next page is page2 , how i can print 20 lines in one page and remaining in next page plz send me the code for that and is windows same for 2 pages?...

Hi Krishna,
Try below code...
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      form                              = form.
    CALL FUNCTION 'START_FORM'
    EXPORTING
     language               = sy-langu
     startpage              = page1
  LOOP AT itab.
    count = count + 1.
    item = count mod 20.
    IF item EQ '1' AND count NE '1'.
       CALL FUNCTION 'END_FORM'.
       CALL FUNCTION 'START_FORM'
       EXPORTING
         language               = sy-langu
         startpage              = <b>page2</b>
    ENDIF.
   "write_form statement ....
  ENDLOOP.
Message was edited by:
        Hikaruno

Similar Messages

  • How to print form in one page

    Hi, guys,
    Current we print script form with system automatic new page, but sometime it'll cover two pages and a lot of blank left on the first page. So user ask to print in one page. So how can i do it? is there any place we can configure the line item per page?
    Our system is Ecc 6.0. The form is used for payment advice which has been copied from sap standard form.
    Thanks in advance,
    Alex

    Are the same line items printed on first page when line items printed on second page?
    Just check it the height of the main window, in ur first page. If see if u can increase ur size of the main window so that u can add more line items.
    Do one more thing Give all ur line item fields in Main window in
    PROTECT and ENDPROTECT commands.
    ex:
    /:   PROTECT
    P1 &ITAB-MATNR&
    /:   ENDPROTECT
    If it is a SMARTFORM,
    Create a STYLE in Tcode:- SMARTFORMS,
    In that create a Paragraph Node, Select the Check box of Page Protected.
    Use that created STYLE ,
    Under the Line Items of ur Main Window> Table Node, In Output Options, Select the created STYLE.
    Now check for the TEXT entry for the Field and in that select the Paragraph format from the drop down list.
    Edited by: Bala Krishna on Aug 20, 2008 7:46 AM

  • How to print more than one page at a time

    I have not seen any place on the scanner where you can set the number of pages you want to print. I am using a hp diskjet 3050.
    thank you

    on my other hp scanner and copier i could set the no of copies i wanted. on this one i cannnot find that option.
    thanks for the reply

  • Printing Date in One coumn and Date-1 in another column

    Hi,
    I have a column BILL_RUN in xml with value 30-Sep-2010,But i need to print in report the value of BILL_RUN Date -1
    i.e 29-Sep-2010 , please guide me how to approach for this result.
    Best Regards,
    Mahi

    Mahi,
    Use <?format-date:xdoxslt:ora_format_date_offset(DATE,1, '-');’DD-MON-YYYY’?>
    Check this out.
    http://blogs.oracle.com/xmlpublisher/2009/09/groovy_date_functions.html
    Ensure that your date is in canonical format in xml file

  • How start an api from one JVM and stop it from another ?

    Hi all,
    I want just one instance of a program. Thus I need constroled if an instance of this tools already exists. But from an other JVM, how can I do this ?

    The question in your title doesn't match the one in the body of the post. I'm guessing you want to prevent multiple copies of your application from running concurrently on the same box.
    Create a ServerSocket on a specific port upon start up. If it's successful, you have effectively locked a Mutex for your application. If it's unsuccessful, you can make the assumption that another instance of your application is already running so you should exit.
    -S

  • I have an HP Photosmart C4180 all in one printer scanner and copier, I can't figure out how to scan more than one page at a time and then send as a PDF file via email

    I have an HP Photosmart C4180 all-in-one, printer, scanner and copier.  I can't figure out how to scan more than one page?  It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement.  Any ideas??
    Thank you, Jetteski

    Hello Jetteski,
    Hello Jetteski, Thanks for the post.
    Since you are running a MAC, check the below links for some excellent information on scanning.  Good Luck!
    http://goo.gl/M8Cl2
    http://goo.gl/cufK6
    http://goo.gl/OTQoR
    I work for HP but my posts and replies are my own....Thank you!

  • How to set cookie value in one page and retrieve in another page using setA

    How to set cookie value in one page and retrieve in another page using setActionListener?
    I have tried with following code srcpage.jspx->destpage.jspx
    srcpage.jspx
    <af:table value="#{bindings.DepartmentsView1.collectionModel}"
    var="emp" rows="#{bindings.EMPView1.rangeSize}"
    first="#{bindings.EMPView1.rangeStart}"
    emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
    <af:column sortProperty="EmployeeName" sortable="false"
    headerText="Cookie Testing">
    <af:commandLink text="#{emp.EmployeeName}" action="success">
    <af:setActionListener from="#{emp.EmployeeName}"
    to="#{cookie}"/>
    </af:commandLink>
    </af:column>
    </af:table>
    espage.jspx
    <af:outputText value="Test Cookie Value: #{cookie}"/>
    ,Here Test Cookie Value prints the following instead of its original String value
    {JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
    I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
    Thanks in advance
    Kalee

    Hi,
    "cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
    #{cookie.cookieName}
    Note that #{cookie} writes to and returns a map
    check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
    Frank

  • SMARTFORM: how to create 3 copy (each copy can print more than one page)

    SMARTFORM: how to create 3 copy (each copy can print more than one page)
    Hello everyone.
    my user want to have form that print 3 copy.
    such as 1 copy description = master,  2 copy description = copy 1 ,3 copy description = copy 2.
    so i create 3 page . I copy from page 1.
    and in each page there is main window which can have data more than 1 page.(such as have a lot of sale data ,it's take 2 page for show output .so it's take 2 page in each copy)
    please help me.
    how to set page and window in each page for print 3 copy and each page can have main window that print more than 1 page

    Hello Vinit.
    thank you very much for your help.
    could you help me more please.
    in below code
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Now i out of office .so i cannot test.
    where do i set NAST_ANZAL for 3 ?
    can i input ?
    NAST_ANZAL = 3.
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Edited by: dittaporn nanasilp on Mar 12, 2011 3:33 PM

  • How to change/update one page and all others at once?

    I'm quite new to Dreamweaver. I am trying to add some things to my sidebar and I would like it to appear on all of my other pages. I used a template for the index(homepage) then I just saved the page so I could create other pages for it to have the same logo and such on those pages. So how do I go about editing one page and all others at once?

    If you used DW Templates to create your child pages, open your .dwt file. 
    Make changes to the sidebar.
    Save and populate changes to child pages.
    Unfortunately, making changes to child pages will not populate to other child pages.  Only the master template.dwt in DW can populate changes across to child pages.
    Nancy O.

  • How do I  take four pages on one page, and give them each their own page?

    How do I take four  images on one page, and put them on their own page?

    You need a unique AppleID for each iCloud account.  So grab some free gmail, hotmail, aol, yahoo or whatever email addresses to make five new AppleIDs.  Now, everybody make an iCloud account for themselves, and keep the existing shared AppleID and password just for use in the iTunes and App Stores.  You can also each use your own unique AppleIDs to make iMessage accounts and keep those separate as well.

  • How do I make a "yes" or "no" radio button in one page, and "mirror" the two to another page?

    Hello,
    How do I make the radio button in page 10 mirror the choice made at page 3? Thank you.
    Page 3:
    Page 10:

    Simply copy the fields from one page and paste them in the other. Just make
    sure you tick the option that says "Buttons with the same name and choice
    are selected in unison" under the field's Properties, Options tab.

  • Problem with printing more than one page (ghostscript broken?)

    Hello,
    since one of the last package updates I have problems with printing more than one page. The print problems occurs as well with pdf files as well with printing websites. I use an actual KDE system with commercial turboprint printer driver. The first page always prints fine, but all consecutive pages are corrupted.  As from a similar problem some months ago, I assume a broken ghostscript package. I tried to downgrade ghostscript to check that, but I get depency problems:
    root@arch32 dieter]# ls -l /var/cache/pacman/pkg/ghostscript-*
    -rw-r--r-- 1 root root  9906288 21. Mär 2010  /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
    -rw-r--r-- 1 root root 11402624  8. Okt 22:44 /var/cache/pacman/pkg/ghostscript-9.00-1-i686.pkg.tar.xz
    [root@arch32 dieter]# pacman -U /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
    Löse Abhängigkeiten auf...
    Suche nach Zwischen-Konflikten...
    Fehler: Konnte den Vorgang (Kann Abhängigkeiten nicht erfüllen) nicht vorbereiten
    :: libspectre: benötigt ghostscript>=9.00
    [root@arch32 dieter]#
    Anyone else having printing problems or a solution for my problem?
    Thanks, Dieter

    This may not be related but I had a problem printing a pdf today whereby the second page got corrupted. The same pdf had printed fine several months ago. I realised that (long story) for some reason I had switched drivers (HP printer) from hpijs to hpcups. I installed the printer again as a "new" printer using the hpijs driver and it printed properly this time.
    So it may be that the bug causes issues with some drivers. You could try an alternative driver for the printer as temporary workaround?

  • How do you take information from one layer and switch it to another?

    I am trying to figure out how to take pictures and text that I have already placed on one layer and switch it to another layer. I have like 50 pages worth of information and I am trying to look for the easiest way to do this. In illustrator and Photoshop, its pretty easy. Wanting to know if it is the same because I have been trying but it is not there. Just in case it matters, Im using CS5 on a pc. Help is greatly appreciated.

    Hi Martin,
    Please follow the below steps.
    Step 1
    Create the separate layer. Select the content you want to move.
    Step 2
    Go to check layer panel, near the pen symbol icon, the below box drag to move up to the image layer, see sample
    Step 3
    This option use spread wise content, it will complete the task with fast. If more faster, please raise as question to Scripting Forum, they can suggest the tool.

  • Amazon print guidelines specify one page per sheet

    Amazon print guidelines specify one page per sheet
    I am setting up a new book and not sure I understand Amazon guidlines "one page per sheet".
    I am pretty sure this setup is one page per sheet when Exported to PDF -- can any one please confirm this?

    Thanks, you mean be sure "Spreads" is unchecked as in this screenshot (I don't know what I am doing here)...?

  • How to call Sri Lanka mobile phones and land-lines...

    How to call Sri Lanka mobile phones and land-lines from skype? When i am in overseas how to use skype to call to Sri Lanka mobile phones and land-lines? Can i know the process, how to get skype credit?, how to get subscriptions?, what are the rates for mobile phones and land-lines?

    CajoTech wrote:
    Were unable to call corporative landline numbers in Finland (010 and 020 numbers). We have 1 package for landline calls inside finalnd and the other one for making calls to mobile phones. Any idea what else do we need?
    Hello and welcome to the Skype Community.
    Your account shows that you have an Unlimited World Subscription which includes calls to private landlines in Finland. Your Subscription does not include calls to corporate landlines or to cellphones in Finland. To call corporate landlines you need to Buy Skype credit and to call cellphones either credit or a specific Skype subscription 
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

Maybe you are looking for

  • ICloud, Apple ID and devices and content etc

    This question covers a few domains but this forum seemed the most applicable to post it. I have an AppleTV2, iPhone 4 on iOS 5 and a 64 bit Windows 7 PC Running Outlook 2007, and the most recent version of iTunes. This question is mainly concerned wi

  • Flash builder 4.7 as plugin won't display asdoc

    Hi, on windows 7 x64, I just installed Flash Builder 4.7 x64 on my existing eclipse 4.2 x64 (using "the Adobe Flash Builder 4.7 Plug-in Utility") and the asdoc popup won't display anything but the current element. If I start the standalone Flash Buil

  • PR not Appearing in "Assign & Process"

    Hi All, I am using PR document type RV "Outline Agmt. Req." as a request to create a contract. When running ME57 "Assign & Process PR" these PRs are not picked up. Are there any reasons why any PRs would not be picked up by ME57. Thanks, Hisham

  • WriteUnshared and class fields of an array type

    Greetings. I am trying to serialize an object multiple times (in the same file) as its state changes. In order to avoid back-references to the first serialization of the object I use ObjectOutputStream,writeUnshared(..) method. This method serializes

  • Getting  java.lang.IllegalStateException  while starting new transaction.

    Hi All, I am writing a simple web application(using netbeans visual jsf) but not able to proceed forward. I am encountering this "java.lang.IllegalStateException: Operation not allowed" when I try to start a new transaction. Here's my code for sessio