To add column in an alv of FITV_POWL_TRIPS component

Hi all
I have a requirement to add column to an alv which is in FITV_POWL_TRIPS.Now the prob is that in that component we r using another  compent SALV_WD_TABLE from which alv is taken.This what I understood
fitv_powl_trip
powl_ui_comp- <-getting tabstrips
powl_table_comp-<-getting refresh link
salv_wd_table- <- getting table
As far as I understood I think I have to find the comtext binded to DATA of SALV_WD_TABLE .Im not able to get it.If anyone has previous experience with this pls share
Edited by: m.reeha verma on Apr 30, 2009 6:15 AM

Hello Reeha,
Could you please share the solution for this ?
Thanks in Advance.
Thanks,
Prakhar

Similar Messages

  • Phap_admin: how to add columns to the initial ALV

    Hello everyone,
    I have a requirement which is to add 2 new columns on the ALV that appears after going through the phap_admin selection screen.
    I show you a picture as an example:
    I need to add 2 fields form infotype 0002 in this ALV list.
    I've been looking around and I found this badi: HRHAP00_REPORTING, but I don't think it can help me, because this bady Works after clicking the status button "Reporting" at /nphap_search.
    Does anybody faced the same issue?
    Do you now any badi for that purpose?
    Help would be apreciated and rewarded with points.
    Kind regards.

    Append your additional fields in this structure HAP_S_DOCUMENTS  it will show in the layout.
    then write implicit enhancement for data population where final itab is filling.
    and  after append structure,   for data population in the following include LHRHAP_UI_DOCUMENT_REPORTF06 and subroutine f1100_ctrl_create   modify table based on ur logic.
    I tried in my sandbox its working fine and data  is showing perfectly.
    suri

  • Add column with preq number to ALV grid in me53n

    hi all,
    i am trying to add column with preq number (BANFN) to ALV with preq items in ME53N. it is not available in column set, when trying to add by "change layout" button - i dont understand why, when the strcucture MEREQ3211GRID contains it :-(
    i also tried to add new field ZZBANFN into the structure CI_EBANMEM and after that, i could add the new field to ALV through change layout, but it was empty of course. so i implemented EXIT_SAPLMEREQ_001 from MEREQ001, but ZZBANFN is still empty, because this exit is not called when opening ME53N, but when clicking on tab "customer data" in preq item detail.
    how to solve this? is there any exit that is called before displaying the ALV grid?

    Here is some more detail. I included my code from the Enhancement.
    ENHANCEMENT-POINT MM06EFPO_POT_AUFBAUEN_02 SPOTS ES_MM06EFPO_POT_AUFBAUEN INCLUDE BOUND.
       ENHANCEMENT 1  Z_MM06EFPO_POT_AUFBAUEN_1.    "active version
      SELECT SINGLE zz_old_material FROM mara
        INTO pot-zz_old_material
        WHERE matnr = pot-matnr.
    ENDENHANCEMENT.
    You will also need to change the layout in Item Overview to bring your field in.

  • REUSE_ALV_GRID_DISPLAY (column headings from ALV to EXCEL) Max please help

    Hi Max,
    If you remember in one of my last post I asked for changing the column headings in ALV display for example from 'Material' to 'Material used'.
    I am using
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
          I_CALLBACK_PROGRAM                = repid
          IT_FIELDCAT                       = field_body
          I_SAVE                            = g_save
          IS_VARIANT                        = g_variant
          IT_EVENTS                         = events
        TABLES
          T_OUTTAB                          = itab.
    And you suggested me the following way....
    loop at field_body into field_wa.
    case field_wa-fieldname.
      when 'Material'.
         field_wa-seltext_l = 'Material used'.
         field_wa-seltext_m = 'Material used'.
         field_wa-seltext_s = 'Material used'.
    endcase.
    modify field_body from field_wa.
    endloop.
    It is working well. In ALV display the column heading is changed to what I wanted. But the question is when I export the displayed ALV to Excel using ALV functionality, Export->Spreadsheet... I see that <b>I dont get the Column Heading into Excel as it was in the ALV display.</b>
    I get in the Excel as 'Material u' or 'Mat. Used'. But when I add this line in the code.....
    when 'Material'.
         field_wa-seltext_l = 'Material used'.
         field_wa-seltext_m = 'Material used'.
         field_wa-seltext_s = 'Material used'.
        <b> field_wa-outputlen = 20.</b>
    Then I see that I get the complete heading in the Excel. But this way the columns with outputlen 20 are taking much space in ALV display.
    Is there any fix for this. May be not mentioning the outputlen but still get the column headings into Excel as it was in ALV display.
    Anyone with ideas please respond. Waiting for replies. Thanks

    Hi
    The labels have a fixed size:
    seltext_l is long   text: 20 char
    seltext_m is medium text: 15 char
    seltext_s is short  text: 10 char
    The text 'Material used' is long 13 char so you should write:
    field_wa-seltext_l = 'Material used'.
    field_wa-seltext_m = 'Material used'.
    field_wa-seltext_s = 'Mat. used'.
    You can try to set the field colwidth_optimize of parameter IT_LAYOUT.
    This field should optimize the width of the colunm
    So
    data layout type SLIS_LAYOUT_ALV.
    layout-colwidth_optimize = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = repid
    IT_LAYOUT   = layout       
    IT_FIELDCAT = field_body
    I_SAVE = g_save
    IS_VARIANT = g_variant
    IT_EVENTS = events
    TABLES
    T_OUTTAB = itab.
    and you can decide which label has to be used:
    field_wa-seltext_l = 'Material used'.
    field_wa-seltext_m = 'Material used'.
    field_wa-seltext_s = 'Mat. used'.
    If you want to set the short text
    field_wa-ddictxt   = 'S'.
    ...medium
    field_wa-ddictxt   = 'M'.
    ...long
    field_wa-ddictxt   = 'L'.
    Max

  • All the columns of an alv grid report are not downloading in excel in 1 lin

    Hi All,
    I have some 60 columns in my alv grid report and user can download the report using list->export->localfile->spreadsheet.
    What the issue is that all the columns are not downloading in one line, instead they split in two rows.
    Please help.
    Regards,
    Neha Patel

    hi,
    just use this procedure it will solve your problem:
    Firstly export  the data to memory using the FM LIST_FROM_MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = t_listobject
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE e000(su) WITH text-001.
    ENDIF.
    then i converted it into ASCII using LIST_TO_ASCI,
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
    listasci = t_xlstab
    listobject = t_listobject
    EXCEPTIONS
    empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    IF sy-subrc NE 0.
    MESSAGE e003(yuksdbfzs).
    ENDIF.
    This gives the data in ASCII format separated by '|' and the header has '-', dashes. If you use this internal table directly without any proccesing in SO_NEW_DOCUMENT_ATT_SEND_API1, then you will not get a good excel sheet attachment. To overcome this limitation, i used cl_abap_char_utilities=>newline and cl_abap_char_utilities=>horizontal_tab to add horizontal and vertical tabs to the internal table, replacing all occurences of '|' with
    cl_abap_char_utilities=>horizontal_tab.
    Set the doc_type as 'XLS', create the body and header using the packing_list and pass the data to be downloaded to SO_NEW_DOCUMENT_ATT_SEND_API1 as contents_bin.
    This will create an excel attachment.
    Sample code for formatting the data for the attachment in excel format.
    u2022     Format the data for excel file download
    LOOP AT t_xlstab INTO wa_xlstab .
    DESCRIBE TABLE t_xlstab LINES lw_cnt.
    CLEAR lw_sytabix.
    lw_sytabix = sy-tabix.
    u2022     If not new line then replace '|' by tabs
    IF NOT wa_xlstab EQ cl_abap_char_utilities=>newline.
    REPLACE ALL OCCURRENCES OF '|' IN wa_xlstab
    WITH cl_abap_char_utilities=>horizontal_tab.
    MODIFY t_xlstab FROM wa_xlstab .
    CLEAR wa_xlstab.
    wa_xlstab = cl_abap_char_utilities=>newline.
    IF lw_cnt NE 0 .
    lw_sytabix = lw_sytabix + 1.
    u2022     Insert new line for the excel data
    INSERT wa_xlstab INTO t_xlstab INDEX lw_sytabix.
    lw_cnt = lw_cnt - 1.
    ENDIF.
    CLEAR wa_xlstab.
    ENDIF.
    ENDLOOP.
    Sample code for creating attachment and sending mail:
    FORM send_mail .
    u2022     Define the attachment format
    lw_doc_type = 'XLS'.
    u2022     Create the document which is to be sent
    lwa_doc_chng-obj_name = 'List'.
    lwa_doc_chng-obj_descr = w_subject. "Subject
    lwa_doc_chng-obj_langu = sy-langu.
    u2022     Fill the document data and get size of message
    LOOP AT t_message.
    lt_objtxt = t_message-line.
    APPEND lt_objtxt.
    ENDLOOP.
    DESCRIBE TABLE lt_objtxt LINES lw_tab_lines.
    IF lw_tab_lines GT 0.
    READ TABLE lt_objtxt INDEX lw_tab_lines.
    lwa_doc_chng-doc_size = ( lw_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
    lwa_doc_chng-obj_langu = sy-langu.
    lwa_doc_chng-sensitivty = 'F'.
    ELSE.
    lwa_doc_chng-doc_size = 0.
    ENDIF.
    u2022     Fill Packing List For the body of e-mail
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = 'RAW'.
    APPEND lt_packing_list.
    u2022     Create the attachment (the list itself)
    DESCRIBE TABLE t_xlstab LINES lw_tab_lines.
    u2022     Fill the fields of the packing_list for creating the attachment:
    lt_packing_list-transf_bin = 'X'.
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = lw_doc_type.
    lt_packing_list-obj_name = 'Attach'.
    lt_packing_list-obj_descr = w_docdesc.
    lt_packing_list-doc_size = lw_tab_lines * 255.
    APPEND lt_packing_list.
    u2022     Fill the mail recipient list
    lt_reclist-rec_type = 'U'.
    LOOP AT t_recipient_list.
    lt_reclist-receiver = t_recipient_list-address.
    APPEND lt_reclist.
    ENDLOOP.
    u2022     Finally send E-Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = lw_sent_to_all
    TABLES
    packing_list = lt_packing_list
    object_header = lt_objhead
    contents_bin = t_xlstab
    contents_txt = lt_objtxt
    receivers = lt_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    Hope it will help you
    Regards
    Rahul sharma

  • Add columns to RCOPOC_WKLT

    Hi.
    Does anyone know how can I add columns (from my structure) at the above report?
    It's the CO60 transaction (Worklist for PI Sheets).
    I think it's somthing about an enhancement for this report but how can I do it??
    Thanks,
    Rebeka

    Robeka
    There is no way you can do enhancement to add new column to the ALV.... See report RCOPOC_WKLT, subroutine "build_fieldcat"....
    Though, you can modify this report by using access key or create Z-Copy of this report and modify it....
    Thanks
    Amol Lohade

  • How to add columns dynamically in a classical rep deending on a parameter

    hi all,
    i have a scenario where ii have to add columns in my report depending on a certain parameter.the report should dymnamically add the columns based on the parameter.

    Hello Diego
    Revert your logic and remove or do not display columns if the corresponding parameter is missing or does not have the expected value(s).
    Using ALV lists you would accomplish this using the following coding:
    IF ( <parameter is missing or has not expected value> ).
      ls_fcat-tech = 'X'.
      MODIFY gt_fcat FROM ls_fcat
        TRANSPORTING tech
        WHERE ( fieldname = <column> ).
    ENDIF.
    The column for which this attribute is set in the fieldcatalog will appear neither in the ALV list nor in the layout.
    Now for a classical report (WRITE report ?!) you should develop a similar logic. You have to encapsulate the displaying or writing for each column and make this dependent from the parameter, e.g.:
    LOOP AT gt_data INTO ls_data.
    IF ( <parameter is missing or has not expected value> ).
    " do nothing -> skip this column
    ELSE.
      PERFORM write_column USING ...
    ENDIF.
    ENDLOOP.
    Regards
      Uwe

  • ADDING A COLUMN TO THE ALV

    HI Experts,
              im here with a problem , i want to know if its possible to add an extra column to the ALV display my problem is im using the  dictionary table directly not using any structures and hence  iv not declared any field catalog....the output of this one extra field has to be hard coded  and added to the display so it appears with the displayed alv at all times.
    is this possible can i get help pls?
    Thanks & Regards,
    Goldie.

    Hi,
    Append one more field to the field catalog & populate the same in the output internal table of ALV.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.

  • Do editable a column of a ALV (object oriented programming)

    Hello,
    How I can do editable a column of a ALV (object oriented programming) ??
    What field of a fieldcatalog let it ??
    Thanks.
      wa_fieldcatalog-fieldname = 'NUM_KGS'.
      wa_fieldcatalog-seltext = 'Kg'.
      wa_fieldcatalog-coltext = 'Kg'.
      wa_fieldcatalog-just = 'L'.
      wa_fieldcatalog-tabname = 'IT_DATOS'.
       wa_fieldcatalog- ?????????

    In the program add the following field
    wa_fieldcatalog-EDIT = 'X'.
    append wa_fieldcatalog.
    you will get the column editable

  • Editing a Column in Hirerachial ALV

    Hi,
    I have ALV Report which had been displayed using CL_SALV_HIERSEQ_TABLE.
    Now I got a Requirement To add a column at Item level to add Comments.
    Is it possible to Edit a Column in Hirarichal ALV? Is any other way to add comments to the List in a column?
    your suggestions are valuable...Please reply..
    Thanks,
    J.

    Hi sekhar,
    the HIER_SEQ class is for classical LIST output, here (as in all SALV applications) you have no input possibility.
    You could add a COMMENT column to your table and program a (double-click?) event. This could issue a popup and ask for the commentary. Then you could modify and refresh the list.
    See program SALV_DEMO_HIERSEQ_EVENTS for catching the event. I hope, you can do the rest.
    Kind regards,
    Clemens

  • Multiple Rows and Columns selection on ALV

    Hi all,
    What is the best solution to allow the multiple selection or combination of selection (rows and columns) on an ALV ?
    I would like to be able to select some rows and some columns and to get the result cells in order to update them.
    Thanks in advance for your help.
    David

    Thanks Srinivas and Seela,
    I forgot to precise that my ALV is dynamic, I used the method 'add_new_child_node'.
    I tried the different possibilties with method attributes but I don't find the good attributes combination to allow columns selection.
    I add also that I have to be able to select several no adjacent columns.
    What do you think about this workaround :
    Is it possible to add a line on my ALV with checkbox between the header line (with column title) and data line.
    I will search using the method add_cell_variant but I don't know if it's possible with dynamic ALV.
    Thanks.
    David

  • Mi24-add column

    i need to add column from mard to the alv list.
    how i can do it?
    there is an enhancement for this?

    Hi,
    below are the available Enhancements & BADIs for MI24 Transaction, check out which can be used.
    <b>Enhancements</b>                                                                               
    MB_CF001                                Customer Function Exit in the Case of Updating a Mat. Doc. 
    MBCF0011                                Read from RESB and RKPF for print list in  MB26            
    MBCF0010                                Customer exit: Create reservation BAPI_RESERVATION_CREATE1 
    MBCF0009                                Filling the storage location field                         
    MBCF0007                                Customer function exit: Updating a reservation             
    MBCF0006                                Customer function for WBS element                          
    MBCF0005                                Material document item for goods receipt/issue slip        
    MBCF0002                                Customer function exit: Segment text in material doc. item                                                                               
    <b>Business Add-ins</b>                                                                               
    ARC_MM_MATBEL_WRITE                     Check Add-On-Specific Data for MM_MATBEL                   
    ARC_MM_MATBEL_CHECK                     Check Add-On-Specific Criteria for MM_MATBEL               
    MB_RESERVATION_BADI                     MB21/MB22: Check and Complete Dialog Data                  
    MB_QUAN_CHECK_BADI                      BAdI: Item Data at Time of Quantity Check                  
    MB_PHYSINV_INTERNAL                     Connection: Core Inventory and Retail AddOn                
    MB_MIGO_ITEM_BADI                       BAdI in MIGO for Changing Item Data                        
    MB_MIGO_BADI                            BAdI in MIGO for External Detail Subscreens                
    MB_DOC_BADI_INTERNAL                    BAdIs when Creating a Material Document (SAP Internal)     
    MB_DOCUMENT_UPDATE                      BADI when updating material document: MSEG and MKPF        
    MB_DOCUMENT_BADI                        BAdIs when Creating a Material Document                    
    MB_CIN_MM07MFB7_QTY                     Proposal of quantity from Excise invoice in GR             
    MB_CIN_MM07MFB7                         BAdI for India Version exit in include MM07MFB7            
    MB_CIN_LMBMBU04                         posting of gr                                              
    MB_CHECK_LINE_BADI                      BAdI: Check Line Before Copying to the Blocking Tables     
    <b>Reward if it helps</b>

  • Adding mark column into an alv

    Hallo ladies and gentlemen,
    how can i easily add an mark column to an alv-list?
    thanks a lot,
    Marcel

    hi,
    DATA : wf_slis TYPE  slis_t_fieldcat_alv.
    PERFORM build_catalog USING wf_slis[].
    FORM build_catalog USING wf_slis TYPE slis_t_fieldcat_alv.
    .ur old fields....
    *new field mark
      CLEAR wf_str_slis.
      wf_str_slis-fieldname = 'WF_MARK'.
      wf_str_slis-checkbox = 'X'.
      wf_str_slis-edit = 'X'.
      APPEND wf_str_slis TO wf_slis.
    endform.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         i_callback_program             = sy-cprog
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
      IS_LAYOUT                      =
         it_fieldcat                    =  wf_slis[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          t_outtab                       = int_zone[]
       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.
    rgds
    anver
    Message was edited by: Anversha s

  • Display data column wise in alv

    my problem is i want to display data in column wise in alv grid display
    for example it will display
    Name1    Amount
    GTS       12000
    TSL        8970
    MJB        4678
    but i want like:
    GTS    TSL    MJB
    12000 8970  4678
    Edited by: jadav_avani on Nov 15, 2010 8:33 AM
    Moderator Message: Search for available information.
    Edited by: kishan P on Nov 15, 2010 1:50 PM

    my problem is i want to display data in column wise in alv grid display
    for example it will display
    Name1    Amount
    GTS       12000
    TSL        8970
    MJB        4678
    but i want like:
    GTS    TSL    MJB
    12000 8970  4678
    Edited by: jadav_avani on Nov 15, 2010 8:33 AM
    Moderator Message: Search for available information.
    Edited by: kishan P on Nov 15, 2010 1:50 PM

  • Add extra field in alv

    Hi experts,
    i want to add extra field in alv that is totalprice
    the total price = qunatity * price
    already quantity and price from data base tables
    but the field total price is not from any table..
    thanks advans

    Hi,
    Quantity and Price both are ddic fields.
    Define the TOTAL PRICE of the type Price in the final internal table(table to b displayed).
    before passing the data / in looping define the logic...
    LOOP AT T_SOURCE.
    T_FINAL-PRICE = T_SOURCE-PRICE.
    T_FINAL-TOL_PRICE = T_FINAL-QTY x T_FINAL-PRICE
    ENDLOOP.
    Now all the required values are in the final table.
    Reward if helpful.
    Thanks.

Maybe you are looking for