Reg: list to grid

hi friends..
actually i copied one standard program to add some fields (i.e i want to customize that)..
the output for that standard program is alv grid..
but my custom program show the output as alv List display..
how can i change from list to grid ?
other than program i need any other extra settings..
note:
i check the settings-> user parameters..
but i don't have that options in that screen

Hi,
Below is a full code listing(ABAP program) of all ALVgrid functionality detailed on this website. Simply
copy and past the code into a new program and it should active and run ok.
*& Report  ZDEMO_ALVGRID                                               *
*& Example of a simple ALV Grid Report                                 *
*& The basic requirement for this demo is to display a number of       *
*& fields from the EKKO table.                                         *
REPORT  zdemo_alvgrid                 .
TABLES:     ekko.
type-pools: slis.                                 "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
  statu TYPE ekpo-statu,
  aedat TYPE ekpo-aedat,
  matnr TYPE ekpo-matnr,
  menge TYPE ekpo-menge,
  meins TYPE ekpo-meins,
  netpr TYPE ekpo-netpr,
  peinh TYPE ekpo-peinh,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
      wa_ekko TYPE t_ekko.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
      gd_tab_group type slis_t_sp_group_alv,
      gd_layout    type slis_layout_alv,
      gd_repid     like sy-repid,
      gt_events     type slis_t_event,
      gd_prntparams type slis_print_alv.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*&      Form  BUILD_FIELDCATALOG
      Build Fieldcatalog for ALV Report
form build_fieldcatalog.
There are a number of ways to create a fieldcat.
For the purpose of this example i will build the fieldcatalog manualy
by populating the internal table fields individually and then
appending the rows. This method can be the most time consuming but can
also allow you  more control of the final product.
Beware though, you need to ensure that all fields required are
populated. When using some of functionality available via ALV, such as
total. You may need to provide more information than if you were
simply displaying the result
              I.e. Field type may be required in-order for
                   the 'TOTAL' function to work.
  fieldcatalog-fieldname   = 'EBELN'.
  fieldcatalog-seltext_m   = 'Purchase Order'.
  fieldcatalog-col_pos     = 0.
  fieldcatalog-outputlen   = 10.
  fieldcatalog-emphasize   = 'X'.
  fieldcatalog-key         = 'X'.
fieldcatalog-do_sum      = 'X'.
fieldcatalog-no_zero     = 'X'.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  fieldcatalog-fieldname   = 'EBELP'.
  fieldcatalog-seltext_m   = 'PO Item'.
  fieldcatalog-col_pos     = 1.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  fieldcatalog-fieldname   = 'STATU'.
  fieldcatalog-seltext_m   = 'Status'.
  fieldcatalog-col_pos     = 2.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  fieldcatalog-fieldname   = 'AEDAT'.
  fieldcatalog-seltext_m   = 'Item change date'.
  fieldcatalog-col_pos     = 3.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  fieldcatalog-fieldname   = 'MATNR'.
  fieldcatalog-seltext_m   = 'Material Number'.
  fieldcatalog-col_pos     = 4.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  fieldcatalog-fieldname   = 'MENGE'.
  fieldcatalog-seltext_m   = 'PO quantity'.
  fieldcatalog-col_pos     = 5.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  fieldcatalog-fieldname   = 'MEINS'.
  fieldcatalog-seltext_m   = 'Order Unit'.
  fieldcatalog-col_pos     = 6.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  fieldcatalog-fieldname   = 'NETPR'.
  fieldcatalog-seltext_m   = 'Net Price'.
  fieldcatalog-col_pos     = 7.
  fieldcatalog-outputlen   = 15.
  fieldcatalog-do_sum      = 'X'.
  fieldcatalog-datatype     = 'CURR'.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
  fieldcatalog-fieldname   = 'PEINH'.
  fieldcatalog-seltext_m   = 'Price Unit'.
  fieldcatalog-col_pos     = 8.
  append fieldcatalog to fieldcatalog.
  clear  fieldcatalog.
