Print line items on next page if does not fir onto current page

Hello Experts,
I have a query related with Smartform.
For every Line item, I have 4 lines. Means, if there are 4 line itmes in Internal table then it means, on form 16 lines should be printed.
My Requirement - If any of the Line item does not fin onto a single page then shift the whole line item onto next page. Means, If Line item 1 and 2 are printing on 1st page completely, but line item 3 is not able to print completely on 1st page then shift all the 4 lines of line item 3 onto next page.
I tried - Put the main table of main area in a Folder and checked the PAGE PROTECTION of that folder. And in the Foder itself, use a command with checked GO TO NEW PAGE. But it is not printing. Form goes into shortdump.
Please help me to resolve this issue.
Regards
Kuldeep M.

Hi,
U try to fix the no of lines per page. If the no of lines in ur table are more than the lines per page then u call the COMMAND 'Go to New Page' and give the Page name.
Eg:
data : lv_lines TYPE i,
          lv_lines_per_page TYPE i value 12.    (Try to design the Window height to fit 12 lines or ur wish)
          lv_count TYPE i.
describe table itab lines lv_lines.
Now, u loop the itab table and put a condition in the LOOP:
LOOP AT itab.
  lv_count = lv_count + 1.
IF lv_count GT lv_lines_per_page.
   clear lv_count.
   create command 'Go to New Page'.             --->In COMMAND put condition lv_count GT 12
endif.
ENDLOOP.
Hope it helps!!
Rgds,
Pavan

