GR Page headers empty for 1st page for Long Text greated than 26 lines

Gurus,
I have this wierd problem on my GR. I added the following code and corresponding fetches in the printprogram to include PO Item long texts in the GR.
/: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE E PARAGRAPH Z8 NEW-PARAGRAPH Z8 
When the text is upto 26 lines, everything seems fine. But when it is more than 26 lines and usually a new page needs to be created, all the dynamic texts like PO number, Buyer name, Plant name etc. in the header of the 1st page is blank. But all the details in the second page seem to apprear fine.
Any suggestions on where to or what to look for to solve this problem?
I'd appreciate any help with this problem.
Thanks
L

Yes...the way the current print program works is that the header and footer contains information like PO number dat, buyer, isuued by etc and these will print on each page that is created. These are populated prior to the area where write forms for Main are issued.
The main page contains the Item related information. I have added a code where the long text is also obtained before all the write forms. I then issue write form in the same subroutine where other Main-related write forms are coded.
L

Similar Messages

  • Ask split long text into two line into same cell for ALV

    Dear All,
    Is it possible split long text into two line into same cell for ALV display data?
    Regards,
    Luke
    Moderator message: please search for information before asking.
    Edited by: Thomas Zloch on Feb 24, 2011 10:12 AM

    Keep options: Select the paragraph, then CtrlAltK (Mac: CmdOptK, I
    think).
    If you want the paragraphs in pairs, create two paragraph styles. Style
    A has keep options set to start on a new page, and also, its Next Style
    is style B.
    Style B has no keep options, but it's Next Style is Style A.
    Select all the text.
    From the flyout menu of the paragraph styles palette, apply Style A
    "then next style."
    Now all paragraphs will be alternating -- style A, style B, style A, etc.
    Now do what I wrote initially, and you'll have pairs of paragraph in
    separate text frames.

  • In DeskI, what's the maximum for "Limit size of long text objects"? 2000?

    In Universe Designer, we have a setting which is "Limit size of long text objects", it can control how many characters can be displayed for long text objects.
    The problem is that in DeskI, we can only display 2000 characters even we set 2500 or more in Universe Designer by "Limit size of long text objects". But if we use the same Universe & same Database, WebI can show 2500 or more characters for long text objects.
    So does it mean in DeskI the maximum value for "Limit size of long text objects" is 2000?

    Hi Jason,
    Check that the object in the universe is set to data type "long text".
    Also check that the object itself is not limiting the length of the string, as well as that the entire string is actually in the database... the data type here could also be the issue.
    Hope this helps
    Jacques

  • Function Module for BOM for posting BOM component long text

    Is there any SAP provided Function Module for posting BOM components long
    text if so please let me know as it is very urgent for me.

    Hello Sridevi,
    The following customer exits are available for BOM, please check the excect one.
    http://help.sap.com/saphelp_46c/helpdata/en/4a/d286ba5a1111d3b47b006094b9d648/frameset.htm
    Hope this helps.
    Regards
    Arif Mansuri

  • Remove symbol # for long text in document line item

    Dear Experts,
    I enter some information in the long text field in document line item. For the area that I use "Tab" button, system will display as # symbol. Therefore when we print the information, the output will include the #### symbol which is not correct.
    Please help.
    Thanks.
    -Syaban-

    Dear Gaurav Aggarwal,
    Thanks for the reply, can you guide me the step to perform the suggested solutions? currently, we are using ECC6.
    Thanks.
    syaban

  • Crystal Report for Enterprise not displaying Long Text from BEx

    Hello,
    I am creating a report using SAP Crystal Report for Enterprise 4.0 (Version 14.0.2) and the source of data is BEx query via OLAP connection created using IDT. I am using SAP BusinessObjects BI platform 4.0.
    The Characteristic (which is hierarchy) in the Rows section of the BEx Query is set to display long text and as such, it displays long text when the query is executed in the BEx Analyzer. However, when it comes to Crystal Report, the short text is displayed in the report. Can I display long text in the Crystal Report? How?
    Thanks,
    KP

    Venkat,
    Thanks for your response. Please note, however, the transaction RAD1 does not exist. Let me provide more details about the current settings of the InfoObject.
    The Characteristic is 'Item' (0CS_ITEM) and upon going to RSA1 >  Modeling > InfoObjects > Item (0CS_ITEM) > Right Click > Display > Business Explorer (tab) > Text Type is set to 'Long Text' and BEx description is set to 'Long description' already.
    When I run/execute the query with this Item characteristic, the results in BEx Analyzer is showing appropriate long text, however, Crystal Report for Enterprise shows short text only
    K
    Edited by: Kumar Pathak on Feb 3, 2012 6:18 PM

  • Searching for orders by Description long text

    Team,
    I am able to search using IW38 and IW37N by Order description short text.  Is there a way for me to search the long text descriptions of PM orders?

    The embedded Search functionality used in SImplicity 2 and 3 is offering to search via Long text.
    With this you will find all the orders containing a certain longtext
    even via traditional Matchcode you will get this
    result
    so when you use embedded search this functionality is available and configurable
    The example shown is with order header longtext but this is possible as well with operation longtext
    Stephan

  • Fix for PENDING in javax.swing.text.html.ParagraphView line #131

    Investigating source of HTMLEditorKit I found many PENDING things. That's fix for one of them - proper minimal necessary span detecting in table cells.
    Hope it will help to somebody else.
    import javax.swing.*;
    import javax.swing.text.html.*;
    import javax.swing.text.html.ParagraphView;
    import javax.swing.text.*;
    import java.awt.*;
    import java.text.*;
    import java.util.ArrayList;
    public class App extends JFrame {
        public static String htmlString="<html>\n" +
                "<body>\n" +
                "<p>The following table is used to illustrate the PENDING in javax.swing.text.html.ParagraphView line #131 fix.</p>\n" +
                "<table cellspacing=\"0\" border=\"1\" width=\"50%\" cellpadding=\"3\">\n" +
                "<tr>\n" +
                "<td>\n" +
                "<p>111111111111111111111111111111111<b>bold</b>22222222222222222222222222222</p>\n" +
                "</td>\n" +
                "<td>\n" +
                "<p>-</p>\n" +
                "</td>\n" +
                "</tr>\n" +
                "</table>\n" +
                "<p></p>\n" +
                "</body>\n" +
                "</html>";
        JEditorPane editor=new JEditorPane();
        JEditorPane editor2=new JEditorPane();
        public static void main(String[] args) {
            App app = new App();
            app.setVisible(true);
        public App() {
            super("HTML span fix example");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JSplitPane split=new JSplitPane(JSplitPane.VERTICAL_SPLIT, createFixedPanel(), createOriginalPanel());
            getContentPane().add(split);
            setSize(700, 500);
            split.setDividerLocation(240);
            setLocationRelativeTo(null);
        JComponent createOriginalPanel() {
            JPanel p=new JPanel(new BorderLayout());
            p.add(new JLabel("Original HTMLEditorKit"), BorderLayout.NORTH);
            HTMLEditorKit kit=new HTMLEditorKit();
            editor2.setEditorKit(kit);
            editor2.setContentType("text/html");
            editor2.setText(htmlString);
            p.add(new JScrollPane(editor2), BorderLayout.CENTER);
            return p;
        JComponent createFixedPanel() {
            JPanel p=new JPanel(new BorderLayout());
            p.add(new JLabel("Fixed HTMLEditorKit"), BorderLayout.NORTH);
            HTMLEditorKit kit=new MyHTMLEditorKit();
            editor.setEditorKit(kit);
            editor.setContentType("text/html");
            editor.setText(htmlString);
            p.add(new JScrollPane(editor), BorderLayout.CENTER);
            return p;
    class MyHTMLEditorKit extends HTMLEditorKit {
        ViewFactory defaultFactory=new MyHTMLFactory();
        public ViewFactory getViewFactory() {
            return defaultFactory;
    class MyHTMLFactory extends HTMLEditorKit.HTMLFactory {
        public View create(Element elem) {
            View v=super.create(elem);
            if (v instanceof ParagraphView) {
                v=new MyParagraphView(elem);
            return v;
    class MyParagraphView extends ParagraphView {
        public MyParagraphView(Element elem) {
            super(elem);
        protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r) {
            r = super.calculateMinorAxisRequirements(axis, r);
            float min=getLongestWordSpan();
            r.minimum = Math.max(r.minimum, (int) min);
            return r;
        public float getLongestWordSpan() {
            if (getContainer()!=null && getContainer() instanceof JTextComponent) {
                try {
                    int offs=0;
                    JTextComponent c=(JTextComponent)getContainer();
                    Document doc=getDocument();
                    int start=getStartOffset();
                    int end=getEndOffset()-1; //don't need the last \n
                    String text=doc.getText(start, end - start);
                    if(text.length() > 1) {
                        BreakIterator words = BreakIterator.getWordInstance(c.getLocale());
                        words.setText(text);
                        ArrayList<Integer> wordBounds=new ArrayList<Integer>();
                        wordBounds.add(offs);
                        int count=1;
                        while (offs<text.length() && words.isBoundary(offs)) {
                            offs=words.next(count);
                            wordBounds.add(offs);
                        float max=0;
                        for (int i=1; i<wordBounds.size(); i++) {
                            int wStart=wordBounds.get(i-1)+start;
                            int wEnd=wordBounds.get(i)+start;
                            float span=getLayoutSpan(wStart,wEnd);
                            if (span>max) {
                                max=span;
                        return max;
                } catch (BadLocationException e) {
                    e.printStackTrace();
            return 0;
        public float getLayoutSpan(int startOffset, int endOffset) {
            float res=0;
            try {
                Rectangle r=new Rectangle(Short.MAX_VALUE, Short.MAX_VALUE);
                int startIndex= layoutPool.getViewIndex(startOffset,Position.Bias.Forward);
                int endIndex= layoutPool.getViewIndex(endOffset,Position.Bias.Forward);
                View startView=layoutPool.getView(startIndex);
                View endView=layoutPool.getView(endIndex);
                int x1=startView.modelToView(startOffset,r,Position.Bias.Forward).getBounds().x;
                int x2=endView.modelToView(endOffset,r,Position.Bias.Forward).getBounds().x;
                res=startView.getPreferredSpan(View.X_AXIS)-x1;
                for (int i=startIndex+1; i<endIndex; i++) {
                    res+=layoutPool.getView(i).getPreferredSpan(View.X_AXIS);
                res+=x2;
            } catch (BadLocationException e) {
                e.printStackTrace();
            return res;
    }Regards,
    Stas

    I'm changing the foreground color with
    MutableAttributeSet attr = new SimpleAttributeSet();
    StyleConstants.setForeground(attr, newColor);
    int start=MyJTextPane..getSelectionStart();
    int end=MyJTextPane.getSelectionEnd();
    if (start != end) {
    htmlDoc.setCharacterAttributes(start, end, attr, false);
    else {
    MutableAttributeSet inputAttributes =htmlEditorKit.getInputAttributes();
    inputAttributes.addAttributes(attr);   

  • Master Page shows up as 1st Page in PDF

    Hi I've created a multi-page form and am using a Master Page for a header & footer. When I preview the PDF, the Master Page is showing up as the first page.
    Any idea of what is going wrong here? Any suggestions appreciated.
    S

    Without seeing the form it's very difficult to say exactly what could be wrong.  It could be that content is larger than the content area defined on the masterpage.  Is it a static or dynamic form? 

  • Change in copy page make change in 1st page as well at smartform

    Hi everybody,
                       I have come across a strange problem. When I am copying a page1 in smartform and paste it,. what ever change I made in the new page  the same change occur in the previously existing page. Is there any solution of this problem.
    Regards,
    Zahid Hameed.
    Edited by: ZAHID HAMEED on Jul 14, 2010 12:52 PM
    Edited by: ZAHID HAMEED on Jul 14, 2010 12:54 PM
    Edited by: ZAHID HAMEED on Jul 14, 2010 12:54 PM
    Edited by: ZAHID HAMEED on Jul 14, 2010 1:05 PM

    HI EVERYBODY,
                         I have got the solution for it. What you have to do is just create a new page and then create the new window and then past all the required text ,templates and tables in the window which u want to change. You have to look at the your new windows template no and the text in it whether their no has changed if their no's changed. Then the change u made will not effect your first page.
    Regards ,
    Zahid Hameed.

  • How to Show total value in the header 2nd page but based on 1st page footer

    How to show total value in header in report builder but i have the total have related with the total in footer.
    Example
    ===============================================
    Page 1
    Empno Ename Sal
    1 Scott 1000
    2 ALlen 2000
    3 Susi 1000
    Total Sal Page 1: 4000
    ===============================================
    Page 2
    Total Sal Page 1: 4000 --> How to get it?????
    Empno Ename Sal
    4 Budi 1000
    5 Roger 200
    6 George 2000
    Total Sal Page 2: 3200
    Please Help..
    Thanks

    hmm .. what i would do is
    - create a placeholder column
    - create a field in the header and one in the footer
    - have the footer field reference the summary column
    - have the header field reference the placeholder column
    - create a fromat trigger on the footer field to
    store the value of the footer into the placeholder column
    so when the report is executed and the footer field is formatted, the format trigger stores the current value of the summary in the placeholder. then the pagebreak occures and the header field is formatted .. printing the value.
    there might actually be an easier way, just reference the two fields to the same summary column and in theory, since there is nothing happening between the time when the footer is formatted and the header is formatted, the values should be the same .. however this is a theory and i have not actually tested this. since reports does all kinds of fancy optimization this might have unexpected results, but it's worth a try.
    thanks,
    ph.

  • BDC for Local FIle as Long Text

    Dear All,
    Developing a BDC which upload Individual Files as Text for Infotype 1002 Description so please anybody tell me how to add Local File.
    I have done the Recording but in that how to add Text which is taken from Local Text File.
    Thanks in advance.
    Regards
    Mangesh

    HI Mangesa,
    Use FM  GUI_UPLOAD.
    This is use to upload data from text file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = fname
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = '#'
      tables
        data_tab                      = i_tab
    Regards,
    Tutun

  • Userexit for not allowing release order qnty greater than contr targt qnty

    hi,
    I posted the same mail before, but it seems we cannot do it in configuration..plz provide me a suitable User exit for the same..
    When i am creating a release order for a quantity contract, the system is allowing to save the doc if at all the quantity is more than in the contract, i.e. if the user changes the quantity in release order more than the contract quantity, the system is issuing a warning message and allowing to save.(mess no V1 501)
    I want to change this warning to an error message..
    I checked in OVAH but only V4 messages are available there..
    In SE91 i am able to see the message but there is no way for any change..
    Thanks,
    Sam

    hi Sadhu Kishore,
    In VTAA..from qnty contract to sales order in item level document flow is updated...the following is assigned there
    Create doc. flow records except for dely/goods issue/billdoc
    I searched some previous threads of the same characteristics, so everybody is telling the solution will be a user exit...
    plz help reg thiss
    Thanks,
    Sam

  • Formatting external drive for read/write PC/Mac & files greater than 4GB

    I'm on Snow Leopard and deliver an external drive off-site to a video editor who needs to read/write to the drive and return the edited files and then I need to read/write all over again. All video files are greater than 4GB. How would I go about this? Third party applications like MacDrive create too much overhead when processing video files. FAT32 limits file sizes to 4GB.

    Hi WillDuffy;
    Your requirement of files greater than 4GB eliminates FAT.
    In your case since you don't have access to the PC, I am afraid you are forced to use the NTFS. This will require you to use the reverse engineered effort called NTFS-3G to be able to write to the disk from your Mac. Sorry.
    Allan
    Message was edited by: Allan Eckert

  • Suppressing Page Headers

    Post Author: Stingray
    CA Forum: General
    Hi,I'm working on my first report using Crystal Reports XI R2.I've grouped my report by task.  For each task I have included details of the various task issues.  The group heading appears on its own page together with a graphical representation of the data that follows.  The report header is also on its own page together with a graphical spread of the data for all tasks.  I have page headers that are intended to line up with the columns of data in the details section.All works well except I can't figure out how to suppress the page headers on the group header pages.  I've managed to suppress them on the report header page by including 'PageNumber = 1' in the header suppression formula.I've hit a brick wall and would be grateful for any guidance in overcoming this problem.Many thanksStingray

    Post Author: Stingray
    CA Forum: General
    Many thanks for the advice but I'm still not quite there.  The report now supresses page headers on all group pages (except first) but also suppresses them on the first details page following each group page.  I'm learning lots as I search through the help pages but not how to resolve this remaining problem. 
    Stingray

Maybe you are looking for

  • Getting error while starting the Weblogic server.

    Please find the error while i m trying to boot the weblogic: Dec 9, 2009 12:55:15 PM CST> <Notice> <Stdout> <000000> <Jolt Session Pool cannot provide a connection to the appsever. Thi s appears to be because there is no available application server

  • Win7 install looking for CD ROM driver (after loading from CD) cannot find it so fails to install.

    Product: HP-IQ-775 OS? Gone!- Was WIndows Vista HP-SP2, but System Recovery wiped it out! Error Msg: Current message that is stopping the installation of Windows 7 is "Missing CD/DVD ROM Driver- Please insert disk, or browse to location of driver" Br

  • Strobing effect within photos on FCP

    Does anyone know how to eliminate the annoying "strobing" effect I get when I "zoom" into a photo or "pan" around in a still image on FCP? Or better yet, when I create my own "Ken Burns" effect on a still image, I sometimes get a strobing or weird sh

  • 6680 & Pcsuite

    Hi All I have an issue with my 6680 and pc pcsuite. I have the latest firmware on my phone that is available on Nokia's site. I am running pc suite v6.84.10.3. I have tried reinstalling both pcsuite on the PC, and pcsuite support on the phone, with r

  • Struts & Java Mail ....

    My application follows Struts framework. The requirement is now to incorporate e- mailing features in the existing applition. My Question is can I use Java Mail API to incorporate this functionality or there are any better technology available which