Drill down into a report

Hi!
I've been working on a report to be able to drill down into another "detailed" one, and I was able to do it but not exactly the way i needed.
I created an action link for the column values, but my problem is that for EVERY value, i always drill into the same exact report, and my idea is to drill into the same report for all of them, but with different parameters for each one
Example:
Sales representative revenue
John 230K
Mark 100K
Martin 500K
I've set a drill down for the revenue column, but all 3 values are obviously drilling into the same exact report, and I want to set it in a way I can tell the sub report "give me the detail report but only for the corresponding sales representative"
If i click on 230K, I want to see the "detailed report" only for John's oppties. If i click on 500K, I want to see the "detailed report" only for Martin's oppties. And so on...
That's the whole deal. I don't know how to do that.
Thanks for your help,
Martin

Hi, thanks for your answer
I'm navigating from a master to a detailed report, and i have already set the attribute as "is prompted" but Its not enough. Let me try to explain why
Lets say I have this example report:
Prompts: Primary position
Table:
Primary position | forecast
John | 768687
Paul | 200000
George | 923882
then I drill down on "Paul" to the next position level, so the report changes to something like this:
Primary position | secondary position | forecast
Paul | Jane | 100000
Paul | Martin | 100000
So, now... I want to drill into Martin's 100.000 forecast (drill into a detailed report) and despite I have the primary position set as "is prompted", I have no prompts for second, third, or n-position... So If I drill down from martin's 100000 forecast, I will only be able to pass the primary to the detailed report, and It will only be able to show Paul's 200000 forecast details
I want the detailed report to pull Paul for primary, Martin for secondary, and show only the detailed report for that 100000 forecast value
That's the issue
I hope I was clear enough
Thanks,
Martin

