*bold* Doubt in alv

Hi friends i am new to sap.
I have a querry in alv.In this  report i only get 3 columns in the output [fname,dept and age] whereas location ,eid doesn't comes.i
tried to increase the occurs 5 to 10 ,but it did't worked .
Any suggestion please ??
REPORT zalvreport .
TABLES: zemp.
DATA: BEGIN OF t_report OCCURS 5,
name LIKE zemp-fname,
age LIKE zemp-age,
deprt LIKE zemp-dept,
local LIKE zemp-location,
empid like zemp-eid,
END OF t_report.
TYPE-POOLS: slis.
DATA t_fcat TYPE slis_t_fieldcat_alv.
DATA: d_repid LIKE sy-repid.
SELECT-OPTIONS: s_name FOR zemp-fname .
START-OF-SELECTION.
  SELECT * FROM zemp WHERE fname IN s_name.
    MOVE: zemp-fname TO t_report-name,
          zemp-age TO t_report-age,
          zemp-location to t_report-local,
          zemp-dept TO t_report-deprt,
          zemp-eid TO t_report-empid.
    APPEND t_report.
  ENDSELECT.
  IF sy-subrc NE 0.
    WRITE 'No data found'.
    EXIT.
  ENDIF.
  d_repid = sy-repid.
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
            i_program_name         = d_repid
            i_internal_tabname     = 'T_REPORT'
            i_inclname             = d_repid
         CHANGING
            ct_fieldcat            = t_fcat
       EXCEPTIONS
            inconsistent_interface = 1
            program_error          = 2
            OTHERS                 = 3.
  IF sy-subrc <> 0.
    WRITE: / 'Error:',sy-subrc,
    'when Create Field Catalog'.
    EXIT.
  ENDIF.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
       EXPORTING
            i_callback_program = d_repid
            it_fieldcat        = t_fcat
       TABLES
            t_outtab           = t_report
       EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
  IF sy-subrc <> 0.
    WRITE: / 'Error:',sy-subrc,
    'when Call ALV List Display'.
    EXIT.
  ENDIF.

hi lokesh
here is some information for the FM   'REUSE_ALV_FIELDCATALOG_MERGE'
Create field catalog from dictionary structure or internal table
Supports the creation of the field catalog for the ALV function modules based either on a structure or table defined in the ABAP Data Dictionary, or a program-internal table.
The program-internal table must either be in a TOP Include or its Include must be specified explicitly in the interface.
The variant based on a program-internal table should only be used for rapid prototyping since the following restrictions apply:
Performance is affected since the code of the table definition must always be read and interpreted at runtime.
Dictionary references are only considered if the keywords LIKE or INCLUDE STRUCTURE (not TYPE) are used.
If the field catalog contains more than 90 fields, the first 90 fields are output in the list by default whereas the remaining fields are only available in the field selection.
If the field catalog is passed with values, they are merged with the 'automatically' found information.
so it will be better for u if u create Field catalog manually as described above in this u have more hold of catalog creation
Cheers
Snehi Chouhan