endform.                    " BUILD_FIELDCATALOG
*&      Form  BUILD_LAYOUT
      Build layout for ALV grid report
form build_layout.
  gd_layout-no_input          = 'X'.
  gd_layout-colwidth_optimize = 'X'.
  gd_layout-totals_text       = 'Totals'(201).
gd_layout-totals_only        = 'X'.
gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
                                        "click(press f2)
gd_layout-zebra             = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text       = 'helllllo'.
endform.                    " BUILD_LAYOUT
*&      Form  DISPLAY_ALV_REPORT
      Display report using ALV grid
form display_alv_report.
  gd_repid = sy-repid.
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = gd_repid
            i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
            i_callback_user_command = 'USER_COMMAND'
           i_grid_title           = outtext
            is_layout               = gd_layout
            it_fieldcat             = fieldcatalog[]
           it_special_groups       = gd_tabgroup
            it_events               = gt_events 
            is_print                = gd_prntparams 
            i_save                  = 'X'
           is_variant              = z_template
       tables
            t_outtab                = it_ekko
       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.                    " DISPLAY_ALV_REPORT
*&      Form  DATA_RETRIEVAL
      Retrieve data form EKPO table and populate itab it_ekko
form data_retrieval.
select ebeln ebelp statu aedat matnr menge meins netpr peinh
up to 10 rows
  from ekpo
  into table it_ekko.
endform.                    " DATA_RETRIEVAL
Form  TOP-OF-PAGE                                                 *
ALV Report Header                                                 *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
      wa_header type slis_listheader,
      t_line like wa_header-info,
      ld_lines type i,
      ld_linesc(10) type c.
Title
  wa_header-typ  = 'H'.
  wa_header-info = 'EKKO Table Report'.
  append wa_header to t_header.
  clear wa_header.
Date
  wa_header-typ  = 'S'.
  wa_header-key = 'Date: '.
  CONCATENATE  sy-datum+6(2) '.'
               sy-datum+4(2) '.'
               sy-datum(4) INTO wa_header-info.   "todays date
  append wa_header to t_header.
  clear: wa_header.
Total No. of Records Selected
  describe table it_ekko lines ld_lines.
  ld_linesc = ld_lines.
  concatenate 'Total No. of Records Selected: ' ld_linesc
                    into t_line separated by space.
  wa_header-typ  = 'A'.
  wa_header-info = t_line.
  append wa_header to t_header.
  clear: wa_header, t_line.
  call function 'REUSE_ALV_COMMENTARY_WRITE'
       exporting
            it_list_commentary = t_header.
           i_logo             = 'Z_LOGO'.
endform.
      FORM USER_COMMAND                                          *
      --> R_UCOMM                                                *
      --> RS_SELFIELD                                            *
FORM user_command USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.
Check function code
  CASE r_ucomm.
    WHEN '&IC1'.
  Check field clicked on within ALVgrid report
    IF rs_selfield-fieldname = 'EBELN'.
    Read data table, using index of row user clicked on
      READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
    Set parameter ID for transaction screen field
      SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
    Sxecute transaction ME23N, and skip initial data entry screen
      CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    ENDIF.
  ENDCASE.
ENDFORM.
*&      Form  BUILD_EVENTS
      Build events table
form build_events.
  data: ls_event type slis_alv_event.
  call function 'REUSE_ALV_EVENTS_GET'
       exporting
            i_list_type = 0
       importing
            et_events   = gt_events[].
  read table gt_events with key name =  slis_ev_end_of_page
                           into ls_event.
  if sy-subrc = 0.
    move 'END_OF_PAGE' to ls_event-form.
    append ls_event to gt_events.
  endif.
    read table gt_events with key name =  slis_ev_end_of_list
                           into ls_event.
  if sy-subrc = 0.
    move 'END_OF_LIST' to ls_event-form.
    append ls_event to gt_events.
  endif.
