Reg oop alv for push buttons

hi friends,
   can i make a particular fields of a column as pushbuttons (exactly as we do for check box)
       thank u
     urmila.t

Hi,
    You can make a field on ALV as Pushbutton.
To make a cell to be displayed as a pushbutton, we have two steps. Firstly, insert a new inner table of type u201CLVC_T_STYLu201D into your list data table.
*--- Internal table holding list data
DATA BEGIN OF gt_list OCCURS 0 .
INCLUDE STRUCTURE SFLIGHT .
DATA cellstyles TYPE lvc_t_styl .
DATA END OF gtlist .
Fill this inner table for each field to be displayed as pushbutton.
DATA ls_style TYPE lvc_s_styl .
READ TABLE gt_list INDEX 7 .
ls_style-fieldname = 'SEATSMAX' .
ls_style-style = cl_gui_alv_grid=>mc_style_button .
APPEND ls_style TO gt_list-cellstyles .
Now the field with fieldname SEATSMAX will be shown as a pushbutton
Regards,
Syed
MODIFY gt_list INDEX 7 .

Similar Messages

  • Accelerator keys for push buttons

    Hi,
    Does anyone know how can I define accelerator keys for push buttons. with ALT+underlined char. can I directly execute the button? If yes, how can we do that?
    Regards,
    Panneer

    Hi,
    As I know, GUI XT could be used to change the screen style. The pushbutton command could be used to add pushbutton.
    But after checking the material, I found it could only use SAP predefined accelerator keys which is in the PF-STATUS.
    FYI:
    Pushbutton
    Purpose With Pushbutton you can create your own pushbuttons within an R/3 screen or within the toolbar. You can make both the menu functions and the navigation to other transactions directly accessible with your own pushbuttons.
    Example
    Pushbutton (10,50) "Split Screen Editor" "SCMP"
    You create a pushbutton at row 10, column 50 with text Split Screen Editor. Clicking on the button invokes the internal code SCMP which then starts the Split Screen Editor.
    Internal codes How do I find the internal codes?
    Choose the desired function in the transaction menu and press F1 while the mouse cursor points to this function. Now the R/3 system displays the internal function code in a pop-up window
    Format Pushbutton (row,column) "Pushbutton text" "FCode" Process="..." 
    Adds a pushbutton on position (row,column). The pushbutton invokes the internal code FCode. This can be a code from the menu, e.g. SCMP, or a transaction code like /NFB01 or /OMM02.
    Process="..."  relates to the InputScript file. You can omit the "fcode" parameter if only "Enter" is needed in order to continue with the transaction.
    Pushbutton (Toolbar) "Pushbutton text" "FCode"
    Adds a pushbutton in the application toolbar. A free function key is assigned automatically and displayed in the quickinfo.
    *Pushbutton (Toolbar) "Pushbutton text" "FCode" "Fkey"*
    *Optionally you can specify a function key of your choice as an additional parameter Fkey using the format F1,..F12, ShiftF1,...,ShiftF12, CtrlF1,...,CtrlF12, ShiftCtrlF1,...,ShiftCtrlF12. If this function key is already in use the system chooses the next available number.*
    *example: Shift+F5  ->  F17, F3 -> F3* 
    Cheers

  • Perform setting OOP ALV for multiple reports using Field Symbols

    Hi, Abapers ... i try to write a programme which using ONE oop ALV but 2 different structure internal table. the last result should be 2 radio button. first button is r_wbs and 2ns r_kpi. r_wbs will display 4 column answer and r_kpi will display 10 columns answer with different column name. i successfully implemented using FIELDS SYMBOLS but the problems i failed to perform customized setting forALV (report's tittle, column name, different layout etc)  for 2 different reports.  this is the programme. Please Give Opinion, simple example will be more helpful. Thanks You Very Much
    *&this report experimental how to print into ONE alv
    *&with 2 diffrent structure internal table
    REPORT  zfiroopalv.
    SELECTION-SCREEN BEGIN OF BLOCK mode WITH FRAME TITLE text-002.
    PARAMETERS r_wbs RADIOBUTTON GROUP mode DEFAULT 'X'.
    PARAMETERS r_kpi RADIOBUTTON GROUP mode.
    SELECTION-SCREEN END OF BLOCK mode.
    CLASS lcl_main DEFINITION.
    PUBLIC SECTION.
    CLASS-DATA: md_wbs TYPE c LENGTH 1.
    METHODS: process,
             write.
    DATA: mdo_data TYPE REF TO data.
    TYPES: BEGIN OF st_wbs,
    rsnum TYPE zmeime002a-rsnum,
    rspos TYPE zmeime002a-rspos,
    a TYPE zmmgitab01-menge,
    b TYPE zmeime002a-bdmng,
    c TYPE zmeime002a-bdmng,
    d TYPE zmeime002a-bdmng,
    e TYPE zmeime002a-bdmng,
    f TYPE zmmgitab01-menge,
    g TYPE zmmgitab01-menge,
    END OF st_wbs.
    TYPES: BEGIN OF st_kpi,
    regio TYPE zmeime002a-regio,
    gsber TYPE zmeime002a-gsber,
    gtext TYPE zmeime002a-gtext,
    x TYPE zmmgitab01-menge,
    y TYPE zmmgitab01-menge,
    z TYPE zmmgitab01-menge,
    END OF st_kpi.
    CLASS-DATA: it_wbs TYPE TABLE OF st_wbs,
                wa_wbs LIKE LINE OF it_wbs.
    CLASS-DATA: it_kpi TYPE TABLE OF st_kpi,
                wa_kpi LIKE LINE OF it_kpi.
    PRIVATE SECTION.
    DATA: set_display_setting TYPE REF TO cl_salv_table.
    DATA: display_settings TYPE REF TO cl_salv_display_settings.
    DATA: salv_table TYPE REF TO cl_salv_table.
    DATA: error TYPE REF TO cx_root.
    DATA: errtext TYPE string.
    ENDCLASS.
    CLASS lcl_kpi DEFINITION INHERITING FROM lcl_main.
    PUBLIC SECTION.
    METHODS: process_kpi.
    PRIVATE SECTION.
    ENDCLASS.
    * C.L.A.S.S lcl_main D.E.F.I.N.I.T.I.O.N
    CLASS lcl_wbs DEFINITION INHERITING FROM lcl_main.
    PUBLIC SECTION.
    METHODS: process_wbs.
    PRIVATE SECTION.
    ENDCLASS.
    * m.a.i.n. .p.r.o.g.r.a.m.
    START-OF-SELECTION.
      DATA: o_main TYPE REF TO lcl_main.
    DATA: p_wbs TYPE c.
    CREATE OBJECT o_main.
      CASE 'X'.
      WHEN r_wbs.
          o_main->md_wbs = 'X'.
      WHEN r_kpi.
          o_main->md_wbs = ' '.
      ENDCASE.
      o_main->process( ).
      o_main->write( ).
    CLASS lcl_main IMPLEMENTATION.
    *ENDMETHOD.
    METHOD process.  " NOTE: public method
    DATA: o_main TYPE REF TO lcl_main,
          o_wbs TYPE REF TO lcl_wbs,
          o_kpi TYPE REF TO lcl_kpi.
    CREATE OBJECT: o_wbs,o_kpi.
      IF ( me->md_wbs = 'X' ).
          CALL METHOD o_wbs->process_wbs( ).  " NOTE: private method
          GET REFERENCE OF me->it_wbs INTO me->mdo_data.
      ELSE.
          CALL METHOD o_kpi->process_kpi( ).  " NOTE: private method
          GET REFERENCE OF me->it_kpi INTO me->mdo_data.
      ENDIF.
    ENDMETHOD.
    METHOD write.
    FIELD-SYMBOLS:
      <lt_outtab>    TYPE table.
      ASSIGN me->mdo_data->* TO <lt_outtab>.
    cl_salv_table=>factory(
    EXPORTING
    list_display = if_salv_c_bool_sap=>false
    IMPORTING
    r_salv_table = salv_table
    CHANGING
    t_table = <lt_outtab>
    salv_table->display( ).
    ENDMETHOD.
    ENDCLASS.
    CLASS lcl_kpi IMPLEMENTATION.
    METHOD process_kpi.
    *********** run some select statement into it_kpi*******
    ENDMETHOD.
    ENDCLASS.
    CLASS lcl_wbs IMPLEMENTATION.
    METHOD process_wbs.
    *********** run some select statement into it_wbs*******
    ENDMETHOD.
    ENDCLASS.

    Hi,
    I had similar requirement wherein I was supposed to display different data using 2 different internal tables on a subscreen area.
    The screen consists of two parts: 1) selection-screen with few input fields and two buttons 2) Subscreen area where the report need to be displayed. This report is displayed based on the button that the user is selecting. For this I have done the following things:
    1. Capture the sy-ucomm when user is clicking on any of the two buttons in PAI. Then perform data fetch operation.
             MODULE USER_COMMAND_9003 INPUT.
                 CASE OK_CODE.
                     WHEN 'DETAIL'.
                       GV_RPT = OK_CODE.
                       PERFORM F_GET_DETAIL_DATA.
                     WHEN 'REPORT'.
                       GV_RPT = OK_CODE.
                       PERFORM F_GET_REPT_DATA.
                   ENDCASE.
             ENDMODULE.                 " USER_COMMAND_9003  INPUT
    2.  Declare two different ALV's with the fieldcat similar to 2 internal tables respectively. Use the above sy-ucomm PBO to call appropriate ALV.
             MODULE DISPLAY_ALV OUTPUT.
               IF GV_RPT EQ 'DETAIL'.
                 PERFORM F_FIELDCAT_DETAIL.
                 PERFORM F_LAYOUT_DETAIL.
                 PERFORM F_EXCLUDE_TOOLBAR_DETAIL.
                 PERFORM F_DISPLAY_ALV_DETAIL.
               ELSEIF GV_RPT EQ 'REPORT'.
                 PERFORM F_FIELDCAT_REPT.
                 PERFORM F_LAYOUT_REPT.
                 PERFORM F_EXCLUDE_TOOLBAR_REPT.
                 PERFORM F_DISPLAY_ALV_REPT.
               ENDIF.
             ENDMODULE.                 " DISPLAY_ALV  OUTPUT
    3. Before displaying ALV you need to free the container and ALV.
    FORM F_DISPLAY_ALV_DETAIL .
    IF GC_CONTAINER_ES IS NOT INITIAL.
        CALL METHOD GC_CONTAINER_ES->FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 2
            OTHERS            = 3.
        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 GC_ALV_GRID_ES IS NOT INITIAL.
        CALL METHOD GC_ALV_GRID_ES->FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 2
            OTHERS            = 3.
        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 GC_CONTAINER_TB IS NOT INITIAL.
        CALL METHOD GC_CONTAINER_TB->FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 2
            OTHERS            = 3.
        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 GC_ALV_GRID_TB IS NOT INITIAL.
        CALL METHOD GC_ALV_GRID_TB->FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 2
            OTHERS            = 3.
        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.
      CREATE OBJECT GC_CONTAINER_ES
        EXPORTING
          CONTAINER_NAME              = 'CC_9003'
        EXCEPTIONS
          CNTL_ERROR                  = 1
          CNTL_SYSTEM_ERROR           = 2
          CREATE_ERROR                = 3
          LIFETIME_ERROR              = 4
          LIFETIME_DYNPRO_DYNPRO_LINK = 5
          OTHERS                      = 6.
      CREATE OBJECT GC_ALV_GRID_ES
        EXPORTING
          I_PARENT          = GC_CONTAINER_ES
        EXCEPTIONS
          ERROR_CNTL_CREATE = 1
          ERROR_CNTL_INIT   = 2
          ERROR_CNTL_LINK   = 3
          ERROR_DP_CREATE   = 4
          OTHERS            = 5.
      CALL METHOD GC_ALV_GRID_ES->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IS_LAYOUT                     = GS_LAYOUT_ES
          IT_TOOLBAR_EXCLUDING          = GT_TOOLBAR_ES
        CHANGING
          IT_OUTTAB                     = GT_ES_REPT
          IT_FIELDCATALOG               = GT_FIELDCAT_ES
        EXCEPTIONS
          INVALID_PARAMETER_COMBINATION = 1
          PROGRAM_ERROR                 = 2
          TOO_MANY_LINES                = 3
          OTHERS                        = 4.
    ENDFORM.                    " F_DISPLAY_ALV_DETAIL
    Similarly define the FORM F_DISPLAY_ALV_REPT.     
    Hope this will be useful for you. If you have any more queries let me know.

  • Alv grid push button functionality

    Hi all,
             I have a push button as one of the fields in fieldcatalog.i am using class cl_gui_alv_grid .
      I want that when that push button is clicked then some action should take place.
    How can i get user action on clicking that Push button.
    please reply soon with some sample code
    regards,
    kushagra

    Hi,
    Reference:http://www.erpgenie.com/sap/abap/controls/alvgrid.htm
    Note that this example uses table ZSFLIGHT. The table is equivalent to the table SFLIGHT.
    Steps:
    Create an executable program (Report)
    Create a screen (100) and place a custom container named ALV_CONTAINER on the screen
    Create a Pushbutton. Give it the text Exit and the functioncode EXIT
       REPORT sapmz_hf_alv_grid .
       TABLES: zsflight.
    G L O B A L   I N T E R N  A L   T A B L E S
       DATA: gi_sflight TYPE STANDARD TABLE OF sflight.
    G L O B A L   D A T A
       DATA: ok_code LIKE sy-ucomm,
             g_wa_sflight LIKE sflight.
    Declare reference variables to the ALV grid and the container
       DATA:
         go_grid             TYPE REF TO cl_gui_alv_grid,
         go_custom_container TYPE REF TO cl_gui_custom_container.
    S T A R T - O F - S E L E C T I O N.
       START-OF-SELECTION.
         SET SCREEN '100'.
       *&      Module  USER_COMMAND_0100  INPUT
       MODULE user_command_0100 INPUT.
         CASE ok_code.
           WHEN 'EXIT'.
             LEAVE TO SCREEN 0.
         ENDCASE.
       ENDMODULE.                 " USER_COMMAND_0100  INPUT
       *&      Module  STATUS_0100  OUTPUT
       MODULE status_0100 OUTPUT.
    Create objects
         IF go_custom_container IS INITIAL.
           CREATE OBJECT go_custom_container
             EXPORTING container_name = 'ALV_CONTAINER'.
           CREATE OBJECT go_grid
             EXPORTING
               i_parent = go_custom_container.
           PERFORM load_data_into_grid.
         ENDIF.
       ENDMODULE.                 " STATUS_0100  OUTPUT
       *&      Form  load_data_into_grid
       FORM load_data_into_grid.
    Read data from table SFLIGHT
         SELECT *
           FROM zsflight
           INTO TABLE gi_sflight.
    Load data into the grid and display them
         CALL METHOD go_grid->set_table_for_first_display
           EXPORTING i_structure_name = 'SFLIGHT'
           CHANGING  it_outtab        = gi_sflight.
       ENDFORM.                    " load_data_into_grid
    Reward points if helpful.
    Regards,
    Ramya

  • Translation of tooltip text for push button in status bar

    hi experts,
    I need to translate tooltip text of status bar push button from english language to  German . I am trying it using transaction SE41  Goto-> Translation . But it is not working . Please tell me the exact procedure to translate it , elaborately.
    Points will be rewarded.
    Thanks,
    Sushant

    Dear Shusant,
                             Create the text element for tooltip text, and translate the text element into German Language from GOTO menu.
    If helpfull give reward point.
    Thanks

  • Function keys for Push buttons

    Hi All,
    I have one query in module-pool program,I need to assign Function keys to Push buttons in my programe,like for create(F7),dispaly(F6) and also I need to overwrite few standard function keys,
    any one please guide me.
    Thanks n regds,
    Sree.

    Hi,
    you want in more detail.....ok
    (1)u've created a screen -
    > added push buttons etc. -
    > given name to screen elements i.e pushbuttons etc.and also declared them in program
    (2) create its GUI status ,say STATUS_100---->here you have to assign Function codes ->like if in standard toolbar you want BACK,EXIT,CANC or whatever you want,for ex. for BACK u'll find its icon -> double click on it>give the Func code say F3,now u also wnt to enable Func Key F3 for this--> go to UTILITIES (menu bar)-> F Key consistency-> here u will find all the Func keys-> so to F3 give the same func code as u gave to BACK icon button.
    similar approach u can use for pussbuttons:
    double click on push button> in screen painter attributes-> give the Func code to it ,say for CREATE button u give Func code NEW->come back to GUI status->similarly  go to UTILITIES (menu bar)-> F Key consistency-> here u will find all the Func keys---> so to F7 give the same func code (NEW)  as u gave to CREATE push button.
    (3) In PBO of this screen create a module to set its PF status:
    In screen flow logic:
    PROCESS BEFORE OUTPUT.
    * To set pf-status and title
      MODULE status_0100.
    In Program:
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_100'.
      SET TITLEBAR 'TITLE_100'.
    ENDMODULE.
    Hope this much detail is quite clear!!!
    Regards,
    Neha
    Edited by: Neha Shukla on Mar 5, 2009 10:35 AM

  • Reg- OOP ALV

    Hi,
      I am new to OOP ALV and I need to know when we will use split or custom or docking containers
    and whether its possible to have mean value (Average) and graphics output in normal ALV (using FM concept).
    Kindly expecting replies.
    Regards,
    Sathish

    You can use the class CL_GUI_SPLITTER_CONTAINER. Pass the docking container reference as the PARENT for the constructor method of the splitter class.
    For e.g.
    CREATE OBJECT <ref_to_splitter>
    EXPORTING
    parent = <ref_to_dock>
    rows = <r>
    columns = <c>.
    You may get any number of splitter containers based on the rows & cols specified.
    hi go thru these sites,
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5ecd2fe11d2b467006094192fe3/content.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIDOCK/BCCIDOCK.pdf
    Some of the commonly used containers are custom container,splitter container,docking container.Some of the commonly used controls are trees,ALV Grids,Text Editors,HTML Controls,Picture Control.
    CL_GUI_DIALOGBOX_CONTAINER .:This is used to display the dialog box container.It is displayed in a movable modelless dialog box which can have a title.
    Chk demo program:RSDEMO_DIALOGBOX_CONTROL
    CL_GUI_CUSTOM_CONTAINER :SAP Custom Container to build a control into an area on a screen or subscreen. You define the area occupied by the control in the Screen Painter. The default size of the control that you place in the Custom Container is the same as that of the container itself.
    Chk demo program:RSDEMO_CUSTOM_CONTROL
    CL_GUI_ALV_GRID:This is a control.The ALV grid control tool allows you to display and print non-hierarchial lists in a standardized format.The list data is displayed as a table on the screen.
    Chk demo program:BCALV*
    For ALV: http://www.sapdevelopment.co.uk/reporting/alvhome.htm
    You will get sample programs for all the containers and the controls on this link:
    http://www.geocities.com/victorav15/sapr3/abap_ood.html
    You can use the class CL_GUI_SPLITTER_CONTAINER. Pass the docking container reference as the PARENT for the constructor method of the splitter class.
    For e.g.
    CREATE OBJECT <ref_to_splitter>
    EXPORTING
    parent = <ref_to_dock>
    rows = <r>
    columns = <c>.
    You may get any number of splitter containers based on the rows & cols specified
    hi go thru these sites,
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/755b94ca5911d299af5c9604c10e27/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5ecd2fe11d2b467006094192fe3/content.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIDOCK/BCCIDOCK.pdf
    Some of the commonly used containers are custom container,splitter container,docking container.Some of the commonly used controls are trees,ALV Grids,Text Editors,HTML Controls,Picture Control.
    CL_GUI_DIALOGBOX_CONTAINER .:This is used to display the dialog box container.It is displayed in a movable modelless dialog box which can have a title.
    Chk demo program:RSDEMO_DIALOGBOX_CONTROL
    CL_GUI_CUSTOM_CONTAINER :SAP Custom Container to build a control into an area on a screen or subscreen. You define the area occupied by the control in the Screen Painter. The default size of the control that you place in the Custom Container is the same as that of the container itself.
    Chk demo program:RSDEMO_CUSTOM_CONTROL
    CL_GUI_ALV_GRID:This is a control.The ALV grid control tool allows you to display and print non-hierarchial lists in a standardized format.The list data is displayed as a table on the screen.
    Chk demo program:BCALV*
    For ALV: http://www.sapdevelopment.co.uk/reporting/alvhome.htm
    You will get sample programs for all the containers and the controls on this link:
    http://www.geocities.com/victorav15/sapr3/abap_ood.html
    You can use the class CL_GUI_SPLITTER_CONTAINER. Pass the docking container reference as the PARENT for the constructor method of the splitter class.
    For e.g.
    CREATE OBJECT <ref_to_splitter>
    EXPORTING
    parent = <ref_to_dock>
    rows = <r>
    columns = <c>.
    You may get any number of splitter containers based on the rows & cols specified
    Re: ALV Block List - Calculate Average
    Is there any functionality for AVERAGE in ALV, like do_sum, subtot?
    ALV in graphics ?
    Re: ALV OOPS Split container
    reward points if useful,

  • To set access key for push button in oracle forms 11g

    Dear Team,
    I have following setup:-
    We are using oracle database 11gR2
    Oracle Forms & reports : 11.1.2
    O.S : Windows 7 Professional
    We have migrated oracle forms version from 6i to 11g
    In oracle forms 6i in save button's property palette we set access key as 'S', so when we press alt+S cursor move to save button, same is not working in oracle forms 11g.
    What changes I have to made in new version so that after pressing alt+S cursor will move to save button.
    Any help is appreciated.
    Thanks in Advance.

    You will need to define your custom key map in the key mapping file you use. Typically fmrweb.res or fmrpcweb.res. Edit the file in a text editor and take a look to figure out where you need to make the change.This is wrong! The OP is talking about the Access Key (key mnemonic's) of a button. This has nothing to do with the mapping of keys in the frmweb.res, etc., files.
    @parapr, You don't mention the Java version installed and you don't mention if your OS is 32-bit or 64-bit. Likely, this issue could be related to an incompatible Java version. We use Access Keys in our 11g R2 application and they work just fine. Our Java version is 1.6.0_31. If you are using Java 1.7.0 - this version is not yet certified with Oracle Forms and I would recommend you downgrade to 1.6.0 (latest version).
    Craig...
    Edited by: CraigB on Dec 3, 2012 9:09 AM

  • PUSH Button In OOPS ALV

    Hi Freinds ,
    I'm Working on OOPS ALV And i want to know how to add a seprate colomn for push button in ALV means i know how to make all cells of a coloumn as push button but now i want to add a separate coloumn for push button in that oops alv so can any one help me if useful it will be rewarded and please just dont copy paste the code by taking it from other sites please explain me how can i make it possible

    Hi,
    You have to add another column in your internal table with some name 'PUSH' for example. Add this field in fieldcatelog also. Set the properties of this field as a push button. Now you will have a additional column in your ALV display with all pushbuttons.
    Hope this solves the problem.
    Thanks and Regards,
    Lakshmi.

  • Disabling push button column cell on alv grid control (OOABAP)

    Hello All,
    I have a requirement where I need to add one column as pushbutton in alv grid display. I have done that and it's triggering button_click event also. The problem here is that I want the few <b>push button cells</b> of that column to be disbaled (depending on my requirement). I tried using a internal table lvc_t_styl and adding a field of same lvc_t_styl in my main internal table. This works for all other fields (e.g disbaling checkbox in alv grid and other editable fields) but not for push buttons. My exact requirement is that I want some of the <b>cells of pushbutton column to be grayed out (made inactive)</b>. Can anyone tell me how to do that. Thanks.
    Note:Helpful answers will be duly rewarded.
    null

    Hi,
    I had the same problem.
    what I did I just added the  cl_gui_alv_grid=>mc_style_button at each row of the data table instead of adding it at the field catalog level.
    Hope this solve your problem.
    Thanks,
    Harish

  • Push Buttons, Radio Buttons, Folder Tabs

    Could someone please let me in on the secret to selecting
    background colors for push-buttons, radio-buttons and folder
    tabs. I've tried the obvious properties with no luck.
    I am developing on a Windows NT 4.0 platform using Developer
    6.0. I will be releasing my app to the web soon and could
    really use some help.
    Ideally, I would like to be able to select any color ( i.e. to
    match the background color of the canvas ), but so far the only
    choices seem to be black, white or a couple of other non-
    desirable colors ( bright red, green, yellow, yuck! ). Is a
    custom color palette the ticket?
    I realize that many button properties are controlled by Windows.
    If this is the case, are there any work-arounds? When I
    distribute the application, will I be able to offer my customers
    the ability to configure Windows to correctly define the button
    colors?
    I am sure that others have these same questions. I have not
    been able to find any answers. Any help is greatly appreciated.
    Mike
    [email protected]
    null

    Hi,
    1. Disabling Push button.
        In PBO loop at sccreen and check the field name is equal to push button name
        set screen-input = 0.
        modify screen.
        endloop.
    2.assign a function code to radio button in screen element it will trigger the PAI.
    In PAI during loop at table control check the field value is equal to 'X'.then not down the roqw number and in PBO enable the button based on the row number by looping at screen.
    3Assign the fcode to push button.Once the user presses the button in PAI check the focde and see for which line it is pressed based on it call the pop up screen using FM or dialog box.
    Regards,
    Nabheet Madan
    Never give Up.
    Edited by: nabheet1234 on May 11, 2009 2:26 PM
    Edited by: nabheet1234 on May 11, 2009 2:27 PM

  • Push button column in table control

    Hi,
    I have to add a few push button columns into table control. This columns has to be placed between fields of DDic table. How to do this? Shall I create new DDic structure with all the needed fields  from DDic table and add also fields for push button columns? Which data element shal I use in this case for push button field? Or is the better solution to add DDic table fields one by one and then using drag and drop technique to add push button column behind it?
    Thanks.

    Hi ,
        Your Last option is better first add columns into DDIC table then  Drag and
    Drop it on table control .
      That will better definitely.................................
    if useful rewards the point..............
    Thanks .
    Nilesh Jain

  • Push Button in Multirecord block and Record Number

    Hi All,
    I have a push button in Multirecord block.
    for eg. there are 5 records in that block and cursor is on 1st record. if users pressess the push button on 3rd record (or other than 1st record) i want to get that 3rd record number. i am not able to get this. i checked :system.trigger_record, cursor_record, mouse_record values but it is not working correctly.
    what code should i write in when-button-pressed trigger to work it the way i want.
    can anybody help.
    regds

    Yes i got it
    Re: multi-record push button
    set mouse navigable property to true for push button and you get the :system.trigger_record value.

  • Where to write the code when the push button is clicked in the screen

    I have designed a screen with a push button and a text box
    If i click on the push button it should display a value 'hello' in the text box. How to do

    When you are using module pool programming,
    handle the push button function code in the PAI module and make sure the text field is updated whenever that function code for push button gets executed.
    And one more thing is that make sure you set the next screen to the same screen number because after executing the function code then again it has to go back to the PBO of that screen for displaying  the text field.
    For inital display, the text field is displayed blank and it is filled when that function code is executed.
    Regards,
    Balaji Reddy G
    Note:Please reward if the answers are helpful

  • OOPS ALV   size need to increase

    Hi Friends -
    Am using OOPS  ALV  for  report display  and the display  is devided  in two parts  
    one is header info
    second is  general info 
    am facing a prob is   even if  four or five reords  are only there in  both the section  even then  its  coming with scroll bar  RO in a shrink  way   then  i  have to drag  and increase the size   then  only i can see other records     how  can   we resolve this issue ?
    am using   structure   lvc_t_fcat  .
    also can anybody pls tell me the correct  Function Module  to sent mail   using this ALV  header as subject and  ALV general part as  content of mail ..
    Thanks
    Smeeta

    I  Really Appriciate your immd response on this   issue ,  but  even trying this also  no luck ,
    see my  report is devided like this
    This will create a container
      CREATE OBJECT ob_custom
        EXPORTING
          container_name = 'CONTAINER'
          style    =  cl_gui_custom_container=>ws_maximizebox.
    CREATE OBJECT ob_split1
        EXPORTING
          parent      = ob_custom
          orientation = cl_gui_easy_splitter_container=>orientation_vertical.
      CREATE OBJECT ob_split3
        EXPORTING
          parent      = ob_split1->top_left_container
          orientation = cl_gui_easy_splitter_container=>orientation_vertical.
    CREATE OBJECT ob_split2
        EXPORTING
          parent      = ob_split1->bottom_right_container
          orientation = cl_gui_easy_splitter_container=>orientation_vertical.
    CREATE OBJECT ob_grid1
        EXPORTING
          i_parent = ob_split3->top_left_container.
          CREATE OBJECT ob_grid2
        EXPORTING
          i_parent = ob_split3->bottom_right_container.

Maybe you are looking for

  • Change default page of Wikis

    Hi. When i turned on the Wikis Server my default HTML page change to the attached. There are some way to change it for an html page? I created a html cool menu but its designed in HTML. Thanks !!!

  • Customization to call JSP from PO notification

    Hi, I have a task which is calling new customizated JSP /HTML etc page from PO notification including parameter, any advice please. Thanks in advance. Rgds, CY

  • DAQmx - Measuring edge position (time) with a counter ?

    Hi all, I have two signals that I need to study using a USB 6212 (BNC) card: (1) a short 0-8V signal (~500 ns) (yellow on the plot) (2) a long signal (~6 µs) for which I have to measure the amplitude (purple on the plot). The long signal (2) has to b

  • LR/PS CC in South Africa

    I'd like to take up the $9.99 offer for LR/PS CC. When I tried online, I received a notification that it wasn't available in my country, South Africa, yet this site says personal cloud memebership IS - http://www.adobe.com/content/dam/Adobe/en/produc

  • How to revert a database back to one day previous state.

    Hi, Of course, if no backup, then no restore. However, unfortunately there is NO database backup available i.e. export/expdp/OS Backup/RMAN/Flashback. But, the requirement is to prepare another database on another server with one day back state. So,