SmartForm Printing all the Items in one page

Hi,
When iam trying to print the data in the smartform.....it is printing all the data in the one page(if 2 pages are shown in printpriview).But the same invoice is going to be printed in all the plants in the same format...so i hope it is not the printer problem.so any one pls go thru' this thread and try to give the solution as early as possible.....
The main thing is if line items are 18.15 on one page and 3 on second page in printpriview...but while printing the the second page 3 line items are overwriting on the first 3 line items of the first page itself.
Pls Asnwer as it is very Urgent.....
Thnx in Advance

Sorry sir, It is a slip of the tongue, I corrected my response already.
So it is defenitely possible to make ALL the columns appear in the same page in PDF regardless of how much width the report occupies?
If yes, can I see a horizontal scroll bar or the text will be shrinked to fit the page?

Similar Messages

  • How to create a single 'not null ' validation for all the items in a page ?

    Hi everyone ,
    how to create a single 'not null ' validation for all the items in a page ? I have many textfields . Instead of creating 'not null' validation for each item , I would like to create a a single validation control that will serve the purpose
    Thanks & Regards
    Umer

    Nice1 wrote:
    bob , as u said I have done the following :
    1) under create button , there are 9 items and for each item I have set Required to 'Yes'
    2) under delete button , there is 1 item and have set Required to 'Yes' for the item
    3) defined page validation for 9 items under 'create ' button and have set it to fire when 'create ' button clicked
    4) defined page validation for 1 item under 'delete ' button and have set it to fire when 'delete ' button clicked
    now , when I click 'create' button it even shows for the item under 'Delete ' button that it is a required itemSorry, I didn't see this note. The required template won't work, there is no way to attach it to the button.
    The best solution is as the reply a couple replies up
    Create 2 page type validations as a PL/SQL with code
    1st validation
    :P1_ITEM1 IS NOT NULL and :P1_ITEM2 IS NOT NULL ...... and :P1_ITEM9 IS NOT NULL  include all 9 items
    Set the When Button Pressed to the CREATE button
    2nd validation
    :P1_ITEM10 IS NOT NULL
    Set the When Button Pressed to the DELETE buttonI think that's going to be the easiest way to do it.
    Edited by: Bob37 on Apr 27, 2012 12:02 PM

  • Retrive all the items under one folder

    Hi,
    I am new to ContentArea API's in 9ias.
    I am looking for Sepecific API's to retrive all the Items
    under one folder.
    thanks
    sha

    I'd love to know that API also. I have resorted to accessing the tables containing that information.
    wwv_corners contains an entry for each folder. wwv_things contains an entry for each folder item. You can join the two tables as
    wwv_corners.id = wwv_things.cornerid
    You could do something like:
    select folders.name, items.id
    from portal30.wwv_corners folders
    ,portal30.wwv_things items
    where folders.id = items.cornerid
    and folders.id = 99999;
    (where 99999 is the folder id.)
    Mike Kleiman

  • Export to PDF is not printing all the columns in one single page.

    Hi,
    I have a report, I am exporting the report to PDF, but ALL the columns are not printing in a single page, It is getting printed 2 or more pages.
    I am okay if I have a horizontal scroll bar or if the test size is reduced. Please see the recording and let me know whether it is possible.

    Sorry sir, It is a slip of the tongue, I corrected my response already.
    So it is defenitely possible to make ALL the columns appear in the same page in PDF regardless of how much width the report occupies?
    If yes, can I see a horizontal scroll bar or the text will be shrinked to fit the page?

  • Unable to print all the terms and conditions pages in the PO.

    Reqt: The PO includes terms and conditions as the last page.
    Currently the program only prints out the first page of the Terms and Conditions regardless if it is one or two pages.
    Only one page(image) is displaying in the last page of smartform.
    These terms and conditions pages are passing as graphics(images), We are passing the GRAPHICS under the TABLES Main Area in LAST page WINDOW.
    But only one page (image) is displaying, but not others.
    Can anyone help to solve the above issue.
    Regards,
    Kishore

    you can create your terms n condition texts in SO10(standard text). THEN
    If u r using smartform then do this:
    goto the general attributes of a text element. From the drop down menu, convert the text type to include text.
    The just as in read_text fm pass the parameters
    text name, text object, text id and language.
    Every thing will be handled automatically
    AND if its a sap script then:
    To include the contents of another text into the current text, use the INCLUDE control command. SAPscript still treats the text to be included as a separate text. The text is copied over only at the point at which the output is formatted.
    Thus the use of the INCLUDE command always ensures that the most current version of a text is included into the output, since the text is not read and inserted until the output is formatted.
    Syntax:
    /: INCLUDE name OBJECT o ID i LANGUAGE l PARAGRAPH p
    NEW-PARAGRAPH np
    You must specify the name of the text to be inserted. It can be up to 70 characters long. If the name of the text contains spaces, then you must enclose it in quotes as a literal value. You can, alternatively, specify the name via a symbol. All remaining parameters in the INCLUDE command are optional. If an optional parameter is not specified, then SAPscript uses default values as applicable for the calling environment.
    /: INCLUDE MYTEXT
    The text MYTEXT is included in the language of the calling text.
    /: INCLUDE MYTEXT LANGUAGE 'E' PARAGRAPH 'A1'
    The text with the name MYTEXT and the language E is included, regardless of the language of the calling text. The paragraph format A1 will be used as the standard paragraph type for this call.
    Optional parameters:
    u2022 LANGUAGE
    If this parameter is not specified, then the language of the calling text or the form language are used for the text to be included. If the language is specified, then the text will be fetched in this language, regardless of the language of the calling text.
    u2022 PARAGRAPH
    The text to be included is formatted using the style allocated. The PARAGRAPH parameter can be used to redefine the standard paragraph for this style for the current call. All *-paragraphs in the included text will then be formatted using the paragraph specified here.
    u2022 NEW-PARAGRAPH
    The first line of the text to be included will be given this format indicator, as long as it is not a comment or command line. If the optional PARAGRAPH parameter (see above) is not specified, then all *-paragraphs of the included text will also be formatted using the paragraph specified in the NEW-PARAGRAPH command.
    u2022 OBJECT
    In order to completely specify a text, information about the text object is also required. There are a number of restrictions and other rules that depend on the object type of the calling text:
    o Any kind of text can be included in a form. If no object is specified, then TEXT will be used (standard texts).
    o In the case of a document text (DOKU object), you can include only document texts. This object type is also assumed if no object is specified in this environment.
    o Only hypertexts and document texts can be included in a hypertext (DSYS object). If the OBJECT parameter is missing, then DSYS is used as the default value.
    o In the other kinds of text you can include only standard texts (TEXT object), document texts or hypertexts. If there is no specification, then the default object is TEXT.
    u2022 ID
    The text ID is a part of the text key, which permits further text objects within a given object. If no ID is specified, then the default include ID is used from the TTXID table for the calling text. If there is no entry in this table, then the text ID of the calling text is used.
    The following consistency check is applied both to the ID and the object:
    u2022 All text IDs are allowed in a form.
    u2022 In document texts, only document texts may be included that have text IDs TX (general texts) or UO (authorization objects) and also other document texts with the same text ID as the calling document text.
    u2022 In DSYS texts, all DSYS texts can be included, whatever ID they have. Document texts to be included must have one of the IDs TX or UO.
    u2022 Into the other texts, standard texts with any allowable text ID, DSYS texts with all IDs, and document texts with the IDs TX and UO can be included.
    The INCLUDE command returns a status code in the SAPSCRIPT-SUBRC symbol:
    u2022 0: the text include was successful.
    u2022 1: the command could not be executed because it contained syntax errors.
    u2022 2: the rules governing the text to be included were not followed (see above).
    This value cannot occur if the command is used in a SAPscript form.
    u2022 4: the specified text could not be found.
    Once you define the standard text in SO10 you can include text by the above process or use the function module read_text:
    .............IN Smartform.......
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    id =
    language =
    name =
    object =
    ARCHIVE_HANDLE = 0
    LOCAL_CAT = ' '
    IMPORTING
    HEADER =
    tables
    lines = i_tab
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5
    REFERENCE_CHECK = 6
    WRONG_ACCESS_TO_ARCHIVE = 7
    OTHERS = 8
    So you want to know how get the parametrs right. This is how"
    In SO10 goto goto menu -> header
    here u will find all the required parametrs.
    The text lines will be returned in the i_tab.
    U can loop at this itab and display the data.
    Reward points if hepful.

  • How can I print all 3D views in one go?

    I have several views of a part in a 3D-pdf, and I would like to print out the document so it prints all the views in one go. Best solution so far is to print out the first view, change view, then print again... rinse and repeat.
    Any solutions to this?

    A simple Javascript function could loop through the 3D views and invoke the print operation.

  • All of a sudden all the links in my page enlarge 100% and turn white when clicked

    Hi - This is my first website and I have learned so much, but now I have a very irritating problem that I'm sure can be fixed by deleting a few lines of code, but I have no idea what to look for. All of a sudden all the links on one page of my site started turning white and enlarging almost 100% when you click on them. We page is at www.goEarthWorX.com/products. It happens to all the links on my page, and now there are weird white lines around one of the top products' names as well. Any help in what is going on would be very appreciated, as the site is almost complete and now I have this problem I just can't figure out on my own. Thank you so much!

    CSS: /products/#7 (You have a LOT of CSS sheets. Try combining into one)
    "the links on one page of my site started turning white and enlarging almost 100% when you click on them"
    a:active {
        color: #FFFFFF;    font-size: 200%;
        font-weight: bold;
        text-decoration: none;
    "now there are weird white lines around one of the top products' names as well"
    .oneColElsCtrHdr #apDiv98 a {
        border-style: solid;    color: #FFFFFF;

  • I am trying to print all the PDF pages in a range of 5 pages but can only print one page at a time . . . It will print the current page, but not all or pages 1-5.  Can this be overcome?

    I am trying to print all the PDF pages in a range of 5 pages but can only print one page at a time . . . It will print the current page only, but not all or pages 1-5.  I need to go to the next subsequent page and command to print current page; continuing with this procedure until all pages are printed one at a time. Can this be overcome?

    You can use printPages(1, 5), however I need to know how you print current page.

  • Print text on last but one page of SmartForms

    Hello everyone,
       Here I have a very specific requirement in SmartForms which I am not able to do even after trying a lot of options.
       I want to print Items of PO in Main Window and I am printing total on a different window which should be printed at end of all Items.  Again this does not mean total is printed on last page, as the last page has Conditions which is default with every PO.
      So the requirement is to find out the last but one page at runtime and print the total. 
    Thanks.

    Hi Priya,
    Even I faced the same problem while creating invoice.
    Soln:
    declare a variable "g_counter" at global definition tab with data type "I'.
    In the main window just after your table and before the command line which you have used, create a program line and give input and output parameters as "g_counter"
    In the body of program line just write "g_counter = g_counter + 1".
    Make sure your total window is placed after the main window in sequence.
    Than in the total window you can put condition as "g_counter = 1".
    I am sure this issue will be reolved.
    Regards,
    Vinit

  • How can i print all the tab pages not just the first page (tab)

    how can i print all the tab pages not just the first page (tab)

    You would need to do this programmatically. Here's one way:
    Attachments:
    Example_VI_BD6.png ‏3 KB

  • How to print all the pages in wad

    HI i am having a report with 3000 records when opened in wad, but when we print the Report, it is giving us records(60) on only first page, how do we print all the 3000 records from all the pages by clciking on print only once.
    Thank You,
    Kris.

    i am not able to print any pages after inserting the code, am i placing the code in the right place.
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_2"/>
             <param name="DATA_PROVIDER_ID" value=""/>
             DATA_PROVIDER:             DATAPROVIDER_2
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="QUERY" value="ZPARAMTEST"/>
             <param name="INFOCUBE" value="ZEMPPRM"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZEMPPARM"/>
             TEMPLATE PROPERTIES
    </object>
    <td>
    <table class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0"><tr><td nowrap>
    <table border="0" cellpadding="0" cellspacing="1"><tr><td nowrap class="SAPBEXBtnStdIe4">
    <A class=SAPBEXBtnStd title="Print via Web Button" href="<SAP_BW_URL cmd="PROCESS_HELP_WINDOW" help_service="ZPRINTING" item="GR1Table">" target=_blank><nobr> Print</nobr> </A>
    </td></tr></table>
    </td></tr></table>
    </td>
    <td width="100%">  </td>
    </tr></table>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
          <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <BODY>
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="EMPLOYEE_TABLE"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="BLOCK_SIZE" value="5"/>
             ITEM:            EMPLOYEE_TABLE
    </object></P>
    </BODY>
    </HTML>

  • Printing In Main Window in Smartform After All Line Items

    Hi All.
    I have this requirement wherein I have to Print Export Charges in main window , below all the line items.
    There is a loop on line item tables and I am printing all line items in the main window.
    How to print this export charges after all the line items?
    Points are assured !!!!

    Hi,
    Create two row line in the main area of the table. First one for line items and the next for the export charges.
    Hope this ll help u.
    (Sorry, this ll print export charges after every line items, try to print the export charges in the footer of the table.)
    Regards,
    Prabhu
    Edited by: Prabhuraj Krishnan on Apr 15, 2008 11:05 AM

  • Smartform printing all pages from 2 trays

    Hello all,
    can we print Smartforms from 2 diffrent trays we have a tray selection option in smartform but is there a way we can print all the pages from tray 1 as well as tray2?
    for example if i have 3 pages i want to print all 3 pages from tray1 as well as tray 2.
    Thanks,
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on May 28, 2009 5:13 PM

    You will have to send the form to the printer 2 times to print from different trays. I seriously doubt it would be possible to do it otherwise, but you might want to check in the forum specific to forms.

  • Move all the items of a layer to new page?

    hi,
    is it possible to move all the items in the layer to move to the new page with the same coordinates in the page 1
    eg:
    i have two layer named "layer_page1"and one more layer named "layer_page2"
    i have 2 text frame objects , 1 rectangle objects in the "
    layer_page1" and 3 text frame objects, 3 rectangle objects in the "layer_page2"
    all the items are in the page.items(0).
    now i will add a new page to the document
    and i need to move all the items in the layer named "layer_page2" to the new page, i.e page.item(1). is it possible?
    if it is possible it will solve lot my efforts typing.. and verifying.
    your comments are highly appreciated.

    John,
    hm, I don't think your untested script will work in a predictable way. Technically it will work a bit. Just tested it. But:
    1. if you loop from index 0 to the end, even if you loop from the end to index 0 you will mess the index of the pageItems when moving them to a different page
    => I recommend grouping all pageItems on the specified layer, so that we have to move only one pageItem, the new group
    2. problem with move() to another page is, that you cannot retain the original page coordinates of the moved object, it will get 0,0 coordinates automatically
    => we have to store the coordinates of the group first, then move, then apply the old coordinates
    3. in a real-world scenario we should deal with the possibility of locked pageItems
    4. Furthermore we have to make sure that the layer is not locked
    The following example will unlock all pageItems on that layer and will lock them after they are moved:
    //Move all objects on a layer of a page to a different page
    var
      d=app.activeDocument,
      src=d.pages[0], dst=d.pages[1],
      layer=d.layers.itemByName("Layer 2"),
      i;
    var myItemsToMove = new Array();
    var myItemsLocked = new Array();
    for (i=0; i<src.pageItems.length; i++) {
        if (src.pageItems[i].itemLayer === layer) {
            if(src.pageItems[i].locked){
                myItemsLocked.push(src.pageItems[i].id);
                src.pageItems[i].locked=false;
            myItemsToMove.push(src.pageItems[i]);
    //Check, if layer is locked:
    if(layer.locked){
        var layL = true;
        layer.locked=false;
    // create a group on the source page:
    var newGroup = src.groups.add(myItemsToMove);
    var gB = newGroup.geometricBounds;
    //We have to move only ONE object, the new group
    //To the destination page
    newGroup.move(dst);
    //To the old coordinates
    newGroup.move(undefined,[gB[1],gB[0]]);
    //Restore the state of the pageItems
    //Ungroup them once:
    newGroup.ungroup();
    //Relock the former locked objects:
    for(n=0;n<myItemsLocked.length;n++){
        d.pageItems.itemByID(myItemsLocked[n]).locked=true;
    //Relock layer if it was locked:
    if (layL){layer.locked=true};
    Uwe

  • Reg: Displaying all the items of main window in the same page itself.

    All,
    I am developing an SAp Script form which is using five windows. Out of which third window is the main window. In the main window i am displaying details of item sold. The form prints perfectly when the number of items is with in the limit of the main window height. When it exceeds the main window height a second page with the same format of the first page is displayed with the remaining items in main window. ie 1,2,4,5 window is repeated in both pages.
    I want to display all the items of the main window in the first page itsel and if it exceeds first page show the remainng items in the next page and then display 4th and 5th window. IS it posiible using SAp script. Am i to do some configuration for this?
    Note: I have assigned Next page to first page itself.

    Thanks Anji.
    I understood about display of first and second windows.
    About main window and Fourth and Fifth window i still have doubt. I have given specific height to main window and after that put the fourth and fifth window with specific height in first page itself. So what happens is that When mainwindow overflows it will print up to specified height in the first page. Then prints the Fourth and Fifth window in first page. Then it goes to second window prints the remaining items in main window then again displays fourth and fifth window. Could you please find a solution for this too.
    Regs
    Rakesh

Maybe you are looking for