Mimic Excel Fill-Down function in table

I am creating a table that can have the number of rows vary by what the user selects.  Some of the columns will have the same value as the provious row and they would want all the rows to be filled with the same column value.  Maybe a checkbox above the column.  Any ideas on how this can be done.

scott@ORA92> -- test data:
scott@ORA92> select * from test_table
  2  /
        ID B
         1 B1
         2
         3
         4 B2
         5
         6
         7 B3
         8
8 rows selected.
scott@ORA92> -- query:
scott@ORA92> select id, b
  2  from   (select t1.id, nvl (t1.b, t2.b) as b,
  3                rank () over (partition by t1.id order by t2.id desc) as rk
  4            from   test_table t1, test_table t2
  5            where  t1.id >= t2.id
  6            and    t2.b is not null)
  7  where  rk = 1
  8  /
        ID B
         1 B1
         2 B1
         3 B1
         4 B2
         5 B2
         6 B2
         7 B3
         8 B3
8 rows selected.
scott@ORA92> -- update:
scott@ORA92> update test_table t3
  2  set    t3.b =
  3           (select b
  4            from   (select t1.id, nvl (t1.b, t2.b) as b,
  5                     rank () over (partition by t1.id order by t2.id desc) as rk
  6                  from   test_table t1, test_table t2
  7                  where  t1.id >= t2.id
  8                  and    t2.b is not null)
  9             where  rk = 1
10             and    id = t3.id)
11  /
8 rows updated.
scott@ORA92> -- results after update:
scott@ORA92> select * from test_table
  2  /
        ID B
         1 B1
         2 B1
         3 B1
         4 B2
         5 B2
         6 B2
         7 B3
         8 B3
8 rows selected.

