Need to add checkbox in alv header Not  in grid

Dear Guru's,
                   My question is i want to add checkbox on top of alv grid ie on top of page .
my requriement is for SD module- status of order -Mass Update.
suppose status checkbox on header is HFSC is checked ( check box),
for all the sales order which are showed on the alv grid must be updated with this status for which i am calling trasaction VA02 in program and doing changes but i am not able to create checkbox on header .
Again i have already used ALV without classesso please give me solution accordinglly . Thanks in advance.

Hi,
For working with top of page we generally use SLIS_LISTHEADER right.
In this type the first field is
type - which can accept values as follows
           H - Heading
           S - Selection
           A - Action
May be the options Selection or Action may help u.

Similar Messages

  • Hi Experts, oo hierarchical alv, how to add checkbox on every header?

    Hi Experts,
    I am working on oo hierarchical alv, how can I add checkbox on every header? thanks in advance!
    Kind regards
    Dawson

    Hi Dawson,
    Just refer the below program & pass the check box functionality (mentioned in bold) in REUSE_ALV_HIERSEQ_LIST_DISPLAY in your program.
    TYPE-POOLS : slis.
    Data
    DATA : BEGIN OF itab OCCURS 0.
    INCLUDE STRUCTURE t001.
    DATA : flag tyPE c,
    END OF itab.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : alvly TYPE slis_layout_alv.
    Select Data
    SELECT * FROM t001 INTO TABLE itab.
    *------- Field Catalogue
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_internal_tabname = 'ITAB'
    i_inclname = sy-repid
    CHANGING
    ct_fieldcat = alvfc
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    Display
    alvly-box_fieldname = 'FLAG'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    it_fieldcat = alvfc
    i_callback_program = sy-repid "<-------Important
    i_callback_user_command = 'ITAB_USER_COMMAND' "<------ Important
    is_layout = alvly
    TABLES
    t_outtab = itab
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    CALL BACK FORM
    FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
    slis_selfield.
    LOOP AT itab.
    itab-flag = 'X'.
    MODIFY itab.
    ENDLOOP.
    IMPORTANT.
    WHATROW-REFRESH = 'X'.
    ENDFORM. "ITAB_user_command
    Regards
    Abhii...

  • Need to add icon in ALV

    i had declared atype and internal table repcetively,
    TYPES : BEGIN OF ty_pr                  ,
              icon     LIKE icon-id         ,
              banfn    LIKE eban-banfn      ,        
              txz01    LIKE eban-txz01      ,             
              ernam    LIKE eban-ernam      ,  
           END OF ty_pr.
    DATA : it_pr TYPE STANDARD TABLE OF  ty_pr
           WITH HEADER LINE.
    i need to add one icon(not light) in the first column of ALV.Can anyone help me.
    Thks,
    Manish.

    Check the following example it may help u.
    report z_example.
    TYPE-POOLS: slis,icon.
    DATA: x_fieldcat TYPE slis_fieldcat_alv,
          it_fieldcat TYPE slis_t_fieldcat_alv,
          l_layout TYPE slis_layout_alv.
    DATA: BEGIN OF itab OCCURS 0,
          vbeln LIKE vbak-vbeln,
          posnr LIKE vbap-posnr,
          icon(1),
         END OF itab.
    data:program type sy-repid.
    SELECT vbeln
           posnr
           FROM vbap
           UP TO 20 ROWS
           INTO TABLE itab.
    LOOP AT itab.
      IF sy-tabix = 1 OR sy-tabix = 2.
        itab-icon = '1'.
      ELSEIF sy-tabix = 10 OR sy-tabix = 20.
        itab-icon = '2'.
      ELSE.
        itab-icon = '3'.
      ENDIF.
      MODIFY itab INDEX sy-tabix.
    ENDLOOP.
    program = sy-repid.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-hotspot = 'X'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    l_layout-lights_fieldname = 'ICON'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
              i_callback_program = program
              is_layout          = l_layout
              it_fieldcat        = it_fieldcat
         TABLES
              t_outtab           = itab
         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.
    regards

  • Code for complete JTree of mycomputer (dynamic) but need to add checkboxes

    //the bug is where i am sending the value to the checkbox.. if somebody can add checkboxes to every node plz reply soon
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    import java.util.Vector;
    import javax.swing.AbstractCellEditor;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.UIManager;
    import javax.swing.event.ChangeEvent;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.TreeCellEditor;
    import javax.swing.tree.TreeCellRenderer;
    import javax.swing.tree.TreePath;
    public class CheckBoxNodeTreeSample {
    public static void main(String args[]) {
    JFrame frame = new JFrame("CheckBox Tree");
    /* CheckBoxNode accessibilityOptions[] = {
    new CheckBoxNode(
    "Move system caret with focus/selection changes", false),
    new CheckBoxNode("Always expand alt text for images", true) };
    CheckBoxNode browsingOptions[] = {
    new CheckBoxNode("Notify when downloads complete", true),
    new CheckBoxNode("Disable script debugging", true),
    new CheckBoxNode("Use AutoComplete", true),
    new CheckBoxNode("Browse in a new process", false) };
    Vector accessVector = new NamedVector("Accessibility",
    accessibilityOptions);
    Vector browseVector = new NamedVector("Browsing", browsingOptions);
    Object rootNodes[] = { accessVector, browseVector };
    Vector rootVector = new NamedVector("Root", rootNodes);
    setLayout(new GridLayout(1,1));
    //create the top node
    MutableTreeNode root = new DefaultMutableTreeNode("Computer");
    //get all nodes for top file systems or disks
    //On Linux/Unix this will only be '/'
    //while on Window there will typically be more: 'A:', 'C:' etc.
    File roots[] = File.listRoots();
    //loop through all these nodes and add them to the root Computer node
    int i = 0;
    for(File f : roots) {
    DefaultMutableTreeNode node = new DefaultMutableTreeNode(f.getAbsoluteFile().toString());
    root.insert(node, i++);
    //create a tree model with the Computer node as root
    model = new DefaultTreeModel(root);
    JTree tree = new JTree(model);
    CheckBoxNodeRenderer renderer = new CheckBoxNodeRenderer();
    tree.setCellRenderer(renderer);
    tree.setCellEditor(new CheckBoxNodeEditor(tree));
    tree.setEditable(true);
    JScrollPane scrollPane = new JScrollPane(tree);
    frame.getContentPane().add(scrollPane, BorderLayout.CENTER);
    frame.setSize(300, 150);
    frame.setVisible(true);
    class CheckBoxNodeRenderer implements TreeCellRenderer {
    private JCheckBox leafRenderer = new JCheckBox();
    private DefaultTreeCellRenderer nonLeafRenderer = new DefaultTreeCellRenderer();
    Color selectionBorderColor, selectionForeground, selectionBackground,
    textForeground, textBackground;
    protected JCheckBox getLeafRenderer() {
    return leafRenderer;
    public CheckBoxNodeRenderer() {
    Font fontValue;
    fontValue = UIManager.getFont("Tree.font");
    if (fontValue != null) {
    leafRenderer.setFont(fontValue);
    Boolean booleanValue = (Boolean) UIManager
    .get("Tree.drawsFocusBorderAroundIcon");
    leafRenderer.setFocusPainted((booleanValue != null)
    && (booleanValue.booleanValue()));
    selectionBorderColor = UIManager.getColor("Tree.selectionBorderColor");
    selectionForeground = UIManager.getColor("Tree.selectionForeground");
    selectionBackground = UIManager.getColor("Tree.selectionBackground");
    textForeground = UIManager.getColor("Tree.textForeground");
    textBackground = UIManager.getColor("Tree.textBackground");
    public Component getTreeCellRendererComponent(JTree tree, Object value,
    boolean selected, boolean expanded, boolean leaf, int row,
    boolean hasFocus) {
    Component returnValue;
    if (leaf) {
    String stringValue = tree.convertValueToText(value, selected,
    expanded, leaf, row, false);
    leafRenderer.setText(stringValue);
    leafRenderer.setSelected(false);
    leafRenderer.setEnabled(tree.isEnabled());
    if (selected) {
    leafRenderer.setForeground(selectionForeground);
    leafRenderer.setBackground(selectionBackground);
    } else {
    leafRenderer.setForeground(textForeground);
    leafRenderer.setBackground(textBackground);
    if ((value != null) && (value instanceof DefaultMutableTreeNode)) {
    Object userObject = ((DefaultMutableTreeNode) value)
    .getUserObject();
    if (userObject instanceof CheckBoxNode) {
    CheckBoxNode node = (CheckBoxNode) userObject;
    leafRenderer.setText(node.getText());
    leafRenderer.setSelected(node.isSelected());
    returnValue = leafRenderer;
    } else {
    returnValue = nonLeafRenderer.getTreeCellRendererComponent(tree,
    value, selected, expanded, leaf, row, hasFocus);
    return returnValue;
    class CheckBoxNodeEditor extends AbstractCellEditor implements TreeCellEditor {
    CheckBoxNodeRenderer renderer = new CheckBoxNodeRenderer();
    ChangeEvent changeEvent = null;
    JTree tree;
    public CheckBoxNodeEditor(JTree tree) {
    this.tree = tree;
    public Object getCellEditorValue() {
    JCheckBox checkbox = renderer.getLeafRenderer();
    CheckBoxNode checkBoxNode = new CheckBoxNode(checkbox.getText(),
    checkbox.isSelected());
    return checkBoxNode;
    public boolean isCellEditable(EventObject event) {
    boolean returnValue = false;
    if (event instanceof MouseEvent) {
    MouseEvent mouseEvent = (MouseEvent) event;
    TreePath path = tree.getPathForLocation(mouseEvent.getX(),
    mouseEvent.getY());
    if (path != null) {
    Object node = path.getLastPathComponent();
    if ((node != null) && (node instanceof DefaultMutableTreeNode)) {
    DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) node;
    Object userObject = treeNode.getUserObject();
    returnValue = ((treeNode.isLeaf()) && (userObject instanceof CheckBoxNode));
    return returnValue;
    public Component getTreeCellEditorComponent(JTree tree, Object value,
    boolean selected, boolean expanded, boolean leaf, int row) {
    Component editor = renderer.getTreeCellRendererComponent(tree, value,
    true, expanded, leaf, row, true);
    // editor always selected / focused
    ItemListener itemListener = new ItemListener() {
    public void itemStateChanged(ItemEvent itemEvent) {
    if (stopCellEditing()) {
    fireEditingStopped();
    if (editor instanceof JCheckBox) {
    ((JCheckBox) editor).addItemListener(itemListener);
    return editor;
    class CheckBoxNode {
    String text;
    boolean selected;
    public CheckBoxNode(String text, boolean selected) {
    this.text = text;
    this.selected = selected;
    public boolean isSelected() {
    return selected;
    public void setSelected(boolean newValue) {
    selected = newValue;
    public String getText() {
    return text;
    public void setText(String newValue) {
    text = newValue;
    public String toString() {
    return getClass().getName() + "[" + text + "/" + selected + "]";
    class NamedVector extends Vector {
    String name;
    public NamedVector(String name) {
    this.name = name;
    public NamedVector(String name, Object elements[]) {
    this.name = name;
    for (int i = 0, n = elements.length; i < n; i++) {
    add(elements);
    public String toString() {
    return "[" + name + "]";

    Between when you posted the question and the entire 50 minutes you waited for an answer, I tried compiling that code you posted, with a view to help out.
    What I found was..
    That code did not compile as posted.
    - It was missing imports
    - There was a direct reference to setLayout that applied to no member
    - model was not declared properly
    It also shows unchecked add warnings, please fix those before posting.
    BTW - please do not remove indenting from posted code, it makes it very hard to read, replace any tabs in the source for 2-4 spaces instead. Also, code is easier to examine when it is enclosed in 'code' tags - this can be achieved by selecting the code and pressing the 'code' button above the form field we type the messages.
    On the subject of what you are trying to do, please trim your example down to something that tries to create this tree form any directory structure the user might specify with a JFileChooser, because I am running a slow machine with large drives, and creating a JTree of the entire file system would take far too long.
    Fix those things, and I'll take a second look.
    As an aside. If you wish to get answers 'within the hour', you will probably need a consultant or a help desk. If you post to these forums, you need to be more patient.

  • Need class name to display ALV list (not Grid) in objects..

    hi,
    i need to display ALV list ( not ALV Grid ) in objects.. i dont the class name for tat.. so plz can anyone help me out for the same..
    thanks in advance..

    With cl_salv_table you can have both grid or list, depending what you want.
          cl_salv_table=>factory(
             EXPORTING
               list_display   = 'X'  "when space then GRID, when 'X' then LIST
             IMPORTING
               r_salv_table  = ref_table
             CHANGING
               t_table       = gt_sflight ).
    Regards
    Marcin

  • ALV header not showing in display

    Hello experts,
    This problem has been bugging me for quite some time. I modified a report to be shown in ALV format. Now, when I execute the report the header does not display. Anyway, I have pasted below my code so you guys might see if I'm missing something. Help would be greatly appreciated. Thanks guys and have a nice day!
    FORM display_alv.
      PERFORM f_build_comment USING gt_list_top_of_page[].
      PERFORM f_build_layout USING gs_layout.
      PERFORM f_init_fieldcat USING gt_fieldcat[].
      PERFORM f_init_events USING 'TOP' gt_events[].
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
           EXPORTING
                i_callback_program      = g_repid
                i_callback_user_command = 'USER_COMMAND'.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
           EXPORTING
                it_fieldcat = gt_fieldcat[]
                is_layout   = gs_layout
                i_tabname   = 'IT_ZTS0001'
                it_events   = gt_events[]
                it_sort     = gt_sort_del
                i_text      = '1ST'
           TABLES
                t_outtab    = it_zts0001.
      gt_print-reserve_lines = 2.
      gt_print-no_coverpage = 'X'.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
           EXPORTING
                is_print = gt_print.
    ENDFORM.                    " DISPLAY_ALV
          FORM f_build_comment                                          *
    -->  %TOP_OF_PAGE                                                  *
    FORM f_build_comment USING %top_of_page TYPE slis_t_listheader.
      DATA: ls_line TYPE slis_listheader,
            d_name(60),
            lv_date(10),
            lv_time(10),
            lc_dttm(50).
    **-REPORT NAME
      CLEAR: d_name, ls_line.
      MOVE: sy-title TO d_name.
      ls_line-typ  = 'H'.
      ls_line-info = d_name.
      APPEND ls_line TO %top_of_page.
    **-USER ID AND DATE/TIME
      CLEAR: d_name, ls_line.
      CONCATENATE: 'Generated by:' sy-uname INTO d_name SEPARATED BY space.
      ls_line-typ  = 'H'.
      ls_line-info = d_name.
      APPEND ls_line TO %top_of_page.
      CLEAR: d_name, ls_line.
      WRITE: sy-datum TO lv_date MM/DD/YYYY,
             sy-uzeit TO lv_time USING EDIT MASK '__:__:__'.
      CONCATENATE: 'Generated on:' lv_date lv_time
        INTO d_name SEPARATED BY space.
      ls_line-typ  = 'H'.
      ls_line-info = d_name.
      APPEND ls_line TO %top_of_page.
    ENDFORM.                    " F_BUILD_COMMENT
          FORM f_build_layout                                           *
    -->  %LAYOUT                                                       *
    FORM f_build_layout USING %layout TYPE slis_layout_alv.
      %layout-zebra             = 'X'.
    ENDFORM.                    " F_BUILD_LAYOUT
          FORM f_init_fieldcat                                          *
    -->  %FIELDCAT                                                     *
    FORM f_init_fieldcat USING %fieldcat TYPE slis_t_fieldcat_alv.
      DATA: lc_fieldcat TYPE slis_fieldcat_alv.
      CLEAR lc_fieldcat.
      DEFINE m_field.
        add 1 to lc_fieldcat-col_pos.
        lc_fieldcat-fieldname   = &1.
        lc_fieldcat-outputlen   = &2.
        lc_fieldcat-seltext_l   = &3.
        lc_fieldcat-do_sum      = &4.
        lc_fieldcat-inttype     = &5.
        lc_fieldcat-hotspot     = &6.
        lc_fieldcat-fix_column  = &7.
        lc_fieldcat-ddictxt     = 'L'.
        lc_fieldcat-no_zero     = 'X'.
        append lc_fieldcat to %fieldcat.
      END-OF-DEFINITION.
      m_field 'KUNNR' '12' 'Customer Number'        ''  ''  ''  ''.
      m_field 'CD_SEQ' '12' 'Code'                  ''  ''  ''  ''.
      m_field 'ZADDRESS' '12' 'Address'             ''  ''  ''  ''.
      m_field 'ZCPERSON' '12' 'Contact Person'      ''  ''  '' ''.
      m_field 'ZCNUMBER' '12' 'Contact Number'      ''  ''  '' ''.
    ENDFORM.                    " f_init_fieldcat
          FORM f_init_events                                            *
    -->  P_TYPE                                                        *
    -->  %EVENTS                                                       *
    FORM f_init_events USING p_type CHANGING %events TYPE slis_t_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                i_list_type     = 0
           IMPORTING
                et_events       = %events
           EXCEPTIONS
                list_type_wrong = 1
                OTHERS          = 2.
      IF sy-subrc = 0.
        PERFORM f_build_events USING: slis_ev_user_command.
        IF p_type = 'TOP'.
          PERFORM f_build_events USING: gc_top.
       ELSEIF p_type = 'SUM'.
         PERFORM f_build_events_sum USING: gc_topsum.
        ENDIF.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " F_INIT_EVENTS
          FORM f_build_events                                           *
    -->  %EVENT                                                        *
    FORM f_build_events USING %event.
      READ TABLE gt_events WITH KEY name = %event.
      IF sy-subrc = 0.
        MOVE: %event TO gt_events-form.
       MOVE 'USER_COMMAND' TO gt_events-form.
        MODIFY gt_events INDEX sy-tabix.
      ENDIF.
    ENDFORM.                    " F_BUILD_EVENTS
          FORM top_of_page                                              *
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = gt_list_top_of_page.
    ENDFORM.

    Hi,
    Using ALV_BLOCK you can append multiple internal table and display them in one shot.
    With ALV Grid you cannot do that, but the output is more prettier than a list. It will look a excel sheet.
    Look at the layout values you are passing for the size of the ALV.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • How to add checkbox in ALV OO?

    how to change editable mode and able to input???
    REPORT  ZZ_ALV_TEST.
    data:
          ispfli type table of spfli.
    data: gr_table type ref to cl_salv_table.
    data: gr_functions type ref to cl_salv_functions.
    data: gr_display type ref to cl_salv_display_settings.
    DATA: GR_COLUMNS TYPE REF TO CL_SALV_COLUMNS_TABLE,
          GR_COLUMN  TYPE REF TO CL_SALV_COLUMN_TABLE.
    start-of-selection.
    select * into table ispfli from spfli.
    cl_salv_table=>factory( importing r_salv_table = gr_table changing
    t_table = ispfli ).
    gr_functions = gr_table->get_functions( ).
    gr_functions->set_all( abap_true ).
    GR_COLUMNS = GR_TABLE->GET_COLUMNS( ).
      TRY.
          GR_COLUMN ?= GR_COLUMNS->GET_COLUMN( 'CARRID' ). "Column which you
    * want to make checkbox
          GR_COLUMN->SET_CELL_TYPE( 1 ).
        CATCH CX_SALV_NOT_FOUND.
      ENDTRY.
    gr_table->display( ).

    I understand the CARRID column is not a checkbox, so you might mean something else entirely. If all you need is to toogle a checkbox value on click, then
    - first make the checkbox a hotspot
    gr_column->set_cell_type(  if_salv_c_cell_type=>checkbox_hotspot ). " constant value 6
    - implement a handler to the hotspot event
    DATA gr_events TYPE REF TO cl_salv_events_table.
        gr_events = gr_table->get_event( ).
        SET HANDLER ??->handle_hotspot_click FOR gr_events.
    - Your handler must toogle the checkbox value and refresh the display, something like
        METHOD handle_hotspot_click.
        FIELD-SYMBOLS <ls_item> TYPE spfli.
        READ TABLE ispfli INDEX row ASSIGNING <ls_item>.
        CHECK sy-subrc EQ 0.
        CASE column.
          WHEN 'CARRID'.  " your checkbox column
    *       Toogle Value
            IF <ls_item>-carrid EQ 'X'.
              <ls_item>-carridl = space.
             ELSE.
              <ls_item>-carrid = 'X'.
            ENDIF.
            gr_table->refresh( ).
        ENDCASE.
      ENDMETHOD.
    J.N.N

  • ALV header not printing

    Hello everybody,
    I am printing an ALV report. The problem i am facing is,
    1. When using write statement top of page event is triggered but O/P IN GRID header is blank?
    2. When using REUSE_ALV_COMMENTARY_WRITE, header is printed. But how can I move the texts to custom position.
    Urgent reply needed.
    Thanks.

    Hi Michael,
    One idea could be place ur text in the wa as per ur requirement(i.e. position).
    eg: WA_LIST_COMMENTARY-INFO+20(10) = 'My Header'.
        APPEND WA_LIST_COMMENTARY TO IT_LIST_COMMENTARY.
    Now Pass this internal table to COMMENTARY WRITE FM.
    But here u have restriction. Max length that can be passed to
    this internal table is 60 characters.
    Thanks,
    Vinod.

  • Need to add checkbox to JTreeTables..HELP plz

    hello everybody,
    I am having problems adding a checkbox to a JTreeTable example from sun .
    i also have a woriking checkbox Jtree class and it is working fine, i tried to add jtable to the jtree and i couldnt.
    can anybody help me, either how ti add a checkbox to a JTreeTable or how to add a JTable to a JCheckBoxTree.
    thanks lots.

    http://forum.java.sun.com/thread.jspa?threadID=461659&messageID=4024652#4024652

  • Add checkbox on header level Tab Org.data

    Dear All,
    My requirement is I need to add checkbox on header level Tab Org.data in ME21n or ME21.
    And if checkbox is checked in the tab Org.data, it should display Terms and Conditions in the print preview.
    Please suggest how to write code? Is there any user exit for transactions ME21N or ME21.
    Thanks,
    Rana.

    hi praveen,
    search this forum on how to implement a badi if you haven't done one before. also, go to transation SE18 and read the documentation on badi_fdcb_subbas01 which clearly says that its used for FB60... see the example how they have used it by going to menubar Implementation->Overview then choose FI_FDCB_SUBBAS01_EX (Example for Screen Enhancement 1 on FDCB Basic Data Screen)...you should look at the method PUT_DATA_TO_SCREEN_OBJECT and tab Subscreens where the screen exits are available to use.
    In FB60, if you go to menubar System->Status and check the Program (Subscreen) and Screen Number, you'll see it'll match the program name and screen no. provided in the Subscreen tab of the BADI.
    Hope this helps.
    Cheers,
    Sougata.

  • How to add more comments in the Nomination Header notes tab

    Short Text 
    How to add more comments in the Nomination Header notes tab 
    In the nomination screen, there are the tabs for header and item notes.
    Within each of those tabs, there are categories for the type ofcomments. Currently in the nomination maintenance screen header notes
    there are onlythree comment categories are available 1) General comments 2) Carriercoment 3) Shipper Comment and We would like add more comments in this
    section. In the configuration we couldn't find a place where we can add
    more customer specific comments. Can we add comments in the header
    notes tab and if so where can we add the additional comments ?

    Hello Giri,
    You could try the following to create new text types for nomination header.
    1) Execute transaction SM31
    2) The view here is V_TTXIDI
    3) Click on maintain .
    4) Create new entries .
    5) Since you want to add new more comments in the nomination header enter the text object as OIJRCODE_H
    6) Enter a text ID starting with Z
    7) Enter a description and save the new entry.
    In case you want to add new comments at the item level use the text object as OIJRCODE_I.
    When you restart the transaction O4NM again you will see the new entry added.
    This will solve the issue.
    Regards,
    Sandil

  • How to Add Checkbox and icon in ALVGRID

    Hi Experts,
      i have one Requirement. i need to add Checkbox, Selectall,icon(Unlock or inactive) infront of Contracts of ALV GRID.How to achive that.
    Thanks,
    Venkat.

    Hi
    For check box
    At declaring field catalog using structure LVC_S_FCAT
    mark CHECKBOX = 'X' and also EDIT = 'X'.
    For reference check below subroutine in program BCALV_EDIT_05.
    form build_fieldcat changing pt_fieldcat type lvc_t_fcat.
    data ls_fcat type lvc_s_fcat.
    call function 'LVC_FIELDCATALOG_MERGE'
    exporting
    i_structure_name = 'SFLIGHT'
    changing
    ct_fieldcat = pt_fieldcat.
    *§A2.Add an entry for the checkbox in the fieldcatalog
    clear ls_fcat.
    ls_fcat-fieldname = 'CHECKBOX'.
    * Essential: declare field as checkbox and
    * mark it as editable field:
    ls_fcat-checkbox = 'X'.
    ls_fcat-edit = 'X'.
    * do not forget to provide texts for this extra field
    ls_fcat-coltext = text-f01.
    ls_fcat-tooltip = text-f02.
    ls_fcat-seltext = text-f03.
    * optional: set column width
    ls_fcat-outputlen = 10.
    append ls_fcat to pt_fieldcat.
    endform.
    For Icon:
    CONSTANTS:
         icon_id_failure            LIKE icon-id   VALUE ' ((Content component not found.)) @',
         icon_id_okay              LIKE icon-id   VALUE ' ((Content component not found.)) @'.
    TYPES: BEGIN OF ls_tab,
           matnr LIKE equi-matnr,
           maktx LIKE makt-maktx,
           b_werk  LIKE equi-werk,
           b_lager LIKE equi-lager,
           lgobe LIKE t001l-lgobe,
           sernr LIKE equi-sernr,
           icon LIKE icon-id,
           objnr LIKE equi-objnr,
          END OF   ls_tab.
    *Table that display the data for the ALV.
    DATA: itab  TYPE ls_tab OCCURS 0 WITH HEADER LINE.
        PERFORM get_h_date .
        IF h_date => sy-datum .
          itab-icon = icon_id_okay.
        ELSE .
          itab-icon = icon_id_failure.
         ENDIF.
    Regards
    Sudheer

  • I need to add one field Pers. sub area for Actions screen

    Normally, we will have Position, Pers. area, Emp group and Emp sub group in Actions screen. Now I want to add one more field to that screen, what is the navigation?
    Can anybody help me please.
    Regards,
    Pavani.

    hi,
    pavani. If i understood right, you need to add a field which is not listed in the module pool related to the screen you have to create a new field, here you can hide or make optional or intialize the field for the info types the table no T588M.
    let me know whether this is correctly answered or not
    regards,
    madhu

  • How to add month to dashboard header?

    Hi Experts,
    we have calmonth coming from a cube and that is supplied to a query and this query is the source for the dashboard. i need to add calmonth to dashboard header ? please give ur inputs..
    we are broadcasting to portal with bex broadcaster settings.
    points will be assigned.
    Thanks

    You can place rectangle in header section on master page which would be applied on sub pages and then fill rectangle with color.
    If you are after a specific color then simply use color code and fill.
    Thanks,
    Sanjit

  • Regarding CehckBox at ALV header

    Hi,
    know that we can have checkbox in column in ALV by using class CL_SALV_WD_UIE_CHECKBOX.
    But want to have CheckBox at ALV header like we can have button by using class  CL_SALV_WD_FE_BUTTON.
    Is it possible to have CheckBox at ALV header.
    If yes than how?
    Thanks & Regards,
    Arvind

    Unfortunately, I don't see any class for Checkbox
    CL_SALV_WD_FE_A_BUTTON
    CL_SALV_WD_FE_A_BUTTON_CHOICE
    CL_SALV_WD_FE_A_CAPTION
    CL_SALV_WD_FE_A_DRDN_BY_INDEX
    CL_SALV_WD_FE_A_DRDN_BY_KEY
    CL_SALV_WD_FE_A_DROPDOWN
    CL_SALV_WD_FE_A_INPUT
    CL_SALV_WD_FE_A_LINK
    CL_SALV_WD_FE_A_TOGGLE
    CL_SALV_WD_FE_A_TOGGLE_BUTTON
    CL_SALV_WD_FE_BUTTON
    CL_SALV_WD_FE_BUTTON_CHOICE
    CL_SALV_WD_FE_DROPDOWN_BY_IDX
    CL_SALV_WD_FE_DROPDOWN_BY_KEY
    CL_SALV_WD_FE_INPUT_FIELD
    CL_SALV_WD_FE_INTERACTIVE
    CL_SALV_WD_FE_LINK_TO_ACTION
    CL_SALV_WD_FE_LINK_TO_URL
    CL_SALV_WD_FE_SEPARATOR
    CL_SALV_WD_FE_TOGGLE_BUTTON

Maybe you are looking for