Reg: Adding spaces between texts in ALV list header

Hi All,
I was implementing a client requirement for ALV. The list header should contain something of this format.
Pgm Id:               ZZZ01
After this list header it is ALV display.
I did this using the concatenate statement.
ex: Concatenate 'PgmID' sy-repid into listheader seperated by space.
But this is not showing spaces between text in ALV display. See I want a tabspace between the texts in headr. Any idea on how to mak it?
Rakesh

Depending on Fontsize the space might be so narrow that you believe its not there.
check in the debugger if there is really a space in the string, the clause "separated by space" will insert one for sure.
May be you'reshowing the ALV before you are modifying the listheader?
Another approach is using strings, blanks at the end of a string are not deleted
concatenate 'ABC ' 'XYZ' into s.
and
concatenate `ABC ` `XYZ` into s.
will give different results, be aware of the difference in the quots in both cases. Using the second example you can insert as many blanks as you want.

Similar Messages

  • Adding space between a buttons in a navigation list

    Hello,
    I am currently using apex 3.2.1 with a 10g backend. All of my forms are using a button list navigation. On one of my forms, I want to add more space between two buttons. Is this possible?
    Thanks,
    Mary

    That doesn't work for a button list navigation. It just makes the button bigger. I need space between two of the list entries in the navigation.
    Thanks,
    Mary

  • How to maintain Space between text in Smart form

    Hi Experts,
    How to maintain space between text in smat form.
    For example
    I need to maintain like this
    Prepared By:                       Passed By:                  Approved By:       
        but after save it come like this 
    Prepared By:   Passed By:  Approved By:      
    How to maintain spaces between texts?
    Regards,
    Sreedhar.

    hi,
    we can give space in the smartform in the same way as in the scripts with two commas one space can be given.
    when u click on the text in the window ,
    there in the general attributes at the left hand side u can find a small icon for editor in that u can define the spaces with the variable to be printed in &var&.

  • Firefox has too much space between text

    Something changed in my Firefox display. It is now showing a large amount of space between text. Also, the fields for data entry have increased their size. Text size is okay. Thank you for your help.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can set the <b>layout.css.devPixelsPerPx</b> pref on the <b>about:config</b> page to 1.0
    You can adjust layout.css.devPixelsPerPx starting from 1.0 in 0.1 or 0.05 steps (1.1 or 0.9) to make icons show correctly.
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config
    Use an extension to adjust the text size in the user interface and the page zoom in the browser window.
    You can look at this extension to adjust the font size for the user interface.
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/
    You can look at the Default FullZoom Level or NoScript extension if web pages need to be adjusted after changing layout.css.devPixelsPerPx.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • Writing selections in  alv list header

    Hi,
    in alv list header i have to show the values entered in selection screen.
    ex.
    Current year    : 2008
    current period  : 03
    report ID          : R_123
    company code : I BT  AA to BB
                            I BT  CC to DD
                            I EQ  FF
    in the above example first three are parameters and  company code is select-option, for parameters i can display what i want, but for company code( which is select option) it is showing only first line and not showing other lines.
    at the time of filling list header table for select-option, i am looping the select-option, first i am filling with  typ, key and info and for other i am filling only info, if i fill typ, key also for other recoreds also it is showing the  company code in all lines  as below ....
    company code  : I BT  AA to BB
    company code : I BT  CC to DD
    company code : I EQ  FF
    can any one suggest to get the list header as shown at the begining....
    thanks,
    bhushan

    Hi,
    Check this sample code. Here plant and date are selection screen paramters.
    Plant
      lwa_header-typ  = 'S'.
      lwa_header-key  = text-t47.
    If the select option for plant is 'EQ'
      LOOP AT s_werks.                                       "#EC *
        IF s_werks-option = 'EQ'.
          lwa_plant-werks = s_werks-low.
          APPEND lwa_plant TO lt_plant.
          CLEAR lwa_plant.
    If the select option for plant is 'BT'
        ELSEIF s_werks-option = 'BT'.
          CONCATENATE s_werks-low
                      text-t50
                      s_werks-high
            INTO lf_plant.
          lwa_header-info = lf_plant.
          APPEND lwa_header TO gt_header.
          CLEAR lwa_header.
        ENDIF.
      ENDLOOP.
      IF s_werks-option = 'EQ'.
        READ TABLE lt_plant INTO lwa_plant INDEX 1.
        lwa_header-info = lwa_plant-werks.
        APPEND lwa_header TO gt_header.
        CLEAR lwa_header.
        LOOP AT lt_plant INTO lwa_plant FROM 2.
          lwa_header-typ   = 'S'.
          lwa_header-key   = ''.
          lwa_header-info  =  lwa_plant-werks.
          APPEND lwa_header TO gt_header.
          CLEAR: lwa_header.
        ENDLOOP.
      ENDIF.
    Post date Range
      lwa_header-typ   = 'S'.
      lwa_header-key   = text-t33.
    If the select option for post date is 'EQ'
      LOOP AT s_budat.                                      "#EC *
        IF s_budat-option = 'EQ'.
          CONCATENATE s_budat-low+6(2) '.'
                      s_budat-low+4(2) '.'
                      s_budat-low(4) INTO lf_range.
        For multiple values
          IF lf_date_tmp IS INITIAL.
            lwa_date-date = lf_range.
            APPEND lwa_date TO lt_date.
          ELSE.
            lwa_date-date = lf_range.
            APPEND lwa_date TO lt_date.
          ENDIF.
      If the select option for post date is 'BT'
        ELSEIF s_budat-option = 'BT'.
          CONCATENATE s_budat-low+6(2) '.'
                      s_budat-low+4(2) '.'
                      s_budat-low(4) text-t49
                      s_budat-high+6(2) '.'
                      s_budat-high+4(2) '.'
                      s_budat-high(4) INTO lf_range .
          lwa_header-info  =  lf_range.
          CLEAR lf_range.
        ENDIF.
      ENDLOOP.
      IF s_budat-option = 'EQ'.
        READ TABLE lt_date INTO lwa_date INDEX 1.
        lwa_header-info  =  lwa_date-date.
        APPEND lwa_header TO gt_header.
        CLEAR: lwa_header.
        LOOP AT lt_date INTO lwa_date FROM 2.
          lwa_header-typ   = 'S'.
          lwa_header-key   = ''.
          lwa_header-info  =  lwa_date-date.
          APPEND lwa_header TO gt_header.
          CLEAR: lwa_header.
        ENDLOOP.
      ENDIF.
    Appending work area to the header table
      APPEND lwa_header TO gt_header.
      CLEAR lwa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = gt_header.
    <REMOVED BY MODERATOR>
    Regards,
    Ramya
    Edited by: Alvaro Tejada Galindo on Apr 8, 2008 4:30 PM

  • Alv list header problem

    Hai Friends,
    In my ALV List header..i am writing date , time and my program name.
    but all are coming on left side.
    can i get date on left side, program name on centered and time on write side.
    my code is like this.
    FORM list_headers.
          lists-typ = 'H'.
          lists-info = text-010.
          APPEND lists.
          CLEAR lists.
          lists-typ = 'S'.
          lists-key = text-011.
          CONCATENATE sy-datum+6(2) '/'
                      sy-datum+4(2) '/'
                      sy-datum+0(4) INTO lists-info.
          APPEND lists.
          CLEAR lists.
          lists-typ = 'S'.
          lists-key = text-012.
          CONCATENATE sy-uzeit+0(2) ':'
                      sy-uzeit+2(2) ':'
                      sy-uzeit+4(2) INTO lists-info.
          APPEND lists.
          CLEAR lists.
    ENDFORM.

    Hi again,
    1. first of all how are u writing / displaying
       the alv header ?
    2. using documentary write ?
       then also, u can use one variable of
      length 100 and use this concept.
    3. If u are using top_of_page
      event,
      in this event, WE CAN use WRITE.
      (i have used it, and it
      works fantastic)
                  (not in case of alv grid)
    4. My point is, what ever u are using,
       use on variable of length 100.
      WRITE value INTO variable.
      using offset
      and then proceed further.
    regards,
    amit m.

  • Traffic lights in ALV list header

    how do i display traffic lights as icons in ALV list header. for example, in the code below, i want to display a green icon at the end of closed items and a red icon at the end of the open items:
                closed : 4 [green-icon]
                open   : 2  [red-icon]
    CLEAR header_alv_wa-info.
      header_alv_wa-key  = 'closed:'.
      header_alv_wa-info = gv_closed.
      header_alv_wa-typ  = 'S'.
      APPEND header_alv_wa TO headeralv.
      CLEAR header_alv_wa-info.
      header_alv_wa-typ  = 'S'.
      header_alv_wa-key  = 'open:'.
      header_alv_wa-info = gv_open.
      APPEND header_alv_wa TO headeralv.

    Hi,
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    the above links will give u the code for the same..
    Regards,
    Aparna

  • Adding spaces between words

    I currently have a navigation menu with 5 words, each of which are also a link. I want each of the words to be spaces about 30 pixels from one another. I don’t want to use a table to separate them.
    I can copy “ ” seven times between each word in the html code to add 7 spaces between each them, thus achieving the desired result, but several online forums warn against this.
    I read somewhere online about creating space objects to achive this spacing, but if possible, I’d like to do this using CSS. I tried creating a CSS style called “NavStyle” and then under the Box category, adding 30 pixels of left padding and 30 pixels of right padding to the style and then applying this style to the 5 words in the navigation menu, but this appears to have created padding only to the left of the first navigation word and to the right of the last navigation word, rather than to between the words. Adding 30 pixels to the left and right margins had the same effect.
    Is there some other way in spacing this five words from one another in CSS that I am missing?

    I have a similar problem. Though i am trying to space out some titles on my footer. The titles in two cases are made up of two words. So when i apply word spacing it spaces the title also
    I would like:
         • "Westbeach Media" left Aligned
         •"Digital Media", Center and
         •"Contact" Right
    Any help would be much appreciated
    Content
    <div id="footer"> <div align="left">
                          <ul>
                        <h4> <li><a href="Index.html">Westbeach Media</a></li>
                        <li><a href="">Digital Media</a></li>
                          <li><a href="Contact.html">Contact</a></li></h4>
                        </ul>
                        </div></div>
    CSS
    #footer
    position: absolute;
    left:20px;
    top: 1030px;
    width:960px;
    #footer
    ul
    #footer
    ul li
    list-style-type:none;
    display:inline;
    word-spacing:250px;
    #footer a:link
    { font-weight:bold; text-decoration:none;color:#333; }
    #footer a:visited
    { font-weight:bold; text-decoration:none;color:#333; }
    #footer a:active
    { font-weight:bold; text-decoration:none;color:#333; }
    #footer a:hover
    { font-weight:bold; text-decoration:none;color:#F60; }

  • My subtotal and total text in ALV list does not show...

    Hello Experts,
    Please see my code below on what I am doing wrong. I want to display the subtotal and total text in my ALV list.
    CLEAR gs_layout.
        gs_layout-colwidth_optimize = 'X'.
        gs_layout-zebra             = 'X'.
        gs_layout-subtotals_text    = 'Subtotal'.
        gs_layout-totals_text       = 'Total'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
    *       I_INTERFACE_CHECK                 = ' '
    *       I_BYPASSING_BUFFER                = ' '
    *       I_BUFFER_ACTIVE                   = ' '
            i_callback_program                = sy-repid
    *       I_CALLBACK_PF_STATUS_SET          = ' '
    *       I_CALLBACK_USER_COMMAND           = ' '
    *       I_CALLBACK_TOP_OF_PAGE            = ' '
    *       I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *       I_CALLBACK_HTML_END_OF_LIST       = ' '
    *       I_STRUCTURE_NAME                  =
    *       I_BACKGROUND_ID                   = ' '
    *       I_GRID_TITLE                      =
    *       I_GRID_SETTINGS                   =
            is_layout                         = gs_layout
            it_fieldcat                       = gt_fieldcat
    *       IT_EXCLUDING                      =
    *       IT_SPECIAL_GROUPS                 =
            it_sort                           = gt_sort
    *       IT_FILTER                         =
    *       IS_SEL_HIDE                       =
    *       I_DEFAULT                         = 'X'
    *       I_SAVE                            = ' '
    *       IS_VARIANT                        =
            it_events                         = gt_events
    *       IT_EVENT_EXIT                     =
            is_print                          = gs_print
    *       IS_REPREP_ID                      =
    *       I_SCREEN_START_COLUMN             = 0
    *       I_SCREEN_START_LINE               = 0
    *       I_SCREEN_END_COLUMN               = 0
    *       I_SCREEN_END_LINE                 = 0
    *       I_HTML_HEIGHT_TOP                 = 0
    *       I_HTML_HEIGHT_END                 = 0
    *       IT_ALV_GRAPHICS                   =
    *       IT_HYPERLINK                      =
    *       IT_ADD_FIELDCAT                   =
    *       IT_EXCEPT_QINFO                   =
    *       IR_SALV_FULLSCREEN_ADAPTER        =
    *     IMPORTING
    *       E_EXIT_CAUSED_BY_CALLER           =
    *       ES_EXIT_CAUSED_BY_USER            =
          TABLES
            t_outtab                          = lt_output_fin
         EXCEPTIONS
           program_error                     = 1
           OTHERS                            = 2.
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.

    Use on Thread. Don't Cross post. and Follow the Rules.

  • Blank space between text boxes after publishing

    I have a few pages with a relatively large number of text boxes on them (perhaps 20). These are all separated by a few pixels in iWeb, but when I publish to .mac, I see quite a bit of space between them. Is this a known problem? Is there a fix?
    Thanks,
    Patrick

    Go into iWeb and check that your text boxes are not overlapping each other. If they are, this can cause problems when publishing. Check that they do not overlap and re-publish and see what happens then.

  • Controling space between Text Items when using htp.p('HTMLDB_ITEM.TEXT')

    I'm using the following code inside a table tag within a loop to generate a multi-row printable form
    htp.p('<td cellspacing="0" align="right" width="100%" style="font-size:8pt">'||HTMLDB_ITEM.TEXT(p_idx=>2,p_size=>1)||'</td>');
    I'm still getting gaps between rows.
    How do I control the space between each row ? I want each text item row packed up like a spreadsheet with no gaps between rows. Although not shown (border="0") there is the enclosing table cell for each field, so what I want is no cellspacing and maximized item height within each cell.
    But with the above code I'm getting...
    etc.
    but I want
    Anyone know how to do this?
    regards
    Paul P

    Hi Chris , how's it goin'...
    thanks for the response. I know how to control a table cell area's height but it's the height of the inner textitem that I'm having trouble with. When I turn on border="1" There's not much space left between cells, just the default width of a line. I just don't know how to expand the height of the text item. The CSS code you suggested, where do I put the code and how do I apply it?
    Here is the guts of the PLSQL report code
    for des_rec in des_cur loop
    htp.p('<table height="100%" width="95%"border="0">');
    htp.p('<tr>');
    htp.p('<td style="font-size:8pt;font-family:Arial" width="80%" nowrap >'||
    des_rec.DES_SERVICE_DESC||'</td>');
    htp.p('<td cellspacing="0" align="right" width="5%" style="font-size:8pt">'||
    HTMLDB_ITEM.TEXT(p_idx=>2,p_size=>1)||'</td>');
    htp.p('<td cellspacing="0" align="left" width="5%" style="font-size:8pt">'||
    HTMLDB_ITEM.TEXT(p_idx=>3,p_size=>1)||'</td>');
    htp.p('</tr>');
    htp.p('</table>');
    end loop;
    regards
    Paul P

  • When viewing email in my webmail inbox there are added spaces between paragraphs, these are not there in Internet Explorer and Chrome

    I use GoDaddy's webmail service, when I open an email that has several paragraphs the spaces between them are double, sometimes triple, spaced; this is apparent in Internet Explorer and Chrome

    Not related to your question:
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.0 r12
    * Java Plug-in 1.6.0_03 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Are you zooming the page or have increased the minimum font size?
    See http://kb.mozillazine.org/Zoom_text_of_web_pages
    See also http://kb.mozillazine.org/Websites_look_wrong

  • Equalizing spaces between text boxes

    I have a presentation in which I have a few text boxes in a row/column format.  Each line of text is a single group, composed of two individual text boxes.  Is it possible to equalize the space between these line of text, and if so, how, instead of "eyeballing it" by clicking on the boxes and seeing if the borders are the same distance from each other?

    Go to your Keynote Preferences and under the Rulers Tab check the box that says Show relative spacing.

  • Need one space between text and border line

    Please, help me.
    Is there any way to offset the text from the border a bit?
    I would like to have a black line around some boilerplate text, but the text is always butted against the border. Is there a way to offset the text a bit ?
    I've been searching in this forum and google and didn't find the answer yet.
    Thanks,
    Lan

    HamidHelal wrote:
    Lan_Desu wrote:
    Please, help me.
    Is there any way to offset the text from the border a bit?
    I would like to have a black line around some boilerplate text, but the text is always butted against the border. Is there a way to offset the text a bit ?
    I've been searching in this forum and google and didn't find the answer yet.
    Hi, Lan
    if yo want to place a line you may choose underline option. Otherwise take a line/draw a line and keep space between the text and line.
    Hope this helps
    HamidIs there a way easily?
    I already know that that solution. But it is troublesome when I face editing later - I have to edit all of it.
    But thanks for the answer :)

  • Need one space between text and line color

    Is there any way to offset the text from the border a bit? I
    would like to have a black line around some boilerplate text,
    but the text is always butted against the border. Is there a
    way to offset the text a bit

    HamidHelal wrote:
    Lan_Desu wrote:
    Please, help me.
    Is there any way to offset the text from the border a bit?
    I would like to have a black line around some boilerplate text, but the text is always butted against the border. Is there a way to offset the text a bit ?
    I've been searching in this forum and google and didn't find the answer yet.
    Hi, Lan
    if yo want to place a line you may choose underline option. Otherwise take a line/draw a line and keep space between the text and line.
    Hope this helps
    HamidIs there a way easily?
    I already know that that solution. But it is troublesome when I face editing later - I have to edit all of it.
    But thanks for the answer :)

Maybe you are looking for

  • Moving xml file from table stored as clob to table stored as binary

    We have an xml file we are trying to move from a 10g database to 11gR2. The 11gR2 table is stored as binary, and when we try to insert the row into this table across a dblink from the 10g database the table locks and the system will not complete the

  • Skype Abroad - No Wifi and No Data Roaming

    I will be going on a trip to Turkey in a few weeks, and I am trying to understand if I can make calls with the Skype app on my Droid without a wifi connection and with data roaming turned off.  I thought I read somewhere that Skype has it's own 3G ne

  • Key figures between Characteristics in Report

    Hello All, I have report like below. Old Material - New Material - Old Desc - New Desc - Old Qty - New Qty. ABC - BCD - AABC - BBCD - 10 - 20 But the client require format like below. Old Material - Old Qty - New Material - New Qty - Old Desc - New D

  • Customozing Branding Image and Branding text on Logon UI of EP

    Hello Everybody,                  I am customizing the Logon user Interface of EP6.0 SP9. I have modified the Par file and put new images in the Layout folder of Portal-Inf.I modified the UmlogobBotArea.txt file and changed the saplogo.gif with xyz.g

  • All Presets on Effects/Plugins Disappeared

    I've had Audition 3.0 for about two months and tonight I discovered that all the presets in the effects and plug-ins have disappeared - even the original presets that came when the program was first installed. All of my own created presets have also