Sapscript fixed space in row

Hi, experts
In sapscript I need to show a fixed material data, right now I'm using these lines
     PERFORM LONGITUD IN PROGRAM ZMMR03
     USING &MABDR-MAKTX&
     CHANGING &STRLENX&
     IF &STRLENX& < 40
     &MSEG-MATNR&,,&MABDR-MAKTX&,,,,t<&MSEG-MENGE(C.0)&,,&MSEG-MEINS&
     ELSEIF &STRLENX& >= 40
     &MSEG-MATNR&,,&MABDR-MAKTX&,,,,t>&MSEG-MENGE(C.0)&,,&MSEG-MEINS&
     ENDIF
     ENDPROTECT
and the output is when is a short text:
<i>Material:
      10000000000220 SHORT TEXT                3 UN</i>
but if the text is longer:
<i>Material:
      10000000000220 LONG TEXT SHOWED                  3 UN</i>
I need a fixed space between variables ... how can I do this? for example:
10000000000220
SHORT TEXT
3
UN
10000000000220
LONG TEXT SHOWED
3
UN
I need a big helpfull, the go-live was two days ago, thanks in advance.
Regards,
mmg

Hi,
GO to the paragraph format..that you gave for displaying..
In the paragraph format press the tabs button..
There you can see the tab position for the 1st column, 2nd column...
For the material text column give the tab position accordingly...
Hope this works..
Thanks,
Naren