Similar Messages

  • Printing line items in next line smartforms

    how to print line item description in next line...
    suppose
    i have line item description as
    "this is description of line item"
    then i need to print as
    "this is"
    "description of line item"
    in two lines......
                so that no trunkation takes place please reply me ....

    Use offset
    v_text(20)
    in the second line use
    v_text+20(40)
    If this does not work
    then declare two more fileds
    and write the code
    v_text1 =  v_text(20)
    v_text2 = v_text+20(40)
    and print the new fields
    Reward points if useful,
    Regards,
    Nageswar

  • ADE stuck on cover page and does not go to any page

    ADE stuck on cover page and does not go to any page

    I was having the same problem. I've discovered that I can now go to other pages by clicking on the arrow or highlighting the place I want to go in the Table of Contents and then clicking on the "Toggle Full Screen View" icon in the upper right-hand corner. I have to click on this icon with each page change. This doesn't make sense to me and I happened upon it accidently. I'm sure there must be a better way.

  • Page Number does not display on every page

    I am having a problem showing the page number on every page. I can get it to show on the first page if I place the XML tags at the top OR if I place the XML tags at the bottom then it shows only on the last page.
    I tried to use the <?body-start?><?body-end?> tags and placing the page number in front of or behind these. I have tried to insert the native word page number functionality as well as <?fo:page-number?> and get the same results.
    Any help would be greatly appreciated -
    Thanks,
    Rob

    I have inserted the page number in the RTF and it definitely shows up on the first page but not on any of the following pages.
    As a side note - if I use Word's header and put anything up there it does not show up at all on the template.

  • The 'go back one page' button does not work on all pages

    The 'go back one page' and 'go froward one page' buttons do not work (they're light gray as opposed to dark gray) and neither does the 'back' button after right clicking. They worked fine in Firefox 3 but do not in version 4

    Click '''Help '''| '''Restart with add-ons disabled '''and then in the menu which appears, checkmark ''Reset toolbars and Controls'', then ''Make changes and restart''.

  • When I click "remember my user name" for web pages, it does not work for web pages - I have to login after every restart (eg Hotmail)

    On websites I visit daily – newspapers, Hotmail, etc, even though I have clicked "remember me on this computer", it does not work. I have to log in every time I have restarted my computer (Mac OSX 10.5.8). Also, this may be related. I have iGoogle as my home page, but "themes", location, widgets, etc are not saved when I shut down.

    * Such details are stored in a cookie.
    * You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
    * Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case the file cookies.sqlite got corrupted.
    * http://kb.mozillazine.org/Cookies#Removing_cookies

  • Page Transport does not replace the old Page, same issue with Folder trans

    Hi All,
    I have an issue with the Portal Transport for page and folder.
    First issue:
    I have a page with 2 iviews(iview1 and iview2) added to it as delta links. This page is tranported to test environment and it looks fine with 2 iviews in test. Now I remove iview2 from page and add iview3 to it. Now the page has iview1 and iview3 in it. Now when I tranport the page to test portal, I see all the 3 iviews assigned to the page. Does the portal transport replace the whole page or just appends to it. If that is the case, how do we solve the problem of removing the iview, other than manually going and removing it from the test portal.
    The same issue happens with the folder as well. I have 3 pages in a folder . I transported the folder to test portal and the test portal has 3 pages as well. Now when I delete one page and do the transport to test, I still see all the 3 pages in the folder.
    Let me know if this is a standard issue with the portal , or if there is solution to this issue.
    thanks,
    AE

    Hi Michael,
    The issue is resolved by first deleting the page then created a brand new page with the name name, adding the 2 iviews and transporting to the test portal. Now the page on the test portal also shows 2 iviews.
    The old page had some delta link references to some iviews, even though I removed the iviews from the page. I noticed this by adding the page to the transport package and set the option "resolve references" to "Yes". When the export the tranport package, I saw all the iviews which I have deleted also in the transport package. I do not know why.
    Anyway I am closing this thread, as the problem has been solved.
    thanks,
    AE

  • Pages '08 does not import MS Word Page-breaks

    Pages '08 imports MS Word 2004 for Mac documents without the page-breaks.
    I love the Mac interface and really want to stop using MS software. I was hopeful with all the good press about Pages '08. I downloaded the 30-day trial and immediately discovered this glitch.
    I must be able to exchange 300+ page manuscripts with MS Office users. If Pages cannot import the page-breaks in these documents, it's a deal-breaker for me. I'm not going to go through and re-insert 300+ page-breaks everytime I have to edit and return a document.

    I've had the same problem as Jeffrey ... but with Appleworks 6 documents. I can import a small amount of Appleworks pages with hard page breaks (Insert Page Break) but when I try to import the entire 300 pages of my manuscript into Pages '08 the page breaks move up and are not where they should be. Also, many of my large Appleworks text manuscript files (no graphics) will not open in Pages '08. On top of that, the line spacing in Pages is a big headache,. I still am unable to place 11 lines on the first page of each Chapter (as I have done before in Appleworks with no problem). Sometimes it will give me 11, next time it will be 12. Hitting return once often moves two lines of type rather than one. Very frustrating. I have followed instructions and even added styles with my own template. I also used "Exact" spacing of 24 pt with my 12pt type because using double spacing is not even close to what double spacing is in Appleworks using the exact same font (Times New Roman, 12pt w/ 24pt spacing.) Any help will be appreciated (before I go back to Appleworks).

  • When I open Firefox to my home page then go to a secomd page firefox does not remember my home page when I try to go back to my home page by using the back button

    When I open up Firefox it goes to my home page, then I surf the web but when I go the the back button it shows my history but not my home page (or the first page I went to).

    Do you get the same two tabs when you launch a new window (Command+n) or only at startup?
    You may want to check your extensions in case something snuck in. You can review and disable those on the Add-ons page. Either:
    * Command+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that shut down the extra page?

  • How to print line item 2times in two different main window in Sap Script

    Hi,
    I am designing check printing form using Sap script. I need to print line items 2times in different 2main window.can yu pls explain  how print like this.
    JK

    i cud not get ur query..pls elaborate

  • Link Reports -item  does not exists on this page

    I have two tables Person table with Primary Key of PersonID, and Person_Qualification Table with a FK of Person_ID.
    I have a report for each table. I have created a report on the Person Table(Page 3000) with a link column to the Person Qualification Report (Page 3119).
    In the link column I created in the person report I have my parameters set as P3000_PersonID and #Person_ID# as field to populate the URL with, and the target page as 3119.
    However anytime I click this link that takes me to the PersonQualification report I get an error stating the Item P3000_Person ID does not exists on this page (3119).
    I have linked a form and report together before, but not two reports.
    I want the person qualification report to be only for the personID that was clicked on.
    I tried adding P3000_PersonID to the query in the person_qualification page I.E. where PersonID=:P3000_PersonID but I still get the item P3000_Person ID does not exists on this page or something to this effect.
    Thanks

    Hello gtjr,
    You need to define an item (usually hidden) on page 3119 to hold the person ID and use that in your second report's query.
    Then in the column link for the first report, specify this new item to be set to the person ID linked.
    The reason for the error is you're telling ApEx to set an item p3000_person_id on page 3119, but that item doesn't exist on page 3119.
    Hope this helps,
    John
    Please remember to reward helpful or correct responses. :-)

  • Print with  write statements from webynpro does not trigger top-of-page

    Print launched from webdynpro application via application server created with write statements does not trigger top-of-page event. When print is done from sapgui it works ok. The idea is to reuse backend print which was created for sapgui with abap list made application log in webdynpro application.

    Hi,
    here a short extract like i do it:
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION .
        METHODS:
       HANDLE_PRINT_TOP_OF_PAGE
             FOR EVENT PRINT_TOP_OF_PAGE OF CL_GUI_ALV_GRID,
    ENDCLASS.                    "LCL_EVENT_HANDLER DEFINITION
    * Event-Händer Implementierung
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION .
      METHOD HANDLE_PRINT_TOP_OF_PAGE.
          PERFORM PRINT_TOP_OF_PAGE.
      ENDMETHOD.   
    ENDCLASS.
      CREATE OBJECT GR_EVENT_HANDLER.
      SET HANDLER
      GR_EVENT_HANDLER->HANDLE_PRINT_TOP_OF_PAGE  FOR GR_ALVGRID_LEFT.
      CALL METHOD GR_ALVGRID_LEFT->SET_TABLE_FOR_FIRST_DISPLAY
    FORM PRINT_TOP_OF_PAGE.
      LINSZ = SY-LINSZ - 16.
      WRITE: / 'Report:   ', SY-REPID,
               AT LINSZ 'Datum:',  SY-DATUM.
      WRITE: / 'Benutzer: ', SY-UNAME,
               AT LINSZ 'Zeit: ', SY-UZEIT.
    ENDFORM.
    hope it helps.
    Regards, Dieter

  • HT4641 Im trying to print off my cv, page 1 prints off fine but page 2 does not, I'm using the selected template for curriculum vitae why does my page 2 not print?

    Im trying to print off my cv, page 1 prints off fine but page 2 does not, I'm using the selected template for curriculum vitae why does my page 2 not print?

    Hi @kots 
    I suspect your question would be better answered in the HP Enterprise Business Community, as your HP Printer is a commercial model.
    My technical expertise is with consumer products and software, I am sure the commercial folks would be happy to help if you re-post your question for them to answer. The HP Enterprise Business Community is an HP Forum designed for the Commercial and Enterprise customers to help one another. I am sure you will find some HP folks there to help too.
    Click here to view the Printing and Digital Imaging. When the page opens you will see the option to 'Log in' or 'Register Now' on the right. The commercial forums are separate from the consumer boards, thus you will need to register if you don't already have a commercial account.
    You may find the HP LaserJet M2727 Multifunction Printer series page helpful while you wait for somebody in the commercial Forum to respond to your inquiry.
    Best of luck.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • To print line item number in workflow message

    Hi Experts ,
    I want to print line item numbers of a sales order in a single workflow message .
    Can this be achieved ?
    I am generating WORKFLOW item , for a sales order , and want certain line item numbers to appear on the WORKFLOW message .
    Something like Sales Order XXXX  has line item 20  30 50 .
    Regards,
    Sunitha

    1. Enhance appropriate custom BOR Object.
    2. Create one Attribute which will gives you String output - Write program to this attribute to fill the string will all relevant texts for example : Line Items 10, 30, 54, 89.
    3.  Place this string in your work item description. So that your work item / email will carry this string under certain conditions.
    you many need to handled exception.
    Example -
    Dear User.
    Please Check the Sales Order 23456. The below line items went for Delivery block.
    Line Items 10, 30, 54, 89.
    Regards,
    Admin
    All the best,
    Vamsi

  • Layout Options - Page Order Does Not Work Correctly

    I have a Photosmart C7280 All-in-One printer.  The Layout Option - Page Order does not work as expected.  The User Guide (page 95) states that the default for a multiple page document is to print first page first.  The manual states that to print last page first requires one to change the Page Order to "Back to Front".  For my Excel, Word, Internet Explorer and PDF pages, I need to leave the Page Order as "Front to Back" if I want the last page to print first.  This makes no sense.  In addition, I can't get my Quicken reports to print last page first no matter what I try.  Does anyone no why the Page Order does not work as expected for Excel, Word, IE and PDF, and does not work at all for Quicken?

    Keisha,
    If you uncheck the "show" option, then the corresponding HTML for that item is not rendered on the page. Thus, when you try to inspect that item via APEX_APPLICATION.G_F02, it simply doesn't exist.
    One trick that I use when I want to have hidden items on the page, but not make them take up any space, is to concatenate them to items that will be visible.
    Using your query as an example, I would re-write it like this:
    SELECT APEX_ITEM.CHECKBOX(1,ROWNUM,'CHECKED')ATTENDED,
    APEX_ITEM.HIDDEN(2,C.PARTY_ID)
      || APEX_ITEM.HIDDEN(3,C.PARTY_TYPE_CODE)
      || C.PARTY_TYPE_CODE PARTY_TYPE_CODE,
    S.PERSON_ID,
    S.PERSON_FIRST_NAME AS NAME,
    C.PARTY_CASE_ID
    FROM CASE.PARTY C
    INNER JOIN DN.PERSON S
    ON C.PARTY_ID = S.PERSON_ID
    WHERE C.PARTY_CASE_ID = :P18_CDBCASE_ID
    AND C.PARTY_SEQ_NO = :P18_SEQThus, the second APEX report column will contain the HTML for the hidden items PARTY_ID & PARTY_TYPE_CODE, as well as the value for PARTY_TYPE_CODE. When you submit the page, you should not encounter any issues.
    Thanks,
    - Scott -
    http://sumnertechnologies.com/
    http://spendolini.blogspot.com/

Maybe you are looking for

  • How to Sync BB Q10 with MS Office Pro Plus Outlook 2013

    In BBLink when I click Contacts/Calendar, then config, the only account I always get is "Contacts Windows" with no other choice. I would like to have access to Outlook contacts, calendar, notes, and to do list, and keep them in sink with the BB termi

  • Add one String[] to String[]

    how can add one array to another? or maybe add an array items to Vector not as an array, but as separate items? something like this Object[] a,b = new Object[10]; --> a+b ???

  • Unable to create entry under Product Specific Transportation Lane by BAPI Function Module

    I am developing one RFC function module which will trigger BAPI_TRLSRVAPS_SAVEMULTI2 to create transportation lane (/n/SAPAPO/SCC_TL1) in APO. But I am facing one problem while creating a new entry under "Product Specific Transportation Lane". But I

  • How do I create anew mailbox in mail

    No edit button appears when in mailboxes

  • Moving SMC 4.0 server

    Hi, We are planning to move our SunMC server to another more powerful system. Currently it is located in a Zone on a V480. The Zone is mounted on ZFS disk. The idea is to move it to a T5220 with the Zone on a ZFS/SAN volume. We intend to keep the SMC