ERP Database - The Unofficial ERP Knowledge Base

Facebook Twitter del.icio.us Digg it
ERP Database contains a huge collection of articles related to ERP System and Software. Many of the articles are specifically related to SAP. All these ERP/SAP articles are freely available to everyone.

If you would like to submit an article or share any document related to ERP or any specific ERP software. Please mail it to support@erpdb.info. Please make sure that the documents are not copyrighted.
Social Bookmarks:

How to Display OO ALV in Popup

Print This Post Email This Post Written by rajivsharma.sap on Jul 9th, 2009 | Filed under: ABAP Programs

Guest post by Rajiv

Use the factory method to display the ALV in Popup.

DATA: gr_table           TYPE REF TO cl_salv_table,
*<< Your Custom table, Populate data in it
     gr_master         TYPE STANDARD TABLE OF ymaster,    
     lr_functions       TYPE REF TO cl_salv_functions_list,
     lr_columns         TYPE REF TO cl_salv_columns.
  TRY.
      cl_salv_table=>factory(
        IMPORTING
          r_salv_table = gr_table
        CHANGING
          t_table       = gr_master ).
    CATCH cx_salv_msg.
  ENDTRY.
 
  lr_functions = gr_table->get_functions( ).
  lr_functions->set_all( 'X' ).
 
  lr_columns = gr_table->get_columns( ).
  lr_columns->set_optimize( 'X' ).
 
 gr_table->set_screen_popup(
  start_column = 1
  end_column   = 100
  start_line   = 1
  end_line     = 20 ).
 
  gr_table->display( ).
Share

If you like this post, you may as well like these too:

  1. ALV Popup for Infotypes ALV pop up giving the list of all the infotypes in the system. The user can select the infotypes . After selection the details of the selected infotypes are displayed...
  2. ALV Display ALV to Display all Transaction Codes. Here is a sample program of ALV report displaying all the transaction codes in SAP User can click any tcode on ALV and go...
  3. ALV hierarchical list display ALV code for simple hierarchical sequential list display(single child) List of SAP tables and their characteristics are displayed as the header table ( the parent table) and the list of...
  4. ALV Hierarchical Sequential Display List ALV Hierarchical List ALV code for hierarchical sequential list display(single child). List of SAP tables as the parent node with interactive features(as a pop up) and List of fields as...
  5. How to debug from a Popup Download this file from here –> Debug.sap Drag and drop this onto the Popup and the you can start your debug from there. This is a small text file and...



Leave a Reply