Similar Messages

  • Drill-down into AWR reports

    Hi experts,
    any can help me in this topic Drill-down into AWR reports.

    A typical AWR report - produced in html format- includes its main categories(for example Top 5 timed events) hyperlinked. By clicking on each one , you can navigate to a thorough analysis of all db parameters regarding it......
    Anyway....Can you more specific of what exactly do you want...?????
    Greetings...
    Sim

  • How to setup the drill down on union report

    Hi,
    I'm setting the union report.
    I want to set the drill down to another report.
    But I can't setup it.
    Would you please tell me how to setup.
    Thank you.

    Hi Hemlatha
    In Crystal Reports, to prevent the ability to drill down into a subreport when published on the Web, add a text object that is filled with blank spaces, created by pressing the 'Space Bar' and 'Enter' for line returns, to eclipse the subreport.
    This workaround is applicable only to subreports that does not grow in size. For example, subreports that display only a chart or graph.
    Steps to Add a Text Object over a Subreport
    1. In the Crystal Reports Designer of the main report, insert a text object over the subreport.
    2. Resize the text object to be the same size or a little larger than the subreport object on the main report.
    3. Fill the text object with blank spaces created by pressing the 'Space Bar' and 'Enter'. This is necessary because resizing a text object without
    the blank spaces will not maintain its size when it has been published on the Web.
    ====================
    NOTE:
    You can format the text object with a hyperlink to another report, another file or a URL.
    ====================
    Now, when the Crystal report is previewed on the Web, the text object that fully eclipses the subreport will prevent the ability to drill down into it.
    Regards
    Girish

  • Drill down in crosstab report

    I'm working with a crosstab report displaying summary accounts on each row & current and prior year on each column. I'd like to create a drill down function for each of the summary accounts rows so that when I click on a summary account, the dept# that made up this summary total will be displayed either on a separate report or below the summary account that I click.
    Any help would be greatly appreciated.  Thank you.
    This is what I want to create:
    SUMMARY ACCOUNT               FY2014     FY2013
    600001 - SALARIES               500        380    (i.e. able to drill down to dept below when 600001 is clicked)
        701000 - ER DEPT            200        175
        757000 - CATH LAB           150        210
        848000 - INFO SYSTEM        100         65
        851000 - ACCOUNTING          50         50
    710002 - BENEFITS               150        140
        881000 - HUMAN RES          135        130
        900000 - OTHERS              15         10
    711003 - SUPPLIES               XXX        XXX

    Thank you for the referenced thread.  I've copied your answer on the thread to this reply below.
    However, I do have a few question in following thru your instructions:
    1.  How do you procede with the 1st 3 bullets below?
    2.  What or where is the Business Object Platform?
    3.  What or where is the "Repository"
    Please advice.  Thank you.
    Here are a few ways you can drill-down into a cross-tab (all of them are workarounds by the way).
    The first method is using Report Parts or ‘Another Report Object’ and the second method is using an ‘OpenDoc’ URL
    Both the methods need the target report (report that is opened when drilled into) to have the same groups as the Crosstab
    The ‘Another Report Object’ can be setup in the following way:
    The target report needs to saved to the BusinessObjects Platform first
    Open the target report in the Crystal Report designer from the ‘Repository’
    Assuming the groups have been setup properly, click on any field in the details section and ‘Copy’ (Ctrl+C)
    Open the Report with the Crosstab
    Right-click the Summary Field on the Crosstab and go to ‘Format Field’ > Hyperlink
    Then Check ‘Another Report Object’ and click on ‘Paste’
    All the required information should be populated automatically
    This is how the Data Context should look like:
    “/”+GridRowColumnValue(“Customer.Country”)+”/”+ GridRowColumnValue(“Customer.Region”)+”/”+ GridRowColumnValue(“Customer.Customer Name”)
    Where “Country” and “Region” are rows in the Crosstab, “Customer Name” is a column in the crosstab.
    Similarly, “Country”, “Region” and “Customer Name” are groups on the target report
    So, the above formula would make sure the report drills-down to the last group
    The next method using ‘OpenDoc’ makes use of the opendocument URL and passes values from the Crosstab to the target report’s parameters
    Here’s how we can set this up:
    The basic design of the Main report and the target report would be the same as in above, however we would need to create parameters that correspond to the groups on the target report
    In this case, we would create three parameters – Country, Region and Customer Name
    We would use these parameters as filters on the target report and our record selection formula would look like this:
    {Country} = {?Country} and {Region} = {?Region} and {Customer Name} = {?Customer Name}
    We would then link the Main reports ‘Country’, ‘Region’ and ‘Customer Name’ with these parameters
    Now on the Main report Right-click the Summary Field on the Crosstab and go to ‘Format Field’ > Hyperlink
    Check the option ‘A Website on the Internet’ and click on the formula button in ‘Hyperlink information:”; the formula should be as follows:
    “/OpenDocument/opendoc/openDocument.jsp?iDocID=6472&lsSCountry=”&GridRowColumnValue(“Customer.Country”)&” &lsSRegion=”&GridRowColumnValue(“Customer.Region”)&” &lsSCustomer+Name=”&GridRowColumnValue(“Customer.Customer Name”)
    When any summary value is clicked in the Cross-tab, the corresponding Country, Region and Customer Name are passed as values to the parameters of the target report
    Hope this helps!
    -Abhilash

  • Drill down in webi report

    Hi,
    Is there any way to display the drill down in webi report.  For example:
    YearQuarterMonth--Week.......
    if the drill the Year option I can able to see all Quarter level measures and if I drill down further I can get into Month level measures and Week level and so on .
    But my question is When I drill the Year to Quarter...I want it to display both Year and Quarter and If I drill down further
    I want all the measures related to Year ,Quarter, Month and so on
    Basically want I need is a tree level hierarchy......Could any one plz help me what all changes I need to make in order to get a detailed report.
    Thanks
    Sushma
    Edited by: Sushma Reddy on Feb 9, 2010 9:44 PM

    Hi,
    Try to create a Class e.g Time in universe and objects to that class as year, quarter,month as
    Year Object -> data type -> D/N
    select To_date('sysdate','YYYY) as year from dual
    Month object-> data type -> D/N
    select to_date)'sysdate','MM') as month from dual;
    Quarter -> data type -> D/N
    case when @select(Time/Month) in (1,2,3) then q1
             when @select(Time/Month) in (4,5,6) then q2
              when @select(Time/Month) in (7,8,9) then q4
               when @select(Time/Month) in (10,11,12) then q4
    endcase
    Then create a hierarch in tools -> hiearchy ->custom hierarchy and add the above class there then in any report (Deski/WebI)
    you will get the above hierarchy and use it according to your requirement.
    Cheers,
    Suresh Aluri.

  • Drill down into va22

    It's a drill down into va22, I've done it the standard way, but
    it fails:
    set parameter id 'AUN' field t_tab-vbeln.
    call transaction 'VA22' and skip first screen.
    The set parameter executes okay, and if you F1, F9 on the
    quotation field in va22 it says the parameter id is AUN.
    However, it doesnt appear that it is AUN. If you set that
    parameter id to '123' and then go to va22, it's still got the
    last quote you used. If you then go to VA03, it's got '123' in
    the order field.
    I can only assume that sap's incorrectly reporting that AUN is
    the parameter ID for VA22, would anyone know what it actually
    is?

    Hi,
    AUN is displayed because this is specified in the data dictionary for
    the used data element.
    When defininte a dynpro field, based on this data element, the parameter
    id AUN is proposed.
    However, in the PBO of the dynpro, the actual Parameter id AGN is used.
    Cheers,
    Chaitanya.

  • Not able to drill down S_ALR_87013558 in reports

    Hello Experts,
    I am in strange situation where in I am not able to drill down my budget report S_ALR_87013558 in my development client. But it is working fine in production client.
    What could be the reason.?
    Please suggest.
    Thanks,
    Kumar Srinivasan

    Hi Kumar,
    Follow below steps in sequence.
    1. Please execute CJE2.
    2. Double Click on report 12KST1A. Message will come "You are changing an SAP delivery object". Press the tick mark.
    3. On Output Type tab, you must have clicked on radio button "Graphical Report Output". Please change the radio button classical drilldown and check "Available on Selection Screen" at the buttom.
    4. Save it.
    Check your report again and you will have an option there.
    Regards,
    Amit

  • Drill-down lost in Report Builder

    Ever since the CFMX7.02 upgrade, we have lost the ability to
    drill-down on the Report Builder reports which previously had
    drill-down capability. I am referring to summary lines which
    contained a link to the detail. Has anyone experienced this and is
    there a fix for it?

    Do you choose PDF instead of flash paper as the output
    format? By some reason, the drill-down function does not work in
    flash paper format.
    Good luck,
    Daniel

  • HOW TO ADD DRILL DOWN IN A REPORT

    hi
    well i want to add drill down in my report....
    im unable to find it ....
    can you please help me to make a drill down in my report.
    thnx and regards
    UMAR NAYAB.

    hey thnx toronto..
    im able to make drill in my report....
    now my chart is not changing its data according to drill.....
    like my bar chart should also change with the data drilled down....
    please help regarding this....
    regards.

  • Drill down in XL Reporter

    Hi
    Can we have drill down in XL Reporter -Report Organizer
    Regards
    Farheen

    Hi Rekha,
    We can user drill down in XL reporter composer and excel . IN rerport composer when you drag a field to the selection criteria then you can drill down by transaction level.
    But Report organiser is where all the reports are saved and give a look and feel like windows explorer.
    What is your requirement. Post reporting related queries in the reporting forum
    [Reporting and Printing;
    Regards,
    Rakesh N

  • PIE Chart Drill down in bex report

    Hi Friends,
    In my bex report i have pie chart for year 2008.
    Shall I drill down on this report means if  i click on one part of the pie chart will i go to another report or another pie chart.
    Can any one pls tell me is it possible .
    Thanks & Regards,
    Ramnaresh.
    Edited by: ramnaresh porana on Dec 1, 2008 6:35 AM

    Hi ,
    Thanks for reply.
    how it is possible from context menu of the pie chart , i have seen the context menu of the pie chart but i did not get any related option for this one.
    Can you pls guide me.
    Thanks & Regards,
    Ramnaresh.

  • Error Message appears when drilling down from a report.

    Hi,
    I am using CR XI R2.
    I have an rpt file that displays a chart from a sub report.
    I tested it on the CR designer and report viewer - works ok.
    When I display this report in my .Net application, I get an error message when drilling down from this chart : "The Report Application Server failed"
    When looking at the log files I see this error message:
    4 19 13:11:14.770 5336 5564 (\servers\ras\dtsagent\reporthandler.cpp:11622): CReportHandler::buildReportViewerError: CSResultException thrown.   ErrorSrc:"CRPE" FileName:"\servers\ras\dtsagent\reporthandler.cpp" LineNum:11618 ErrorCode:997 ErrorMsg:"" DetailedErrorMsg:""
    This is a Viewer error - but when drilling down from the Report Viewer I don't get this exception.
    Does anyone know what this mean?

    Too strange and my require a phone support case;
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    Three ideas:
    1) Install CR designer on one of the boxes where this does not work and try to run the report there
    2) Add a line to your code and save out the report just after your database logon once ( .saveAs). try to run this report in the CR designer.
    3) Use the [modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility to compare the runtime - both CR and db client between computers that work and those that do not.
    Ludek

  • JDeveloper 2.0: Drilling down into a class

    I can't drill down into a class by double-clicking on an object
    node in the Structure pane. The Content pane should display the
    source code for the ancestor class of that particular object.
    Thanks in advance!
    null

    Hi
    The doc for 'oracle.jdeveloper.servlet' can be found in the
    JDeveloper Help System.
    Launch the help system
    and in the contents tab double click on 'JDeveloper 2.0 Reference
    Documentation' book icon.
    In the right hand frame select 'Oracle JBO Reference' link and
    you can drill down further.
    best regards
    raghu
    John Ritz (guest) wrote:
    : Were can I find more detailed documentation for the classes in
    : the 'oracle.*' packages? I'm specifically interested in how to
    : use the classes in 'oracle.jdeveloper.servlet.*'
    : and 'oracle.jdeveloper.html.*' packages. Some classes have a
    : JavaDoc file but with little content, others have no
    : documentation at all. Also Is the source code available for the
    : classes in the oracle packages? Thanks for your help.
    null

  • Error WHen rying to Drill down in the Report

    Hi ,
    I am getting the below error when trying to Drill down on a characterstic in the Report.
    "500 Internal Server Error"
    BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,
    Required information for reproduction  according to note 948490.
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was: 
    Termination message sent
    ABEND RS_EXCEPTION (000): ORA-00904: "P0000"."CATTYPE_OT": invalid identifier
      MSGV1: ORA-00904: "P0000"."CATTYPE_OT": invalid
      MSGV2: identifier

    Good day,
    Please check if Note 1327130  helps ...
    Regards,
    Karen

  • Drill down in tree report

    Hi gurus,
    This is regarding the drill down in the Tree report.
    My scenario is,
    i am doing a budget variance report which displays the report in tree format.
    i have texts for different nodes in the tree, along with that i have a 10 feilds which i display using fieldcat in output along with nodes.
    now i want to have the drill down to the 2 of the fields, where it has to go to some transaction.
    i tried with hotspot in fieldcat definition but it is not working.
    please can u tell me a solution as how can i do this drill down.
    thanks in advance.
    u will be rewarded heavily.

    Hi Vipin,
    You can try with following example:
    *& Report  ZPRG                                                *
    &--INTERACTIVE ALV REPORT PROGRAM--
    &This program displays order detais for a particular customer----
    REPORT  zprg                              .
    --TYPE POOLS--
    TYPE-POOLS slis.
    --TABLES--
    TABLES : kna1, vbak.
    --DATA TYPES--
    TYPES : BEGIN OF ty_vbak,
    vbeln TYPE vbak-vbeln,
    erdat TYPE vbak-erdat,
    netwr TYPE vbak-netwr,
    END OF ty_vbak.
    TYPES : BEGIN OF ty_vbap,
    posnr TYPE vbap-posnr,
    arktx TYPE vbap-arktx,
    werks TYPE vbap-werks,
    END OF ty_vbap.
    --WORK AREAS--
                              FOR FIRST PAGE                            *
    DATA w_fcat TYPE slis_fieldcat_alv.   "Used as Header for Field Catalog
    DATA w_vbak TYPE ty_vbak.             "Used as Header for Data Table
    DATA w_events TYPE slis_alv_event.    "Used as header for Events Table
    DATA w_comments TYPE slis_listheader. "Used as Header for Comments Table
                               SECOND PAGE                              *
    DATA w2_fcat TYPE slis_fieldcat_alv.   "Used as Header for Field Catalog
    DATA w2_vbap TYPE ty_vbap.             "Used as Header for Data Table
    DATA w2_events TYPE slis_alv_event.    "Used as header for Events Table
    DATA w2_comments TYPE slis_listheader."Used as Header for Comments Table
    --INTERNAL TABLES--
                              FOR FIRST PAGE                            *
    DATA t_fcat TYPE slis_t_fieldcat_alv.   "Table for Field Catalog
    DATA t_vbak TYPE ty_vbak OCCURS 1.      "Data Table
    DATA t_events TYPE slis_t_event.        "Table for events
    DATA t_comments TYPE slis_t_listheader. "Comments table
                               SECOND PAGE                              *
    DATA t2_fcat TYPE slis_t_fieldcat_alv.   "Table for Field Catalog
    DATA t2_vbap TYPE ty_vbap OCCURS 1.      "Data Table
    DATA t2_events TYPE slis_t_event.        "Table for events
    DATA t2_comments TYPE slis_t_listheader. "Comments table
    *****************VIPIN: START*****************************
    DATA: V_REPID LIKE SY-REPID.
    V_REPID = SY-REPID.
    *****************VIPIN: END*******************************
    --SELECTION SCREEN--
    PARAMETERS p_custno TYPE kna1-kunnr.
    --FILLING FIELD CATALOG--
                              FOR FIRST PAGE                            *
    w_fcat-col_pos = 1.
    w_fcat-fieldname = 'VBELN'.
    w_fcat-seltext_m = 'ORDER NUMBER'.
    APPEND w_fcat TO t_fcat.
    w_fcat-col_pos = 2.
    w_fcat-fieldname = 'ERDAT'.
    w_fcat-seltext_m = 'ORDER DATE'.
    APPEND w_fcat TO t_fcat.
    w_fcat-col_pos = 3.
    w_fcat-fieldname = 'NETWR'.
    w_fcat-seltext_m = 'ORDER VALUE'.
    APPEND w_fcat TO t_fcat.
                               SECOND PAGE                              *
    w2_fcat-col_pos = 1.
    w2_fcat-fieldname = 'POSNR'.
    w2_fcat-seltext_m = 'ITEM NUMBER'.
    APPEND w2_fcat TO t2_fcat.
    w2_fcat-col_pos = 2.
    w2_fcat-fieldname = 'ARKTX'.
    w2_fcat-seltext_m = 'ITEM DESCRIPTION'.
    APPEND w2_fcat TO t2_fcat.
    w2_fcat-col_pos = 3.
    w2_fcat-fieldname = 'WERKS'.
    w2_fcat-seltext_m = 'PLANT'.
    APPEND w2_fcat TO t2_fcat.
    --FILLING DATA TABLE--
                              FOR FIRST PAGE                            *
    SELECT vbeln
           erdat
           netwr
    FROM vbak
    INTO TABLE t_vbak
    WHERE kunnr = p_custno.
    SORT t_vbak BY vbeln.
                               SECOND PAGE                              *
    DATA FOR 2ND PAGE IS FILLED IN THE SUBROUTINE HANDLING USER_COMMAND *
    --FILLING EVENTS TABLE--
    w_events-name = 'TOP_OF_PAGE'.
    w_events-form = 'SUB1'.
    APPEND w_events TO t_events.
    w_events-name = 'USER_COMMAND'.
    w_events-form = 'SUB2'.
    APPEND w_events TO t_events.
    --FILLING COMMENTS TABLE--
    w_comments-typ = 'H'.
    w_comments-info = 'CUSTOMER ORDER INFORMATION'.
    APPEND w_comments TO t_comments.
    w_comments-typ = 'S'.
    w_comments-key = 'Sold To Party'.
    w_comments-info = p_custno.
    APPEND w_comments TO t_comments.
    -----PASSING FIELD CATALOG AND THE DATA TABLE TO THE FUNCTION-----
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_INTERFACE_CHECK                 = ' '
        I_BYPASSING_BUFFER                = ' '
        I_BUFFER_ACTIVE                   = ' '
          i_callback_program                = V_REPID
        I_CALLBACK_PF_STATUS_SET          = ' '
        I_CALLBACK_USER_COMMAND           = ' '
        I_CALLBACK_TOP_OF_PAGE            = ' '
        I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
        I_CALLBACK_HTML_END_OF_LIST       = ' '
        I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = ' '
        I_GRID_TITLE                      =
        I_GRID_SETTINGS                   =
        IS_LAYOUT                         =
          it_fieldcat                       = t_fcat
        IT_EXCLUDING                      =
        IT_SPECIAL_GROUPS                 =
        IT_SORT                           =
        IT_FILTER                         =
        IS_SEL_HIDE                       =
        I_DEFAULT                         = 'X'
        I_SAVE                            = ' '
        IS_VARIANT                        =
          it_events                         = t_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
        IT_ALV_GRAPHICS                   =
        IT_HYPERLINK                      =
        IT_ADD_FIELDCAT                   =
        IT_EXCEPT_QINFO                   =
        I_HTML_HEIGHT_TOP                 =
        I_HTML_HEIGHT_END                 =
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER           =
        ES_EXIT_CAUSED_BY_USER            =
      TABLES
        t_outtab                          = t_vbak
      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.
                Subroutine for the Event TOP_OF_PAGE
    FORM sub1 .
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary       = t_comments
          i_logo                   = 'COMPANY LOGO'
      I_END_OF_LIST_GRID       =
    ENDFORM.                                                    " sub1
                Subroutine for the Event USER_COMMAND
    Here u_comm contains the function code of the selected function
    and slis_field is a structure containing cursor information
    FORM sub2 USING u_comm LIKE sy-ucomm rs_field TYPE slis_selfield.
    CASE u_comm.
        WHEN '&IC1'.
          IF rs_field-fieldname = 'VBELN'.
            SELECT posnr
                   arktx
                   werks
            FROM vbap INTO TABLE t2_vbap WHERE vbeln = rs_field-value.
          ENDIF.
      ENDCASE.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
        I_INTERFACE_CHECK                 = ' '
        I_BYPASSING_BUFFER                = ' '
        I_BUFFER_ACTIVE                   = ' '
        I_CALLBACK_PROGRAM                = ' '
        I_CALLBACK_PF_STATUS_SET          = ' '
        I_CALLBACK_USER_COMMAND           = ' '
        I_CALLBACK_TOP_OF_PAGE            = ' '
        I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
        I_CALLBACK_HTML_END_OF_LIST       = ' '
        I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = ' '
        I_GRID_TITLE                      =
        I_GRID_SETTINGS                   =
        IS_LAYOUT                         =
          it_fieldcat                       = t2_fcat
        IT_EXCLUDING                      =
        IT_SPECIAL_GROUPS                 =
        IT_SORT                           =
        IT_FILTER                         =
        IS_SEL_HIDE                       =
        I_DEFAULT                         = 'X'
        I_SAVE                            = ' '
        IS_VARIANT                        =
        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
        IT_ALV_GRAPHICS                   =
        IT_HYPERLINK                      =
        IT_ADD_FIELDCAT                   =
        IT_EXCEPT_QINFO                   =
        I_HTML_HEIGHT_TOP                 =
        I_HTML_HEIGHT_END                 =
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER           =
        ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = t2_vbap.
      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.                                                    "sub2

Maybe you are looking for