Similar Messages

  • Bold line in ALv grid output

    Hi,
    I want show few line item informations in bold in ALV grid output.
    Please let me know your suggestions.

    You may check the below links.
    some methods to achieve this is mentioned out there.
    Re: BOLD cell in ALV.
    Re: ALV Row should apper in BOLD when order type is "ZSTP1" in the cloumn
    Regards,
    Anil

  • Sub Total Field to be bold in a ALV report

    Dear Experts,
    Thanks for your help till date.
    I have an issue with an ALV report where the sub total field is coming, it is highlited and showing in Bold. But when I take the print of that particular report, the sub total field is not coming in bold. Is there any way to make the sub total field bold in an ALV report and the print also the same.
    Regards
    OP

    Hello Experts,
    Any replies for the above Scenarios...
    Waiting for your's valuable Feedback
    Regards
    Om Prakash gupta

  • Doubts in alv interactive report

    Hello Gurus
    i am new to abap  i have doubt regarding interactive alv .  i wrote one but it gives runtime error . i taken reference to a sample program availiable please explain this code so i can write interactive alv effectively.
    FORM POPULATE_EVENT.
    READ TABLE ITAB_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
    IF SY-SUBRC EQ 0.
    WA_EVENT-FORM = 'TOP_OF_PAGE'.
    MODIFY ITAB_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-FORM.
    ENDIF.
    IF ITAB_EMPLOY-EMPID NE ''.
    READ TABLE ITAB_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
    IF SY-SUBRC EQ 0.
    WA_EVENT-FORM = 'USER_COMMAND'. MODIFY ITAB_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-NAME.
    ENDIF.
    ENDIF.
    ENDFORM.

    Hi,
        Event form names are appended to an internal table and passed to the ALV. And whatever you write inside that form
    can be called through the function module.
    What you are trying to do is modify the internal table with the form name, which does not exsist. Instead of this append it.
    There are lot of example of this ALV list events.
    DATA:     T_EVENT TYPE SLIS_T_EVENT,
         W_EVENT TYPE SLIS_ALV_EVENT.
    CLEAR W_EVENT.
    W_EVENT-FORM = SLIS_EV_AFTER_LINE_OUTPUT.
    W_EVENT-NAME = SLIS_EV_AFTER_LINE_OUTPUT."AFTER_LINE_OUTPUT event
    APPEND W_EVENT TO T_EVENT.
    Thanks & Regards,
    Tapodipta Khan

  • Setting Font Color and Bold Property in ALV Grid

    I have a requirement to set the font in particular ALV Cells  in red color.
    Also this font (text) has to be set to Bold.
    I know how to set cell coloring in ALV Grid, but have no idea regarding how to set font color.
    Could please give me an idea/code segment/suggestion.
    Thank You!

    Please refer this post
    Coloring of ROWS in ALV tree

  • Basic Doubt in ALV grids

    All -
    I'm realtively new to ALV grid reporting.
    What should be done in order to not get the default setting like sorting,set filter screen Icons and the other icons in the report .
    Thanks in advance.

    You mean that you want to exclude those icons from the toolbar?  You can do it by using the exclude parameter.
    Here's how.   See the parts in bold, you can look at the other functions that can be execluded via SE24 in the attributes tab.  Check the attributes that start with MC_FC_
    REPORT ZRICH_0001.
    TABLES: MARA.
    DATA: BEGIN OF I_ALV OCCURS 0,
          MATNR TYPE MARA-MATNR,
          MAKTX TYPE MAKT-MAKTX,
          END OF I_ALV.
    *       CLASS cl_event_receiver DEFINITION      Handles Double Click
    CLASS CL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
        METHODS HANDLE_DOUBLE_CLICK
          FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
          IMPORTING E_ROW E_COLUMN.
      PRIVATE SECTION.
    ENDCLASS.
    *       CLASS CL_EVENT_RECEIVER IMPLEMENTATION    Handles Double Click
    CLASS CL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DOUBLE_CLICK.
        PERFORM DRILL_DOWN USING E_ROW-INDEX.
      ENDMETHOD.
    ENDCLASS.
    DATA: ALV_CONTAINER  TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: EVENT_RECEIVER TYPE REF TO CL_EVENT_RECEIVER.
    DATA: ALV_GRID       TYPE REF TO CL_GUI_ALV_GRID.
    DATA: LAYOUT    TYPE LVC_S_LAYO.
    DATA: FIELDCAT  TYPE LVC_T_FCAT.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      PERFORM GET_DATA.
      CALL SCREEN 100.
    *      Module  status_0100  OUTPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS '0100'.
      SET TITLEBAR '0100'.
      DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
      DATA: VARIANT TYPE  DISVARIANT.
      VARIANT-REPORT = SY-REPID.
      VARIANT-USERNAME = SY-UNAME.
    * Create Controls
      CREATE OBJECT ALV_CONTAINER
             EXPORTING
                   CONTAINER_NAME    = 'ALV_CONTAINER'.
      CREATE OBJECT ALV_GRID
             EXPORTING
                   I_PARENT          =  ALV_CONTAINER.
    *  Create Event Receiver
      CREATE OBJECT EVENT_RECEIVER.
    *  ALV Specific. Data selection.
    *  Populate Field Catalog
      PERFORM GET_FIELDCATALOG.
    <b>*   Optionally restrict generic functions to 'change only'.
    *   (The user shall not be able to add new lines).
      PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.</b>
      CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
          EXPORTING
               IS_LAYOUT              = LAYOUT
               IS_VARIANT             = VARIANT
               I_SAVE                 = 'U'
               I_STRUCTURE_NAME       = 'I_ALV'
    <b>           it_toolbar_excluding   = lt_exclude</b>
          CHANGING
               IT_OUTTAB       = I_ALV[]
               IT_FIELDCATALOG = FIELDCAT[].
    *   handler for ALV grid
      SET HANDLER EVENT_RECEIVER->HANDLE_DOUBLE_CLICK FOR ALV_GRID.
    ENDMODULE.
    *      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK' OR 'CANC'.
          IF NOT ALV_CONTAINER IS INITIAL.
            CALL METHOD ALV_CONTAINER->FREE.
            CLEAR: ALV_CONTAINER.
            FREE : ALV_CONTAINER.
          ENDIF.
          IF SY-SUBRC = 0.
            SET SCREEN 0.
            LEAVE SCREEN.
          ELSE.
            LEAVE PROGRAM.
          ENDIF.
        WHEN 'EXIT'.
          IF NOT ALV_CONTAINER IS INITIAL.
            CALL METHOD ALV_CONTAINER->FREE.
            CLEAR: ALV_CONTAINER.
            FREE : ALV_CONTAINER.
          ENDIF.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.
    * FORM GET_DATA
    FORM GET_DATA.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE I_ALV
            FROM MARA
              INNER JOIN MAKT
                ON MARA~MATNR = MAKT~MATNR
                   WHERE MARA~MATNR IN S_MATNR
                     AND MAKT~SPRAS = SY-LANGU.
      SORT I_ALV ASCENDING BY MATNR.
    ENDFORM.
    *      Form  Get_Fieldcatalog - Set Up Columns/Headers
    FORM GET_FIELDCATALOG.
      DATA: LS_FCAT TYPE LVC_S_FCAT.
      REFRESH: FIELDCAT.
      CLEAR: LS_FCAT.
      LS_FCAT-REPTEXT    = 'Material Number'.
      LS_FCAT-COLTEXT    = 'Material Number'.
      LS_FCAT-FIELDNAME  = 'MATNR'.
      LS_FCAT-REF_TABLE  = 'I_ALV'.
      LS_FCAT-OUTPUTLEN  = '18'.
      LS_FCAT-COL_POS    = 1.
      APPEND LS_FCAT TO FIELDCAT.
      CLEAR: LS_FCAT.
      LS_FCAT-REPTEXT    = 'Material Description'.
      LS_FCAT-COLTEXT    = 'Material Description'.
      LS_FCAT-FIELDNAME  = 'MAKTX'.
      LS_FCAT-REF_TABLE  = 'I_ALV'.
      LS_FCAT-OUTPUTLEN  = '40'.
      LS_FCAT-COL_POS    = 2.
      APPEND LS_FCAT TO FIELDCAT.
    ENDFORM.
    * DRILL_DOWN
    FORM DRILL_DOWN USING INDEX.
      READ TABLE I_ALV INDEX INDEX.
      IF SY-SUBRC = 0.
        SET PARAMETER ID 'MAT' FIELD I_ALV-MATNR.
        CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
        IF NOT ALV_CONTAINER IS INITIAL.
          CALL METHOD ALV_CONTAINER->FREE.
          CLEAR: ALV_CONTAINER.
          FREE : ALV_CONTAINER.
        ENDIF.
      ENDIF.
    ENDFORM.
    <b>***********************************************************************
    *      Form  EXCLUDE_TB_FUNCTIONS
    FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
    * Only allow to change data not to create new entries (exclude
    * generic functions).
      DATA LS_EXCLUDE TYPE UI_FUNC.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_SORT_ASC.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_SORT_DSC.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
    **  This excludes all buttons
    *  LS_EXCLUDE = '&EXCLALLFC'.
    *  APPEND LS_EXCLUDE TO PT_EXCLUDE.
    ENDFORM.</b>
    Regards,
    RIch Heilman

  • Bold font in ALV

    Hi, is there any way to change the font within an ALV grid (bold, underline, italic, etc)
    I'm doing it with OOP (cl_gui_alv_grid)
    Thanks.

    hiJose,
    we can do this by using info_fieldname of slis_fieldname.
    please go through the below info.
    Info_fieldname TYPE slis_fieldname: infofield for listoutput. A whole list record can be colored individually using a color code in a column of the internal output table for the record. Assign the name of the field containing the color code to this parameter.
    Value set: SPACE, internal output table field name
    The internal output table field must be of type CHAR(3).
    The code must have the following syntax:  'Cxy':
            C = color (all codes must start with 'C')
            X = color number ('1'-'9')
            Y = bold ('0' = off, '1' = on)
    <b>Reward points if useful</b>
    chandra

  • Bold column in ALV

    Hi, How can I set a Bold column in an ALV OO ?
    Thanks,
    Alexandre Nogueira

    Don't think that you can "BOLD", but you can change the color or intensify a column.  Here is how.
    when building your field cataglog, you can set the EMPHASIZE field of the fc.
      move <b>'C610'</b>     to wa_fieldcat-emphasize.
    The color codes are as follows.
    * Colour is a 4-char field where :                              *
    *              - 1st char = C (color property)                  *
    *              - 2nd char = color code (from 0 to 7)            *
    *                                  0 = background color         *
    *                                  1 = blue                     *
    *                                  2 = gray                     *
    *                                  3 = yellow                   *
    *                                  4 = blue/gray                *
    *                                  5 = green                    *
    *                                  6 = red                      *
    *                                  7 = orange                   *
    *              - 3rd char = intensified (0=off, 1=on)           *
    *              - 4th char = inverse display (0=off, 1=on)  
    Regards,
    Rich Heilman

  • BOLD cell in ALV.

    Hi All,
    Can anyone please provide me how to make <b>BOLD</b> a particular cell in ALV list dispaly,also when downloading to excel from ALV list that particular cell should be in <b>BOLD</b>.Please help me ASAP.
    Thx in advance.
    SK

    Check this program out !!!!
    I wrote it by myself!
    PROGRAM zzsidskai.
    PARAMETERS :
    pfrom TYPE raw4,
    pto LIKE pfrom.
    START-OF-SELECTION.
      DATA: BEGIN OF gt_out OCCURS 0.     "with header line
      DATA  value TYPE raw4.
      DATA: celltab TYPE lvc_t_styl.
      DATA: END OF gt_out.
      DATA : gw_out LIKE LINE OF gt_out.
      DATA : gw_cell LIKE LINE OF gw_out-celltab.
      gw_out-value = pfrom.
      WHILE gw_out-value <= pto.
        FREE gw_out-celltab.
        gw_cell-fieldname = 'VALUE'.
        gw_cell-style = gw_out-value .
        APPEND gw_cell TO gw_out-celltab.
        gw_out-value = gw_out-value + 1.
        APPEND gw_out TO gt_out.
      ENDWHILE.
      DATA :
      gt_fc TYPE lvc_t_fcat,
      g_layo TYPE lvc_s_layo.
    ** zzzzzsidskai build in se11 with field value type RAW4
      g_layo-stylefname = 'CELLTAB'.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
         i_structure_name             =  'zzzzzsidskai'
        CHANGING
            ct_fieldcat                  = gt_fc
       EXCEPTIONS
         inconsistent_interface       = 1
         program_error                = 2
         OTHERS                       = 3
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
       EXPORTING
         is_layout_lvc                     = g_layo
         it_fieldcat_lvc                   = gt_fc
        TABLES
          t_outtab                          = gt_out[]
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    PFROM                             000000FF
    PTO                               0000FF00
    BOLD IS THEN POSSIBLE if you put in the field style for example values from bellow!
    00000121
    00000122
    00000123
    00000124
    00000125
    00000126
    00000127
    00000128
    00000129
    0000012A
    0000012B
    0000012C
    0000012D
    0000012E
    0000012F
    00000130
    00000131
    run the program with small ranges because of the memory dumps in case you need to find something else
    Don't forget my rewards

  • Some doubts in alv report

    how can i page breakin alv report ?
    what are the types of variants and events in alv report?
    how to hide field in alv?
    how to change standard pf status in alv reports?
    plz give me sample program for how to use variants in alv?
    <THREAD LOCKED. Please stop asking interview questions. There is already a lot of information out there, refer to the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to ask a good question and learn to search>
    Edited by: Mike Pokraka on Oct 15, 2008 4:52 PM

    how can i page breakin alv report ?
    - Yes... using NEW-PAGE
    what are the types of variants and events in alv report?
    - DATA: g_variant LIKE disvariant.
    - DATA: gt_eventos          TYPE slis_t_event.
    how to hide field in alv?
    - When you define the field catalog mark this field ls_fieldcat-no_out = 'X'.
    how to change standard pf status in alv reports?
    CLEAR ls_extab.
    ls_extab-fcode = 'ZASSIG'.
    APPEND ls_extab TO extab.
    SET PF-STATUS 'Z09_STATUS' EXCLUDING extab.

  • Doubt in ALV grid (OO ALV) download to Excel

    Hi All,
    I done Report using OOALV when down loading to Excel one row got automatically inserted to the ALV Excel downloaded sheet at the top and the row contains Sy datum , Dynamic list display , page no
    my requirement is to delete that row. Is that possible. If so please suggest me how to handle that
    Thanks
    Kiran

    Hi,
    Check this link:
    Re: Digit missing in the alv export
    Hope this helps.
    Regards,
    Satish Kanteti

  • Doubt in Alv Report Coloumn Heading

    Hi Gurus
    I want to print 2 coloumn headings in ALv Report.
    For eg: 1st line coloumn heading contains
                  Name   Number        Date      status
                2nd line coloumn heading contains under status
                              Active      Incative            
    Then if my list size is not enough to show the full details. so i can cut it in 2 lines
        if my list contains 20 coloumns
        i have to put 10 coloumns in first line
        then remaning 10 coloums in second line.
    i want the solution for both the questions.
    Help me.
    Regards.
    Bhuvana.

    For the first issue
    Use Top of Page Event to write a simple list which will act as a header for the alv list.
    Second issue:
    In the fieldcat,
    Position all the first 10 coloums row_pos = 1
    Position all the next 10 coloums row_pos = 2
    Regards,
    Lijo Joseph
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 12:35 PM

  • Doubt in alv top of page

    hi,
    I am trying to pass top of page to my alv report.
    DATA : TY_EVENTS TYPE SLIS_ALV_EVENT,
    IT_EVENTS TYPE SLIS_T_EVENT.
    CLEAR TY_EVENTS.
    TY_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
    TY_EVENTS-FORM = 'TOP_OF_PAGE'.
    APPEND TY_EVENTS TO IT_EVENTS.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = v_repid
       I_CALLBACK_PF_STATUS_SET       = 'SET_PF_STATUS'
       I_CALLBACK_USER_COMMAND        = 'USER_COMMAND'
       I_STRUCTURE_NAME               = 'itab'
       IS_LAYOUT                      = s_layout
       IT_FIELDCAT                    = t_fieldcatalog[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
        IT_EVENTS                      = 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
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      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.
    Now i have to write the code for top of page in the perform 'TOP_OF_PAGE'.
    My problem is when i double click the 'TOP_OF_PAGE'
    in here TY_EVENTS-FORM = 'TOP_OF_PAGE'.
    ,its not creating a form but insted it is asking
    Program text 'TOP_OF_PAGE' does not exist.
    Do you want to create the object .
    and when i click yes its taking to text elements
    I need to get some like this
    *& Form TOP_OF_PAGE
    text
    FORM TOP_OF_PAGE.
    SKIP.
    ULINE.
    WRITE :/2 ' DATE :', SY-DATUM,
    ENDFORM. "TOP_OF_PAGE
    waiting for replies
    How do i get the form so that i can write the code for my top of page

    hi Preeti,
    if you click on the 'TOP_OF_PAGE', it will not create a form routine, because, the name of the form is passed as a character text to the function module. So you need to manually write the form routine with the name top_of_page.
    Please use the following code; your requirement would be met!!!!
    form top_of_page.
      data:
          ls_line type slis_listheader,
          lt_line type table of slis_t_listheader,
          lv_date(10).
      ls_line-typ  = 'H'.
      concatenate sy-datum6(2) sy-datum4(2) sy-datum+0(4)
                 into lv_date separated by '/'.
      concatenate 'Date' lv_date into ls_line-info
                            separated by space.
      append ls_line to lt_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
      exporting
          it_list_commentary = lt_line.
    endform.
    Hope this works.
    Sajan.

  • Doubts in ALV?

    Hi,
    I have few doubts in Reuse_Alv_List_Display.
    1. How to use It_Filter?
    2. Their is a direct filter option in he list display. then what is the need of this It_Filter?
    Thanks.

    Hi ajay
    Use
    Set current filter settings. A row of the table describes the selection conditions for column entries that are not to be displayed.
    You should never manually set up the internal table with the filter settings. Use this method only to set filter criteria that you got using get_filter_criteria or a layout.
    Features
    CALL METHOD <ref. var. to CL_GUI_ALV_GRID > ->set_filter_criteria
       EXPORTING
          IT_FILTER  =   <internal table of type LVC_T_FILT > .
    <b>IT_FILTER</b>
    Table with filter properties for columns for which a filter is to be set initially
    check this link
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/top_of_page-top_of_list-using-alvgrid-functions-617843
    http://www.sap-basis-abap.com/sapalv.htm
    Rewards if helpfull
    Regards
    Pavan

  • Doubt on ALV report

    Hi gurus,
         For all of your support , I written the ALV report.Now the field is editable. But the problem is I need to save that field value what we edited.
           Actual requirment is we have some materials list.of vehicles... Those vechicles will move to repair after some days. Then in repair location, the user will enter some comments about that material like when it will be replaced like..That note data need to be saved.. When ever the users will execute the same report once again, that saved data will be appear..
          Please suggest me on this issue..
        Thanks in Advance
    Thanks and Regards
    Siri...

    Hi,
    chk out this..
    http://help.sap.com/saphelp_47x200/helpdata/en/39/27ae3a061d522ae10000000a114084/frameset.htm
    Regards,
    Arunsri

Maybe you are looking for

  • U0091Helpu0092 link in IC WebClient

    Hello, In IC WebClient there is a link ‘Help’ that is on all standard views . We created some Z views and the Help link is not there. After some debugging I found how the link is displayed In CL_CRM_IC_HELP_IMPL->GET_CONTENT_URL_KW there is a call to

  • Converting Multiple GL accounts to cost elements

    Hi, Is there any transaction where I can convert the multiple GL accounts to Cost Element Active. Thanks and Regards Madhu Vutukuri

  • What is the best on line bill pay software for mac

    What is the best on line bill pay software for the Mac.  I just switched over from Windows and now realize Quicken for Mac doesnt have on-line bill pay (which in 2013 seems amazing to me).  I really dont care about any of the other features in Quicke

  • Suppress Redo in an imp Process in a 9i database

    Hi, i want to import a 1 Terrabyte Table. Oracle Imp will should takes 12 days. So i want to suppress the generating of redos to increase speed. How could i achieve this in a 9i database. thanks a lot Wolle

  • Loading Lion to mac book from apple usb

    I Have lion on a usb stick from apple store but I do not know how to get it to load.  I do not have the packaging anymore.  How do I get the computer to find it.  It does not appear in the finder.