GETTING BLANK COLUMN IN ALV

Hi friends,
I want to get few columns blank in GRID display ALV.Pls suggest how can I get it.

Hi, Anand
Please don't use all caps in subject line
Regarding your question you better to append blank lines to your internal table before calling ALV.
Best Regards,
Faisal

Similar Messages

  • How to get one column of ALV table as dropdown by key.

    Hi experts,
                  How can I get one column of ALV table as dropdown and editable. If  user wants to change that column value he can just select from that dropdown and click on update button. Can I provide tool tip to that column as " Select from drop down to change the status "?
      Please Help.
    Thanks,
      Pratibha

    You just need to change the cell editor of that column in ALV.
    So first get access to the alv model object (adjusting the code below for your ALV Component Usage name - mine was ALV_ADV):
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv_adv( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      DATA l_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv_adv( ).
      DATA l_table TYPE REF TO cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
    Then access the column object you want to change:
    DATA l_column TYPE REF TO cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'REGION' ).
    Then create the cell editor for DDLB and set it as the new cell editor for this column:
    DATA ddlb TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
      create object ddlb
        exporting
          selected_key_fieldname = 'REGION'.
      ddlb->set_tooltip( `Select from drop down to change the status` ).
      l_column->set_cell_editor( ddlb ).

  • Getting blank column when downloading spreadsheet?

    hai  fnds...any one help for the below issue
      i have developed ALV report used ( layout also in that ).displaying 19 fields in the  output. but when i am downloading spread sheet iam getting one blank column in spread sheet.(but all 19 fields are comming ). i dont know why i am getting second  column is blank? but otherthan spreadsheet format is not getting any blank column.
    here for the purpose of change layout and save layout i am using
    DATA: gv_boxnam         TYPE slis_fieldname   value  'VENUM'.
    VENUM field which is in internal table but not displaying the output. is this any problem?
    Suppose if i take   DATA: gv_boxnam         TYPE slis_fieldname   value  'VBELN'. which is in internal table and displaying the output..in this case i m not getting the VBELN in the output..i am getting only 18 fields in the output.
    Thanks,
    Raghu.

    try this:
    concatenate all the data in a string type table seperated by commas.
    move this new table to the excel.
    i hope it will work fine then

  • How to get blank data in alv?

    hi
    im finding the difference between 2-dates...
    below is my code......
    my problm is wn there is no data in the gstri field then v_dat1 should be blank...but im getting zeros...
    how to get blank instead of zero?
    IF <fs_final>-gstrp is not INITIAL and
      ( <fs_final>-gstri is not INITIAL ) .
    CALL FUNCTION '/SDF/CMO_DATETIME_DIFFERENCE'
          EXPORTING
            date1            = <fs_final>-gstrp
            date2            = <fs_final>-gstri
          IMPORTING
            datediff         = v_dat1
          EXCEPTIONS
            invalid_datetime = 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.
    ENDIF.
        IF ( <fs_final>-gstrp GT <fs_final>-gstri ) AND
           ( NOT <fs_final>-gstri IS INITIAL ) .
          v_dat1 = -1 * v_dat1.
        ENDIF.
    Regards
    Smitha

    Hi,
    If you are using FM 'REUSE_ALV_GRID_DISPLAY' then In your fieldcatalog there is one component called 'no_zero' make it to 'X' like :
          WA_FLDCAT-TABNAME = 'IT_FINAL'.
          WA_FLDCAT-COL_POS = 1.
          WA_FLDCAT-SELTEXT_L = 'BOQ.Amt'.
          WA_FLDCAT-FIELDNAME = 'ZAMT'.
          WA_FLDCAT-NO_ZERO = 'X'.
          WA_FLDCAT-DATATYPE = 'CURR'.
          WA_FLDCAT-INTLEN = '20'.
          APPEND WA_FLDCAT TO IT_FLDCAT.
          CLEAR : WA_FLDCAT.
    That's it,it will not display if the field value is zero.
    Hope this helps,
    Thanks & Regards,
    Rock.

  • How to avoid blank column display in output in ALV TREE

    how to avoid blank column display in output while decreasing the length of other columns in ALV Tree.
    Example: please refer to BCALV_TREE_01 and see the output, then decrease the length of all columns . Then you can see a blank column appearing in screen at last, i.e in container. so how to avoid that.
    Thanks for reply.
    Edited by: morpeous on Jul 1, 2009 1:53 PM

    Hi,
    Check BCALV_TREE_02 on how to hide columns.
    Thanks & Regards,
    Anand Patil

  • Last Column of ALV gets compressed

    HI ,
    The last column of ALV gets compressed when I manually set my widths to my fields.
    I have a comments section in my Table when the data is huge, So I have to set the width of the field so that the table does not look odd.
    But when I add the same, the last field of my ALV gets compressed. I added one last field to the same ALV table, and last added field is compressed.
    My code for setting the ALV data is as follows.
        lo_table_settings->set_fixed_table_layout( abap_true ).
    LOOP AT t_column INTO w_column.
           IF w_column-id = 'COMMENTS'.
             lr_textview ?= w_column-r_column->get_cell_editor( ).
             lr_textview->set_wrapping( abap_true ).
             lr_textview->set_design(
                 value = cl_wd_text_view=>e_design-label_small
             w_column-r_column->set_width( value = '600' ).
           ELSE.
             w_column-r_column->set_width( value = '100' ).
             lr_header =  w_column-r_column->get_header( ).
             lr_header->set_header_text_wrapping( value = abap_true  ).
           ENDIF.
         ENDLOOP.
    Please help me in this regard.

    Hi Rama,
    The last column of ALV is compressed, the Width of last column is so small that the table looks very awkward.
    The complete data is shown, no data is truncated.
    I already set the condition you mentioned. I placed the same in code in my post.

  • Layout in sql report gets disturbed in case of blank columns

    Hi All,
    I have an SQL report which runs from a concurrent program.
    Problem is, if there are blank columns in the report then the data shifts to the left.
    As shown in the below table, if column Attribute 4 is null then the data for Error column has shifted to the left. The words Incorrect Data should come under heading Error whereas it comes under Attribute4.
    ASSET_NUMBER_REC ATTRIBUTE_CATEGORY_CODE ATTRIBUTE4 ERROR
    316604 ABCD Incorrect Data
    Can someone help me in correcting the report layout.
    Regards,
    Shruti

    ASSET_NUMBER_REC ATTRIBUTE_CATEGORY_CODE ATTRIBUTE4 ERROR
    316604 ABCD Incorrect Data
    Can someone help me in correcting the report layout.
    Hi
    SQL Report --- Do you mean SQL Query in such case,
    Please use NVL function on all column, which will give you proper place result.

  • Blank column in spread sheet when i am downloading?

    hai  fnds...any one help for the below issue
      i have developed ALV report used ( layout also in that ).displaying 19 fields in the  output. but when i am downloading spread sheet iam getting one blank column in spread sheet.(but all 19 fields are comming ). i dont know why i am getting second  column is blank? but otherthan spreadsheet format is not getting any blank column.
    here for the purpose of change layout and save layout i am using
    DATA: gv_boxnam         TYPE slis_fieldname   value  'VENUM'.
    VENUM field which is in internal table but not displaying the output. is this any problem?
    Suppose if i take   DATA: gv_boxnam         TYPE slis_fieldname   value  'VBELN'. which is in internal table and displaying the output..in this case i m not getting the VBELN in the output..i am getting only 18 fields in the output.
    Thanks,
    Raghu.

    the download is a copy of the table behind the ALV display.  It sounds like the table for the ALV display contains a column that is flagged as no output?

  • Blank spaces in alv report

    hi experts,
    i have a requirement that i need to develop a report which is same as t-code cs11,
    but in cs11 we are getting the report for a single material and its bom components  .
    in my require ment  i need to develop a report for range of materials, i almost did that but the problem i am facing
    is how to obtain a blank space in alv report, after completion of single material  and its components r displayed.
    can any body pls suggest me.
    thanks&regards
    maheshlap

    hi srihari,
    i tried that but the blank lines r appending at the end of internal table.
    the following is the table ( t_main ) i am passing to the function module
    LOOP AT T_STKO INTO W_STKO.
        W_MAIN-STLNR = W_STKO-STLNR.
        W_MAIN-STLAL = W_STKO-STLAL.
        W_MAIN-STLST = W_STKO-STLST.
        W_MAIN-BMENG = W_STKO-BMENG.
        W_MAIN-BMEIN = W_STKO-BMEIN.
        READ TABLE T_MAST INTO W_MAST WITH KEY STLNR = W_STKO-STLNR .
        W_MAIN-MATNR = W_MAST-MATNR.
        W_MAIN-WERKS = W_MAST-WERKS.
        W_MAIN-STLAN = W_MAST-STLAN.
        READ TABLE T_MAKT INTO W_MAKT WITH KEY MATNR = W_MAST-MATNR .
        W_MAIN-MAKTX = W_MAKT-MAKTX.
        APPEND W_MAIN TO T_MAIN.
        CLEAR W_MAIN.
      ENDLOOP.
    can u pls send me some sampe code.
    thanks.

  • Instead of showing 0 in report its getting blank space

    Hi Sap Gurus.
    I am running the query in rsrt, in my report i am getting instead of 0 values it is showing Blank space. But in my source data there is value is 0. But when i execute the query its getting blank space. How to over come this problem.
    could u please let me know.
    Best Regards,
    venkat.

    Hi,
    Check out this.. it might solve your issue.
    in Query Properties
    Tab: value display >> Zero value Display >> Select "zero as Default Text"  under Display Zeros
    And Tab:  Rows/Columns >> Supress Zeros Option  >> "Do not Supress"  is selected.
    Thanks
    Jitu
    Edited by: Jitenderkumar Danduvia on Feb 23, 2010 12:45 PM

  • Displaying blank line in ALV header

    How do I display a blank line in ALV header
    For eg i want if i want the ALV header to display as follows
    Document Datewise Report  as of 31/10/2009 
                                                     <-- BLANK LINE
    Run On : 01/12/2009

    Hi,
      Are you using 'REUSE_ALV_COMMENTARY_WRITE' for displaying the header?
    If yes, then I think it is not possible. Instead, use the events table to achieve it.
    Use the 'REUSE_ALV_EVENTS_GET' FM to get all possible events and then modify
    the events internal table to specify the form name to handle top-of-page event.
    eg.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = V_EVENTS
    *  EXCEPTIONS
    *    LIST_TYPE_WRONG       = 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.
    READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC EQ 0.
        WA_EVENT-FORM = 'TOP_OF_PAGE'.
        MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-FORM.
      ENDIF.
    FORM TOP_OF_PAGE.
    * Use write statements to display the header data.
    ENDFORM.
    In write statement use '/' to go to new line. So to insert an empty line you can use something like
    write : 'some text' / / 'some text' .
    Hope this helps.
    Regards,
    Bhavesh.

  • Display multiple values in a column in ALV

    I need to display plant order number from AFPO and PLAF table in reference to Goods Recepient(WEMPF) field.
    now in final internal table I assign AFPO--> Plant number value to PLNUM column of ALV.
    how do I add value to same column based on WEMPF common value for both table and append value to PLNUM column below value fetched from AFPO table.
    code for getting value from PLAF table.
    SELECT WEMPF PLNUM
    FROM PLAF
    INTO TABLE IST_PLAF
    FOR ALL ENTRIES IN IST_AFPO
    WHERE PLNNO = IST_AFPO-WEMPF
    AND  ......
    Point is for some WEMPF field entried their will be number of entries in AFPO and PLAF table (in PLNUM column)  so how I do displaying entries from both tables in single row??

    Hi Ankitkumar Dineshkumar Gautam,
    SAP would say: "This is a consulting issue". I would say: What's your problem? Look at some samle programs.
    Regards,
    Clemens

  • How can i delete One Blank Column in my report

    Hi guru's,
    can any one tell me .........
    i'm getting one Blank column in Query output.How can i delete that Blank Column ?
    in the same way Row  Also....
    Thanking  u advancely
    Chandra

    Here is a site with some nice sample code on deleting rows / columns : [http://www.java2s.com/Code/JavaScript/HTML/ModifyingTableColumns.htm|http://www.java2s.com/Code/JavaScript/HTML/ModifyingTableColumns.htm]
    As to where to put the code, edit your web template, then put the code in there. There are script web items that you can use, but be aware that editing javascript in the script item is not too pleasant. I have found the best approach is to rather create the javascript file on my machine, then upload it to the MIME repository, then reference that in the web template.
    Here is how I have referenced the javascript file sitting in our MIME repository:
    < script src="bwmimerep:///sap/bw/mime/Customer/javascript/CustomCalculations.js" />
    I hope this helps you out.
    Cheers,
    Andrew
    Edited by: Andrew Lewis on Jul 18, 2008 9:26 AM

  • Add another column under sub total column in alv

    hi guys,
    is there any way i can add a new column under sub total column in alv function and have my own calculation for it

    Hi Radha,
    I doubt if that can be changed....because the event that i was referring to in my previous post works with ALV List display...But in any case you can try that.....
    There is an event in SLIS....(As i told you, i dont remember the name and currently i dont have access to SAP system, so i am not able to verify and let you know that event name).....
    Other thatn TOP and END of PAGE events, there is an event for sub-total text......i think it would start with "SUBTOTAL"...
    you need to use that event in your events table and pass it to ALV Grid display.
    Then create a sub-routine with that name (As you do for TOP-OF-PAGE event)....and in this event you can change the values in runtime (PROVIDED, this event gets triggered for ALV GRID).....
    If this does not work, i think calculating sub-totals while you build the internal table would be a better option....(If you have time constraint....else you can do some more research on the same)........
    Best Regards,
    Ram.

  • In wendynpro,  i need to delete unwanted columns in ALV..

    Hi experts,
       In Webdynpro, I have selected some fields in context node through dictionary structure and to display those fields in ALV . Im getting the values for corresponding fields which i have selected but im  also getting other fields of the database dictionary structure in ALV.. Can anyone help me to delete  other fileds in it..
    Thanks in advance..
    Edited by: sivaprasath sekar on May 28, 2009 11:22 AM

    Hi,
    Use following code to delete the column from ALV.
    Here we are using config. model of ALV to delete the column.
    DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
    lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
      DATA lv_value TYPE REF TO cl_salv_wd_config_table.
      lv_value = lo_interfacecontroller->get_model(
    CALL METHOD lv_value->if_salv_wd_column_settings~delete_column
      EXPORTING
        id     = 'CARRID'
    Instead of carrid you can pass your cotext_attribute which needs to be deleted.
    Thanks,
    Rahul
    Edited by: Rahul Yadav on May 28, 2009 11:30 AM

Maybe you are looking for

  • Macbook pro thunderbolt to Imac Mini Display Port

    Hello everyone,      As the title above says I would like to use my Imac (27 inch, Late 2009) as a moniter for my Macbook Pro ( 15 inch, Early 2011). As you may know Macbook Pro has a Thunderbolt port on it and I was wondering if it is compatable to

  • Creating a New Document Profile CS5

    I have created a New Document Profile that I want to use as a base when starting Ilustrator work. I  cleared pallettes colors, brushes, symbols etc and created 3 new common layers etc. When I select my file from the New Document Profiles pull down me

  • 10.6, Parallels 5, Windows 7 (64), Bonjour and Printing

    All i am having trouble getting Bonjour (1.06)(64) set up so i may print from Windows 7 in parallels to a USB printer attached to my mac mini. The parallels documentation tells to select the Generic printer and the Generic Postscript. Bonjour "sees"

  • Display changes to materials

    Hi, I just discovered the programs RFDABL00 and RFKABL00, which display the changes to vendors and customers. I would need a similar program to display the changes for materials. But I can't seem to find a similar program for materials. Does anybody

  • Since downloading yosemite my photoshop cs5 don't work!

    this is the error I get. I have a mac mini 2013. (An unexpected and unrecoverable problem has occurred. Photoshop will now exit.)