Similar Messages

  • Create spreadsheet file with a fixed number of rows

    What is the most straight forward way to create a series of spreadsheet files each with a new file name and fixed number of rows.  We have a data acquisition process that creates a new 1D array every 2 seconds.  We'd like to build a series of spreadsheet files each having two hours or 3600 rows of data.  Is there a best way to do this in LV9?
    john

    Use the low-level FileI/O Vis with Write to Text File.vi where you open a new file with every N iteration like this:
    You just have to convert your 1D Array to string before.
    If you would like to have a new file every N hours you should create a FGV which checks the elapsed time using Get Date/Time in Seconds.vi, which is more appropriate for longtime applications.
    Christian

  • How to show  a fixed number of rows in JTable

    Hi,
    I have to show only a fixed number of rows in the table .
    After scrolling number of rows must not be changed.

    I don't understand the question.
    The number of visible rows is dependent on the size of the scroll pane.
    Scrolling does not change the number of rows that are visible.

  • How to display a fixed number of rows in a page when using CL_GUI_ALV_GRID

    Hy experts
    How to display a fixed number of rows in a page when using CL_GUI_ALV_GRID?? lets say 500 ?? because my display table it may contain in some cases 10.000 and evidently I can t see all of them..
    I have a button in my toolbar witch triggers this event
    (display 500 records ) but I don t have the logic to do this only with methods of CL_GUI_ALV_GRID.
    can you tell me a standard method of CL_GUI_ALV_GRID witch can help me do this?? any hint will be good..
    Till now I was used to add a column to my structure witch represents a flag that is a number corresponding to every 500 records (a batch containing 500 records )
    first       500 - flag -> 1
    second  500 - flag -> 2
    etc..but I m convinced that exists a way of doing this more easy..without damaging my structure..
    thanx in advance..don t be shy..reply if you have any hints..

    Hi,
    if method SET_FILTER_CRITERIA doesn´t help, I think that you must work with 2 internal tables, a counter and a loop for filtering the records to be displayed:
    case counter.
      when 1.
         loop at int_table1 from 1 to 500.      "<-- your table with all records
           move int_table1 to int_table2
        endloop.
      when 2.
         loop at int_table1 from 501 to 1000.     
           move int_table1 to int_table2
        endloop.
    etc, etc.
    Call grid-->SET_TABLE_FOR_FIRST_DISPLAY
       exporting
         IT_OUTTAB = int_table2                "<-- instead of your currently table int_table1

  • Fixed number of rows in ADF table

    Can we specify fixed number of rows for ADF table so even no rows displayed it will still show 10 empty rows.

    the rangesize property determines how many rows will be displayed and controls paging. If there are no rows to begin with (if I understand the question correctly) rangesize won't have any effect.

  • Fixed number of rows

    hi,
    all.
    i wnt to dispaly only fixed no of row in output but there  mayee to more record in internal table .how can i do that
    suppose i want to dispaly only 10 record in output but there maye be more that 10 record in inetrnal table,we will
    not fixe in selection query,how we will do that.

    Hi,
    Use a counter and move the fixed number of records to another internal table and display it.
    loop at itab.
    count = count + 1.
    move-corresponding itab to itab1.
    append itab1.
    if count > 10.
    exit.
    endif.
    endloop.
    Now use itab1 to display the output.
    Regards,
    Vikranth

  • Added fixed spaces in output columns

    Hello experts,
    how to add fixed spaces in between columns?
    i am using concatenated statement.
    concatenate... into line separated by... (here i want 8 spaces).
    I am uploading data on application server.
    how to add fixed spaces??
    Thanks in advance.
    Saurabh

    >
    saurabh kulkarni wrote:
    > Hello experts,
    >
    > how to add fixed spaces in between columns?
    > i am using concatenated statement.
    > concatenate... into line separated by... (here i want 8 spaces).
    >
    > I am uploading data on application server.
    >
    > how to add fixed spaces??
    >
    > Thanks in advance.
    >
    > Saurabh
    If you give 8 space characters it would not work. Try '########' or any other character and then use replace statement to replace '#' with ' '. It will work.
    Regards,
    Prashant.

  • Fixed space with frame

    My query is related to frames. Can it be taken as a thumb rule that whenever we put a frame with its vertical and horizontal elasticity as fixed which is the default, it will take that much of fixed space in the report. Please help me in this as it is very urgent.

    Yes. If you have a fixed size frame it will take up that much space in the output.
    However, if you have objects within the frame then the fixed size frame will repeat across multiple pages until the content within the frame completes formatting.

  • How to Fix the 1st row in Table

    How to Fix the 1st row in Table
                 In EP, one of the page we are getting out put in the table format. It's working fine, but as per the new requirement we have to fix (freeze) the first row of the table. (.i.e. whenever I click the page down button first row should be visible in the table). Can you help regarding the above issue?
    For Example: in Table having 6 rows. In 1st row display Year Month and 2,3,4---etc Rows will display Quantity. Click on Page down Button in Table we are able to staring 2row. First was a movie up. So End user canu2019t find which year/moth under the Quantity is available.
    So I have to fix in 1st row. Click on page down button table 1st row is fixed but comes to another Quantity Records.
    It is Possible in Table?  If possible please tell me.
    Regards
    Vijay Kalluri

    Hi KalluriVijay 
    I don't think there is direct availabe method available to fix the row. However, there are two ways using which you can achieve the requirement:
    To go ahead with the custom table. This way you can set your own properties for the table. However, this may impact performance handling large data.
    Second option is to use other features of NW04s (Not available in NW04) like Table Popins using which you can achieve something similar.
    For Table Popins refer [TablePopin|http://help.sap.com/saphelp_nw70/helpdata/EN/23/5e9041d3c72e7be10000000a1550b0/frameset.htm]
    Hope this helps.
    Regards
    Abhinav Sharma

  • Spacing with fixed space fonts

    Using RoboHelp for Word 6, Build 099 for a large Help
    project. We are converting from WinHelp to HTML Help. One topic
    consists of a large block of text (lots of columns in a fixed space
    font - Courier New) with popups annotating the text.
    With WinHelp the vertical allignment is fine. When the HTML
    Help is compiled, multiple spaces appear to be compressed to a
    single space making the output unreadable.
    For example we get :
    |===============================================|
    | |
    | Developed by |
    | |
    | XP Software |
    | |
    |===============================================|
    | XP Software November, 2004 |
    | Data File Version ---> 11.7 |
    | Serial Number: 42-xxx-0000 |
    | XP Software (Evaluation) |
    *===============================================*
    Multiple spaces are need to make the right end of the boxes
    line up. Columns with numbers are worse.
    Is there any way to compile forcing the multiple spaces to
    remain?

    TEB008 -
    In Word, highlight the topic, and do a Word search-n-replace
    of spaces with no-break spaces. You'll see those options in the
    s-n-r box when you click the MORE button.

  • How do you adjust space between rows?

    Hi guys. How do you adjust the space between rows. My table have no boarder between rows and no matter how I adjust the row height and cell margin. The generated report will still have the same amount of space between rows. Please help, thanks!

    I had the same problem - I was trying to insert a row solely for spacing purposes, and tried adjusting the size using table properties->row->and setting the row hieght is to "exactly". This didn't work for me. The row still rendered larger than I set the row size. So I tried I changing the font size of the row just using the toolbar, and when I did that and ran the report, the row actually rendered the size I wanted.

  • Shrink the space between rows in a report

    hi all,
    As the subject says, I am trying to shrink the space between rows in a report so that there is no space between rows when i print it. Does anyone know how to do this? Do I need to make a custom report template for it?

    The space between rows in a report in Apex is frequently determined by the cellpadding and cellspacing attributes of the TABLE tag that makes up the innermost report area, but there also other factors that may affect the resulting area, so one has to look at the specific case and see what is determining the final result, bearing in mind that it's quite possible that two browsers will display the same thing differently.
    At any rate, spacing is normally controlled by fine-tuning margin and padding properties in CSS.
    As CSS stylesheets, as per their name, are applicable in cascade, you can add your own CSS stylesheet in the page header (after the built-in ones).
    If you are using Firefox (with Firebug add-on installed) or Chrome or Safari, you can easily experiment with these properties and see the effects by temporarily setting or unsetting certain values and when you are satisfied, you can copy the resulting definitions into your stylesheet.
    The fact you want to make some adjustments only when printing can be solved by means of the @media rule inside the stylesheet or by linking different stylesheets depending on the value of the media attribute in the LINK tag or by dynamically pointing to different stylesheets depending on whether Apex is rendering the page in printer-friendly mode or not.
    Flavio
    http://oraclequirks.blogspot.com

  • Automated fixed spaces in certain positions (Czech)

    In Czech (and it might be similar in other lanugages too) it is not possible to end a line with a single-letter words (such as preposition: v, k, o etc.). Writing programmes (such as MS Word) usually solve this by automatically entering a fixed space after these single-letter words when writing in Czech. I was wondering whether there is a setting in Pages that allows you to make this automatic too?

    In Czech (and it might be similar in other lanugages too) it is not possible to end a line with a single-letter words (such as preposition: v, k, o etc.). Writing programmes (such as MS Word) usually solve this by automatically entering a fixed space after these single-letter words when writing in Czech.
    Could you explain/enlarge, please?
    If one inputs a single letter word, first, one presses the space bar which will input U+0020 SPACE before; second, one inputs the one character word; and, third, one presses the space bar which will input U+0020 SPACE.
    If there is more than one character U+0020 SPACE after a single letter word, or if e.g. U+200A HAIR SPACE, U+2009 THIN SPACE, U+2008 PUNCTUATION SPACE, U+2007 FIGURE SPACE, U+SIX-PER-EM SPACE or other space characters, then there is a problem.
    Other than a single word space at the orthographic level, spacing should be handled at the typographic level. If an authoring application achieves spacing by modifying character information instead of by modifying imageable composition, then it is a bug, no?
    /hh

  • Trouble with space between rows

    My problem is basically this: space keeps appearing between rows in my table when I preview my page in a browser. The design view of Dreamweaver displays it without the space (like I want it), but when I take a look in either Firefox or Internet Explorer, this undesirable space shows up.
    I have spent hours scouring the internet looking for the solution to my problem, and none of them seem to do the trick. I have cellpadding="0" cellspacing="0" inside the table tag, which prooved to be the answer for others when they had this same problem, but it still hasn't fixed my problem. My CSS also specifies no margin on the top or bottom of the ul and the li.
    Anyway, if you could take a peek and give me some pointers, I would really appreciate it.
    Thanks.
    Here's the html:
    Home
    About
    Work
    Blog
    Shop
    Contact
    Welcome to the all new amoterocreative.com    News Title    Insert pithy comments, images, and other novelties here.
    Twitter feed here
    Let's Talk.     
    Phone: 417.622.7432
    Email: address (at) website.com
    Contact Form: Click Here
    Let's network.</ h5>
    Facebook
    Twitter
    LinkedIn
    And the CSS:
    <style type="text/css">
    /*NAVIGATION*/
    ul
    list-style-type:none;
    line-height: 1;
    margin-top:0;
    margin-bottom:0;
    /* li */.navli
    display:inline;
    margin-top:0;
    margin-bottom:0;
    /* h1 */.nav
    font-family:Helvetica, sans-serif;
    background-color:#006738;
    text-align:center;
    .nav:link {color:#ffffff;text-decoration:none;} /* unvisited link */   
    .nav:visited {color:#ffffff;text-decoration:none;} /* visited link */
    a:hover {background-color:#4D9574;} /* mouse over link */
    .nav:active {color:#4D9574;} /* selected link */
    /* Body Text*/
    h2
    font-family:Helvetica, sans-serif;
    font-size:1.875em;
    text-indent;0px;
    color:#000000;
    }/* 30px/16=1.875em */
    h3
    font-family:Helvetica, sans-serif;
    font-size:24px;
    text-indent;0px;
    color:#000000;
    }/* 30px/16=1.875em */
    /* p */.bodytxt
    font-family:"Trebuchet MS", sans-serif;
    font-size:14px;
    text-indent:20px;
    color:#7E7E7E;
    /* Sidebar */.side
    background-color:#006738;
    font-family:"Trebuchet MS", sans-serif;
    font-size:14px;
    text-indent:20px;
    color:#ffffff;
    .ftnav:link {color:ffffff;text-decoration:none;} /*unvisited link*/
    .ftnav:visited {color:ffffff;text-decoration:none;} /*visited link*/
    /* Body Background */
    .bdy
    background-color:#d1d1d1;
    /* footer */.foot
    background-color:#4C4C4C;
    font-family:"Trebuchet MS", sans-serif;
    font-size:14px;
    text-indent:20px;
    color:#ffffff;
    </style>

    let me post that html again
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <!-- Meta Tags -->   
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="A. M. Otero Creative, Anthony Otero's very own freelance business. Specializing in graphic design, photography, and illustration."/>
        <meta name="keywords" content="Anthony Otero, Anthony Michael Otero, A. M. Otero, AMOtero, amotero, Tony Otero, Creative, Design, Designer, Photography, Photographer, Illustration, Illustrator, Joplin Missouri, Joplin, Carthage, Springfield, Missouri" />
        <meta name="author" content="Anthony Otero of amoterocreative.com" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- Title -->
    <title>A. M. Otero Creative | Home</title>
    <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="../CSS/amoterocreative.css">
    </head>
    <body class="bdy">
    <table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr><td colspan="4"><img src="../images/head.jpg"/></td></tr>
    <!-- Navigation -->
    <tr><td colspan="4"><div><ul class="nav"><h1 class="nav">
          <li class="navli"><a class="nav" href="home.html">Home</a></li>   
          <li class="navli"><a class="nav" href="about.html">About</a></li>   
          <li class="navli"><a class="nav" href="work.html">Work</a></li>   
          <li class="navli"><a class="nav" href="blog.html">Blog</a></li>   
          <li class="navli"><a class="nav" href="shop.html">Shop</a></li>   
          <li class="navli"><a class="nav" href="contact.html">Contact</a></li></h1></ul></div></td></tr>
    <tr><td colspan="4"><img src="../images/page_photos/lightning.jpg"/></td></tr>
      <!-- Main Content -->
      <tr><td ></td><td colspan="2" valign="top"><p class="bodytxt">Welcome to the all new amoterocreative.com</p>
        <h2>News Title</h2>
        <p class="bodytxt">Insert pithy comments, images, and other novelties here.</p>
    </td>
      <!-- Sidebar -->
      <td valign="top" class="side"><p>Twitter feed here</p></td>
      </tr>
      <!-- Footer -->
      <tr>
        <td class="foot" width="23"></td>
        <td width="277" valign="top" class="foot"><h5>Let's Talk.</h5>
          <ul>
            <li>Phone:</li>
            <li>Email: address (at) website.com</li>
            <li>Contact Form: <a class="ftnav" href="contact.html">Click Here</a></li>
          </ul>
        <p></p></td>
        <h5><td class="foot" width="234"><h5>Let's network.</h5>
          <ul>
            <li>Facebook</li>
            <li>Twitter</li>
            <li>LinkedIn</li>
          </ul></td>
    <td width="266" class="foot"></td></tr></table>
    </body>
    </html>

  • Table has 85 GB data space, zero rows

    This table has only one column. I ran a transaction that inserted more than a billion rows into this table but then rolled it back before completion.
    This table currently has zero rows but a select statement takes about two minutes to complete, and waits on I/O.
    The interesting thing here is that previous explanations to this were ghost records in case of deletes,
    there are none. m_ghostRecCnt is zeroed for all data pages.
    This is obviously not a situation in which the pages were placed in a deferred-drop queue either, or else the page count would be decreasing over time, and it is not.
    This is the output of DBCC PAGE for one of the pages:
    PAGE: (3:88910)
    BUFFER:
    BUF @0x0000000A713AD740
    bpage = 0x0000000601542000          bhash = 0x0000000000000000          bpageno = (3:88910)
    bdbid = 35                          breferences = 0                    
    bcputicks = 0
    bsampleCount = 0                    bUse1 = 61857                      
    bstat = 0x9
    blog = 0x15ab215a                   bnext = 0x0000000000000000          
    PAGE HEADER:
    Page @0x0000000601542000
    m_pageId = (3:88910)                m_headerVersion = 1                 m_type = 1
    m_typeFlagBits = 0x0                m_level = 0                        
    m_flagBits = 0x8208
    m_objId (AllocUnitId.idObj) = 99    m_indexId (AllocUnitId.idInd) = 256
    Metadata: AllocUnitId = 72057594044416000                                
    Metadata: PartitionId = 72057594039697408                                Metadata: IndexId = 0
    Metadata: ObjectId = 645577338      m_prevPage = (0:0)                  m_nextPage = (0:0)
    pminlen = 4                         m_slotCnt = 0                      
    m_freeCnt = 8096
    m_freeData = 7981                   m_reservedCnt = 0                   m_lsn
    = (1010:2418271:29)
    m_xactReserved = 0                  m_xdesId = (0:0)                    m_ghostRecCnt
    = 0
    m_tornBits = -249660773             DB Frag ID = 1                      
    Allocation Status
    GAM (3:2) = ALLOCATED               SGAM (3:3) = NOT ALLOCATED          
    PFS (3:80880) = 0x40 ALLOCATED   0_PCT_FULL                              DIFF (3:6) = CHANGED
    ML (3:7) = NOT MIN_LOGGED           
    DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    Querying the allocation units system catalog shows that all pages are counted as "used".
    I saw some articles, such as the ones listed bellow, which addresses similar situations where pages arent deleted in a HEAP after a delete operation. It turns out pages are only deleted in a table when a table level lock is issued.
    http://blog.idera.com/sql-server/howbigisanemptytableinsqlserver/
    http://www.sqlservercentral.com/Forums/Topic1182140-392-1.aspx
    https://support.microsoft.com/kb/913399/en-us
    To rule this out, I inserted another 100k rows which caused no change on page counts, and then deleted all entries with a TABLOCK query hint. Only one page was deleted.
    So, it appears we have a problem with pages that were created during a transaction that was rolled back, huh? I guess rolling back a transaction doesn't take certain physical factors into consideration.
    I've looked everywhere but couldn't find a satisfactory answer to this. Does anybody have any ideas?
    Just because there are clouds in the sky it doesn't mean it isn't blue. Some people would disagree.

    And this is the reason why you should have heaps (unless your name is Thomas Kejser :-).
    Try TRUNCATE TABLE. Or ALTER TABLE tbl REBUILD.
    Erland Sommarskog, SQL Server MVP, [email protected]
    I rebuilt the HEAP a while ago, and then all pages were gone. I don't know if TRUNCATE would have the same results, I would have to repeat the test to find that out. There are many ways to fix the problem itself, including creating a clustered index as Satish
    suggested.
    Id like to focus on this interesting fact I wanted to bring to the table for discussion: You open a transaction, insert a huge load of records and then roll back. Why would the engine leave the pages created during the transaction behind? More specifically,
    why would they not be marked as "free pages" if they are all empty? Why are they not marked as free so scans would skip them and not generate a lot of I/O throughput and long response times just to query a zero row table? Isn't this like a design
    flaw or a bug?
    Just because there are clouds in the sky it doesn't mean it isn't blue. But someone will come and argue that in addition to clouds, birds, airplanes, pollution, sunsets, daltonism and nuclear bombs, all adding different colours to the sky, this
    is an undocumented behavior and should not be relied upon.

Maybe you are looking for

  • What works in 2008R2 is not working in 2012 SP1

    Setup: Visual studio 2010 and 2012. Database: both 2008R2 and 2012 SP1 Issue: I have a CLR routine that does bulk update. I have trigger on the tables that are being updated. Using the same code and the same data, This bulk update query works in 2008

  • Can you record slide timing but NOT voice over

    I need to time my presentation but when I record, I'm also getting megs of audio (even though there's no narration required.) Can I time my presentation without recording an audio track?

  • Sub:ck11n not picking the routing automatically

    Hi Guru,             Create cost estimation (ck11n) ,not picking the routing data automatically

  • Entry Screen

    Hi All I want to design a screen to fill some fields of a customize table and check the data is it there or not? also i want to display the content of the table in the same screen moreover, i need to connect this screen with a customize transaction i

  • Physical processor to Logical Processor ratio

    Hi Experts ! I came across this old blog post on Physical processor to Logical processor calculation. http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/08/13/using-powershell-to-find-the-virtual-processor-to-logical-processor-ratio-of-hyper-v.aspx