Alv is not displying

Hi All
I am developing one ALV Report in that i am fetching data from diff tables and i am puting all internal table to one final internal table .Now i want to disply that i am using REUSE_ALV_FIELDCATALOG_MERGE FM aft that iam using REUSE_ALV_LIST_DISPLAY to disply but nothing is displying data is coming in to Final itab.
Can any one help me out.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      I_PROGRAM_NAME         = REPID
      I_INTERNAL_TABNAME     = 'IT_HFINAL'
    CHANGING
      CT_FIELDCAT            = it_fieldcat[]
    EXCEPTIONS
      INCONSISTENT_INTERFACE = 1
      PROGRAM_ERROR          = 2
      OTHERS                 = 3.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
   i_callback_program             = REPID
   it_fieldcat                    = it_fieldcat[]
  TABLES
    t_outtab                      = it_hfinal
EXCEPTIONS
   program_error                  = 1
   OTHERS                         = 2.
Thanks in Advance
Regards
Rao

Hi,
When you declare your table it_hfinal,
decalre with 'occurs 0' when you use 'REUSE_ALV_FIELDCATALOG_MERGE' FM.
DATA: BEGIN OF it_hfinal OCCURS 0,
           END OF it_hfinal.
This will make your program work.
Regards,
Manoj Kumar P

