Script text over flow

hi guyz
i came accross a bug in my application program. actually, it uses SAP Script technology to print production order. let me give brief about the error, so that you guyz can be more accurate while giving solutiuon. my problem is, in one of the header window, of the production layout, i added one new field. immidiately, after this header window, my main window follows. now my problem is, in the first page of output, i am able to see the value of newly added field perfectly. but as it goes to second page, that particular variable, is overwritting some content of the main window. i bilieve, it is quite simple scenario. guyz working on Script would be able to knock it out perfectly within seconds.
thank you
shane

hi shane first of all
put the field that u have added in ur header window within protect and endprotect so that the value is not overflowing into main .
in ur header window
/:    protect
P   &field&
/:   endprotect
like this.
in the second check see that the attributes of the length of  first page and the next page are same in dimensions.
maybe the  values in first page  and second page might be different for that field .
left upper width and height must be same ..
check on all the windows.
regards,
vijay

Similar Messages

  • Asking too much and getting a "stack over flow error"

    I’m having AS3 create 12 random var (play1, play2, etc) and then I ask it to average the 12 vars (numbers) until I get a specific average number. When I run this in AS2 I get the “script time error, keep running?” question. I tell it to keep running and eventually AS2 finds the right set of 12 numbers to equal a specific average number. In AS3 I get a “stack over flow error”. I know that all my AS3 swf needs is just more time to find it.
    Any ideas for a fix?

    // set AvgLenght if it is undefined
    if (!AvgLenght) {
        var AvgLenght:Number = 4.5;
        ShowAvgLenght.text = String(AvgLenght);
    // build play lengths//
    var Hteamplay1:int = Math.random() * 5;
    var Hteamplay2:int = Math.random() * 5;
    var Hteamplay3:int = Math.random() * 5;
    var Hteamplay4:int = Math.random() * 5;
    var Hteamplay5:int = Math.random() * 10;
    var Hteamplay6:int = Math.random() * 10;
    var Hteamplay7:int = Math.random() * 10;
    var Hteamplay8:int = Math.random() * 10;
    var Hteamplay9:int = Math.random() * 20;
    var Hteamplay10:int = Math.random() * 20;
    var Hteamplay11:int = Math.random() * 50;
    var Hteamplay12:int = Math.random() * 100;
    trace("12 play sets", Hteamplay1, Hteamplay2, Hteamplay3, Hteamplay4, Hteamplay5, Hteamplay6, Hteamplay7, Hteamplay8, Hteamplay9, Hteamplay10, Hteamplay11, Hteamplay12);
    var playsum:Number = (Hteamplay1 + Hteamplay2 + Hteamplay3 + Hteamplay4 + Hteamplay5 + Hteamplay6 + Hteamplay7 + Hteamplay8 + Hteamplay9 + Hteamplay10 + Hteamplay11 + Hteamplay12);
    var PlaySets:Number = playsum / 12;
    trace ("Average of all plays:", PlaySets)
    if (PlaySets >= AvgLenght && PlaySets <= AvgLenght + .1) {
        gotoAndStop("Equals target avg");
        ShowAvgLenght.text = String(AvgLenght);
    } else
    nextFrame();
    // The next frame "goes to and plays this frame
    // ShowAvgLenght.text = String(AvgLenght);
    trace("AvgLenght:", AvgLenght);
    the code work with higher "AvgLenght",a lower "AvgLenght" takes longer and I get the below error:
    output:
    12 play sets 2 2 2 1 0 3 0 7 16 16 25 17
    Average of all plays: 7.583333333333333
    AvgLenght: 2
    tried: 3489
    12 play sets 0 4 4 0 3 4 1 2 19 9 10 30
    Average of all plays: 7.166666666666667
    AvgLenght: 2
    Error: Error #1023: Stack overflow occurred.
    tried: 3490
    Error: Error #1023: Stack overflow occurred.
    Error: Error #1023: Stack overflow occurred.

  • Page over flow - please turn over

    Is it possible to add text "please turn over"  if the page overflows to another page?
    I have designed an  In design document that get variable data filled from an external source. When this happens the page may or may not overflow to a new page depending on the data that goes in the document.
    I want to is to add text "please turn over" only if the page over flows? How do I do this? Can this done in In design? Page Overflow works fine. Not sure how to add a conditional text. Is there a way to check if page overflows in design?

    Pages do not overflow in InDesign, textframes do.
    Beware of terminology issues. In scripting, textframes have a property "overflows", which indicates there is "overset" text in the frame, that is, there is not room enough in that particular text frame for all of the text and it does not thread to a next frame. That last part is, by the way, the indicator you are looking for here: if a text frame "nextTextFrame" is valid, then there is a possibility text runs from the current into that next frame.
    It's only a possibility because it is perfectly valid and possible (and often true) that this next frame is totally empty, so you might want to double-check on that.

  • How do I get text to flow from one page to the next in Pages 5?

    How do I get text to flow from one page to the next in Pages 5 with the Maverick system?

    What may be overlooked in Pages v5 is the notion of combining Text Boxes via the Menu > View > Show Arrange Tools. When you select two Text Boxes, an extra panel unfolds at the bottom of the Arrange Tools window. Uncheck one Text Box and this panel abruptly disappears.
    One can achieve text flow effects between Text Boxes differently based on how one positions the Text Box overlap, and choice of effect above. Though not the accustomed flow found in Pages ’09 v4.3, flow does occur. Consider the possibilities of combining a Shape and a Text box to cut an irregular Text box.
    If I create two Text Boxes and position them side by side with outline touching and choose Unite, this creates one larger Text Box and text flows across and down. On the otherhand, if I overlap the upper left corner of a lower Text Box over one above and to the left, then choose Union, pasted text fills the first Text Box and then flows across and down into the other box. Here is a Union example:
    Intersect will leave a small Text Box where the two overlap, so not much value there. Subtract will cut a chunk out of one Text Box that is the size of the overlapping piece of the second Text Box:
    And Intersect will leave an island in the center where the two Text Box overlap, with flow jumping over this bridge.
    Clearly, this is not what we were accustomed to in the past, but with imagination, style, and layout tuning, it does offer alternative Text Box creativity and layout. Of course, there is the option of simply returning to the previous Pages version for true Text Box linking that most will want to use.

  • How to write text over a picture in Pages 5.0?

    In a Pages 5.0 document I want to write a text over a picture. This text will allways stay 'behind' the picture.
    I can change the order of the picture (in front of at the back), but the text will not become visable.
    It did work in Pages '09...
    What am I doing wrong?
    For for helping me...

    Assuming your text is in your document, and you insert a picture. While the picture is selected, you will notice that on the right format panel, the Arrange tab has appeared. Select either Stay on Page, or Move with Text — depending on your image goal — and then look at the Text Wrap feature. By default, once you drop a picture into the document, it is set to Automatic. This means you can place your pointer in the image and just move it around, while text flows around it. The smaller the image the better the flow effect. This is a discussion about Pages v5.2.2, but it will work the same in v5.5.
    Let's say you want the image flush aligned to the left margin, but want text to flow above, to the right, and below the image. Change text wrap automatic to Around, select the right icon for Text Fit, and adjust your spacing up or down for the proximity of the text wrap to the image. It looks like this with Text Fit spacing set to 9 pt.

  • Text placement flowing onto new pages?

    I am having a difficult time with the placement of text as it flows onto the next page.
    I get everything to flow correctly--the field expands, goes onto the next page fine. I have a time field associated with this text field, which pushes it to the right. However, when the text field flows to the next page, it moves over to the left! I want it to stay in place, but I can't figure out how. Any suggestions?? It's kind of driving me batty!
    I would have attached the pdf here to show exactly what I'm talking about, but they seem to have taken away the ability to attached pdf documents? I  can only attach a video or picture. So I took a screen shot of what the form looks like when you try to fill it out and it goes onto the next page. I hope this helps.

    I believe, there are 2 items to be attantioned:
    first:
    look at object-panel, the field-tab, there is a cross to be set at pagebreak...
    second:
    look at the Layout-panel: there is a cross to be set under Y and Hight!
    if no effect, than, take a new part of form around our item and check these 2 opinions to be set:
    it might be work.
    well, it has been this weekend my fashion to find a relation between these two selected items, not well.
    ok?!

  • RE Text to flow around shape

    In Pages 08 or 09 - Is it possible to get text to flow or follow around e.g. a sircle or anoter shape?
    What I am thinking of here, is something simular to word-art in MS word.
    You got some bad advice and accepted it and closed the topic.
    It's absolutely possible to have text flow around a shape. In word processing mode, highlight/select the shape/image, click the Inspector>Wrap. Set Wrap=yes. You can define how the text wraps around the shape, above-below only, surround, etc.. you can even define how closely the text wraps to the shape.
    Wait a little bit the next time you ask a question. The first person responding may not have the answer.

    Nope, wasn't rhetorical at all, Just wonder why it still has to be so hard to find.  I did finally figure out that if I copied the pic into the Pages doc.  from I-Photo via the Media Icon/tool, the text began to wrap.  I was frustrated before while trying to finalize a bio before my partner left so she could take it by a gallery displaying her work for an upcoming show.  I remember wishing for this capablilty in the late 1980's and was really frustrated because in MS Word 2008 for Mac I couldn't find any possibilty of Word or Text Wrapping and within Pages 2011, I could not get the necessary menu to highlight and therefore work.  If Mac just used the right mouse button and allowed icons, etc. to show up when moused over and help links to pop up when right clicked on, it would save soo much time.
    Thanks for your post, it eventually helped me.
    Dave

  • I need to add text over a still photo in iMovie.  Following directions that always worked before but not this time.

    I am running OS 10.6.8, an upgrade that I did after Christmas.  A couple of times a year, I need to make a video of my students' performances, and have always been able to add text over the still photos before, using the directions in iMovie "help."  However, this time, I am not able to choose a title style; no amount of clicking makes anything show up on the selected still photo.  And no amount of trying to choose the font style makes anything show up either.
    This is iMovie 09; is it possible that it is not compatible with my OS upgrade?
    I've been able to insert still photos into the video footage, but can't add any titles or acknowledgements.  Thank you so much for your help!  Since I only do this a couple of times a year, it always takes me forever to accomplish, which is why I printed off the Help directions to follow.

    just to make thing clear (sorry for sounding impudent!)
    you do .... :
    create a New Project
    make a selection of an Event and add it to the Project
    select a title and drag it onto the clip?
    iM does work with your OS ...

  • How do I get the text to flow throughout more then one page.

    Hello,
    I am currently using LiveCycke Designer to create a scholarship for my company. I created fields for the form and I would like to insert a text to describe the scholarship. When I insert the text, it doesn't flow onto the next page. I've tried creating a subform and clicking "flowed" and "allow page breaks within content". I also clicked auto-fit for the height, but it just makes a line. For the text box, I've clicked "Expand to fit on the height". It is also a dynamic XML Form. Is there anything else I should be doing?
    I could always send the file to someone to see if they can figure it out.
    Thank you,
    Natalie

    Thank you so much !
    but the link doesn't seem to work. It says that the URL is not in the correct format for an Acrobat.com document link.
    Natalie
    Date: Wed, 12 May 2010 07:53:12 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do I get the text to flow throughout more then one page.
    Here is the corrected form..Even you you set the Subform type to "Flowed" to the subform where the Text box resides, you did not set the Page1 to Flowed (which is the key)..But when I make the Page1 type to "Flowed", all your fields above the Scholrship text boxes' Subform will go one below another.. To fix this, first I have select all the fields and wrap them into a subform and then set the Page1 to Flowed..
    https://acrobat.com/#d=XQ1yfV8fCk85M7sRLD*-gg
    Thanks
    Srini
    >

  • Planning cube Key figure over flow error

    Hi Experts,
    I am getting the following  Key figure errors in Planning cube while running the Planning sequences.
    1.Over flow occurred when calculating KF
    KF details : Data type: DEC-Counter or amount filed  with comma and sign.
    2.ORA-01455: converting column overflows integer data type
    Data type : INT4- 4byte integer,Integer number with sign.
    The number s are growing in cube and it is giving overflow error .We are compressing the cubes once in a week.we are using these KF's in two cubes.Please help me to resolve the issue.
    Regards
    Prasad
    Edited by: PRASAD on Feb 1, 2009 9:39 AM

    Hi Prasad,
             Check here.........
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3131393536373226
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=460652
    Thanks,
    Vijay.

  • Putting Text over a video is not working

    O.K.  I follow the instructions on putting text over a video (for iMovie 11), but every time I do this all I see is a black screen with the text in it.  I can't get the video to show up when I preview/play the video.  I have the same problem when trying to use the green screen feature as well.  Is there a setting or something that I need to change in iMovie?  If so what/where is it, because I am at my "witts end" trying to find it?

    I would suggest trashing the iMovie Preferences file. Instructions are here. (You should not need to trash the iApps preferences, just the iMovie one.)
    https://discussions.apple.com/docs/DOC-4061

  • Table of contents and the order of multiple text frames flowing across pages

    I have a multi-page document,
    on each page, there are 2 text frames:
    - A text frame for containing a PAGE TITLE
    and
    - A text frame, flowing from one page to another containing: a MAIN TITLE, a SECTION TITLE, and flowing body copy (on page 1); and another MAIN TITLE, a SECTION TITLE, and flowing body copy; (on page 2)
    When I generate a TOC, using the Page, Main and Section Titles styles, the expected outcome would be:
    Page Title             1
       Main Title           1
    Section Title          1
    Page Title             2
       Main Title           2
    Section Title          2
    But because the Main title and Section titles are all within one flowing text frame and the content flows across multiple pages, and each of the Page Titles are within 2 separate text frames, the actual TOC generated is:
    Page Title             1
       Main Title          1
    Section Title         1
       Main Title           2
    Section Title          2
    Page Title             2
    ...where the TOC lists all the TOC items from the flowing text frame in one grouping first, then the individual free standing text frame title.
    QUESTION: Is the only way to automatically rectify this is to combine all the text into one flowing text frame? or is there another workaround?
    Have played with the left/right, top/bottom alignment of the individual text frames; also experimented with the object layering, to no avail..
    Thanks for any insights.

    I ended up using a product called InFlow from EmSoftware.  The solution offers a plugin to InDesign that builds pages on the fly when there is overset text.  The setup is pretty minimual and it seems easy to use.  The only drawback that the plugin MAY have is that it does not remove the pages it built if the pages are not needed from record to record.  I could not test this myself since my test data did not test more then one record, but when I turned my proof set off, the pages that were built were still on screen.  It does seem to work well for what we are looking to do, so if anyone is looking for something that will build pages on the fly in situations where the "Dynamic Story Handling" is not available, I would suggest looking into this.

  • Adding Fields to New Hire SAP Script, Text ID PAMA

    Hi there,
    I have successfully created a sapscript email to be sent via Dynamic Actions for the notification of New Hires and Terminations.  This has been accomplished via feature M0001 (we have created two new features u2013 M00NH & M00TM), dynamic action (T588z), Business Workplace, distribution lists, etc.  All are working correctly, and an email is being generated and forwarded to appropriate parties.
    Now we have been asked to add extra fields to the SAP Script text for New Hire and Termination.  These are text fields for Employee Group, Employee Subgroup, among others.
    Our syntax has been set up as follows:
    &'Employee Group:             'P0001-PERSG(02)&
    &'Employee Group Text:        'T501T-PTEXT(20)&
    &'Employee Subgroup:          'P0001-PERSG(02)&
    &'Employee Subgroup Text:     'T503T-PTEXT(20)&
    For the New Hire action, we are getting the Employee group and Employee subgroup codes to display but we are NOT getting the Employee Group or Employee Subgroup texts to display.  To confuse the issue, we ARE getting these text fields to display for the Termination script.  Our ABAP'er is also having difficulty determining how to bring in these fields to the New Hire script.
    We have researched this website have tried the instructions given by one user..... which states that we needed to go to our SAPscript text and make the following changes:
    " To get other HR data into your standard text (from SO10):
    Insert > Symbols > Program symbols (now you'll see a list of print programs, and i guess this is where the ABAP grabs the data).
    Highlight the one for HR Master data, and click the DDIC button.
    Double click the table you need data from (e.g P0000, P0001 or P0002).
    Finally select the field you want."
    I have done this, but when I get to the Program symbols, I do not see a print program for HR Master Data.  I only see RPUCOB02 - Processing of Qualifying COBRA Events and Letters & SAPMSSCE - SAPscript Standard Text Maintenance. 
    I tried to use the RPUCOB02 and inserted the text for Employee Subgroup as a test.  But it did not work as the text still did not display.
    The other oddity is that for the Termination sapscript text, the Employee Group and Employee Subgroup text displays correctly.  To test our syntax, we then connect the Termination sapscript text to the 'New Hire' action and reran the New Hire action.  The Employee Group and Employee Subgroup text fields then disappeared.  So it worked when the action was a termination, but did not work when the action was New Hire.
    The difference between these two actions is that the feature for the sapscript generation for New Hires is being generated upon saving of I0002 (which is created AFTER I0001) - we needed the Employee's name in the text.  For the Termination action, the feature is set to generate the mail upon saving of I0001.  This is the only difference between the two.  But as I need the employee name to display, it seemed the best approach.  I did try to generate the New Hire sapscript after saving of I0008, but had the same problem. 
    Does anyone know how we can add text fields to our New Hire sapscript text and actually get them to display?  We would also like to display the Org Unit text (&'ORGEH_2nd_TEXT(40)&) or even  the Supervisor (from the OM relationship).  But they do not display for the New Hire sapscript either. And our ABAP'er is able to insert the Supervisor logic, but the field still does not display.
    Thanks very much for any help.
    Edited by: Cathryn Westgarth on Nov 17, 2009 6:23 PM
    Edited by: Cathryn Westgarth on Nov 17, 2009 6:24 PM

    I am going to repost this question to the HR forum as it may be more appropriately an HR forum questions.
    Thanks
    Cathryn

  • Setting Text over an Icon which is on a JLabel - Urgent

    Can someone help me. I need to set some text over an Image/Icon which is placed over a JLabel.

    You should simply change the iconTextGap value (according to the string width and the icon width if you want it centered) :
              JFrame frame = new JFrame("Centered label");
              JLabel label = new JLabel("centered label",new ImageIcon("im1.gif"),SwingConstants.LEFT);
              frame.getContentPane().add(label, BorderLayout.CENTER);
              frame.pack();
              frame.setVisible(true);
              int iconWidth = label.getIcon().getIconWidth();
              Font font = label.getFont();
              Graphics g = label.getGraphics();
              FontMetrics fm = g.getFontMetrics();
              int stringWidth = fm.stringWidth(label.getText());
              label.setIconTextGap(-stringWidth+((stringWidth-iconWidth)/2) );
    I have made the frame visible before setting the texticongap because you can't get the graphic context of a component if this component is invisible.
    Now the label is perfectly centered on the icon.
    I hope this helps,
    Denis

  • Purchase Order error - Money Over flow error

    Hi,
    Our customer wants to create Purchase order for item that has Lenght, Width, Height dimentions (not defined in item master used directly in PO).
    Width - 2500mm
    Length - 2500mm
    Height - 550mm
    the quantity in PO is to be in Kilogram (KG) as the rate is Rs per KG. So when we put quantity as 9890 KG there is error
    " Money Over flow, cannot display all digits"
    Looking in more details , we found that there is volume field at row level in PO which system calculates,
    volume = Length * width * height, (for 1 item) but when we add quantty system does
    volume = (Length * width * height) * Quantity, the resulting value is more then 20 characters, inluding the commas.
    We think this is reason for error,,,any one else faced similar situation and has solution for it.
    can we stop system from calulating Volume or the way it calculates volume?
    Please advice
    Thanks,
    - Abhijit.

    Thanks Gordon,
    Your reply helped me solve the problem, there is a VOlume unit field at row level on PO, changed the UoM there to "cm" instead of "mm" earlier/default. Now we can add the document.
    Thanks.
    - Abhijit.

Maybe you are looking for