How can i change field width in ALV report

hello,
i have to modify vendor payment list. it is a ALv report
proble is that when i gave vendor acc range for any month (range of posting date) it shows list,
but for february it show run time error
error description-  the resulting values are too large for the designated field.
for posting dates 1.02.2009 to 25.02.09 it shows list. but when i gave posting date after 25 it doesnt show list.
just i cant understand how to solve it.
thanks in advance,
Anuradha.

Hi...
Best option is first deside which format you want to put in that date field...
then before filling internal table do one thing format that date field and then add into ur internal table which u later will use to show in ALV Grid Report...
Example...Suppose you want DD.MM.YYYY
then use
concatenate Fieldname0(2) Fieldname2(2) Fieldname+4(4) into Fieldname...
This way you can format the date in any format with proper logic. and ur problem getting solved
Regards,
Chintan

Similar Messages

  • How can i change the width of a webapp depending on the view?

    In Dashcode how can i change the width of the web app depending on the width of the view. I am using the stack layout.
    For example if view 1 had a width of 400 px
    the web app would have a width of 400 px
    if i changed to a view with a 400 px
    the webap would change to have a width of 400 px
    it automatically adapts the the hight of a view how do i do the same with the width.

    While they may auto adjust to what it thinks is a correct width, far too often it allocates way too much room and that causes lists with 4 columns to be much longer than they need to be and without the ability to adjust them, lists look strange.
    http://twitpic.com/23ro09/full is an example of the first column having been allocated too much room.
    Denzel

  • How can I change column name in ALV table in WebDynpro ABAP?

    Hi Everyone,
    I have created an ALV table in WebDynpro ABAP. I have created a context node and added the required attributes there - for the ALV display.
    Now I want to change one columnn name of the ALV table.... Currently it is showing the description of the data element, which I don't want to show. I cannot create a new DE only for this purpose.
    Please let me know how can I change the name of the column.
    Regards

    Hi,
    This may help you to define your own column text in the ALV Table of webdynpro.
    see the below code.
    Here 'STATUS_ICON' is the column of the the output display of the ALV Table of webdynpro.
    "change the label of the report.
    DATA: lr_weeknum TYPE REF TO cl_salv_wd_column.
    CALL METHOD l_value->if_salv_wd_column_settings~get_column
    EXPORTING
    id = 'STATUS_ICON'
    RECEIVING
    value = lr_weeknum.
    SET THE LABEL OF THE COLUMN
    DATA: hr_weeknum TYPE REF TO cl_salv_wd_column_header.
    CALL METHOD lr_weeknum->get_header
    RECEIVING
    value = hr_weeknum.
    CALL METHOD lr_weeknum->set_resizable
    EXPORTING
    value = abap_false.
    hr_weeknum->set_prop_ddic_binding_field(
    property = if_salv_wd_c_ddic_binding=>bind_prop_text
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
    set the text of the column
    CALL METHOD hr_weeknum->set_text
    EXPORTING
    value = 'C Form'.
    regarads,
    balu

  • Field width in ALV report

    Hi,
    How to increase the field width of a field in ALV report.
    I mean, in a ALV report, the field description of a field is not showing correctly. IF i try to extend the field width by the mouse/coursor, it displays the correct description.
    IS there any way where for displaying the  field description correctly?
    Thanks,
    Kumar

    Hi,
    Go through the sample code,
    *& Report ZDEMO_ALVLIST *
    *& Example of a simple ALV List Report *
    *& The basic requirement for this demo is to display a number of *
    *& fields from the EKKO table. *
    REPORT zdemo_alvlist .
    TABLES: ekko.
    type-pools: slis. "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    statu TYPE ekpo-statu,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    menge TYPE ekpo-menge,
    meins TYPE ekpo-meins,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
    gd_tab_group type slis_t_sp_group_alv,
    gd_layout type slis_layout_alv,
    gd_repid like sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform display_alv_report.
    *& Form BUILD_FIELDCATALOG
    Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
    I.e. Field type may be required in-order for
    the 'TOTAL' function to work.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 10.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    fieldcatalog-do_sum = 'X'.
    fieldcatalog-no_zero = 'X'.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'EBELP'.
    fieldcatalog-seltext_m = 'PO Item'.
    fieldcatalog-col_pos = 1.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'STATU'.
    fieldcatalog-seltext_m = 'Status'.
    fieldcatalog-col_pos = 2.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'AEDAT'.
    fieldcatalog-seltext_m = 'Item change date'.
    fieldcatalog-col_pos = 3.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material Number'.
    fieldcatalog-col_pos = 4.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MENGE'.
    fieldcatalog-seltext_m = 'PO quantity'.
    fieldcatalog-col_pos = 5.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Order Unit'.
    fieldcatalog-col_pos = 6.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'NETPR'.
    fieldcatalog-seltext_m = 'Net Price'.
    fieldcatalog-col_pos = 7.
    fieldcatalog-outputlen = 15.
    fieldcatalog-datatype = 'CURR'.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'PEINH'.
    fieldcatalog-seltext_m = 'Price Unit'.
    fieldcatalog-col_pos = 8.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    endform. " BUILD_FIELDCATALOG
    *& Form BUILD_LAYOUT
    Build layout for ALV grid report
    form build_layout.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-totals_text = 'Totals'(201).
    gd_layout-totals_only = 'X'.
    gd_layout-f2code = 'DISP'. "Sets fcode for when double
    "click(press f2)
    gd_layout-zebra = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text = 'helllllo'.
    endform. " BUILD_LAYOUT
    *& Form DISPLAY_ALV_REPORT
    Display report using ALV grid
    form display_alv_report.
    gd_repid = sy-repid.
    call function 'REUSE_ALV_LIST_DISPLAY'
    exporting
    i_callback_program = gd_repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_special_groups = gd_tabgroup
    IT_EVENTS = GT_XEVENTS
    i_save = 'X'
    is_variant = z_template
    tables
    t_outtab = it_ekko
    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.
    endform. " DISPLAY_ALV_REPORT
    *& Form DATA_RETRIEVAL
    Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
    from ekpo
    into table it_ekko.
    endform. " DATA_RETRIEVAL
    Form TOP-OF-PAGE *
    ALV Report Header *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
    wa_header type slis_listheader,
    t_line like wa_header-info,
    ld_lines type i,
    ld_linesc(10) type c.
    Title
    wa_header-typ = 'H'.
    wa_header-info = 'EKKO Table Report'.
    append wa_header to t_header.
    clear wa_header.
    Date
    wa_header-typ = 'S'.
    wa_header-key = 'Date: '.
    CONCATENATE sy-datum+6(2) '.'
    sy-datum+4(2) '.'
    sy-datum(4) INTO wa_header-info. "todays date
    append wa_header to t_header.
    clear: wa_header.
    Total No. of Records Selected
    describe table it_ekko lines ld_lines.
    ld_linesc = ld_lines.
    concatenate 'Total No. of Records Selected: ' ld_linesc
    into t_line separated by space.
    wa_header-typ = 'A'.
    wa_header-info = t_line.
    append wa_header to t_header.
    clear: wa_header, t_line.
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    exporting
    it_list_commentary = t_header.
    i_logo = 'Z_LOGO'.
    endform.
    Regards,
    Raj.

  • How can I change selection texts of standard report (S_P99_41000192)?

    Hi:
    I want to change selection texts of  tcode s_P99_41000192.
    ( Our SAP verison is SAP 4.7 version, non unicode)
    Because we can see only Deutch.
    It looks standard sap query so we can not add it into package.
    How can we change it?
    Please help me.

    Hi,
    you can change this in the related InfoSet /SAPQUERY/AM27 on which the Query is based on. Tcode InfoSet maintenance is SQ02.
    Regards,
    Markus

  • How can I change the width of a column in a list of sharepoint 2010 ?

    How do I change the column width in sharepoint 2010 so the data displays properly in standard view?
    I open the list View in sharepoint designer,and change the width of the <td> ,but ,when I preview ,the column width don't change. what should I do?

    While they may auto adjust to what it thinks is a correct width, far too often it allocates way too much room and that causes lists with 4 columns to be much longer than they need to be and without the ability to adjust them, lists look strange.
    http://twitpic.com/23ro09/full is an example of the first column having been allocated too much room.
    Denzel

  • How to extract the column width in ALv report if its executed in background

    I am executing an ALV report in background , in front end i am getting data properly, in back end for some columns some of the digits are missing.For example if PO no is of 10 digits it will display only 8 becos column size is like that , how to extract coulmns in back ground.
    I have executed in background and checked the spool and  for some of the columns width is not sufficient to display comeplete data so please suggest how to extract the columns sizes if executed inj background for an ALV

    Hi Deepthi,
    you can try with the above mentioned suggestions ,if its worked its fine ,
    If not use Docking container instead of custom container, For ALV in back ground jobs, its suggest to use docking container instead of custom container , below you can find the declaration for docking container and code to use docking and custom container in your program for fore and back ground.
    or you can use docking container alone for both operations.
    Data : G_DOCK1 TYPE REF TO CL_GUI_DOCKING_CONTAINER,
    IF CCON IS INITIAL. (ccon is container name )
    *Check whether the program is run in batch or foreground
        IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
    *Run in foreground
          CREATE OBJECT CCON
            EXPORTING
              CONTAINER_NAME = 'CON1'.
        CREATE OBJECT GRID1
            EXPORTING
              I_PARENT = parent_1.
    ELSE.
    *Run in background
          CREATE OBJECT GRID1
            EXPORTING
              I_PARENT = G_DOCK1.
        ENDIF.
      ENDIF.
    B&R,
    Saravana.S

  • How can I change the width of a field without affecting all others ?

    I'm working with Text fields that have, for example Name, address, etc. on the left & the box to its right.
    I'm further down the form & want to allow for a longer field description but then it changes all the formatting above.

    You can change the size of the label, the text input box, and the field itself (border around the field in the design tab) - however there is one exception to being able to control the size of every field individually:
    Fields that have "Labels left" or "Labels right" that are also the first field in a row will all share the same label width.
    This is probably what you are encountering, this is how the fields work for now, those first in a row label left/right labels are all the same width.
    Thanks,
    Josh

  • How can I change Fields Font in Designer 6i - Report module

    I have created a Report Module and I would like one of the field to be displayed as Barcode.
    Module is created in Designer 6i and I am also using Headstart template for the report.
    I was unsuccesful in changing the field font.
    Can anyone help me with this matter?
    Thank you
    Daniel

    Hi,
    I think changing the font in the Paramater form for the LOV is not possible. Long back there was
    an enhancement request filed for this , i don't think that is implemented yet.
    Prabably you have to have as a workaround is make a pramform out of Oracle Forms.
    cheers :-))
    Arun.

  • How can I change the width of columns in (e.g.) the week view in Thunderbird / Lightning?

    As it currently displays, the Lightning display of a week doesn't fit in the window, so I'm forever scrolling left and right. I'd like to reduce the width of columns so that all 6 or 7 days (depending on whether it's a work week or full week) can be displayed within the window's width, without scrolling. There seems to be no standard way to configure this to happen.
    I have the calendar pane on the left reduced to its narrowest (I still need this for navigation, so I can't just get rid of it).
    I have tried zooming out, but all this does is reduce the height of events etc. within the columns, it does not affect the width of the columns.
    Thanks.

    While they may auto adjust to what it thinks is a correct width, far too often it allocates way too much room and that causes lists with 4 columns to be much longer than they need to be and without the ability to adjust them, lists look strange.
    http://twitpic.com/23ro09/full is an example of the first column having been allocated too much room.
    Denzel

  • How can I change the width of bookmark toolbar buttons?

    I would simply like to alter the width of bookmark toolbar buttons to better display the bookmark title. I also have MultirowBookmarksToolbar addon installed.

    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    </nowiki></pre><pre><nowiki>#personal-bookmarks toolbarbutton.bookmark-item { max-width: 20em; }</nowiki></pre>
    You can use this code for specific bookmarks (label name needs to be an exact, case sensitive, match)
    <pre><nowiki>#personal-bookmarks toolbarbutton.bookmark-item[label="Bookmark_Name"] { max-width: 20em; }</nowiki></pre>
    See http://kb.mozillazine.org/Editing_configuration

  • How can I change the width and color of the title bar of the JFrame

    I would like to use the UImanager to change the look and feel of the title bar on all of my JFrames. How is this possible.
    Thanks in advance.

    I appologize for being rude, and thank you for your response.
    The reason I did not respond was that I don't think that your answer solves the question of top level containers (specifically JFrame). I have been researching the net and some of the text books to come up with an answer before I respond. To this point, I believe that the answer has something to do with changing the boundary. If this is the case I'm within four or five hours of the solution, and will publish. If not, back to the drawing board.

  • How can i change the width of the sidebar?

    i did this before on another laptop, but cant find the thread on the forum. i want to be able to narrow the sidebar . the default mimimum is too wide for me.
    thanks
    PS using 3.6.12

    You can add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line or use the Stylish extension.
    See:
    * http://userstyles.org/styles/902
    * Stylish: https://addons.mozilla.org/firefox/addon/2108
    See also http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files

  • How can I change line colors in HTML reports?

    I have a VI that is creating an HTML report based on a table of results. I change the back ground color of the line based on failed results. However this line color change is not seen in the HTML reports. Can anyone give me a good way of basically transferring the properties of my table to the HTML report? Is it possible? Thanks in advance for any help.

    Greg - Thanks for the reply. I figured this out doing some more research. The line that I needed was "<BACKLOG="#PAYOFF">Your Cell Text</ID>. The problem I was having was that line is needed in front of the rest of the font formatting commands. For example here is my original line:
    <ID WIDTH="200"><BACKLOG="#PAYOFF"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
    The bold part in the line above is what I added. With the cell color added like this it actually created another cell and pushed existing ones one cell to the right. It then colored the second cell in the row and left the first one blank. Through looking up more examples I found that I was actually putting the cell color command in the middle of the font formatting command. So I tried putting it at the end and it then did nothing. The only way I could get the cell in the table to change and not change anything else was using the syntax below.
    <ID BACKLOG="#PAYOFF"><WIDTH="200"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
    Troy

  • How can I change the ownership of a report in BW?

    I am trying to create a role and save a query in it but the query belongs to someone else. When I try to save the query in the folder, I cannot, but when she tries, it works fine. Does it have anything to do with the ownership since she was the one who originally wrote the query?
    Points will be assigned. Thanks!

    Hi MD,
       The easiest thing is to make a copy of that query, so that you have similar query on your name. Then delete the first query.
         OR
         There is a table which gives you information about the queries in BW called RSZCOMPDIR. I dont think it is advisable, but you can change the owner of the query here. Check if you have to make the changes in any more places.
    Hope this helps...

Maybe you are looking for

  • "The Application Dock Quit Unexpectedly"

    Help! whenever I startup my MacBook, this error message appears. It gives me the options to ignore, report or relaunch, but they are all unresponsive. I cannot open any programs or files, but i can search using spotlight. Also, when I open "Force Qui

  • Creating documents for CMYK vs. RGB

    1. When creating a document that will be printed on an Epson Photo Sylus 1400 ink jet color printer, should a file be setup as CMYK or RGB? It has more than 3 ink cartridges, it has an ink cartridge for each of the c,m,y,k, though I read somewhere it

  • When trying to restore ipod it says ipod is not mounted.

    Ok, i had a similar problem with my computer not seeing my iPod, well i managed to get that fixed and while itunes was putting the music back onto my iPod the computer crashed. When i open the updater to return it to factory settings the updater said

  • Exam 1z0-036?

    Hi all! I'm preparing take exam 1z0-036. Could you tell me some hint about that exam? what the questioning is focus on main issue? thanks!

  • Affine transformation with vector data

    I want to use the SDO_UTIL.AFFINETRANSFORMS method to transform vector data in a sql statement. The example in the Spatial Developer's Guide is working so far. But if I change the SCALING parameter to TRUE I got a exception: Fehler beim Start in Zeil