Similar Messages

  • Fill-down function not working for resources.

    Hi,
    I am running P6 version 8.2 and I am trying to use the 'fill-down' function to copy resources down for certain filtered activities but the option is always greyed out.
    I can fill down just about anything else but for some reason it doesn't work with resources.
    Can anyone fill me in on why this may be..?
    Thanks.
    Russell.

    You can't use fill down on any column that is a list. Predecessors, Successors, Resources, Roles and Activity Codes can all be assigned to multiple activities by highlighting them, right clicking and going to Assign. This will bring up a window where you can choose what to assign.
    I am not 100% sure on why you can't use fill down with resources but I imagine its because you are doing more than editing a value for each activity. You are linking an activity to a resource, each of which are objects in the database.

  • Page down functionality in table control BDC-CJ02 tcode

    Hi Friends,
    I am doing a BDC with Table control for Tcode CJ02.
    When I reach certain number of records, say 13, the page down functionality doesnt work.I tried different ways like using the BDC_OKCODE as "=P" and "=P+".Also, I tried doing a recording by pressing the down key in the table contral, in SHDB, but none of them worked.
    Refered a post in SDN as well, but it doesnt hold any solution.
    Do throw some light on the same to achieve page down functionality for the bdc tcode CJ02.
    Thanks in advance.
    Shri.

    Hi,
    I already posted an answer to that here Re: BDC scroll down with OK_CODE '=P+':
    P+ (=P+ in the BDC) is not a universal function code, but only one which is defined in ABAP lists . So, 99% of time, it doesn't work for all others situations (like yours).
    Scrolling a table control is not so easy to do. When you record a page down on a table control in SHDB, you'll get probably a /00 which corresponds to Enter. When you play the recording, it won't scroll. The issue is that "page down" is processed in 2 parts, it changes the "top line" of the table control, and executes Enter. But it's not possible to record/play the "top line" information.
    The solution is that the program usually implements a function code:
    either "add new line"
    or "position at line"
    Sometimes, the function code is hidden so you must look at inside the program (or search SAP notes, like here: [SAP note 187946 (No positioning on PRT overview in routing)|https://service.sap.com/sap/support/notes/187946 ])
    And sometimes, there's no function code at all, and then you're stuck ! (or use SAP GUI scripting, but it may only work in dialog).
    For CJ02, I can't tell how to scroll through BDC, but anyway, there is a BAPI (don't remember the name, search the forum, it will be easy to find it), so you should always prefer them over BDC.
    Sandra

  • Implement Entry up/down & Page up/down functions in table control

    Hi,
    I have to implement entry up/down and page up/down functions in my table control. The logic is :-
    Suppose the entries in my table control currently are:-
    Called "Initial Position" :-
    a
    b
    c
    d
    e
    My "Cursor Position" or say my selection column is at 'c' value currently.
    If I press entry down, the result should be:-
    a
    b
    d
    c
    e
    i.e. c shifted one value down. If I press value up from "Initial Position", it should be :-
    a
    c
    b
    d
    e
    If I press page down from "initial position", the result should be
    a
    b
    d
    e
    c
    i.e. c has scrolled to the last entry. Similarly for page up, where the entry goes up to the first place and all entries move one position down.
    The problem i am facing is:-
    1) How to get index of entry selected?
    2) How to change table control contents at runtime?
    Thanks.
    Edited by: dumbledorearmy on Nov 23, 2010 12:25 PM

    Hi,
    Please check the function module - 'SCROLLING_IN_TABLE'.
    It give you some idea.
    Thanks.
    Anversha

  • Is there a "fill down" function

    I loaded one of my CD's into Itunes when I had no connectivity and want to fill down the genre, album name and artist.

    No, but you can select multiple items, then right/option click and *Get Info* where you change common fields. If you ripped the CD with iTunes then when you have a connection you should also have a menu option somewhere to *Get CD info* (or something like it) which should fill in the missing data. (not in front of iTunes or I'd give you the precise command).
    tt2

  • Page Up and Page down functionality in table control

    Hi,
        I want to add two pushbuttons in the module pool screen which has a table control that fetches data from the transparent table. One pushbutton is for the page up and other is for page down. If my table control <say tab_ctrl1> has 75 records in total with shows 25 at time so with a single page down it should show next 25 rows of the data.
    thanks
    ekta

    Hi,
    Use the function module SCROLLING_IN_TABLE.
    For ok_code pass P- for previous page and P+ for next page.
    Example:
       DATA L_TC_NEW_TOP_LINE     TYPE I.
         CALL FUNCTION 'SCROLLING_IN_TABLE'
              EXPORTING
                   ENTRY_ACT             = Table_Control-TOP_LINE
                   ENTRY_FROM            = 1
                   ENTRY_TO              = Table_Control-LINES
                   LAST_PAGE_FULL        = 'X'
                   LOOPS                 = 25
                   OK_CODE               = 'P+'
                   OVERLAPPING           = 'X'
              IMPORTING
                   ENTRY_NEW             = L_TC_NEW_TOP_LINE
              EXCEPTIONS
    *              NO_ENTRY_OR_PAGE_ACT  = 01
    *              NO_ENTRY_TO           = 02
    *              NO_OK_CODE_OR_PAGE_GO = 03
                   OTHERS                = 0.
       Table_Control-TOP_LINE = L_TC_NEW_TOP_LINE.
    Regards,
    Sesh

  • Is there a fill down in Numbers for iPad?

    Is there a fill down function in Numbers for iPad?
    Is there a good place to find these types of answers?
    Thanks!

    Hi Joe,
    Is there a fill down function in Numbers for iPad?
    Yes
    Is there a good place to find these types of answers?
    The Help in Numbers app
    or
    http://help.apple.com/iwork/1.2/safari/interface/?lang=en#button-2
    for explanation of filling follow
    +Numbers Help -> Data and functions -> Enter data into a table cell -> Fill a row or column with a logical range of data:+
    Anakonda

  • Pages equivalent for AppleWorks "Fill Down" in spreadsheets

    Hi there,
    In the past I've been using an AppleWorks spreadsheet to keep track of my banking. I have a balance column that uses the "Fill Down" function from the "Calculate" menu in AppleWorks. I can't seem to find similar functionality in Pages tables. Anyone out there know how to do this in Pages?
    Thanks!
    Meredith
    iBook G4   Mac OS X (10.4.10)   using Pages 2.0.2

    It is unreasonable to expect Pages to do everything AppleWorks does. Pages is only a word processing & page layout application &, along with Keynote for presentations, an application in iWork. It is not a spreadsheet or a database. It doesn't really have draw features to the extent AppleWorks does nor does it have any paint functions. If/when iWork gets applications for those functions, my expectation is that they won't be in Pages, but separate applications, just as Keynote is a separate application.

  • Fill down in Tables

    In InDesign tables, is there a way to fill cells with the same content, like Excel when you select a number of rows in a column and click Edit/Fill/Down?

    @Clark – more or less something like that, yes.
    But the appearance (fill, stroke, text formatting … ) of the cell travels over:
    The copy/paste examples
    Easy example:
    1. Select a cell ( ! not the text in a cell, the cell itself ! ) On Mac cmd + #
    2. Copy
    3. Select more than one cell
    4. Paste
    Advanced example:
    1. Select more than one cell
    2. Copy
    3. Select 2 times or more cells you have copied
    4. Paste
    Uwe

  • Query Tables Does Not Fill Down Formulas When Refreshed

    I have used external data queries for several years, connecting to a variety of data sources, but most frequently to SQL server 2005 using MS Query and ODBC. Anyway, in Excel 2007, when I refresh my queries and the data range adds new
    rows to the query table, the formluas do not fill down past the previous extent of the data range. These are not external queries converted from a previous version of Excel; I built them in Excel 2007, and the issue persists across multiple workbooks.
    To answer the inevitble suggestions:
    1) The formulas are definitely in the query tables, not adjacent.
    2) "Extend data range formats and formulas" is enabled in the advanced tab of Excel options.
    I've found threads on other sites where users had similar problems, but have not seen a satisfactory solution or even a good response to their inquiries. Any ideas?
    P. Dolan
    Stat Analyst, TN Dept of Safety

    I have the same issue with excel 2010.  To answer Ryan's last question,  Excel does seem to consider all the added rows as begin part of the table.   On the pre 2007 queries, there was an option under 'External data properties'
    to specify whether you wanted the formulas to copy down to the new rows. When this option was selected, it worked without fail.  Under 2007 and 2010 this option no longer appears, but most of the time the formulas do copy down properly, but eventually
    something happens to cause this to stop occuring.  The only fix I have found is to recreatet the whole query again.  It then works for awhile and then stops working at some point. I wish I could isolate what causes it to stop, but I haven't been
    able to figure it out.
    Same with me and Excel 2010.  The help refers to the option, but my dialog box does not have it.  (Another option that has disappeared is the ability to get column headers derived from the returned query.)
    Excerpt from help:
    On the Data tab, in the Connections group, click
    Properties.
    In the External Data Range Properties dialog box, select the
    Fill down formulas in columns adjacent to data check box.  

  • Fill down from D1 to active cell in excel ??

    Hi all. I am trying to write a script to take the values from column A and subtract the value of A$1 from the rest of column A. To do this manually I set D1 = A1-A$1 and then fill down in column D to the last used row in column A. Then copy-special paste values from column D to column A. Below is what I have written so far, but the "select (ranges "D1" thru active cell)" selects cells D1 and the active cell ($D$5) not from cell D1 down to the active cell.
    Any ideas for a newbie?
    tell application "Microsoft Excel"
    set formula of cell "D1" to "=A1-A$1"
    select (get end range "A:A" direction toward the bottom)
    set theEnd to (get first row index of active cell)
    select cell 4 of row theEnd
    select (ranges "D1" thru active cell)
    fill down (ranges "D1" thru active cell)
    end tell

    I figured out a way to do what I was after, but I would think there is a more direct way of doing it.
    If anyone has a way to slim down or clean-up this script, please let me know.
    Here is the script I have now.
    tell application "Microsoft Excel"
    set formula of cell "D1" to "=A1-A$1"
    select (get end range "A:A" direction toward the bottom)
    set theEnd to (get first row index of active cell)
    select column 4 of row theEnd
    set lastRow to "D" & theEnd as string
    set range1 to "D1:" & lastRow
    fill down range (range1)
    end tell

  • How to use Page down functionality in BDC Table control

    Hi Guys,
    I am facing problem with populating data in the table control at item level. I am able to poulate upto 6 records, i need to populate n number of records.
    Pls help me with using P+ functionality for table control in BDC.
    Thanks in advance
    Satish

    Hi!
    Can you share how you got this solved?
    Thanks!

  • Regarding page down in the table control veritcally

    Hi all,
              I have an issue regarding page down in the Table control in module pool , i.e when i m click the vertical scroll bar and going for page down then , the control is flowing to the next sceen which is not needed , and it shuld just scroll down and up vetically.
    Can anyone help me how to handle the page down event ?
    Thanks & regards,
    satya

    Table Controls: Examples with Scrolling
    The following example processes a table control with LOOP without parallel loop using an internal table. In addition to the scroll bar, the user can also carry out program-controlled scrolling with function codes.
    REPORT demo_dynpro_tabcont_loop.
    CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    DATA: itab TYPE TABLE OF demo_conn,
          fill TYPE i.
          TABLES demo_conn.
    DATA: lines TYPE i,
          limit TYPE i.
    SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
      DESCRIBE TABLE itab LINES fill.
      flights-lines = fill.
    ENDMODULE.
    MODULE fill_table_control OUTPUT.
      READ TABLE itab INTO demo_conn INDEX flights-current_line.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE read_table_control INPUT.
      lines = sy-loopc.
      MODIFY itab FROM demo_conn INDEX flights-current_line.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'NEXT_LINE'.
          flights-top_line = flights-top_line + 1.
          limit = fill - lines + 1.
          IF flights-top_line > limit.
            flights-top_line = limit.
          ENDIF.
        WHEN 'PREV_LINE'.
          flights-top_line = flights-top_line - 1.
          IF flights-top_line < 0.
            flights-top_line = 0.
          ENDIF.
        WHEN 'NEXT_PAGE'.
          flights-top_line = flights-top_line + lines.
          limit = fill - lines + 1.
          IF flights-top_line > limit.
            flights-top_line = limit.
          ENDIF.
        WHEN 'PREV_PAGE'.
          flights-top_line = flights-top_line - lines.
          IF flights-top_line < 0.
            flights-top_line = 0.
          ENDIF.
        WHEN 'LAST_PAGE'.
          flights-top_line =  fill - lines + 1.
        WHEN 'FIRST_PAGE'.
          flights-top_line = 0.
      ENDCASE.
    ENDMODULE.
    The layout of screen 100 is:
    A resizable table control called FLIGHTS is defined. The fields of the table control are transferred from the structure DEMO_CONN in the ABAP Dictionary. The first two columns are lead columns. The corresponding fields are output fields. A title bar, column headers, and a selection column are created. The component MARK of type character with length 1 from structure DEMO_CONN is assigned to the selection column. You can select one column and several lines.
    It has the following flow logic:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP WITH CONTROL flights.
        MODULE fill_table_control.
    ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      LOOP WITH CONTROL flights.
        MODULE read_table_control.
    ENDLOOP.
      MODULE user_command_0100.
    The system executes a loop at PBO and PAI using the table control FLIGHTS. During the PBO loop, a module is called to fill the table control from table ITAB of the ABAP program. During the PAI loop, a module is called to modify table ITAB.
    Before the PBO loop, in the module STATUS_0100 the current number of lines of the internal table ITAB is placed in component LINES of control structure FLIGHTS. This helps the system to correctly install the scroll bar of the table control.
    During the PBO loop, in the module FILL_TABLE_CONTROL the work area DEMO_CONN is filled with values from the internal table, where the row index corresponds to the current row of the table control.
    During the PAI loop, in the module READ_TABLE_CONTROL the current number of the loop SY-LOOPC in the table control is placed an auxiliary variable. The number is dependent on the size of the screen. The rows of the internal table, whose row index corresponds to the current row of the table control, are overwritten with the contents of the work area DEMO_CONN. User input is transferred from the input fields of the control to the internal table. In particular, the internal table also contains a flag in the column MARK to indicate whether the row of the table control is selected or not.
    After the PAI loop, user input is processed in the module USER_COMMAND. The GUI status SCREEN_100 provides the appropriate function codes. You can scroll line by line or page by page, or Goto the first or last page. You can implement scrolling by setting the component TOP_LINE of control structure FLIGHTS. For page-by-page scrolling the auxiliary variable that is filled in the PAI loop by SY-LOOPC is used as the step size.

  • Compute QTD with Excel's CUBE functions

    Hi,
    I want to compute QTD Sales using Excel's CUBE functions.  Here are the specifics
    1. I created a Pivot Table using PowerPivot and then converted the Pivot Table's cells to Formulas (Pivot Table Options > OLAP > Convert to Formulas)
    2. I have two slicers - one for Year and another for month
    3. If a user selects April in the Month slicer, then the QTD figure should be for that month only.  If he selects May, then QTD should be the summation of April and May.  If he selects June, then QTD should be the summation of April, May and June. 
    This should similarly work for other month selections as well.
    4. The formula that I currently have for computing the Quantity sold for the month of April is
    =IFERROR(CUBEVALUE("ThisWorkbookDataModel",$A10,C$8,C$9),"")
    A10 has Quantity Sold
    C8 has the Slicer's year selection
    C9 has the Slicer's month selection
    How can I modify the formula above to compute the QTD Quantity sold?
    Thank you.
    Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com

    I don't consider myself an expert in this area, but the way I've managed to get ranges is the following (please read the caveats as well). First, let me start with some related links:
    http://social.technet.microsoft.com/Forums/office/en-US/2333f239-134d-4245-ae24-5621f0ecfe73/excel-2010-cubeset-based-on-range-of-dates?forum=excel
    http://social.technet.microsoft.com/Forums/office/en-US/257ad66d-0e41-4b80-b388-1c979da4d861/excel-2010-mdx-using-cubeset-or-cubevalue-to-return-data-within-date-range-even-when-those-date?forum=excel
    http://answers.microsoft.com/en-us/office/forum/office_2010-excel/cubeset-date-range/f00317cd-8046-4bb9-8ad3-8cbf922ebb4f
    The third link is probably going to be the most helpful for syntax; the problem I was posting about was trying to nail
    down specific dates, even if there was no transactional data for that date in the cube. As long as you are working at the year and month level, the syntax should be helpful for you to define a range of months. So the main caveat is that if you are trying to
    return a value based on something that doesn't exist in your cube (whether that be a specific day, or future months that don't have placeholders) then I don't know how to do that :)
    If you want to base this on your month slicer, I would set up an additional pivot (add it under the same slicer) and have nothing but the year/month in rows, so that when a user selects an item it will be the only returned row label in the new pivot. Use
    a MATCH against a static list of months to identify which month is currently showing, and use a formula to get the start month your quarter.
    If you are always looking at current year/current quarter, then you don't even need a slicer- from the current date you can calculate current month/year and the quarter start month/year.
    Note that I use lots of cubemember formulas in adjacent cells to build my cubevalue formulas. In the syntax below, C2, C4, and E4 are cubemember formulas. M4 and N4 are just text strings that match our cube. Time Period/ Month and Year are also cube-specific,
    you will need to use the text used in your cube's heirarchy, which you can get by converting your pivot filters to formulas as well.
    =CUBEVALUE("ICSC",$C$2,$C4,$E4,CUBESET("ICSC","[Time Period].[Month and Year].&[" & M4 & "]:[Time Period].[Month and Year].&[" & N4 & "]","YTD 2010",0))
    HTH

  • How to add the dril down functionality in alv report.

    Hi All,
    I have a ALV report and now i want to add drill down functionality in this ALV report.
    See my code below:
    FORM f0002_build_field_catalog.
    Build the field catalog
    CLEAR ws_layout.
    ws_layout-colwidth_optimize = 'X'.
    ws_layout-edit = ' '.
      ws_field_catalog-col_pos = '1'.
      ws_field_catalog-fieldname = 'BUKRS'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l = 'Company Code'.
      ws_field_catalog-seltext_m = 'CCode'.
      ws_field_catalog-seltext_s = 'CCode'.
    ws_field_catalog-fix_column = 'X'.
    ws_field_catalog = 'X'.
    ws_fieldcat-ref_tabname  = 'VBKPF'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '2'.
      ws_field_catalog-fieldname = 'BELNR'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Document no.'.
      ws_field_catalog-hotspot = 'V'.
      ws_field_catalog-seltext_m    = 'Doc.no.'.
      ws_field_catalog-seltext_s    = 'Doc.no.'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '3'.
      ws_field_catalog-fieldname = 'GJAHR'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Year'.
      ws_field_catalog-seltext_m    = 'Year'.
      ws_field_catalog-seltext_s    = 'Year'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '4'.
      ws_field_catalog-fieldname = 'BSTAT'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Status'.
      ws_field_catalog-seltext_m    = 'Status'.
      ws_field_catalog-seltext_s    = 'Status'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '5'.
      ws_field_catalog-fieldname = 'FLAG'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Open/Cleared'.
      ws_field_catalog-seltext_m    = 'Open/Cleared'.
      ws_field_catalog-seltext_s    = 'Open/Cleared'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '6'.
      ws_field_catalog-fieldname = 'BLART'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Doc.Type.'.
      ws_field_catalog-seltext_m    = 'Doc.Type'.
      ws_field_catalog-seltext_s    = 'Doc.Type'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '7'.
      ws_field_catalog-fieldname = 'WRBTR'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Total Amount'.
      ws_field_catalog-seltext_m    = 'Total Amount'.
      ws_field_catalog-seltext_s    = 'Total Amount'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '8'.
      ws_field_catalog-fieldname = 'WAERS'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Currency.'.
      ws_field_catalog-seltext_m    = 'Currency'.
      ws_field_catalog-seltext_s    = 'Currency'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '9'.
      ws_field_catalog-fieldname = 'LIFNR'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Vendor'.
      ws_field_catalog-seltext_m    = 'Vendor'.
      ws_field_catalog-seltext_s    = 'Vendor'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '10'.
      ws_field_catalog-fieldname = 'NAME1'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Vendor Name'.
      ws_field_catalog-seltext_m    = 'Name 1'.
      ws_field_catalog-seltext_s    = 'Name 1'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '11'.
      ws_field_catalog-fieldname = 'UZAWE'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Payment Method Supplement'.
      ws_field_catalog-seltext_m    = 'PmtMthSuppl'.
      ws_field_catalog-seltext_s    = 'PmtMthSuppl'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
      ws_field_catalog-col_pos = '12'.
      ws_field_catalog-fieldname = 'XBLNR'.
      ws_field_catalog-tabname = 'I_OUTPUT'.
      ws_field_catalog-seltext_l    = 'Reference'.
      ws_field_catalog-seltext_m    = 'Ref. No.'.
      ws_field_catalog-seltext_s    = 'Ref. No.'.
      APPEND ws_field_catalog TO lt_fieldcat.
      CLEAR: ws_field_catalog.
    g_variant-report  = sy-repid.
       CLEAR struct_extab.
      MOVE '&XPA' TO struct_extab-fcode.
      APPEND struct_extab TO i_extab.
      MOVE '&OMP' TO struct_extab-fcode.
      APPEND struct_extab TO i_extab.
    Display the list
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
          i_callback_program      = ws_repid
          i_callback_user_command = 'HANDLE_USER_COMMAND'
         is_layout               = ws_layout
          it_fieldcat             = lt_fieldcat[]
          it_excluding            = i_extab[]
         i_default                = 'X'
         i_save                  =  'U'  "For user variants
         is_variant              = g_variant
        TABLES
          t_outtab                = i_output.
    ENDFORM.                    "f0002_build_field_catalog
    *&      Form  f0038_pf_status
          text
         -->I_EXTAB    text
    FORM f0038_pf_status USING i_extab TYPE slis_t_extab.       "#EC CALLED
      CLEAR struct_extab.
      MOVE '&XPA' TO struct_extab-fcode.
      APPEND struct_extab TO i_extab.
      MOVE '&OMP' TO struct_extab-fcode.
      APPEND struct_extab TO i_extab.
      SET PF-STATUS 'Z_PFSTATUS2' EXCLUDING i_extab.
    ENDFORM.                     "f0038_pf_status
    Pls tell me how i use this below dril down ability functionality in my code.
    See the requirement below.
    The Document Number, aka Accounting Document Number (BELNR) of each row will take the user to the appropriate document to edit as follows:
    For Parked documents:-
    If VBKPF-AWTYP (Reference Procedure) = “RMRP”, then the drilldown functionality should be to MIR4 using the Object ID in VBKPF- AWKEY. In this scenario the Object ID represents a Invoice Document Number, not an Accounting Document Number. Not the Object ID is a combination of Invoice Document Number and Fiscal Year
    If VBKPF-AWTYP = Any other value, then the drilldown functionality should be to FBV2 using the Object ID in VBKPF-AWKEY. In this scenario the Object ID represents a true Accounting Document Number. Note the Object ID is a combination of Company Code (VBKPF-BUKRS), Accounting Document Number (VBKPF-BELNR) and Fiscal Year (VBKPF-GJAHR)
    For Posted, not Cleared documents:-
    Drilldown ability should be to FB02. The combination of Company Code (BSIK-BUKRS), Accounting Document Number (BSIK-BELNR) and Fiscal Year (BSIK-GJAHR) will be used to open/drilldown to the correct document in FB02.
    For Cleared documents:-
    Drilldown ability should be to FB03. The combination of Company Code (BSIK-BUKRS), Accounting Document Number (BSIK-BELNR) and Fiscal Year (BSIK-GJAHR) will be used to open/drilldown to the correct document in FB03.
    Its very urgent, pls help on this.
    Thanks!
    Vipin

    Pls refer :
    https://wiki.sdn.sap.com/wiki/display/Snippets/ABAPInteractiveALVwithCallTransaction%28usingParameterID%29
    https://wiki.sdn.sap.com/wiki/display/Snippets/ABAPInteractiveALV+Program
    Regards,
    Anish Thomas
    Pls reward all useful answers

Maybe you are looking for

  • Nokia lumia 920 slow charging

    Hi, I bought a new micro usb cable to have as a spare to charge my lumia 920 but have found that any micro USB cable that I use apart from the one that came with the phone will take forever to charge. The original cable when plugged into the mains wi

  • Kernel Protection Failure

    Beware of Kernel Protection Failure and Kernel Panic! In certain third party software kernel goes into a panic. This also seems to be an issue with Software update Mac OS X 10.4.8. When I installed the software update things started acting up with my

  • IPhoto restoring ALL my deleted photos [ever] after library re-build

    Hi. After the last iPhoto update I had to re-build the library. As a result, all the pictures I deleted from iPhoto [ever], are back. I am positive that I have deleted the iPhoto trash as well as the System trash regularly. Is this normal? does iPhot

  • I can't listen or delete 13 songs on my ipod touch 4th gen what should i do.

    I can't listen or delete 13 songs on my ipod touch 4th gen what should i do.

  • Colors in Lightroom & Photoshop CS5 don't match the files in Windows

    I recently sent a file to my regular printer and the photos came back flat and somewhat gray.  When I view the photos in Photoshop and Lightroom, the photo looks warm and colorful.  When I go to Windows explorer and open the .jpg file in a Windows pr