endform.                    " BUILD_EVENTS
*&      Form  BUILD_PRINT_PARAMS
      Setup print parameters
form build_print_params.
  gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
  gd_prntparams-no_coverpage = 'X'.
endform.                    " BUILD_PRINT_PARAMS
*&      Form  END_OF_PAGE
form END_OF_PAGE.
  data: listwidth type i,
        ld_pagepos(10) type c,
        ld_page(10)    type c.
  write: sy-uline(50).
  skip.
  write:/40 'Page:', sy-pagno .
endform.
*&      Form  END_OF_LIST
form END_OF_LIST.
  data: listwidth type i,
        ld_pagepos(10) type c,
        ld_page(10)    type c.
  skip.
  write:/40 'Page:', sy-pagno .
endform.
Reward if useful.

Similar Messages

  • Album artwork does not appear in album list or grid

    I added album artwork (did get info then copy and paste) and it shows up fine in cover flow but does not appear in album list or grid view.
    What am I doing wrong?  Artwork files were scanned from album covers that I have.

    Your album artwork cache may be corrupt. Provided most, if not all, of your artwork is embedded you can simply delete the Album Artwork folder that you will find inside your main iTunes folder and then scroll slowly through the library in Grid/Albums mode to rebuild it. Any images that were "downloaded" rather than embedded will need to be reacquired.
    Threre are separate folders for the downloaded and cached images, but I've always gone for a complete rebuild so I don't know it would work to delete just the cached folder.
    tt2

  • Computer shuts down when I click on the list or grid display button

    I've uninstalled an reinstalled 3 times and instead of the computer shutting down when I start itunes as it was doing, it only does it when I click on the display as a list, grid or cover display button. However it seems to unistall some parts at the same time as I can't open it all afterwards (error message says its not installed). This started to occur after a couple of weeks of non use and when I last used it I purchased songs from itunes. I now have current version but didn't when it first statred to happen. Help!!

    Okay ... we'd better have a closer look at the minidumps the PC has been producing to see if they can turn up any additional information on what we're dealling with here.
    Open "My Computer", and see if you can find a directory called C:\Windows\Minidump. (That's where minidumps usually go on a PC, so long as the Systemroot hasn't been set to some other folder.)
    If it's been collecting minidumps, there should be files in there with names like "Mini(number-numbers).dmp"
    (If you have "Hide filename extensions for known file types" enabled in Windows, the ".dmp" extension may not appear on the dump files. The numbers in the file name will be different for each minidump, if minidumps are present.)
    Once we've tracked down some minidumps, we can have a go at analysing them.
    1. Download and install the Windows debugging tools from here:
    http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx
    2. Go to Start, All Programs, Debugging Tools For Windows, Windbg
    Once you open Windbg, you will presented with a blank screen.
    3. Click on "File > Symbol File Path". Here you will enter the symbols
    path. Symbols are needed to effectively debug.
    The path will be:
    SRVc:symbolshttp://msdl.microsoft.com/download/symbols
    4. Enter in this path and click OK. Now, go to "File > Save Workspace"
    so that your symbols path is saved for future use.
    5. Go to "File > Open Crash Dump" and load the file.
    (An "Open Crash Dump" screen will appear ... doubleclick "My Computer", doubleclick "Local Disk", doubleclick "Windows", doubleclick "Minidump", and doubleclick on one of the minidumps in there.)
    You will/should get a message to save base workspace information. Choose no.
    Now you will get a debugging screen. It takes a little bit to run it,
    as the symbols have to be downloaded as they are needed.
    After the "bugcheck analysis" part of the screen comes up, look for the component that seems to be causing the crash. (It'll say "Probably caused by" ...)
    Let us know the precise name of the component. (Include any file name extensions like .dll or .sys.)
    If you can, have a look at several of your crash dumps. Are all the crashes being caused by the same component? If not, could you let us know the names of the various components being cited in the various crash dumps?

  • Can we provide new f4 help for a field in a list using grid display

    Hi Gurus,
    Can I provide F4 help for field in edit mode for (which is not using any std. data type, uses only custom char field ) in the list displayed using CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
    I know this can be done using OOPS concepts but, I need to know whether it is possible in this manner.
    And please dont suggest me to use CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' to get automatic  f4 help.
    I need to provide F4 help with my own logic once I press F4 in the edited field in GRID_DISPLAY
    Regards
    Mac.

    Hi Macmohan,
    You have to use F4AVAILABL attribute of fieldcatalog to achieve this.
    lv_fldcat-f4availabl = 'X'.
      lv_fldcat-ref_table = 'T582A'.
      lv_fldcat-ref_field = 'ZEITB'.
    This works with ALV GRID CONTROL
    Regards
    Abhii
    Edited by: Abhii on Dec 16, 2009 3:37 PM

  • Export to spreadsheet from program result list (ALV Grid) via the web

    Hello alles!
    When executing a program (a report) using SAP WebGUI or the portal (Manager's Desktop/Launchpad etc.), exporting the result list to a spreadsheet doesn't seem to work. No error message, browser doesn't really hang, but nothing happens. Neither Excel, nor XML export, nor anything works.
    Export from the same program works just fine in SAP GUI.
    (SAP Note 314568 has some information about ALV Grid export limitations, but I can't make the XML export work either...)
    Could this be a configuration error in ITS? In that case, where..?
    Or is it something we just need to live with?
    Thank you in advance!
    Brgds, Caroline

    There is a known problem regarding exportation to Excel.
    Try the following path :
    Tools --> Macro --> Security
    Then go to the "Trusted Publishers" tab and tick the "Trust acess to Visual Basic Project" option.
    This should do the trick.

  • 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

  • Drop Down List in Grid is dependent on Dropdown List at Level 0

    Hi All,
    In my secondary page, there are three Drop-Down List Boxes D1, D2 and D3.
    D3 is in grid at Level 1 on secondary page and the prompt Table in D3 have 3 Keys.Key 1 and Key 2 are the same field as D1 and D2.As D3 is dependent on D1 and D2.
    First time, D3 remains empty even i select values in D1 and D2 but when i EndModal(1) and then come back , D3 has values.
    What is happening ?
    What is the solution of this scenario ?
    Thanks for your help in advance.

    D3 is in GRID_RECORD at Level 1.
    As Grid Record is totally dependent on D1 and D2.
    therefore, On field Change of D2 ,
    I delete the Grid Record,
    for &i = GRID_RECORD.ActiveRowCount to 1 Step -1
    GRID_RECORD.DeleteRow(&i);
    End-for;
    As a Result, The Default Row only present at Grid_Record, and D3 has no values.
    so i also include in field change of D2
    for &i = GRID_RECORD.ActiveRowCount to 1 Step -1
    GRID_RECORD.DeleteRow(&i);
    End-for;
    Local Rowset &RowSetGRID_RECORD;
    &RowSetGRID_RECORD =GetLevel0()(1).GetRowSet(Scroll.GRID_RECORD);
    &RowSetGRID_RECORD(1).GRID_RECORD.KEY1.VALUE = D1.Value;
    &RowSetGRID_RECORD(1).GRID_RECORD.KEY2.VALUE = D2.Value;
    Now D3 has values.
    Am i doing right, or there is any better solution ?

  • Artworks does not appear in List and Grid view, but in Cover Flow

    Since a few days the Artwork does neither appear in the List and the Grid View nor in the Genius Mix. When I change to Cover Flow, I can see all Artwork. I see all Artwork also in the information tabs. I already upgraded to the last iTunes version 9.0.2 but without any effect. Restarting iTunes and my PC doesn't help at as well.
    Does anybody have an idea what the problem is and how it can be solved?

    Hi, welcome to Apple Discussions.
    A completely blank Cover Flow can sometimes be a graphics driver problem but if Grid & List views have problems then it is probably a corrupted artwork cache. With iTunes closed rename the *Album Artwork* folder as *Album Artwork (OLD)*. Start iTunes and slowly scroll through your library in Grid mode. The cache will be rebuilt for all albums where there is embedded art. Albums that only had iTunes Store art will need to have new artwork downloaded. If all goes well delete the old artwork folder.
    *How to find tracks without artwork*
    To find all the tracks without artwork so that you can update them you can try http://www.stum.de/itunes-find-tracks-without-artwork/ for Windows or http://dougscripts.com/itunes/scripts/ss.php?sp=trackswithoutartwork for Macs. Use Google, Amazon, Discogs etc. to locate relevant images. Ideally these should be square, 320x320 pixels or above and borderless to give the best results in the various menus.
    tt2

  • How to get iTunes to show views other than list--no grid or cover flows

    I posted earlier but no one offered any suggestions. I'll try very directly this time. With iTunes 8.1 installed, I can obtain no other view than LIST. I can't get GRID or COVER FLOW. Any suggestions from Mac gurus far smarter about these things than me?

    Apparently, the only problem is in the view options. I don't routinely purchase music, I merely copy my own or friends' CDs into iTune. So, I can't verify there is any problem area there. But, the ability to view in anything other than list is driving me crazy. I grew accustomed to that cover flow view before this latest update, so I miss its availability. My concern is that this must be the indication of a deeper problem with iTunes or my video drivers or other related problems I've had over the last two months with the iPhoto, documented elsewhere in these discussion forums.

  • 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

  • How do I change a field in the sum in ALV (List or grid)

    My alv, for example:
    1.10
    2.30
    1.50
    Sum(DO_SUM) : 4.90
    But I need to CEIL( 4.90 ) before showing .
    It should be shown as 5.00 in alv.
    How do I change this field in the sum ?

    Use the following code in a PBO module or in an adequate event method
    data: total type ref to data,
          subtotal1 type ref to data.
    field-symbols: <total> like gt_sflight,
                   <subtotal1> like gt_sflight.
    call method grid1->get_subtotals
      importing
        ep_collect00 = total
        ep_collect01 = subtotal1.
    assign total->* to <total>.
    assign subtotal1->* to <subtotal1>.
    Look at [ALV Grid Control (BC-SRV-ALE)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf]
    Regards

  • How to get the variants for LAV LIST or GRID?

    Hi,
    How to get the variants which are stored in table like JVSO1, using function module REUSE_ALV_VARIANT_F4 ?
    Thanks.

    Hi,
    Delcare
    DATA : st_variant  TYPE disvariant,       "Work area for variant
           st_variant1 TYPE disvariant.       "Work area for variant
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-041.
    PARAMETERS :     p_varnt TYPE  disvariant-variant MODIF ID md8.  "Variant
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varnt.
    *--Local Variables
      DATA: l_exit(1) TYPE c.                "ALV exit
    *--Call the function module to display the list of Variants
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant    = st_variant
          i_save        = c_save
        IMPORTING
          e_exit        = l_exit
          es_variant    = st_variant1
        EXCEPTIONS
          not_found     = 1
          program_error = 2.
    *--Check Subrc
      IF sy-subrc <> 2 AND l_exit IS INITIAL.
        p_varnt = st_variant1-variant.
      ENDIF.
    start-of-selection.
      IF NOT p_varnt IS INITIAL.
        CLEAR st_variant1.
        MOVE st_variant TO st_variant1.
        MOVE p_varnt TO st_variant1-variant.
    *--Call the function module to check the variant exist
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            i_save     = c_save
          CHANGING
            cs_variant = st_variant1.
        st_variant = st_variant1.
      ENDIF.
    DATA : lv_repid TYPE sy-repid.
    *--Pass the Report name
      lv_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = lv_repid
          it_fieldcat             = it_fcat
          is_variant              = st_variant
          it_events               = it_events
          i_save                  = 'A'
          i_callback_user_command = 'USER_COMMAND'
        TABLES
          t_outtab                = it_zsd_ra
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
      IF sy-subrc <> 0.
        MESSAGE e368(00) WITH 'Alv Display failed'(044)  .
      ENDIF.
    regards,
    Prashant

  • Reg:list of stock tranporting order(STO) deliveries whose GR is open

    Hi All,
    please respond ,
    i search this question in forums,this question was repeated
    but unanswerd, my requirement is.
    get the list of deliveries for STO and whose GR is open
    is there any standard bapi to get like this...
    if there is no bapi for this let me know the table names to maintain GR status for deliveries, so that i will generate my own function module.
    ( please dont suggest me to use transaction VL06I and so,
    i want bapi or table names)
    Thank you
    Sumalatha.

    Hi lakshmi kumar  thanks for u r reply,
    but i didn't get you, please tell me the table names
    for holding delivery orders and status for GR (for STO).
    Thank you
    Sumalatha.

  • 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 List Item

    Hi All,
    I have programmed a "list item" in such a way that it is populated by a record group that is created programatically and after population the record group is destroyed, This is my code that has been placed in "When-New-Form-Instance" trigger at Form Level.
    DECLARE
         RG_NAME VARCHAR2(30) := 'RG_LIST';
         RG_ID RECORDGROUP;
         RET_CODE NUMBER(10);
         V_QUERY VARCHAR2(300);
    BEGIN
         V_QUERY := 'SELECT CUSTOMER_ID,CUSTOMER_ID FROM CUSTOMERS';
         RG_ID := FIND_GROUP(RG_NAME);
         IF NOT ID_NULL(RG_ID) THEN
              DELETE_GROUP(RG_ID);
         END IF;
         RG_ID := CREATE_GROUP_FROM_QUERY(RG_NAME,V_QUERY);
         RET_CODE := POPULATE_GROUP(RG_ID);
         POPULATE_LIST('CUSTOMER_ID_LIST_ITEM',RG_NAME);
         DELETE_GROUP(RG_ID);
    END;
    When i compiled the Form, i am getting the error that says: FRM-30351: No list elements defined for list item.List CUSTOMER_ID_LIST_ITEM
    Regards,
    Sreekanth.

    FRM-41335:
    This is from the on-line helpp "POPULATE_LIST built-in"
    Removes the contents of the current list and populates the list with the values from a record group. The record group must be created at runtime and it must have the following two column (VARCHAR2) structure:
    Column 1: Column 2:
    the list label the list value
    sarah

Maybe you are looking for

  • Req help in conversion of string to array of args

    Hi, i need help in converting a string into array of args just like command line args i have a string s1 = 12 13 56 etc now i want to copy that into an array a[] a[0] = 12 a[1] = 13 etc Thanks for help

  • Something strange on the screen glass, perhaps a flow of the coating??

    I moisten the iPad screen, the THING appears! It can't be seen easily unless the surface is humid, and when I touch it, I feel this area of screen is not glazed, and rough. I swear to God! This is the first time I clean the screen since I got it 8 da

  • How to call interactive form using webdynpro abap.

    Hi Sap Guru's, I have Created Invoice Interactive form using SFP Transaction , now my requirement is , Need to Call that invoice form using webdynpro abap by passing invoice number(vbeln) from the screen. please suggest . thanks

  • Truncate data in replication

    Hi, I have a problem with functions removeDatabase and truncateClass, now I want to clear all data in a database with a small cost and I found these two APIs can meet my needs, but it awalys give me com.sleepycat.je.rep.DatabasePreemptedException whe

  • ERROR: Web Dynpro component does not exist

    Hi! Trying to open different menu items in PPM I get browser with error: 500 SAP Internal Server Error ERROR: Web Dynpro component does not exist (termination: RABAX_STATE). Url looks like: someurl.com:8010/sap/bc/webdynpro/sap/inm_workcenter_app?IV_