How to use parameter id in report

dear all
please solve this problem
i use parameter id in alv report and i call another report i m unable to pass parameter to another report
regards
abhilash

Hi,
Here is the example
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-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.
Regards
Mudit

Similar Messages

  • [Forum FAQ] How to use parameter to control the Expand/Collapse drill-down options in SSRS report?

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

  • How to get parameter value from report in event of value-request?

    Hi everyone,
    The customer want to use particular F4 help on report, but some input value before press enter key are not used in event of "at selection-screen on value-request for xxx", How to get parameter value in this event?
    many thanks!
    Jack

    You probably want to look at function module DYNP_VALUES_READ to allow you to read the values of the other screen fields during the F4 event... below is a simple demo of this - when you press F4 the value from the p_field is read and returned in the p_desc field.
    Jonathan
    report zlocal_jc_sdn_f4_value_read.
    parameters:
      p_field(10)           type c obligatory,  "field with F4
      p_desc(40)            type c lower case.
    at selection-screen output.
      perform lock_p_desc_field.
    at selection-screen on value-request for p_field.
      perform f4_field.
    *&      Form  f4_field
    form f4_field.
    *" Quick demo custom pick list...
      data:
        l_desc             like p_desc,
        l_dyname           like d020s-prog,
        l_dynumb           like d020s-dnum,
        ls_dynpfields      like dynpread,
        lt_dynpfields      like dynpread occurs 10.
      l_dynumb = sy-dynnr.
      l_dyname = sy-repid.
    *" Read screen value of P_FIELD
      ls_dynpfields-fieldname  = 'P_FIELD'.
      append ls_dynpfields to lt_dynpfields.
      call function 'DYNP_VALUES_READ'
        exporting
          dyname     = l_dyname
          dynumb     = l_dynumb
        tables
          dynpfields = lt_dynpfields
        exceptions
          others     = 1.
      check sy-subrc is initial.
    *" See what user typed in P_FIELD:
      read table lt_dynpfields into ls_dynpfields
        with key fieldname = 'P_FIELD'.
    *" normally you would then build your own search list
    *" based on value of P_FIELD and call F4IF_INT_TABLE_VALUE_REQUEST
    *" but this is just a demo of writing back to the screen...
    *" so just put the value from p_field into P_DESC plus some text...
      concatenate 'This is a description for' ls_dynpfields-fieldvalue
        into l_desc separated by space.
    *" Pop a variable value back into screen
      clear: ls_dynpfields.
      ls_dynpfields-fieldname  = 'P_DESC'.
      ls_dynpfields-fieldvalue = l_desc.
      append ls_dynpfields to lt_dynpfields.
      call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname     = l_dyname
          dynumb     = l_dynumb
        tables
          dynpfields = lt_dynpfields
        exceptions
          others     = 0.
    endform.                                                    "f4_field
    *&      Form  lock_p_desc_field
    form lock_p_desc_field.
    *" Make P_DESC into a display field
      loop at screen.
        if screen-name = 'P_DESC'.
          screen-input = '0'.
          modify screen.
          exit.
        endif.
      endloop.
    endform.                    "lock_p_desc_field

  • How to Display Parameter set in report ??

    Hi all...I have a multi select Parameter in a Report.
    Generally we use this statement to initialize parameters in template
    <?param@begin: parameter_name?>
    and to display that we use: <?parameter_name?>
    But this is good for single valued parameters
    I have a multi select parameter, I need to show all those values(suppose 3) in title of report. (They cannot be included in the SQL as a column)
    How do we achieve this?
    Thanks a lot in advance!

    you can use the same <?param@begin:parameter_name?><?$parameter_name?> for multiselect values also

  • How to use the repository; uploading reports from DEV to PROD...

    Hello...
    I'm fairly new to CR-XIr2 (SP3) but have worked with Crystal Reports since v6.0.  I'm trying to figure out how to create a dynamic parameter list that someone can select an item from, which will get sent as an input parameter to the SQL Server 2005 stored proc that populates the report.  I'm also trying to figure out if there's an easy way to copy reports from a DEV environment into PROD.  We have BOE.
    Basically, I would like to find out resources online or in books on how to use the BOE repository for dynamic and/or cascading parameters (i.e. pulling a list of text values & their associated IDs from a lookup table that won't be used in the report), images (i.e. corporate logo), etc..  What complicates things for us is that IT is now requiring us to use a DEV environmentit was really easy when we had unlimited access in PROD!  We also need to put together a process where reports & other repository objects that are copied from DEV to PROD access the correct db, etc.  (Crystal Report in DEV accesses DEV db/repository/etc.when copied to PROD it accesses PROD db/repository/etc.)
    Anyway, I'm just looking for info on where to begin--whether it be a book, a BO/SAP knowledge base article, in-class training from a specific company, etc.  Thanks!

    Hey Markian,
    Can you let me know the process you have followed to migrate from Dev to Prod.
    We can migrate all the reports and objects and database fields through migrate wizard where you can import all the objects, reports and database fields and users to production enterprise.
    Just follow the above scenario and let us know if you are facing any error.
    Try  publish the reports using import wizard and run it in the crystal designer.
    Regards,
    Naveen.

  • How to use Connection pool in Reports

    Dear All,
    Please help me How to create Connection pool for Reports and How to use in Reports.
    Present i am using the report by passing parameter as P_JDBCPDS=username/password@databaseName. I thought this will not manage the coonection pool.
    For all reports and every time i am passing userName/password, how to avoid this. Please help me.
    1. How to create Connection pool for Report Server
    2. How to use that Connection pool in the Reports.
    Please help me.
    With Regards,
    Srinivas.

    Until now, I have not worked unfortunately with a connection pool, but, I have found a documentation about the Creating an Internal Connection Pool.
    http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b13593/cpdef.htm

  • How 2 Cre8 Parameter Form 4 Report Running?

    Hi All!
    I don't know how 2 cre8 parameter form in form developer 10g but i tried this please check it out and guide me.
    1)i have create a simple tabular report "rpt_dept.rdf" in report developer 10g.
    The query is
    SELECT DEPTNO,DNAME,LOC FROM DEPT
    WHERE DEPTNO= :P_DEPTNO
    2)Then i create a form in form developer 10g frm_dept
    in this form i have create a DEPT data block in which i have only take a one field "deptno" and
    one push button
    3)in Reports node i have create reports object "Report10" using 'Use Existing Report File" option, by clicking the browse and navigate to "rpt_dept.rdf"
    "Report10" properties
    name=report10
    File name=D:\GTMS_FILES\GTMS_APPLICATIONS\Reports\rpt_dept.rdf
    execution mode=batch
    communication mode= synchronous
    data source data block=DEPT
    report destinaton type=file
    4) Then in when_button_pressed Trigger in put this code
    Declare
         report_id Report_Object;
         ReportServerJob VARCHAR2(100);
    BEGIN
         report_id:= find_report_object('REPORT10');
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,CACHE);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,'rep_uoas');
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'P_DEPTNO='||:Dept.Deptno||' paramform=no');
         ReportServerJob:=run_report_object(report_id);
    END;
    Now when i run this form and enter the deptno 10,20 or 30 and press the button it gives nothing and no report is shown
    Note! "rep_uoas" is report server..
    Please guide..
    Please give me solution what mistake i have made
    Thanks
    Rana

    You have to modify your code - machine_name is the name of your computer - this will run on your PC:
    Declare
    report_id Report_Object;
    ReportServerJob VARCHAR2(100);
    rep_status VARCHAR2(200);
    L_REPORT_SERVER_PATH VARCHAR2(30):='http://machine_name:8889/reports';
    L_REPORT_SERVER VARCHAR2(15):='rep_uoas';
    BEGIN
    report_id:= find_report_object('REPORT10');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,L_REPORT_SERVER);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'P_DEPTNO='||:Dept.Deptno||' paramform=no');
    ReportServerJob:=run_report_object(report_id);
    rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(ReportServerJob);
    END LOOP;
    IF rep_status='FINISHED' THEN
    WEB.SHOW_DOCUMENT(L_REPORT_SERVER_PATH||'/rwservlet/getjobid'||substr(ReportServerJob,instr(ReportServerJob,'_',-1)+1)||'?'||'server='||L_REPORT_SERVER,'_blank');
    ELSE
    message('Error');
    END IF;
    END;
    Before first running the report you have to start report server on your PC.

  • How to use parameter range for subreports?

    On the main report, I have two parameters for starting customer order number and ending customer order number.   I created the same parameters on the sub-report.  When I run the report, I use the 2 parameters with the starting customer order
    as 139818 and the ending customer order 139824.   The main report which is the customer order information prints correctly.   However, instead of getting one sub-report based on the first order which is 139818,  I get
    a sub report for every order in the range.   Then, the main report prints order 139819, and then repeats the sub-report loop for every order.  So, each time the main report prints, I get 7 sub-reports.   How do I link the
    main report to the sub-report so there is a one to one match so only one sub-report is generated per customer order?    
    The design requirement is for the user to be able to enter a range of customer orders and then there is one main report and one sub-report per customer order.
    I appreciate your response for answering this question.
    Jeff

    Sounds like you are passing the same two parameter values that the main report uses to the subreport and the subreport is set to display a range of results, just like the main report.
    The subreport needs only one parameter... customer order. Assuming that the main report displays its information in a tablix that is grouped on customer order and the subreport is embedded in that group, you would simply set the subreport parameter (@CustomerOrder)
    to the value for customer order from the dataset (Fields!CustomerOrderNum.Value). That will pass a single order number to the subreport.
    Using the current setup, whatever it is, you should be able to achieve the same results by passing Fields!CustomerOrderNum.Value (or whatever you dataset column name is) for both parameters. That way the range of customer order numbers is the single order
    you wish to display.
    Performance should be better if you fix the subreport so it takes and displays a single order number. You should be able to simplify the underlying dataset query and thereby gain efficiency.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • How to close parameter window when report is running

    When i use call report in form,at first a parameter window pop up,list parameter from form,then click run,the report is rinning.HOW to skip this parameter window?Use function Add_Parameter()?How to use it?

    Hi,
    Use Add_Parameter while you are calling the report from forms and the example is as foolows.
    Pl_Id := Get_parameter_List('Rep_Parm');
    If Not Id_Null(Pl_id) Then
    Destroy_Parameter_List('Rep_Parm');
    End If;
    Pl_Id := Create_Parameter_List('Rep_Parm');
    Add_Parameter
    (Pl_Id,'PARAMFORM',Text_Parameter,'NO');
    Run_Product(REPORTS,'UserRep.Rep',SYNCHRONOUS,RunTime,FileSystem,Pl_Id);
    Pass ParForm as no then it will not display the parameter form.
    regards
    gaurav
    null

  • How to use Value Variable in Report Painter Column defined as Formula

    Hi Gurus,
    In report painter, how can I add one field (exchange rate) in selection screen, so that user can provide the exchange rate to be used, then execute the report, the exchange rate will used to multiple local currency amount.
    The reason for this is we want use provided exchange rate to convert the amount from once currency to the other currency.
    Alternatively I am studying the functionality of "Value Variable" and found that I can perform the task from this. I have created the value variable but when I am using the variable in Report Painter columns as "&ZVALVAR", system is giving me error. I read the help and it states that use the variable with "&" and do it as it is mentioned.
    Can anybody suggest what I need to do to make it workable.
    Thanks

    I did try using the presentation variable, but that does not work too. I am setting session variable in the dashboard prompt (select 'request variable'). When I use presentation variable, it hard codes the value of the variable name.
    sql is
    select date from work_order where facility = @{p_facility}
    the physical log sql is
    select date from work_order where facility = 'p_facility'

  • How to Use Parameter ID to default the Bank details in Vendor master

    HI,
    Client wants to default the Bank details for his vendor master records which will be created in future.Kindly advice me how to create parameter ID for defaulting the Bank details in vendor master.
    Kindly advice me
    Thanks
    Sunitha

    Hello,
    You have misunderstood the concept of Parameter ID.
    A field can be filled with proposed values from SAP memory using a parameter ID for that particular user. Normally in Finance, you can keep Company Code, Controlling Area etc. can ke kept as default. You find the Parameter tab in User Master Record in SU01.
    I am afraid that you want to populate the bank details in vendor master record. These fields are very critical for all types of payment. You should double make sure that you are entering the correct bank details in the vendor master record. If you do not fill any of these details, your BACS and CHAPS (DME) payments would get failed.
    If your client do not have details of bank information, the same can be filled later by writing a LSMW.
    Thanks,
    Ravi

  • How to use Parameter in inline view

    I want to deploye following sql in discoveror. Problem is that how to use the P_TO_DATE in disco.
    select papf.employee_number, papf.effective_start_date, papf.effective_end_date, paaf.effective_start_date, paaf.effective_end_date,
    (select peev.screen_entry_value
    from pay_element_types_f pet,
    pay_element_classifications pec,
    pay_input_values_f piv,
    pay_element_entries_f pee,
    pay_element_entry_values_f peev
    where pet.classification_id = pec.classification_id
    and pet.processing_type = 'R'
    and pec.classification_name = 'Earnings'
    and piv.name in ('Monthly Amount')
    and pet.ELEMENT_TYPE_ID = piv.ELEMENT_TYPE_ID
    and pet.element_type_id = pee.element_type_id
    and piv.INPUT_VALUE_ID = peev.INPUT_VALUE_ID
    and pet.ELEMENT_NAME = 'Basic Salary'
    and pee.ELEMENT_ENTRY_ID = peev.ELEMENT_ENTRY_ID
    and pee.assignment_id = paaf.assignment_id
    and pee.effective_start_date <= :P_TO_DATE and pee.effective_end_date >= :P_TO_DATE
    and peev.effective_start_date <= :P_TO_DATE and peev.effective_end_date >= :P_TO_DATE ) Basic_Salary
    from per_assignments_f paaf, per_people_f papf
    where papf.person_id = paaf.person_id
    and papf.employee_number = '101111'

    Hi,
    What you can do is to change the query so that the parameters will be in the where clause and then you can define the condition with the parameter in the dicoverer worksheet.
    Use the following code instead of your own:
    select papf.employee_number,
    papf.effective_start_date,
    papf.effective_end_date,
    paaf.effective_start_date,
    paaf.effective_end_date,
    Basic_Salary.p_start_date1, ---> create the conditions on those fields
    Basic_Salary.p_start_date2,
    Basic_Salary.p_end_date1,
    Basic_Salary.p_end_date2
    from per_assignments_f paaf,
    per_people_f papf,
    (select peev.screen_entry_value,
    pee.assignment_id,
    pee.effective_start_date p_start_date1, --parameter
    pee.effective_end_date p_end_date1, --parameter
    peev.effective_start_date p_start_date2,--parameter
    peev.effective_end_date p_end_date2
    from pay_element_types_f pet,
    pay_element_classifications pec,
    pay_input_values_f piv,
    pay_element_entries_f pee,
    pay_element_entry_values_f peev
    where pet.classification_id = pec.classification_id
    and pet.processing_type = 'R'
    and pec.classification_name = 'Earnings'
    and piv.name in ('Monthly Amount')
    and pet.ELEMENT_TYPE_ID = piv.ELEMENT_TYPE_ID
    and pet.element_type_id = pee.element_type_id
    and piv.INPUT_VALUE_ID = peev.INPUT_VALUE_ID
    and pet.ELEMENT_NAME = 'Basic Salary'
    and pee.ELEMENT_ENTRY_ID = peev.ELEMENT_ENTRY_ID
    ) Basic_Salary
    where papf.person_id = paaf.person_id
    and Basic_Salary.assignment_id = paaf.assignment_id
    --and Basic_Salary.p_start_date1 <= :P_TO_DATE
    --and Basic_Salary.p_start_date2 <= :P_TO_DATE
    --and Basic_Salary.p_end_date1 >= :P_TO_DATE
    --and Basic_Salary.p_end_date2 >= :P_TO_DATE
    --and papf.employee_number = '101111'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to use parameter passed from standard page in VO query of custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .
    And how to use those parameters in the VO query of my custom page.
    Edited by: Bunny on Nov 11, 2010 9:16 AM

    Hi,
    Bunny wrote:
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .---If standard page the button style is :Button,Then u can set Destination URL in personalization.
    Destination UR:"OA.jsp?page=/xxx/oracle/apps/po/msg/webui/CustomUpdatePG&Flag=" +Value  ---Like u can pass params
    ---IF the button style is :Submitbutton ,Then u need to customization of the co.
    ---In co processFormReq call a cutom page like below.
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/po/msg/webui/customUpdatePG&Flag=" +Value, null, (byte)0, null, null, true, "N", (byte)0);
    ---In custom page co in processRequest u can get these value :String value=pageContext.getParameter("Flag");
    And how to use those parameters in the VO query of my custom page.---Get the vo and set where clause
    String where="valueAttr="+value;
    vo.setWhereClauseParams(null);
    vo.setWhereClause(where);
    vo.executeQuery();
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 11, 2010 11:53 PM

  • How to use awr and addm reports

    Hi,
    to use awr and addm reports does we should have separate license or oracle server software license is enough.
    which tool do we use to read this awr and addm reports in real time.
    please give your valuable suggestions.
    thank you!

    Seeing as you seem to want to continue the discussion on someone else's old thread rather than your own one
    AWR files in oracle
    If i don't then it is difficult to find the queries thata re related to my application as most of those are the sysqueries, i just need schema specific queries in the SQL ordered by Elapsed Time section. Perhaps you are using the wrong tool?
    A system-level report like AWR or ADDM is no use to you as it seems your application code is not significant at the system level.
    You might want to consider tracing the sessions from your application using client_id or module to identify sessions belonging to your application then possibly use TRCSESS and TKPROF.

  • How to pass parameter to a report for Operator 'LIKE'

    I need to pass a parameter to a report for "LIKE" operator. the parameter for "equal to or is in" operator is 'eq':
    'https://secure-ausomxfts.crmondemand.com/OnDemand/user/analytics/saw.dll?Go&Path=/shared/Company_AFTA-D78SR_Shared_Folder/Work Order Asset Lookup&Options=r&Action=Navigate&P0=2&P1=eq&P2=Account.TEXT_61&P3=&p4=
    What would 'p1' value for 'LIKE' operator?
    Thanks

    Hi, Hope the below helps
    neq - Not equal to or not in
    lt - Less than
    gt - Greater than
    ge - Greater than or equal to
    le - Less than or equal to
    bwith - Begins with
    ewith - Ends with
    cany - Contains any (of the values in &P3)
    call - Contains all (of the values in &P3)
    like - Is like (Type %25 rather than the % wildcard)
    top - In the top n (&P3 contains 1+n, where n is the number of top items)
    bottom - In the bottom n (&P3 contains 1+n, where n is the number of bottom
    items)
    bet - Between (&P3 must have two values)
    null - Is null (&P3 must be 0 or omitted)
    nnul - Is not null (&P3 must be 0 or omitted)
    Venky CRMIT

