Page adjustment problem for a text element

Hi experts,
      In my smartfrom i am having a main window with table ( Header.main area and footer)
i am having some 10 lines of text in footer of table.
Based on line items in a main area ,footer is dispalying..i mean some times footer text is not able to adjust  in a one page..i mean 5 lines are dipalying in previous page and remaining 5 lines are displaying in next page..
this is not required..it should be displayed in a one page ..How can acheive this?
Can anybody plz help me out?

I guess, you need additional coding to acheive... but the way your current form behaves is correct as user can maintain n number of item text. if user says that the item text is not exceeding to certain number of line items then you can build a small logic like this to fit all the item text to one page.
Use FM READ_TEXT to find the total number of lines used to maintain item text.
See how many line items that your main window can fit..
Example: if you main window is accomodated for 15 line items and assume you have 3 line items.
1st line item is having item text for 5 lines, second line item is having item text for 8 lines and 3rd line items is having item text of 9 lines ..
you create a prgram line inside your smart form which increments the line items and item text... always sum up the number of line items before displaying them...place a command to trigger the next page inside your main window.. with condition that increment is greater then 15.
I guess ,the above information will help you to close the thread.
Regards,
Sairam

Similar Messages

  • 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

  • Page number after printing a text element in SAPScript

    Hello to all,
    is it possible to know the page number in which SAPScript print a text element?
    Thanks and regards
    Franco

    Hi!
    &PAGE& variable gives you the actual page.
    /E MYELEMENT
    /: DEFINE &MYPAGE& = &PAGE&
    I hope it works...
    Regards
    Tamá

  • Problem for Header text of Contracts

    Hi guys,
    a suggest:I have created in customizing a new header text and I want display and manage it on header of contract but when I create the contract see always the standard header texts 'release order text', 'header text','header note' 'pricing type' 'deadlines' but my own header text number 17 there is not.
    i have simply entered in customizing Contract>Texts for Contracts>Define Text Types for Header Texts and I have created the text with sequence numeber 17...how can I display it in header of contract?
    I have seeked for in this forum but in all messages on text I don't find this problem
    Thanks in advance
    Bye

    Hi,
    am adding up...........
    Please refer the below link......
    http://www.sap-advisor.com/abap-coding/sap-text-administration-and-info-records-for-purchase-orders/
    Hope it may help you...
    Venkat.

  • Problem transporting the text element translated into Korean language

    Hi guys,
    I have created a new data element for the program and make a Korean translation for the new data element.
    However, upon transport only the new data element in English language is transported to the QA box, the Korean translation was not.
    Did I miss something in my transport request? Or have I done something worng?
    Thanks a lot!
    Regards,
    Mark

    Hi Mark,
    You need to create the separate transport for the translations which SAP will create for you once you do all the steps as I told.
    Once you give all the details as told, just press EDIT button by choosing correct language.
    Regards,
    Atish
    Edited by: Atish Sarda on May 29, 2008 12:32 PM

  • SQL Developer paste problem for large text in Linux

    Hello,
    I have a problem. I cannot paste large text (> 5000 lines) into the editor of a clob column. Pasting in general works. I mean I can paste the whole content e.g. to gedit or I can paste partially the text into the sql developer editor but not as a whole.
    Colleagues on a Mac can paste the text into the editor. So it should not be about DB settings.
    Can anyone tell me which setting I have to change? 
    SPECS:
    Ubuntu 13.10
    java version "1.7.0_25"
    OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4ubuntu3)
    OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
    Info
    Oracle SQL Developer 3.2.20.09
    Version 3.2.20.09
    Build MAIN-09.87
    Copyright © 2005, 2012 Oracle. All Rights Reserved. Alle Rechte vorbehalten.
    IDE Version: 11.1.1.4.37.59.48
    Product ID: oracle.sqldeveloper
    Product Version: 11.2.0.09.87
    Version
    Komponente    Version
    ==========    =======
    Java(TM)-Plattform    1.7.0_25
    Oracle-IDE    3.2.20.09.87
    Versionierungsunterstützung    3.2.20.09.87

    I've the same problem and posted it under: 'SQL Dev 2.1 RC1 - "scan defines" doesn't work in opened *.sql files '
    I seems, that it doesn't work now, though it worked in SQLDEV 1.5.5
    @Chris

  • Create colum headings using text elements

    Hi Experts,
    I want to create column heading of a report using text element, how can i create create column headings using text elements and how can i use in the top-of-page event.
    Thanks

    Hi,
    1 For Creating Text Element,
    go to Se38 -
    > Write Name of the Program - > Click Change button - > Then go to GoTo on Menu Bar--> text Elements
    > Select Text Symbol
    In First Column( Sym)  Write any Number which is not used  like 001, 002.....
    In Second Column (Text) write in text or description .... like Sales Order....
    U can use this text Symbol in code -
    >  text-001, text-002.....
    2 In order to insert a report heading in to the ALV grid you need to perform the following steps:
                        1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include 'top-of-page' FORM
                    2. Create 'top-of-page' FORM
    3 In order to add event functionality such as 'END_OF_PAGE' to the ALV grid you need to setup the
      IT_EVENTS option of the ALV function module. Also depending on which event you are using you
       may also need to setup the print parameters by activating the IS_PRINT option. Please note for events
      such as end_of_page, end_of_list etc they will not be displayed on screen but only in the printed
       output.
            Step 1. Add data declaration for events and print parameters
            Step 2. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include parameter 'it_events' and 'is_print'
            Step 3. Add code to setup events table and print parameters
            Step 4. Create event FORM(s), which are executed when event is triggered
    Thanks & Regards,
    ShreeMohan

  • Error during activation of text elements

    Hello All,
    I have a problem activating the text elements of a program. The
    text elements can be edited but can not be activated. It displays an error during activation prompt.I tried deleteing it and recreating but still does not work.
    Thanks in advance for all the help.
    Rgds,
    Anju

    Have a look at:
    Selection Text Activation
    Amit.

  • Text Element error in SAP script

    Hi All,
    I have modified a sap script and now getting print perfectly without any flaws.
    But system is raising an error log in spool (Tcode: SP01) as below..
    In form ZFFIAP_PMNT_RMTT / window MAIN , the element 610-C (Text-C) is missing.
    When i checked the MAIN window of sap script, there is a text element with name 610-C.
    How to resolve this error..????
    Please Help me...
    Regards
    Pavan

    Thanks for your inputs.
    I have checked the Driver Program. There  is no text element '610-C' used in WRITE_FORM statements in the driver code.
    There is no such element in the MAIN Window of sap script.
    Still i m facing same error.....
    "In form ZFFIAP_PMNT_RMTT / window MAIN , the element 610-C (Text-C) is missing"...
    What might be the reason..????
    I have checked other window too for such text element...
    If i create a text element "610-C" in the MAIN window of sap script, still same error is being created as log file in Spool (SP01). INterestingly this error is not creating any impact on script printing...!!!
    Can anyone help me.....????
    Regards
    Pavan

  • Retrieve text elementes of deleted report

    We have deleted a ABAP report that we thought was not used anymore.
    Now I want to Retrieve this report. There is no problem retrieving this report using version management but I have a problem with the text elements and selection texts. I only can retrive the original language from SE38 - I wan't to retrieve all languages.
    We are on ERP2005.

    Hi Zhenyun
    Try generating the report with DESTYPE=CACHE and see if it works.
    Regards
    Sripathy

  • Space left in the printout after hiding the text element in smartform

    Hi
    In my smartform there is space left in the printout after hiding the text element with condition.
    Is there any way by which we can remove the space in the smartform,
    Thanks
    Ank

    Hi ,
    I am displaying the text in table with two columns and in one column i am giving the text elemnt and in other the value.
    I had given the condition that if the data is not present then the text elemnt should not be shown in the form .My form is working perfectly except that its leaving the space for that text element.
    thanks
    Ank

  • What is the main use of text elements in program.

    Hi Experts,
    Can any body please explain, why we have to maintain text elements in program.
    is it only for avoiding hot coding or else any thing.
    Please explain.And why we have to avoid hot coding with text elements.
    regards,
    developer.

    Hi,
    Text elements are used to store text , the basic purpose of using this is that the same program can be run in diffrent languages and so the titles/headers must be in the language the program is execued , if you hardcode it in the program this will not work , so we use a text elemnt and the system selects the language for the text element based on the language in which the user has logged in.
    You can search in forums, you will get lots of answers
    Type your key word in sarch text box and press enter, if not found relevant answer, select datae range to all...
    answers  from other forums.
    Hi
    They are useful when the program is used in other languages.
    So that they are automatically converted to that language.
    So define the texts in the text elements and use their ID's like (TXT-05) in the code
    don't sue the complete texts in the program.
    regards,
    nazeer
    Edited by: N a z e e r on Jan 15, 2009 4:33 PM

  • Text elements creation in user exit

    Hi All,
    I have written code in user exit MV45AFZZ(include program ) ,now i need to create text elements.
    The above include is in standard program SAPMV45A,which will ask access key for creating text elements.
    Can any one give me some inputs,like,can i go ahead using accesskey or any alternative procedure exists for enhancing text elements without accesskey?
    Thanks & Regards
    Seshagiri.

    Hi
    Create one message class or use any created message class(custom). In that write ur text elements and use that in include.
    In same program and same include which u r telling, we created one message class called Z_SDRQC and using text elements from this message class in this include. check below sample code for that.
    Reward if it is helpful.
    Thanks
    Siva Kumar
    IF SY-TCODE = c_tcode1.
              MESSAGE a006(z_sdrqc).
            ELSEIF SY-TCODE = c_tcode2 OR SY-TCODE = c_tcode3.

  • Gumbo text elements and embedded fonts

    Hi again,
    ok I found the solution. The first time, I searched in the "CSS Advanced Selectors" spec document for the solution and I found nothing about it. Then I had the "great" idea to look in the only right place which is of course "Text Primitives (TextBox, TextGraphic, and TextView)". There I found the hint about "DefineFont4" which, with some search, led me to the solution:
    1. Add the new property "cff: true" in the "@font-face" css block
    2. Set the property fontLookup="embeddedCFF" for the text element
    et voilà!
    I hope this will save somebody else some time!
    Haykel Ben Jemia
    Allmas
    Web & RIA Development
    http://www.allmas-tn.com

    OK,
    I have given up messing with stylesheets, trying display:
    block, inline, different ways of formatting the XML, messing with
    XML.ignoreWhiteSpace, and XML.prettyPrinting etc.
    I went down the route of encodeURI, using a RegExp to strip
    out all tabs, linefeeds and carriage returns. This now gives
    consistent results for all situations, even embedded and none
    embedded fonts.
    e.g.
    _text:String = TEXT FROM XML, HTML TEXT etc
    var st:String = encodeURI(_text);
    var pattern:RegExp = /(%09)+|(%0A)+|(%0D)+/g;
    st = st.replace(pattern, "");
    st = decodeURI(st);
    YOUTEXTFIELD.htmlText = st;
    The <p> tags still behave as a <br/> tag, but you
    can add an extra <br/> to simulate a paragraph.
    Here is the example again with the updates,
    Hope this helps someone

  • Translation of the Text Elements...

    Hi Friends,
    Is going to transaction SE63 and type for each and every text element, the only way to do translation for the text elements? or is there any other easy way to do it?
    Since I have hundreds of the text elements and it is an hectic work to do the translation for each every element from one language to another.
    Some body please suggest me.
    Thanx in advance,
    ram

    Hi Ram,
    U cannot translate it bulkly...
    Please check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/b4/54601d77f38e429ffad9e3e11c1b25/frameset.htm
    Regards,
    Abdul
    Message was edited by: Abdul Hakim

Maybe you are looking for

  • SDK Schemas have moved - but where?

    Probably because of the recent OTN web site reorganization, the XSD files for XML extensions have moved. Would someone please update http://wiki.oracle.com/page/SQL+Dev+SDK+How+Tos to point to the new locations of navigator.xsd, query.xsd, editors.xs

  • [svn] 3148: You can now use CSS styles to set the default text format for TextView.

    Revision: 3148 Author: [email protected] Date: 2008-09-08 15:01:15 -0700 (Mon, 08 Sep 2008) Log Message: You can now use CSS styles to set the default text format for TextView. It no longer has any formatting properties. It supports the entire set of

  • How do I locate pandora bookmarks on ipad2

    how do I locate bookmarks I make in pandora on an ipad2?

  • Amortization of Goodwill after method change

    Hi all, Need some help. It is not really clear to me how does BCS take into account (equity-method)goodwill, and further more - amortization of goodwill, in/after Method Change activity. Business scenario Step 1. Company "A" (equity - 1000 monetary u

  • Deployment of JSP application developed using Jdeveloper

    Is it Possible to deploy/implement JSP Application developed using Jdeveloper and its Application Module, View object etc. , without using an Application Server, such has hosting at the ISP servers, but having Oracle as the back end ?