Similar Messages

  • ALV Grid not displying properly when spool is generated by print button

    Hi All,
    When print button is used to genarate spool of the ALV Grid, then in the spool the end of page content is getting over lapped on the main lines. Please let me know how to display end of page content without geting overlapped on the lines.
    Below is the code which I have written.
    <cut>
    Edit: Please see next post.
    Thanks in Advance!
    Regards,
    Preethi G
    Edited by: Julius Bussche on Feb 14, 2010 9:15 AM

    Hi All,
    Sorry. Please ignore my first post. When print button is used to generate spool then in the spool file the end of page content is getting overlapped on the main lines. Please let me know to solve this.
    Thanks in Advance!
    Below is the code written
    ALV Grid display
    alv_layout-colwidth_optimize = 'X'.
      alv_layout-zebra             = 'X'.
      wa_print_info-no_print_listinfos  = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program       = sy-repid
            i_grid_title             = ''
            i_callback_pf_status_set = 'FRM_SET_STATUS'
            i_callback_user_command  = 'FRM_USER_COMMAND'
            is_layout                = alv_layout
            it_events                = i_events
            it_fieldcat              = alv_fieldcat
            is_print                 = wa_print_info
          TABLES
            t_outtab                 = it_payroll
          EXCEPTIONS
            program_error            = 1
            OTHERS                   = 2.
    End of Page and End of list
    IF sy-pagno = 0.
        s_pageno = 1.
      ELSE.
        s_pageno = sy-pagno.
      ENDIF.
      CLEAR: i_list_comments[].
      SKIP.
      SKIP.
      CONCATENATE 'u85AAu8D44u4E13u5458' '________' 'HRSu7ECFu7406' '________' 'u4EBAu529Bu8D44u6E90u603Bu76D1'
    '________'  'u7EE9u6548u8D22u52A1u603Bu76D1' '________' 'u603Bu7ECFu7406' '________'''INTO s_out
      SEPARATED BY space.
      NEW-LINE.
      WRITE AT (sy-linsz) s_out CENTERED.
      SKIP.
      CONCATENATE  s_pageno '-' v_pagsum  'u9875' INTO
       w_list_comments-info SEPARATED BY space.
      NEW-LINE.
      WRITE  AT (sy-linsz) w_list_comments-info CENTERED.
    Edited by: Julius Bussche on Feb 14, 2010 9:16 AM
    Tried to fix formatting a bit.

  • Output of a "report_attribute_error_message" in a sorted ALV does not work!

    Hi all/SAP,
    in my thread editable ALV - how to throw an error message for a specific line & field I figured out, that the output of a "report_attribute_error_message" in the ON_DATA_CHECK event of an editable ALV does not work, if sorting is active for a column.
    Thanks to The specified item was not found. for reproducing this problem.
    A similar problem exists, using an aggregation of a column. This will lead to a runtime exception.
    I've found no fix in the OSS to this problem.
    So is there a way to use sorting together with the output of a "report_attribute_error_message"
    or if this is a bug, can/will this be fixed in the (near) future?
    Thanks,
    Andreas

    Hi,
    Yes, it doesnot work with those (RB,CB) UI elements...Have you checked for any note..I have also tried but no luck..
    Regards,
    Lekha.

  • Customer not displyed in sales order

    Hi all,
    I'm facing problem with customer not displyed in sales order. While i'm creating sales order sold to party and ship to party fields both are grey mode ( fileds are not accepting any values). I set up partner detemination procedure for customer, sales header and item level. I don't know where i did wrong . Please solve my problem as early as possible.
    Thanks & regards
    Kesav

    Dear Kesav,
    Did you assign Partner procedure to sales document header??
    Please do this Go to SPRO>SD>Basic Functions>Partner Determination>Set Up Partner Determination-->Set Up Partner Determination for Sales Document Header
    Here select the Procedure and then click on Partner Determination Procedure Assignment and assign procedure to sales document type.
    Thanks,
    Raja

  • Set cursor alv grid (not using objects)

    I got a question on ALV GRID (not using objects), please let me know if you have pointers. Thanks.
    Output has 2 screens both has different contents. The output is generated using internal table1 and 2 and using FM  'REUSE_ALV_GRID_DISPLAY_LVC'  (both screen use same FM).
    First screen has multiple pages of output (say 10 pages). User scrolled page 5 and line 10 of first screen and then double clicked it takes to screen #2. After completion of screen #2, the back arrow should get back to page 5 and line 10 of screen #1. Currently the back arrow gets to screen#1 page 1 and line 1. How to remember the cursor position in alv grid and instruct the cursor to go there?
    Appreciate the input.
    Note: I tried "set cursor line n" with "Scroll" command but no luck. http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba47e35c111d1829f0000e829fbfe/content.htm

    Thanks for the inputs.
    FYI, I got it implemented using method  CALL METHOD <ref.var. to CL_GUI_ALV_GRID > ->set_current_cell_via_id
    The method is called by 'REUSE_ALV_GRID_DISPLAY_LVC' form 'PF_STATUS_SET' when the ALV grid output is presented each time.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
          i_bypassing_buffer       = 'X'
          i_callback_program       = gc_repid
          i_callback_pf_status_set = 'PF_STATUS_SET'
          i_callback_user_command  = 'USER_COMMAND'
          is_layout_lvc            = lwa_layout
          it_fieldcat_lvc          = git_fc_lvc
          i_default                = ' '
        TABLES
          t_outtab                 = git_data
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      FORM alv_event_pf_status_set USING rt_extab                
                                 TYPE slis_t_extab.
      DATA lo_ref1 TYPE REF TO cl_gui_alv_grid.
    *Get the reference to class "lo_ref1" for the ALV report
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = lo_ref1.
    *set the focus of cursor in ALV
      CALL METHOD lo_ref1->set_current_cell_via_id
        EXPORTING
          is_row_no = gv_row. "row number where you want to focus the cursor
      ENDFORM.

  • Alv is not appearing in the same Selection Screen

    Hi people..
    First time using  cl_gui_docking_container.
    I have a problem, my alv is not appearing in the same Selection Screen.
    is there somethign wrong with my code? it doesnt even show a dump or catch.
    Regards
    DATA: lo_dock TYPE REF TO cl_gui_docking_container,
           lo_cont TYPE REF TO cl_gui_container.
    DATA: gr_table      type ref to cl_salv_table,
           gr_functions  type ref to cl_salv_functions,
           gr_display    type ref to cl_salv_display_settings,
           gr_columns    type ref to cl_salv_columns_table,
           gr_column     type ref to cl_salv_column_table,
           gr_sorts      type ref to cl_salv_sorts,
           gr_agg        type ref to cl_salv_aggregations,
           gr_filter     type ref to cl_salv_filters,
           gr_layout     type ref to cl_salv_layout,
           color         type lvc_s_colo,
           key           type salv_s_layout_key.
       SELECT * INTO TABLE tbl_datos_items FROM zsd_micros_bd.
    CHECK lo_dock IS INITIAL.
      CREATE OBJECT lo_dock
           EXPORTING
             repid = sy-cprog
             dynnr = sy-dynnr
             ratio = 70
             side  = cl_gui_docking_container=>dock_at_bottom
             name  = 'DOCK_CONT'.
         IF sy-subrc <> 0.
           MESSAGE 'Error in the Docking control' TYPE 'S'.
         ENDIF.
    TRY.
    lo_cont ?= lo_dock.
    cl_salv_table=>factory(
    exporting r_container      = lo_cont
                 container_name = 'DOCK_CONT'
                 list_display   = if_salv_c_bool_sap=>false
    importing r_salv_table = gr_table
    changing t_table = tbl_datos_items  ).
    CATCH cx_salv_msg .
    ENDTRY.
    gr_functions = gr_table->get_functions( ).
    gr_functions->set_all( abap_true ).
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_list_header( 'Items de Ventas' ).
      gr_table->display( )

    Hi ,
    First you have to create you own screen ( dynpro )  with a screen number ( 0101 for exemple )  , you need to pu a custom control in it , name the custom control ( lo_cont )
    For the screen created you need to create a module for the PBO , in this module you sould put you code for displaying the liste :
    Module STATUS_0101 output.
    TRY.
    lo_cont ?= lo_dock.
    cl_salv_table=>factory(
    exporting r_container      = lo_cont
                 container_name = 'DOCK_CONT'
                 list_display   = if_salv_c_bool_sap=>false
    importing r_salv_table = gr_table
    changing t_table = tbl_datos_items  ).
    CATCH cx_salv_msg .
    ENDTRY.
    gr_functions = gr_table->get_functions( ).
    gr_functions->set_all( abap_true ).
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_list_header( 'Items de Ventas' ).
      gr_table->display( ).
    Endmodule.
    and give the screen number when calling  lo_dock 
    CREATE OBJECT lo_dock 
           EXPORTING
             repid = sy-cprog
             dynnr = '0101'.
    tested
    Regards

  • 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

  • Hi my phone is not disply

    hi my phone 4s is not disply but i call that number my is ringing

    Is your iPhone, 1/3G/3GS/4/4s/5 running iOS 1/2/3/4/5/6 plugged into a wall socket or usb port? 
    Have you made sure the dock cable is working.  Can you connect to iTunes?
    If you are connected to a USB Port on your computer/laptop have you tried changing ports?
    Are you using an apple wall charger or an aftermarket charger?
    Did you plug your phone in and wait a few minutes if it was totally dead?  It sometimes takes a few minutes for a phone with a totally flat battery to get enough juice into the battery to activate the screen and show you what's going on?
    We would love to help you but we need more details.

  • Input field in Web Dynpro ALV does not have correct focus

    Hello Friends,
    Our client's SAP system is recently upgraded with ECC 6.0 SP 18.
    After that the focus in the editable field of Web Dynpro ALV does not working properly by down arrow navigation.
    The common scenario:
    The ALV has more than one rows and one column is editable...
    when user is selecting field of first row and making some entries...
    after that pressing down arrow it is going to next row and coloring the field like focusing...
    but the 'cursor' is not blinking so user can not make entry without clicking by mouse...
    this was working Ok before upgrade...
    Could you please anyone have a look and propose a suitable solution?
    Thanks
    Krish

    Hello,
    The problem was with Javascript....which play an important role in layout of web dynpro ALV...
    which resides in MIME repository -> SAP ->PUBLIC - >BC ->NW5 ->JS ->SAPURI_Ie6....
    We wrote to SAP for giving us the fix...
    after we got a new file from SAP the problem is solved...
    also we have to clear server cache through SMICM and client cache...
    Thanks.
    K.

  • ALV selection not displayed/shown

    Hello,
    I have a question concerning the ALV:
    In NW 7.0 everything was fine and working, as of EhP1 the selection for one ALV is not displayed.
    ...the selection is done alright and also corresponding events are raised. Nevertheless there is no visual representation for a selection - meaning the yellow/orange highlighting of a selected line. It is neither done for the lead selection nor for "normal" selections.
    Other ALV in the same application (though different component) work fine and as far as I can tell all are initilized similarly.
    Does anyone know this effect and - most important - how to correct it?
    Regards,
    Robert

    Hello all,
    We were able to solve the issue of selections not being visible - although they are correctly set in ALV/context.
    -> The default view of the window has to be set to the ALV usage!
    Don't ask me why, but in case the default setting is on the empty view, no selections will be visible on the UI. As soon as you set the ALV usage as default, the selections will be visible again.
    Kind Regards,
    Robert

  • Af:selectOneChoice value not disply in edit mode

    Helo Team,
    I have the following functionality..
    i have one Table.. & one Add button when i click on the add button one popoup will open i enter the data when i say ok then data will show in table & in table when i click the particular row..& click edit button & othe popup will open with edit mode all field which i entered previously are disply in edit mode...But only the value of Af:selectOneChoce value not disply in that componant ...
    How can i solve this problem ?

    Hi,
    How ur LOV(ie.SelectOneChoice) is attached to the field from a viewObject.. Is it attached through a viewAccessor?
    I think ur update page is a separate page having a form layout and if so please drag and drop the selectone choice field(ie.attribute has LOV entry) from respective
    viewObject shown in the datacontrol. this will create a LOV entry in ur pagedef file and try the same.... :)
    regards,
    Suganth.G

  • ALV Report not getting displayed in Background

    Hi All,
    I am using Object Oriented approach of ALV to display the Report, in foreground it works fine but in background I don't get the Report.
    I am using the below piece of code but doesn't seems to be working well.
    CALL METHOD cl_gui_alv_grid=>offline
        RECEIVING
    e_offline = OFF.
    if OFF is initial.
    *----Creating custom container instance
        CREATE OBJECT gr_ccontainer
         EXPORTING
           container_name = gc_custom_control_name
         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.
    *--Exception handling
        ENDIF.
        CREATE OBJECT gr_alvgrid
         EXPORTING
           i_parent = gr_ccontainer.
    Its not working. If anyone of you could let me know what can be done to get the ALV report with all the fields in the background.
    Thanks.

    Hi Geeta,
    I was about to say this...
    If that is the case u don hav to design a custom control in ur screen, instead use ur screen as a
    dummy container which will work well in fore/back ground
      CREATE OBJECT go_grid
        EXPORTING
          i_parent = cl_gui_container=>default_screen. "Default scrren taken as dummy container
    But u got the answer in previous post : )..
    For ur second question:
    goto SP01->give spool no->exec->select the spool no(check)-> press shift+F4...
    Cheers,
    Jose.

  • Added new field to ALV but not  displaying the ouput

    Hi guys,
    I'm adding one more column to be displayed on an old existing program that uses REUSE_ALV_FIELDCATALOG_MERGE to generate the ALV fieldcat.
    DATA : BEGIN OF itab OCCURS 0,
      matnr LIKE eina-matnr,
      extwg LIKE mara-extw,
      matkl LIKE mara-matkl,
      mtart LIKE mara-mtart,
      maktx LIKE makt-maktx,
      lifnr LIKE eina-lifnr,
      wglif LIKE eina-wglif,
    <span style="color:red">idnlf like eina-idnlf,          " <----
    new field</span>
      name1 LIKE lfa1-name1,
      profl LIKE mara-profl,
    END OF itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-cprog
          i_internal_tabname     = 'ITAB'
          i_client_never_display = ''
          i_inclname             = sy-cprog
         i_bypassing_buffer     = 'X'
        CHANGING
          ct_fieldcat            = t_cat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    I've added in a new field inside the ITAB internal table, but it wouldn't appear in the t_cat, only all the old fields will appear. What have i done wrong?

    Hi
      Facing similar kind of issue.. added one field to the existing internal table. This is not getting populted by the field catalog merge FM. Tried with the suggested solution also of running programs BALVBUFDEL,
    BCALV_BUFFER_DEL_SHARED then logging off  and logging in..
    But the newly added field is not getting populated. Any suggestions would be of great help.
    Regards,
    sridevi S

  • Filter criteria in ALV report not working

    Hi,
    In ALV report , when i click on filter button , it does not filter the report according to the filtered criteria. this happens in the cases where the selection criteria is a lengthy field. when i debug after the filter criteria it goes into standard function.
    i am using REUSE_ALV_GRID_DISPLAY
    is there any way in which i can correct this?
    thanks,
    Amit
    null

    chk this useful thread
    Re: ALV problem (with filter use)

  • ALV Filter : Not working for a text field - Strange problem

    Dear All,
    I have a Z-program where the ALV filter is not working on a particular text field.
    The output on that text field is as below :
    ABCD
    JKLM
    YYZZ
    ABCD
    JKLM
    ABCD
    JKLM
    YYZZ
    YYZZ
    When we try to filter on YYZZ, it gives blank list. But for other options given abobe it works fine.
    I know it is because of the negative sign , but how can we over come this problem ?
    Thanks in advance,
    Sandip.

    Hi Sandip,
    Use 'LOWERCASE' in the fieldcatalog.
    For the particular text field when you are appending the Fieldcatalog structure to the Fieldcatalog Table
    ( Suppose LS_FIELDCAT)
    Then check the LOWERCASE field.
    (LS_FIELDCAT-LOWERCASE = 'X' )
    This will serve the purpose.
    Regards,
    Sourav

