Long Text in Main Window

Hi,
I am trying to print 'Item Text' from invoice just below each item description(same cell of 'item descripotion' is used to print 'Item Text' in MAIN WINDOW )  in smartform. I had used an include text.
For Ex: long text maintained is
TEXT1 TEXT1TEXT1
TEXT1TEXT1TEXT2
TEXT1TEXT1TEXT3
TEXT1TEXT1TEXT4
TEXT1TEXT1TEXT5
If suppose maximum size of cell can occupy only 3 lines of above long text , then it should only print remaining last two lines on the next page .
Main Window
Page 1
Item Desciption
TEXT1 TEXT1TEXT1
TEXT1TEXT1TEXT2
TEXT1TEXT1TEXT3
Page 2
TEXT1 TEXT1TEXT4
TEXT1TEXT1TEXT5
Also in the layout design height of main window on NEXT PAGE  is slightly greater than size on FIRST PAGE.
But , in my case it is generating three pages.  Page 2 and 3 are printed as shown below.
Page 2
Item Desciption
TEXT1 TEXT1TEXT1
TEXT1TEXT1TEXT2
TEXT1TEXT1TEXT3
TEXT1 TEXT1TEXT4
Page 3
Item Desciption
TEXT1 TEXT1TEXT1
TEXT1TEXT1TEXT2
TEXT1TEXT1TEXT3
TEXT1 TEXT1TEXT5
Please let me know , how to correct this.
Note:- Form is Migrated from SAP Script to Smartform.

Hi Mayank,
Use Page protection For that TEXT Element (Include) in output options.
Regards,
Soorya