Maybe you are looking for

  • ETL Master SQL job got a "Login Time Out " error again

    Below error coming randomly Sometimes it works perfectly fine and sometimes it goes down with following error message. The connectivity between two servers are seamless there is not a single drop of packet. Please suggest what is wrong happening here

  • Native resolution changed - now missing 1440x900

    Somehow my Macbook Pro 15-inch mid 2012 (not Retina) computer went from a 1440x900 resolution, which I liked, to 1680x1050! This is now the native resolution and 1440x900 is NOT one of the few resolution options I have under Scaled. I tried resetting

  • Load balancing UDP application in ACE

    Hi all, What's the proper way to load balance a UDP application (NTP protocol) using ACE? We used to do it in our CSS using a content to load-balance and a source group to source-NAT the UDP replies from the servers to the VIP. I guess this should be

  • Retraction cost center plan data from BPC to ECC

    HI Experts, We are integrating BW-BPC. The client wants to Retract the data from BPC to ECC System for reporting purposes. u201CIn order to be able to calculate standard costs correctly in production plants planning data from BPC is needed in SAP ECC

  • Resize CFWindow when reloading

    I have a 2 pages, the first is a thumbnail list page which creates a cfwindow of the second page (a large thumnail with the same images underneath it). When I select one of the thumnails in the cfwindow, it refreshes the page, takes the url informati