Maybe you are looking for

  • Problem in OBI 11g 11.1.1.7.0 Installation - Configuration Progress

    I'm trying to install do Oracle Business Intelligence 11.1.1.7.0 and when the instalation reaches the Configuration Progress when it tryies to create a instance, it gives the following error: [2013-05-21T12:20:52.158-03:00] [as] [ERROR] [] [oracle.as

  • BlackBerry Messenger Won't Open

    Hi!! I've been trying to open my BBM to use it for the past day and it will not open at all. Sometimes previously I've got the 'Error' message but this time, absolutely nothing, the application just won't open at all. I've reinstalled BBM at least th

  • Update field of an Append Structure

    Hi! I need help!! I made an extension using Append Structure  (I Added a owner field) of a standart table ( EBAN ) about "purchase requisition". I want to update this field when a new purcahse requisitions is created , using the bapi BAPI_REQUISITION

  • Assets under construction settlement

    Dear Experts, I set both G/L account and  cost center as settlement receiver in settlement rule ,but when i was running AIBU ,i stil got error message as below , Account 51027000 requires an assignment to a CO object     Message no. KI235 Diagnosis  

  • Search clips removed from the library

    Hello! Faced with such a problem in iMovie: made ​​a movie, left him in the draft program. Then, after a time, to sync my iPhone with iTunes deleting the album with the songs, which were used in the project iMovie. Now I can not import my project as