Reg hirer alv

hi,
       i am using hierarchial alv , in that i am getting the total and subtotal values correctly,while getting it " * " and  " ** " is displayed on the particular line, instead of that i want to replace with some text, kindly tell e how to do it.

Hi,
Obvious, you want to give the text in the parameters of the function Module,
<i> IT_LAYOUT-SUBTOTALS_TEXT
IT_LAYOUT-TOTALS_TEXT</i>.
  Iam Sure the appereance of * will be deleted.
Cheers,
manju.

Similar Messages

  • Reg: Download alv grid data with top of page into excel sheet

    Hi All,
    I have a selection screen with radio button for download .
    If that radio button was selected then the data will download into excel sheet (like if we execute normal ALV grid display from there we can download top-of-page and body as it is).
    AOO : 2009P               
    Fiscal year : 2009               
    Posting period : 00               
    Local Currency : USD               
    CO Area Currency :               
    Accounting standard:               
    Sector : 23               
    BB code     Period Value LC     Periodic Quantity
    AHDKGKAJ   200                         0

    Did not get your question

  • Reg. ALV- Sub total?

    Hi Experts,
    How to hide the column values in ALV? That is I need to display the sub-total values alone and not to show the other values in the ALV output. Take for e.g
    1   2   2  andre
    2   3   4  brown
    3   5   6  subtotal
    2   2    3  A
    1   1    1  B
    1   1     1  C
    1   1     2  D
    5   5   7   subtotal
    If the alv output is like this means, I want to display the 3, 5, 6 fields alone how to hide the first column colum field values alone i.e 1 & 2. Then in second part of the ALV how to hide the first column values 2,1,1 & 1 alone.
    Regards,
    Sakthi

    Hi Tarun,
    Thanks for your reply.
    If I give that no_out = 'X' in the sense it will hide the whole column.
    I need How to hide the values alone and need to display the column subtotal.
    Those values need to be displayed as blank in the output.
    How to do that?
    The output normally will be like this.
    1 1 1 A
    1 2 3 B
    1 1 1 C
    3 4 5 subtotal
    1 2 3 E
    1 1 1 F
    2 3 4 SubTotal
    But what I need  is
        1 1 A
        2 3 B
        1 1 C
    3   4 5 SubTotal
      2 3 E
      1 1 F
    2 3 4 Sub Total
    Like this I need to hide a single column values alone not along with sub total values. The first column values should not appear but subtotal value should appear.

  • Reg. Alv report using function modules

    I have a ALV report in which i am displaying a report in main screen1. i have a pushbutton on the main screen.
    when i click the pushbutton it has to display the interactive report below, in the main screen1 itself.
    like it has to display first the main report and then when i click the pushbutton, it has to display the corresponding report on the same screen below it.
    points will be rewarded..

    hi use this ,
    *& Report  ZPR_02
    REPORT  ZPR_02.
    TYPE-POOLS: SLIS.
    Tables Declaration.
    TABLES: MARA.
    *Internal tables and data declaration.
    DATA: BEGIN OF IT_MARA OCCURS 0,
            MATNR LIKE MARA-MATNR,
            MTART LIKE MARA-MTART,
            MBRSH LIKE MARA-MBRSH,
          END OF IT_MARA,
          BEGIN OF IT_MARC OCCURS 0,
            MATNR LIKE MARC-MATNR,
            WERKS LIKE MARC-WERKS,
            EKGRP LIKE MARC-EKGRP,
          END OF IT_MARC,
          BEGIN OF IT_MARD OCCURS 0,
            MATNR LIKE MARD-MATNR,
            WERKS LIKE MARD-WERKS,
            LGORT LIKE MARD-LGORT,
            LABST LIKE MARD-LABST,
          END OF IT_MARD.
    DATA: WA_FIELD_CAT TYPE SLIS_FIELDCAT_ALV,
          IT_FIELD_CAT1 TYPE SLIS_T_FIELDCAT_ALV,
          IT_FIELD_CAT2 TYPE SLIS_T_FIELDCAT_ALV,
          IT_FIELD_CAT3 TYPE SLIS_T_FIELDCAT_ALV,
          WA_KEYINFO TYPE SLIS_KEYINFO_ALV,
          IT_LAYOUT TYPE SLIS_LAYOUT_ALV,
          IT_EVENTS1    TYPE SLIS_T_EVENT WITH HEADER LINE,
          IT_EVENTS2    TYPE SLIS_T_EVENT WITH HEADER LINE,
          IT_EVENTS3    TYPE SLIS_T_EVENT WITH HEADER LINE.
    *Selection Screen.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    *Start Of selection.
    START-OF-SELECTION.
    *Selecting the data.
      PERFORM SELECT_DATA.
    *Populating the field catelogue.
      PERFORM BUILD_FIELD_CAT.
    *Displaying the final output.
      PERFORM DISPLY_OUTPUT.
    *&      Form  Select_data
          Selecting the data.
    FORM SELECT_DATA .
      SELECT MATNR
             MTART
             MBRSH FROM MARA
           INTO TABLE IT_MARA
           WHERE MATNR IN S_MATNR.
      IF NOT IT_MARA[] IS INITIAL.
        SELECT MATNR
               WERKS
               EKGRP FROM MARC
             INTO TABLE IT_MARC
             FOR ALL ENTRIES IN IT_MARA
             WHERE MATNR EQ IT_MARA-MATNR.
      ENDIF.
      IF NOT IT_MARC[] IS INITIAL.
        SELECT MATNR
               WERKS
               LGORT
               LABST FROM MARD
             INTO TABLE IT_MARD
             FOR ALL ENTRIES IN IT_MARC
             WHERE MATNR = IT_MARC-MATNR
             AND   WERKS = IT_MARC-WERKS.
      ENDIF.
    ENDFORM.                    " Select_data
    *&      Form  Build_field_cat
         Populating the field catelogue.
    FORM BUILD_FIELD_CAT .
      DEFINE M_FIELDCAT1.
        WA_FIELD_CAT-TABNAME = &1.
        WA_FIELD_CAT-FIELDNAME = &2.
        WA_FIELD_CAT-SELTEXT_L = &3.
        APPEND WA_FIELD_CAT TO IT_FIELD_CAT1.
      END-OF-DEFINITION.
      DEFINE M_FIELDCAT2.
        WA_FIELD_CAT-TABNAME = &1.
        WA_FIELD_CAT-FIELDNAME = &2.
        WA_FIELD_CAT-SELTEXT_L = &3.
        APPEND WA_FIELD_CAT TO IT_FIELD_CAT2.
      END-OF-DEFINITION.
      DEFINE M_FIELDCAT3.
        WA_FIELD_CAT-TABNAME = &1.
        WA_FIELD_CAT-FIELDNAME = &2.
        WA_FIELD_CAT-SELTEXT_L = &3.
        APPEND WA_FIELD_CAT TO IT_FIELD_CAT3.
      END-OF-DEFINITION.
      M_FIELDCAT1 'MARA' 'MATNR' 'Material No'.
      M_FIELDCAT1 'MARA' 'MTART' 'Material type'.
      M_FIELDCAT1 'MARA' 'MBRSH' 'Industry Sector'.
      M_FIELDCAT2 'MARC' 'MATNR' 'Material No'.
      M_FIELDCAT2 'MARC' 'WERKS' 'Plant'.
      M_FIELDCAT2 'MARC' 'EKGRP' 'Purchasing Group'.
      M_FIELDCAT3 'MARD' 'MATNR' 'Material No'.
      M_FIELDCAT3 'MARD' 'WERKS' 'Plant'.
      M_FIELDCAT3 'MARD' 'LGORT' 'Storage Loc'.
      M_FIELDCAT3 'MARD' 'LABST' 'Valued Stock'.
      IT_EVENTS1-NAME  =  'TOP_OF_PAGE'.
      IT_EVENTS1-FORM  =  'F_TOP_OF_PAGE_ONE'.
      APPEND IT_EVENTS1.
      CLEAR IT_EVENTS1.
      IT_EVENTS2-NAME  =  'TOP_OF_PAGE'.
      IT_EVENTS2-FORM  =  'F_TOP_OF_PAGE_TWO'.
      APPEND IT_EVENTS2.
      CLEAR IT_EVENTS2.
      IT_EVENTS3-NAME  =  'TOP_OF_PAGE'.
      IT_EVENTS3-FORM  =  'F_TOP_OF_PAGE_THREE'.
      APPEND IT_EVENTS3.
      CLEAR IT_EVENTS3.
    ENDFORM.                    " Build_field_cat
    *&      Form  disply_output
         Displaying the final output.
    FORM DISPLY_OUTPUT .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
        EXPORTING
          I_CALLBACK_PROGRAM = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT                        = IT_LAYOUT
          IT_FIELDCAT                      = IT_FIELD_CAT1[]
          I_TABNAME                        = 'IT_MARA'
          IT_EVENTS                        = IT_EVENTS1[]
      IT_SORT                          = IT_SORT
      I_TEXT                           = ' '
        TABLES
          T_OUTTAB                         = IT_MARA     .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT                        = IT_LAYOUT
          IT_FIELDCAT                      = IT_FIELD_CAT2[]
          I_TABNAME                        = 'IT_MARC'
          IT_EVENTS                        = IT_EVENTS2[]
      IT_SORT                          = IT_SORT
      I_TEXT                           = ' '
        TABLES
          T_OUTTAB                         = IT_MARC    .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
        EXPORTING
          IS_LAYOUT                        = IT_LAYOUT
          IT_FIELDCAT                      = IT_FIELD_CAT3[]
          I_TABNAME                        = 'IT_MARD'
          IT_EVENTS                        = IT_EVENTS3[]
      IT_SORT                          = IT_SORT
      I_TEXT                           = ' '
        TABLES
          T_OUTTAB                         = IT_MARD    .
      CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK             = ' '
      IS_PRINT                      = IS_PRINT
      I_SCREEN_START_COLUMN         = 0
      I_SCREEN_START_LINE           = 0
      I_SCREEN_END_COLUMN           = 0
      I_SCREEN_END_LINE             = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER       = E_EXIT_CAUSED_BY_CALLER
      ES_EXIT_CAUSED_BY_USER        = ES_EXIT_CAUSED_BY_USER
    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.
    ENDFORM.                    " disply_output
    *&      Form  top_of_page_one
          text
    FORM F_TOP_OF_PAGE_ONE.
      WRITE: / 'Header details (MARA)'.
    ENDFORM.                    "top_of_page_one
    *&      Form  top_of_page_one
          text
    FORM F_TOP_OF_PAGE_TWO.
      WRITE: / 'Item details (MARC)'.
    ENDFORM.                    "top_of_page_one
    *&      Form  top_of_page_one
          text
    FORM F_TOP_OF_PAGE_THREE.
      WRITE: / 'Item details (MARD)'.
    ENDFORM.                    "top_of_page_one
    reward points if useful,
    venkat.

  • Reg. ALV output transported into Excel

    Dear All,
                   when i transported my ALV report output to excel file , amount column is suppressed from decimal places .
    i.e. in excel file ,  decimal values of amount column is not shown in some amounts.
    Please provide some inputs
    Thanks & Regards
    shailesh

    Hi ,
    Check this [LINK|ALV List output to Excel file; for  ALV output transported into Excel.
    hope it will help you .
    Regards,
    Saravana.S

  • Reg exporting ALV to PDF in Webdynpro ABAP

    Hi All,
    I've developed one Webdynpro ABAP portal. There, in one view, I have an ALV for Account Statement. I need to allow this output - as it is -  to be Downloaded and Printed as per given Button-choice in PDF Format.
    How can I do this? I searched SDN Forum for this. Many an articles are there but, they suggest that data from Internal Table can be exported to PDF. How can we get the data from ALV in one view to internal table?
    If there is other way of doing the same, would you please guide me.
    Thanks.
    Kumar Saurav.

    Hi Thomas,
    Thanks for your guidelines.
    In our system, ADS has already been installed. Second, ALV Toolbar is not reqd from Client's side. They need only Print and Download Functionality that too using Button.
    Hence, my case came into picture. Further, I have to add Customer Name with address as Header and Net Balance as Footer in my PDF. Therefore I need to fetch all the data that are already in ALV and present it with changed layout.
    Please guide me.
    Thanks.
    Kumar Saurav.

  • Reg editing alv in output mode

    Hi,
    Cud any one let me know how to edit alv ?
    im using fcat-edit = 'x' option in function module approach....but even then im not able to edit columns/fields....?
    how to edit columns/rows using function modules and OOPs methos in alv????
    Thanks
    Jay

    Hi
    i am sending you a code where the output field is edtable in the ALV oop
    you can understand very easily
    reward if usefull
    *& Report  ZAMIT_ALV_OOP_EDITABLE
    REPORT  ZAMIT_ALV_OOP_EDITABLE.
    *data declaration
    DATA: G_CONTROL TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
          G_ALV     TYPE REF TO CL_GUI_ALV_GRID.
    DATA: T_FCAT TYPE LVC_T_FCAT,
          WA_FCAT TYPE LVC_S_FCAT.
    DATA: I_ZAMIT TYPE TABLE OF ZAMIT_SHIP_TAB WITH HEADER LINE.
    DATA: I_INDEX TYPE I.
    DATA: G_OK_CODE TYPE SY-UCOMM.
    DATA: G_OK_CODE1 TYPE SY-UCOMM.
    SELECT * FROM ZAMIT_SHIP_TAB INTO TABLE I_ZAMIT.
    CALL SCREEN 9000.
    SCREEN FORMS>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    *&      Module  STATUS_9000  OUTPUT
          text
    MODULE STATUS_9000 OUTPUT.
      SET PF-STATUS 'PF9001'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_9000  OUTPUT
    *&      Module  CREATE_CONTROL  OUTPUT
          text
    MODULE CREATE_CONTROL OUTPUT.
      CREATE OBJECT G_CONTROL
        EXPORTING
       PARENT                      =
          CONTAINER_NAME               = 'G_CUSTOM_CONTROL'
       STYLE                       =
       LIFETIME                    = lifetime_default
       REPID                       =
       DYNNR                       =
       NO_AUTODEF_PROGID_DYNNR     =
    EXCEPTIONS
       CNTL_ERROR                  = 1
       CNTL_SYSTEM_ERROR           = 2
       CREATE_ERROR                = 3
       LIFETIME_ERROR              = 4
       LIFETIME_DYNPRO_DYNPRO_LINK = 5
       others                      = 6
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " CREATE_CONTROL  OUTPUT
    *&      Module  CREATE_ALV  OUTPUT
          text
    MODULE CREATE_ALV OUTPUT.
      CREATE OBJECT G_ALV
        EXPORTING
       I_SHELLSTYLE      = 0
       I_LIFETIME        =
          I_PARENT          = G_CONTROL
       I_APPL_EVENTS     = space
       I_PARENTDBG       =
       I_APPLOGPARENT    =
       I_GRAPHICSPARENT  =
       I_NAME            =
       I_FCAT_COMPLETE   = SPACE
    EXCEPTIONS
       ERROR_CNTL_CREATE = 1
       ERROR_CNTL_INIT   = 2
       ERROR_CNTL_LINK   = 3
       ERROR_DP_CREATE   = 4
       others            = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " CREATE_ALV  OUTPUT
    *&      Module  DISPLAY_ALV  OUTPUT
          text
    MODULE DISPLAY_ALV OUTPUT.
      PERFORM PREPARE_FIELD_CATALOG.
      CALL METHOD G_ALV->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
       I_BUFFER_ACTIVE               =
       I_BYPASSING_BUFFER            =
       I_CONSISTENCY_CHECK           =
       I_STRUCTURE_NAME              = 'SFLIGHT'
       IS_VARIANT                    =
          I_SAVE                        = 'X'
       I_DEFAULT                     = 'X'
       IS_LAYOUT                     =
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
       IT_TOOLBAR_EXCLUDING          = T_TOOLBAR[]
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
       IT_EXCEPT_QINFO               =
       IR_SALV_ADAPTER               =
          CHANGING
            IT_OUTTAB                     = I_ZAMIT[]
            IT_FIELDCATALOG               = T_FCAT
       IT_SORT                       =
       IT_FILTER                     =
    EXCEPTIONS
       INVALID_PARAMETER_COMBINATION = 1
       PROGRAM_ERROR                 = 2
       TOO_MANY_LINES                = 3
       others                        = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " DISPLAY_ALV  OUTPUT
    *&      Form  PREPARE_FIELD_CATALOG
          text
    -->  p1        text
    <--  p2        text
    FORM PREPARE_FIELD_CATALOG .
      REFRESH T_FCAT.
      CLEAR WA_FCAT.
    <b>  WA_FCAT-COL_POS = 1.
      WA_FCAT-COLTEXT = 'SHIPMENT NO.'.
      WA_FCAT-FIELDNAME = 'ZSHIP_NO'.
      WA_FCAT-REF_TABLE = 'I_ZAMIT'.
      WA_FCAT-edit       = 'X'.</b>
      APPEND WA_FCAT TO T_FCAT.
      CLEAR WA_FCAT.
      WA_FCAT-COL_POS = 2.
      WA_FCAT-COLTEXT = 'DOC TYPE'.
      WA_FCAT-FIELDNAME = 'ZDOC_TYP'.
      WA_FCAT-REF_TABLE = 'I_ZAMIT'.
    WA_FCAT-KEY       = 'X'.
      APPEND WA_FCAT TO T_FCAT.
      CLEAR WA_FCAT.
      WA_FCAT-COL_POS = 3.
      WA_FCAT-COLTEXT = 'NAME_CR'.
      WA_FCAT-FIELDNAME = 'ZNAME_CR'.
      WA_FCAT-REF_TABLE = 'I_ZAMIT'.
    WA_FCAT-KEY       = 'X'.
      APPEND WA_FCAT TO T_FCAT.
      CLEAR WA_FCAT.
      WA_FCAT-COL_POS = 4.
      WA_FCAT-COLTEXT = 'SHIP_TYP'.
      WA_FCAT-FIELDNAME = 'ZSHIP_TYP'.
      WA_FCAT-REF_TABLE = 'I_ZAMIT'.
    WA_FCAT-KEY       = 'X'.
      APPEND WA_FCAT TO T_FCAT.
      CLEAR WA_FCAT.
      WA_FCAT-COL_POS = 5.
      WA_FCAT-COLTEXT = 'LEG_IND'.
      WA_FCAT-FIELDNAME = 'ZLEG_IND'.
      WA_FCAT-REF_TABLE = 'I_ZAMIT'.
    WA_FCAT-KEY       = 'X'.
      APPEND WA_FCAT TO T_FCAT.
      CLEAR WA_FCAT.
    ENDFORM.                    " PREPARE_FIELD_CATALOG
    *&      Module  LEAVE  INPUT
          text
    MODULE LEAVE INPUT.
      LEAVE PROGRAM.
    ENDMODULE.                 " LEAVE  INPUT
    *&      Module  USER_COMMAND_9000  INPUT
          text
    MODULE USER_COMMAND_9000 INPUT.
      IF G_OK_CODE = 'CHANGE'.
        DATA: VALUE TYPE C,
              COL TYPE I ,
              ROW TYPE LVC_S_ROW,
              COLNO TYPE LVC_S_COL,
              ROWNO TYPE LVC_S_ROID.
        CALL METHOD G_ALV->GET_CURRENT_CELL
         IMPORTING
              E_ROW = I_INDEX
         CALL METHOD G_ALV->GET_CURRENT_CELL
           IMPORTING
             E_ROW     =
                  E_VALUE   = VALUE
                  E_COL     = COL
                  ES_ROW_ID = ROW
                  ES_COL_ID = COLNO
                  ES_ROW_NO = ROWNO.
        READ TABLE I_ZAMIT  INDEX I_INDEX.
        CALL SCREEN 9001 STARTING AT 10 10 .
      ENDIF.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  STATUS_9001  OUTPUT
          text
    MODULE STATUS_9001 OUTPUT.
      SET PF-STATUS 'PF9002'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_9001  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
          text
    MODULE USER_COMMAND_9001 INPUT.
      IF G_OK_CODE1 = 'SAVE'.
        MODIFY ZAMIT_SHIP_TAB FROM I_ZAMIT.
        SELECT * FROM ZAMIT_SHIP_TAB INTO TABLE I_ZAMIT.
        CALL METHOD G_ALV->REFRESH_TABLE_DISPLAY.
        CALL SCREEN 9000.
      ENDIF.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT

  • Reg..ALV using classes

    i have displayed a ALV report with a push button 'HST'.
    When i select a particular line(vbeln) and click on pushbutton 'HST' it has to display me a interactive report based on the condition vbeln and posnr.
    can anyone help me with the detail code using classes..
    answers will be rewarded....
    regards,
    kumar

    Hi,
    Class ALV Specification
    Classes used:
    CL_GUI_ALV_GRID
    Example of ALV using Classes
    DATA: lcl_alv TYPE REF TO cl_gui_alv_grid,
          t_flights TYPE STANDARD TABLE OF FLIGHTS.
    SELECT * FROM flights INTO TABLE t_flights.
    CREATE OBJECT lcl_alv
        EXPORTING I_PARENT = cl_gui_container=>screen0.
    CALL METHOD lcl_alv->set_table_for_first_display
        EXPORTING
           I_STRUCTURE_NAME = 'FLIGHTS'
        CHANGING
           IT_OUTTAB = t_flights.
    CALL SCREEN 100.
    Example Details
    This is a simple example of the class ALV, we do not need to create, in this case, a field catalog because we are using the whole table of FLIGHTS and we will show all the fields that this table contains, we do this at the I_STRUCTURE_NAME = 'FLIGHTS' statement.
    The CL_GUI_ALV_GRID constructor needs the I_PARENT parameter to define where it will be show, in the example we set the entire screen to place the ALV.
    reward if helpful

  • REG:Exporting ALV in webdynpro

    Hi,
    one of the user is facing the problem in exporting the excel (processing and not ending) , (remaining users able to export it properly).
    can anyone suggest some setting to  be made in IE?
    Regards
    Srinivas

    Hi Thomas,
    Thanks for your guidelines.
    In our system, ADS has already been installed. Second, ALV Toolbar is not reqd from Client's side. They need only Print and Download Functionality that too using Button.
    Hence, my case came into picture. Further, I have to add Customer Name with address as Header and Net Balance as Footer in my PDF. Therefore I need to fetch all the data that are already in ALV and present it with changed layout.
    Please guide me.
    Thanks.
    Kumar Saurav.

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

  • Reg. ALV....pleas understand.......& have ur ponts..sure

    Hi all,
    I have an ALV grid with a 1st column as character type with length 20.
    i want to remove the redundancy of that column.
    Pleas see the output carefully..
    wht i expect.
    <b>NAME          AMOUNT</b>
    PRADEEP       13
                           12
                           454
    SANDEEP       3434
                           545
                           8768
    MINI                34
                           87
    <b>ples understand....i don't want to have same name multiple times</b>

    Hi, Pradeep,
                  TO do like this in ALV you have to Sort this first column into the program like this.........
    Follow the steps below.........
    1) First of all define this variable of SLIS starting of the program
              W_SORT  TYPE  SLIS_SORTINFO_ALV,
             T_SORT  TYPE  SLIS_T_SORTINFO_ALV.
    2)  Then put code before calling Reuse_Alv_Grid _display
           W_SORT-FIELDNAME = 'name'           <----Here give Field name
           W_SORT-TABNAME = 'itab'.               <---- Here give Internal Table Name
           W_SORT-GROUP = 'X'.                     
          APPEND W_SORT TO T_SORT.
    3)  And finally when you call Reuse_Alv_Grid display function. In this function one parameter is ITSORT give there  T_SORT.
    Apply this logic
    Your Redundancy will Remove.
    PRADIP PAWAR
    ABAP

  • Reg multiple ALV grid in a window

    Hi friends,
    I have an interesting requirement where i need to have multiple alv grid in my screen, how do i accomplish this, i cannot use containers in my screen as the number of grids in my screen vary.

    Have a look at standard transaction DWDM.
    Regards,
    Aparna

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

  • Reg: Naormal Alv

    Hi All,
    Can we call any designed custom screen using normal alv reports.If it possible please help me.

    Hi,
    Are you talking about Calling a Screen/SubScreen defined in that program only,to which ALV Belongs?
    You can do it by doing the relevant coding in AT-USER-COMMAND of ALV and using call screen...

  • Reg oo alvs

    Hi FRIENDS,
         I  have  a  scenario where i need to  sum the values checked through checkbox and display in the same screen under the heading total.
                           thank u
                           urmila.T

    If i understand you correctly then the ALV is first displayed without the sum.Once the rows are checked (checkbox) and some user action needs to be recorded for the refreshing the ALV with the sum.
    In PAI event, during processing the user action put you logic of fetching the records which has a checkbox and then calculate the sum and refresh the ALV and show the sum.
    Cheers,
    KD

Maybe you are looking for