Similar Messages

  • How to output particular text in main window only in first page

    Hi experts how to ouput particular text in main window only in first page after that actual transaction data will be continued.....any ideas....Answers will be rewarded.....

    Hi,
    Try this.
    /: IF &PAGE& = '1'
    /: ENDIF
    Thanks,
    Naren

  • Print Invoice Header Text In Main Window of Smartforms

    Helo Gurus !!!
    I want to print Invoice header text in main window of smartform.
    There are total 5 columns.
    Item    Quantity          Description          UnitPrice       Amount
    Now what I want is to print header text below Description column, there is a loop on the table in main window.
    This header text will be printed only once. This is a standard header text
    How to get this?
    Points are assured !!!

    Hi Anay Kulkarni,
           I understood that u need to print this header text
    Item Quantity Description UnitPrice Amount
    So please use TABLE instead of LOOP  in the table we can prin header, main area, footer.
    place the header text in header area in table...  i am sure this can resolve it.....
    feel free to contact me if issue is not resolved/.....
    dont forget to reward points....
    all the best...
    Regards,
    Sreeniasa Sarma K.

  • SAP Script: Include text in MAIN window prints outside MAIN window margins

    Hi,
    We're facing a peculiar issue. We call a text element in the MAIN window of an SAP Script form using FM WRITE_FORM.
    The element has 2 includes.
    The problem is that when the content of any of the 2 includes is large enough, the include text prints overflows outside the MAIN window margins on the first page and into the area of the footer window of the same page. It does not automatically flow to the next page MAIN window.
    We have checked that the MAIN window and FOOTER window margins do not overlap. Infact they are quite far from each other.
    We have tried stuff like using a forced PROTECT, change the para format etc, but nothing solves the problem.
    Does anyone have any idea?

    You do not need to use the subroutine READ_ORDER_TEXT to get another text name because you already have it: TMP_TXNAM2 .
    Pass this value back to your SAPscript, and it is okay.
    Or you can even check the text object is empty or not, if no text is found, print 2 empty lines:
    still use your subroutine to read the text, if no line is found, set TMP_TXNAM2  to empty, otherwise, no change,
    In SAPscript, check the value is empty or not, then print 2 empty line or the text object...

  • Displaying bottom text of main window in box?

    Hi all ,
    I am working with a sap script, where i need to display standard text in box at end of the main window.
    The problem is i am unable  to set the dynamic position of the box at bottom of the main window .
    please help me to fix this problem?
    Thanks,
    Vamshi.
    Edited by: VAMSHI KRISHNA on Oct 29, 2008 12:04 AM

    Hi Gustavo,
    Thanks for your reply.
    But here my requirement is the text should be displayed immediately after the data in main window is printed . If i used the bottom window , then it will display exactly in that position despite of the main window data.
    So Is there any way to display text in box dynamically, after main window data is completed?
    Thanks,
    Vamshi.

  • Main window of SAPScript versus Main window of smartform

    Hi,
    In case of Smartform we have one main window per page but in case of SAP Script we can have 0 to 99 Main window on one page.
    In case of smartform if the main window on one page gets filled then the remaining long text will jump on main window of second page.
    Following are my doubts:
    If I define three MAIN windows for three different kind of long texts on page one in SAP Script as follows:
    MAIN Window 1 -  Long text1
    Main Window 2 -  Long text2
    Main Window 3 -  Long text3
    1) If the long text 1 on MAIN window 1 of first page gets full does it automatically jump to Main Window 2 of first page ?
    2) If I don't want the long text on Main Window 1 to jump on Main window 2 on first page but on Main winodw 1 of next page , is it possible ? How do I do it ?
    Answers will be rewarded..
    Tushar.

    In SAPScripts if the long text is filled in the Main Window it will spill over into the same Main Window if it is defined in the next page. Text from one Main Window will nt spill over onto the text to different Main window.
    So as far as you questions are concerned:
    1. Not it does not automatically jump over into Main Window 2 from Main Window 1 on same page or next page.
    2. You just need to define the Same Main Window on the next page so that text gets jumped over to the next page. If it is possible just define the next page as the same page, so that you do not have to create a separate page and attach all the windows.
    Hope this helps you...
    Shashi Reddy

  • CRM Smartform - standard text in variable window

    Hi ,
    I have a requirement in CRM Technical. In a variable window, there is an include text used to print the long text . The issue is that it is printing only few lines and not all the lines it should have printed as maintained in the database text.
    All the text maintained needs to be printed. If the text do not fit in the space  allowed ,then the entire text needs to be printed on separate page.
    Is it possible? and how?

    Hi,
    If  you use varibale vindow(secondary) then if the data exceed size of window data will get truncated.
    USe main window ,now include text within main window,for main window if data size is more than main window automatic triggering will take place and data will print in next page
    Thank and regards

  • Main window- urgent

    hi,
    i have a zsapscript copy of standard and driver program is standard program. i shud not change driver program.
    now, after printing all line items i need to add standard text in main window. i cant chnage the driver program.
    like...
    Main Window
                Header
    lineitem1
    lineitem2
    standard text
    end of main window.
    help me out guys,
    Regards

    Hi
    You can load the table T_MATNR as the driver program loads the items to be printed.
    I don't know what you're printing but for example if it was purchase order:
    DATA: BEGIN OF T_MATNR OCCURS 0,
            MATERIAL TYPE MATNR,
          END OF T_MATNR.
    DATA: COUNTER TYPE I.
    DATA: N TYPE I.
    FORM TEST TABLES IN_PAR STRUCTURE ITCSY
                     OUT_PAR STRUCTURE ITCSY.
    DATA: _EBELN TYPE EBELN.
    READ TABLE IN_PAR WITH KEY 'EKPO-EBELN'.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT = _EBELN
      IMPORTING
        INPUT = _EBELN.
    SELECT MATNR FROM EKPO INTO TABLE T_MATNR
    WHERE EBELN = _EBELN.
    DESCRIBE TABLE T_MATNR LINES N.
    COUNTER = COUNTER + 1.
    IF COUNTER = N.
    *----> It's the last material code
    READ TABLE OUT_PAR WITH KEY 'VAR'.
    CHECK SY-SUBRC = 0.
    OUT_PAR-VALUE = 'L'.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDIF.
    Max

  • Prob in Smartform in Main Window -- Footer part

    Hi,
    I have 2 rows with different 2 text in Main window -> Footer part.
    I want to always keep tht 2-text together either in first page or in second page.
    Currently both r printing in different page if first page do nt have enough space.
    But my requirement is both should print on first page or second page.
    Please let me know hw to control this ?

    You can use the FOLDERs for that.
    Create a FOLDER under the Footer.
    Set "Page Protection" checkbox ON on the FOLDER.
    Put your both line types under the FOLDER
    So, your SMARTForms should like this:
    > MAIN WINDOW
      > HEADER
      > MAIN
      > FOOTER
        > FOLDER - (with page protection)
          > LINE 1
          > LINE2
    Regards,
    Naimesh Patel

  • Dynammic main window

    hi,
    im developing PO smartform.in this im able to display 6 items in the mainwindow(as per the dimensions of the main window) and from the 7th item it's going to the next page and below that footer is printing.my user wants all the items should come on first page and if there are any items left then they should go to next page
    and then footer should print.for example,if there are 20 items,in my case  only 6 items will print in 1st page and remaining items wil go to next page and then footer wil print.he wants the entire page should be filled with items and if any items then only next page and then footer.
    if there are only 4 items everything should come on first page including footer.please suggest is it possible to vary the length of the mainwindow depending on the no. of items,how can i solve this  issue.

    Remove footer window from your smartform and place footer text in main window so it will print the text once all line items are printed.
    If you still want to keep the footer text then this is the way to do, place program lines in your smartfrom and read number of lines your internal table is holding, goto footer and place a condition....
    for example:
    **footer condition lines EQ <no. of lines in internal table>
    **display footer...
    don't foget to increment lines inside your main window...
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • How to Print text in two main windows

    For printing label have created two main windows on a page. calling function write_form In ABAP Program under do loop for two times. 
    but program prints only one window. why is it so? how can i print text on two windows.
    do 2 times.
      COUNT = COUNT + 1.
    loop at itab WHERE DEPTT LT 200.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT  = 'TEST'
            FUNCTION = 'SET'
            TYPE     = 'BODY'
          WINDOW   = 'MAIN'
          EXCEPTIONS
           ELEMENT   = 1
           FUNCTION  = 2
           TYPE      = 3
           UNOPENED  = 4
           UNSTARTED = 5
           WINDOW    = 6
           OTHERS    = 7.
      endloop.
    enddo.
    Please guide.

    Since the information is variable and coming out of the print program, I can assume you want to print many labels but two to a page. Also, any page numbering, etc will need to be updated. This is easily accomplished with SAPScript but a feature people rarely use I believe. Here are the simple steps:
    1) On the Windows Screen: Creat a main window for the size of the label, etc knowing that you will be putting multiple windows on a page. For example, if page size is 8.5 x 11, maybe your window size is 6 X 4 or something similar. You only need one main window defined.
    2) Now go to Page Windows Screen. Add a window MAIN and down at the bottom where it says Window Type put in MAIN. Next to this field is a little field about two characters long. In here put in '01'.
    3) Now Add another window MAIN and down at the bottom put in '02'.
    Hopefully this gives you the idea. I've done this with up to 30 small windows in order to print variable window for labels on label stock such as Avery 8167, etc. 
    Good Luck!
    Tim Stadler
    Menasha Corporation

  • Display text in script  at the bottom of the main window

    Hi all,
    I want to display a long text in the main window at the bottom.
    In case of single page output the text should be displayed in the main window at the bottom. But in case of multiple page output I want the text to be displayed only in the last page.I have tried giving the text inside BOTTOM ENDBOTTOM but its not working. In case of multiple page output also the text is getting printed an all the pages.Kindly let me know the answer at the earliest.
    Thanks & Regards,
    Neethupriya.

    Hi all,
    If anybody knows the solution please let me know at the earliest.
    Thanks & Regards,
    Neethupriya.

  • The main window of third page will not display the text element

    Hey, smartform guru,
    I am working on the smartform to print PO data.
    The smartform has first page and next page as usual.
    I created a third page P_TERMS to print the terms and conditions for PO printout.
    I used commend node to assign the page P_TERMS as the "Go to new page" and it did go to the P_TERMS page but the text element will not print in the main window in P_TERMS page.
    The text element will print in the secondary window.Since the terams and conditions are 4 pages long, I expected it to print in the main window, so I do not have to define several extra pages to print them.
    Any idea?
    Thanks in advance!
    Fisher Li

    Hi Fisher,
    Unfortunately, In a smartform, only single main window is continued to all pages even though you can declare windows under each page as main window, but it actually acts as the same window for all pages. It just means that if text from 1st page is overflowed, it will continue to the next page with main window.
    Command line to go to next page will create an extra page but since text is not flowed in main window, it won't print the text element you have included in main window on third page.
    The solution to your problem as I see is that either you include your terms and conditions in the main window of your first page and just before your text element for T&Cs, use Command to go to third page.
    Hope it helps.
    Ravi

  • Long text doesn't fit the window exactly

    Hi friends,
    in PO smartforms i have included the header text of PO.
    the problem is the long text doesn't fit to the window exactly i.e.,
    when we enter the text in PO in the header a line can contain only 60 characters approximately where as in my smartforms it can contain more than that.
    so in the display of smart form i get lot of space in the right side and i get the remaining part of text in the next line.
    regards,
    Saravan raj

    hi,
    what u have told is correct but we can't expect the end user to do it each time when they paste the long text.
    is there any option to bring it by default.
    regards,
    saravan raj

  • How to print text into different boxes in a main window

    Hi,
         I divided the main window into 5 windows using boxes.
         Now how can I print different data into each of these boxes.
         The data comes from a print program .
      Please suggest.

    Hi
    In smartforms you can create a template object or a table object and set the boxes.
    after you'll create the text object into the templeate and set on which box the data will write.
    best regards
    Marco

Maybe you are looking for

  • Incoterms detailed

    Dear Guru i have detailed Incoterms but i need steps and process with screen shots. can anyone help??/ regards Mohammedrenu [email protected]

  • Best way to compress files?

    I am converting my videos from tape and DVD to store on my Hard Drive. I will be playing them back on my TV and/or computer. I am importing them into iMovie. Any thoughts on best compression settings to export files that look good but don't take up m

  • OBIEE Map viewer

    Hi All, can any one suggest me some link or documentation for OBIEE Map viewer. Regards, Narasimha.

  • How can I hide "Transferring data..." status?

    I want to hide the "Transferring data..." status that shows on the lower left of the browser screen because it is as hazardous as a flickering icon, from a usability standpoint.

  • Error in copied BALANCED_SCORECARD BSP

    Hello, I have copied the BALANCED_SCORECARD to a Z* BSP in a different package. By activating the new BSP I get to error Statement "*" is not be defined. the problem is with the flowing statement : <%   elseif ls_detail_order-name eq 'COMMON_DOC'.