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

Similar Messages

  • 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.

  • Adding a column into existing index

    Can I add a column into existing index?
    or do I need to drop the index and recreate one?
    Thanks.

    but there is no way to add a column to an existing table10:43:24 TEST.SQL>create table test10:43:28 2 (
    10:43:29 3 a number
    10:43:32 4 )
    10:43:34 5 tablespace tools
    10:43:36 6 ;
    Table created.
    Elapsed: 00:00:00.06
    10:43:38 TEST.SQL>alter table test add
    10:43:44 2 b date;
    Table altered.
    Elapsed: 00:00:00.68
    10:43:48 TEST.SQL>desc test
    Name Null? Type
    A NUMBER
    B DATE
    10:43:51 TEST.SQL>drop table test;
    Table dropped.Indeed there is.Yoann.

  • Adding a column into the assets list view?

    I am trying to find a way to add a column into the assets list view.
    At the moment it has... Title, Metadata Set, Image Size, Duration, Size, Status etc...
    I would like to add another metadata field into the list and cannot find anywhere to do it. For example, add the 'Reel' metadata field into the list.
    Anyone have any ideas?
    Thanks.

    1. Log into Final Cut Server as the Admin.
    2. Open the Advanced Administration window from the java client.
    3. Search for the Metadata Group name "List"
    Note this search will return approximately 29 items, but you'll want to modify the one
    with the Metadata Group ID "ASSETLISTVIEW"
    4. Add the fields to that group that you want.
    5. To have these field show up either create New Workspace or logout and login.
    Hope this helps.
    Nicholas Stokes
    XPlatform Consulting
    [email protected]

  • Adding description column into wizard generated matrix report

    Hi,
    I currently have a matrix report that reports rows as job names and columns as media type. the intersection is the media code.
    for example i have a job called abc and it has envelopes(e1,e2), base stationary (s1,s2) and inserts (i1,i2).
    job envelope base stationary inserts
    abc e1 s1 i1
    e2 s2 i2
    so far i have no problems. what i would like to do is add a description entry next to the inserts column. the description is only for the insert and only needs to be shown when an insert is present.
    any ideas? i have tried adding in an additional field, however, i get some type of grouping error (my reports has just crashed so i can't get exact error)
    thanks in advance for the help!

    Hi,
    If I understood you right. Place the txt next to the insert field, then right click on the txt field and go to 'Conditional Formatting' then New. Put it in, if the value of Insert column is null, then click the 'Hide the Object' checkbox.
    -Marilyn

  • Adding A Column into a JTable

    Hi
    I have a JTable with two soccer teams in. What i want to do is to add in a column between them that just says "VS". I ahev to do this when the user clicks a button as the table is constructed from details stored in a MySQL database.
    Can anyone give me any help?
    Jason

    the DefaultTableModel supports an addColumn() method, so:
    a) create your table and TableModel
    b) add a column to the end of the DefaultTableModel
    Now the TableColumnModel controls the order in which the columns are painted, so
    a) get the TableColumnModel from the table
    b) move the colum to the center

  • Merging 2 Columns into 1 in ALV

    Hi Experts,
    I am using ALV grid to display data.
    I have two fields for icon in my internal table. if i concatenate the fields into one in the internal table
    itself then the second icon is displayed like @8O@ -> internal representation.
    Is there any way that i can show the two icons in one column of the ALV.
    Like if there is any way to remove the dividing line between the two columns only (not the whole ALV)
    Thanks
    Rajat

    Hi Naveen,
    I dont want to merge two different table of structure.
    I want to merge two icon fields into one column to display..
    Thanks
    Rajat

  • Adding custom field into ALV grid

    Hi all,
    I would like to add some custom fields into an ALV grid from a FI/CO report.
    I have succesfully added the custom field 'VAT' number for example
    FORM fieldcat_init
           USING rt_fieldcat TYPE slis_t_fieldcat_alv.
      CLEAR ls_fieldcat.
      ls_fieldcat-tabname       = g_tabname.
      ls_fieldcat-fieldname     = 'STCEG'.
    * LS_FIELDCAT-KEY           = ' '.        "sets key field
      ls_fieldcat-ref_fieldname = 'STCEG'.
      ls_fieldcat-ref_tabname   = 'KNA1'.
      APPEND ls_fieldcat TO  rt_fieldcat.
    ENDFORM.                    " FIELDCAT_INIT
    This works fine. But I have a problem to add another field named 'due days'.
    The due days for one record is calculated by a FM that gives back a NUMC datatype. for example : 6
    How can I get calculated fields into an ALV ?

    Hello Abjuh
    You could take the data element of the fm parameter which returns the calculated due date as basis for your fieldcatalog entry. Presumably you have to adjust the texts (e.g. LVC_S_FCAT-SCRTEXT_S) as well.
    Regards
      Uwe

  • New column in the ALV output of transaction phap_admin_pa

    Hello All,
    I want to display a new column in the ALV output of transaction phap_admin_pa. Is this possible? If so, could anyone please give some guidance how to proceed. The new column willl contain the elements from appraisal catalog. Do u think there will be any BADi's to achieve this or I am not sure if a custom program need to be created?
    Thank you very much,
    Rush

    Hi
    I had same problem of adding felds from additional data into the ALV and when I asked SAP they told me to implement BADI HRHAP00_REPORTING.
    I am still trying to get some info on how to implement it if you find any documentation of someone who has implemented appreciate you tell me.
    regards
    Pravin

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue.
    My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
    I don’t want to build this report from scratch. Is there any workaround to get it resolved?

    Hi,
    Just check it once the new added column data types are mismatched or not?
    and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
    Thanks..

  • Add a new column into repository

    hi
    In BI11g, how to add a new column into repository?
    Thanks
    kavi

    Hi kavitha,
    If your adding a new column to the physical layer or BMM layer the process is same as 10g.
    Steps:-
    1) Right click table where you want to add the column.
    2)Select new object >>physical column/BMM column
    3) Enter your choice labelling and data type,if needed formula.
    4) Click ok and you can see the column being added on to the table.
    CHeers,
    KK

  • Problem with the order of the columns of a ALV

    I have a problem with a ALV, variants we keep this ALV does not record the order of the columns
    Thank you

    I suppose you want to change the sequence of columns of a ALV. If you can change it by clicking 'settings' of right-top corner of ALV. After done you can save the new settings into a new. If you find some abnormal behaviour, please check the settings by WDA component "wd_analyze_config_user".
    FYI.
    [http://help.sap.com/saphelp_nw70/helpdata/en/32/f26f73d81e11d1a26f0000e8a5a614/frameset.htm]

  • 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

  • How to add one column into the t.code: cat2

    Hi
    I am userexits
    here i want to add one column into the t.code: cat2 at particular location, and that added field have to display the data what i am selcting in that transaction.
    how to do this...
    thankx

    hi,
        CATS0005           
        CATS0007           
        CATS0009        
        CATS0010        
        CATS0012.
        Go through the documentations of above Enhancements to solve ur problem. I am not able to understand ur exact requirement. that is y i gave some more Enhancements.

  • 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

Maybe you are looking for

  • Getting error while uploading workflow defination using concurrent program

    I have created a custom workflow. I am trying the upload in the testing instance using the concurrent program Workflow Definitions Loader in update mode. I am getting the following error log: Application Object Library: Version : 11.5.0 Copyright (c)

  • Lx16  physica inventory

    hi kishore, how are you, here one issue is relating to physical inventory here they asking while runing the lx16 the report is not coming issue is AU15-NHILL Missing Bins in report We have run the continuous counting process LX16 for: Warehouse No: A

  • Itunes Movie pre-orders - NOT WORKING

    I purchased SALT via Pre-order. I was finally able to get it to download, but was charged the full price and not the pre-order price. I also pre-ordered Resident Evil and the links do not work to download my order. I am able to log into the store and

  • Adobe acrobat XI installation

    Exit Code: 7 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ...   -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 3 error(s), 0 warning(s)    --

  • Form abnormal shutdown

    Hello all Whenever i run my form,it shutdown ubnormally?? ocJ4 is running normally. Any idea what might cause Forms to shutdown ubnormally. 10X