Call the same report

Hi experts,
I have a urgent requirements ......
In the selection screen i have three fields . And i m displaying one alv report for a perticular vendor number .My requirement is when i am double clicking the vendor number then it'll show another output of the same report for different selection criteria ...
plase help its an urgen t.
regards,
Satya

hi
this code is also for the same thing follow the code
it will be help ful
*& Report  Z_SWAS_FUNCTIONAL
report  z_swas_functional.
tables: qmel,viqmel,iloa,afko.
-- global data declerations--
data: ok_code like sy-ucomm,
      gt_itab type table of zfunctional,
      t_output type table of zfunctional,
      g_container type scrfname value 'CUSTOM_CONTROL',
      grid1  type ref to cl_gui_alv_grid,
      g_custom_container type ref to cl_gui_custom_container,
      e_row type lvc_s_row,
      e_column type lvc_s_col,
      es_row_no type lvc_s_roid.
*CLASS DECLARATION
class z_functional definition.
public section.
class-methods : handle_double_click
                for event double_click of cl_gui_alv_grid
                     importing e_row  e_column.
endclass.
*CLASS IMPLEMENTATION
class z_functional implementation.
method handle_double_click.
       perform handle_double_click using e_row e_column es_row_no.
endmethod.
endclass.
*CODE FOR SELECTION SCREEN
selection-screen begin of block 84433  with frame title text-t01.
parameters : n_number like viqmel-qmnum as listbox visible length 10,
                n_type like qmel-qmart,
                f_loca like iloa-tplnr,
                name like qmel-qmnam.
selection-screen end of block 84433.
                    screen validation event                          *
at selection-screen on n_number.
  select single *
    from viqmel
      where qmnum eq n_number.
if sy-subrc ne 0.
  MESSAGE 'NOTIFICATION NUMBER DOESNOT EXIST' TYPE 'E'.
endif.
select qmart from qmel into qmel where qmart eq N_TYPE.
endselect.
if sy-subrc ne 0.
  MESSAGE 'NOTIFICATION TYPE DOES NOT EXIST' TYPE 'E'.
endif.
*START OF SELECTION EVENT
start-of-selection.
    perform fetchdata.
end-of-selection.
*Call screen event
call screen 100.
*PERFORM DISPLAY.
*&      Form  FETCHDATA
      text
-->  p1        text
<--  p2        text
form fetchdata .
*SELECT VIQMEL~QMNUM VIQMEL~QMTXT VIQMEL~QMDAT VIQMEL~LTRMN VIQMEL~PRIOK
      VIQMELBEZDT VIQMELAUFNR VIQMELTPLNR AFKOGLTRP into corresponding fields of table GT_ITAB
         FROM VIQMEL INNER JOIN AFKO ON VIQMELAUFNR = AFKOAUFNR
               WHERE VIQMELQMNUM IN N_NUMBER and VIQMELQMART IN N_TYPE AND VIQMEL~QMNAM IN NAME.
call function 'ZSWAS_TEST'
  exporting
    qmnum         = n_number
   qmart         = n_type
   tplnr         = f_loca
   qmnam         = name
  tables
    output        = gt_itab
if sy-subrc ne 0.
   message e000(z84433_msg_class).
endif.
endform.                    " FETCHDATA
*&      Module  STATUS_0100  OUTPUT
      text
module status_0100 output.
  set pf-status 'MAIN'.
SET TITLEBAR 'xxx'.
*creating custom container and grid instance
if g_custom_container is initial.
    create object g_custom_container
           exporting container_name = g_container.
    create object grid1
           exporting i_parent = g_custom_container.
    call method grid1->set_table_for_first_display
      exporting
        i_structure_name = 'ZFUNCTIONAL'
      changing
        it_outtab        = gt_itab.
*set handler events
    set handler z_functional=>handle_double_click for grid1.
  endif.
endmodule.                 " STATUS_0100  OUTPUT
*&      Module  USER_COMMAND_0100  INPUT
      text
module user_command_0100 input.
case ok_code.
   when 'EXIT'.
    perform exit_program.
endcase.
  clear ok_code.
endmodule.                 " USER_COMMAND_0100  INPUT
*&      Form  EXIT_PROGRAM
      text
-->  p1        text
<--  p2        text
form exit_program .
leave program.
endform.                    " EXIT_PROGRAM
*&      Form  handle_double_click
      text
     -->P_E_ROW  text
     -->P_E_COLUMN  text
     -->P_ES_ROW_NO  text
form handle_double_click  using   e_row type lvc_s_row
                                  e_column type lvc_s_col
                                  es_row_no type lvc_s_roid.
data: t_output type  zfunctional.
    read table gt_itab into t_output index e_row-index .
  if sy-subrc = 0 and e_column-fieldname eq 'QMNUM'.
    set parameter id 'K01' field t_output-qmnum.
    call transaction 'ZSMART' and skip first screen .
  endif.
endform.                    " handle_double_click
thanks s
swaroop

Similar Messages

  • Using so_object_send twice in the same report

    Hello All,
    I have a requirement in which i need to send a mail with a certain text to a receiver1. Then in the same report i need to send another text to another receiver2.
    I am calling the function module so_object_send twice to do this.But only one mail is sent with both the receivers in the same mail.But the requirement is that two seperate mails should go to two different receivers.What can be the problem?
    Kindly help,Points will be rewarded graciously..
    Regards,
    Anuj.

    Hi,
    I hope you are clearing the work areas & Internal table after the 1st FM SO_OBJECT_SEND is called.
    Flow should be as follows:
    1) Populate 1st receiver & Email details
    2) Call FM "SO_OBJECT_SEND"
    3) Clear Work area & Refresh Internal tables
    3) Populate 2nd receive & Email details
    3) Call FM "SO_OBJECT_SEND".
    Best regards,
    Prashant
    Best regards,
    Prashant

  • WS-SDK Scheduling two instances of the same report with different params

    I'm using the web services SDK for Business Objects XI 3.1 SP 2 to schedule reports. I've got it so that I can successful schedule a report with prompts, setting the value for the prompt and running the report.
    However, I'm now trying to schedule two instances of the same report using a single call to BIPlatform.Schedule. It creates the correct number of new instances, the last of which is completely correct. The first one (and in fact if I do more than two all the rest except the last) lose the parameter value from the prompt and the schedule information and the type. So for example if I schedule two instances, both PDF, both for 8am tomorrow with parameters of 1 and 2, I get:
    A Webi instance, scheduled to run immediately with no parameters specified and
    A PDF instance, scheduled for 8am tomorrow with parameter 2
    Any idea what I'm doing wrong?
    Cheers,
    Jack
    Edited by: Jackson Pope on Feb 3, 2011 1:34 PM

    Can you possibly post your code here that sets params and schedules? Also as you schedule 2 instances on a single report in a sinlgle biplatform.schedule call(): as you query for InfoObject what you actually query for a single report isn't it, or do you schedule a report template and reschdule it previous instance?

  • Adding multiple subreports from the same file to the same report

    I've created a report.  This reports needs to have a number of charts.  Each chart is the same report with different values for parameters. 
    The code works, except all charts reflect the parameter value provided to last call to SetParameterValue. How can I make sure each subreport behaves as a separate instance?
    string chartReportPath = AppSettings.ReportsFolder + "ProgramCountry-Chart.rpt";
                ReportClientDocumentWrapper doc = (ReportClientDocumentWrapper)report.ReportClientDocument;
    string chartName = "Chart" + chartCount++;
    CrystalDecisions.ReportAppServer.ReportDefModel.Section detailSection = doc.ReportDefController.ReportDefinition.DetailArea.Sections[0];
    SubreportClientDocument subReport = doc.SubreportController.ImportSubreportEx(chartName, chartReportPath, detailSection,0,detailSection.Height+10,-1,-1);
                ReportDocument subreportDoc = report.OpenSubreport(chartName);
                    report.SetParameterValue("@MyParam, myValue, chartName);

    Hi Brian,
    The parameter collection is global, so if you set it for one it's going to be set for all. You need to manage the subreport links, which holds the parameters.
    Or when you add the subreport you also need to add a parameter with a new name and set the value accordingly in the Parameter collection.
    Sorry i don't have any sample code for this work flow.
    Don

  • In SSMS after creating the query Report, how to export excel the same report from SSMS

    for Beginners in SSMS after the report is created , how to export the same report to excel, I did try the option to task and export and follow the procedure, this procedure does not export the same report, the one was created, unless I am missing some steps,
    is there a way to do just like we do in SSRS go to solution explorer, and properties and add the Target Server URL or not
    in SSMS, 
    after I save the report it saves in project , can some one please guide me how to do it, and what steps I am doing wrong,
    any help will be great.  I am not technical person, just starting to learn from internet.
    thanks in advance.

    As you have said you are not a technical person try using Import Export wizard.
    Refer this link
    http://www.mssqltips.com/sqlservertutorial/203/simple-way-to-import-data-into-sql-server/
    And another simplest one is to copy the result set from the query window. Right click the result and select "Copy with Headers".
    Regards, RSingh

  • While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra positi

    While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra position and also pdf generated from this word file also contains the same.

  • Creating a Detail Table Based on an Action in Another Table or Matrix to Display in the Same Report (Not a Drill-Through)

    Hello,
    I was wondering if it's possible have a matrix which shows total credits by month and have drill-down groupings to display the invoice numbers for each credit.  Then, once the drill-down is expanded for a particular month, be able to click on the invoice
    number and have another table under the matrix display the details of the invoice. 
    I don't really want a drill-through because that opens a different report in the window, what I want to be able to do is stay on the main report.  I also don't want to drill-into the invoice details from the matrix as that expands the matrix out and
    makes it unruly and ugly.  I've been playing with subreports but not able to get what I want out of it.
    I hope this makes sense - is there a way to do this in SSRS?
    Thanks!!

    Hi AvenueStuart,
    After testing the issue in my environment, we can refer to the steps below to work around the issue:
    Create a new table with the details of the invoice under the matrix.
    Add a parameter named invoice which get available values from the invoice field in the dataset.
    Right-click the [Sum(invoice)] cell to add an action with “Go to report” option, and specify the same report with the parameter below:
    Name: invoice                                                                 
    Value: [invoice]
    Right-click the table to add a filter in the table:
    Expression: [invoice]
    Operator: =
    Value: [@invoice]
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to call the crystal report in jsp page

    dear friends
    i want to run or call the crystal report in jsp page.
    if u know that can u send sample code for that to my id
    [email protected]

    Hi Sudhakar,
    Could you please be more speicific about the task you want to accomplish?
    Cheers
    Giri :-)

  • How to create one filter for N views in the same report

    Hello everybody,
    I need to have the same filter for diferent views that I have in the same report. Anyone knows how to do it?
    Thanks in advance
    Mario Mesquita

    Hi,
    In India site, you can create a SMTP connector which point to the local ISP.
    Thanks.
    Niko Cheng
    TechNet Community Support

  • Multiple Facts at the same report

    Hello gurus,
    How can I use multiple facts at the same report using OBIEE 10g?
    I followed the instructions of this website but it's not working...
    http://obibb.wordpress.com/2010/05/31/multiple-fact-reporting-on-non-conforming-dimensions/
    Physical Model:
    ASSET (DIMENSION)  ------------ ASSET (FACT) ----------------- PERSON (DIMENSION) ----------------- CAMPAIGN (FACT) ---------------- CAMPAIGN (DIMENSION)
    Business Model:
    ASSET (DIM) ---------------- FACT ------------------- CAMPAIGN (DIM)
                               (ASSET - CAMPAIGN)
                                            |
                                            |
                                            |
                                            |
                                  PERSON (DIM)
    Asset and Campaign: Non conformed Dimensions;
    Person: Conformed Dimension;
    Note that I want to use at my report some asset and campaign informations to answer questions like:
    Wich assets were created after the campaign launch? or List of asset by person and campaigns.
    Is it possible to do? I'm trying to change all kinds of column levels (Total/Detail) and it keeps sending an error like:
    "Internal error: No matching table for expr Fact_W_CAMP_HIST_F_Teste.SOURCE_WID, File server/Query/Optimizer/SmartScheduler/PhysicalRequestGenerator/Src/SQOSPSimplifyJoin.cpp, line 118."
    Thank you in advance.
    Ramon Cortez

    Hello,
    Thank you for your help.
    Now I'm getting this error: "None of the fact tables are compatible with the query request Fact.SOURCE_WID". ---> Fact.CAMPAIGN_WID
    I'm actually not sure about the behaviour of the content tab. As I understood, I must use Total for non-conformed dimensions and detail for conformed, right?
    In this case I have:
    ASSET (DIMENSION)  ------------ ASSET (FACT) ----------------- PERSON (DIMENSION) ----------------- CAMPAIGN (FACT) ---------------- CAMPAIGN (DIMENSION)
    So, at Asset (FACT) content tab I have to set detail for Asset (DIM) and Person (DIM) and total for Campaign (DIM).
    At Campaign (FACT) content tab I have to set detail for Campaign (DIM) and Person (DIM) and total for Asset (DIM).
    But at the columns, if I set detail for Campaign(DIM) as total, all the other columns will show only Campaign at content tab. Why is it happening?
    My requeriment measure is like:
    SUM(CASE WHEN Asset.Date1 BETWEEN Campaign.DateA and Campaign.DateB AND Asset.Product = Campaign.Product and Asset.Status  = 'Active' THEN 1 ELSE 0 END)
    How can I do this using person as conformed dimension?
    Thanks,
    Ramon Cortez

  • Comparing fields from multiple entities in the same report (report builder 1.0)

    Created a model that contains 2 entities. I open that model in report builder 1.0.  When I drag a field from one of the entities into the design area, i can no longer see the other entity or use any of the fields from that other entity. 
    I need to use fields from both entities in the same report (join tables).  In management studio i would simply write a query and join tables but i cannot figure out how to do this in report builder.  Once i select a field from one entity
    how do i select fields from more than one entity and drag them into the same report.

    Would it be possible for you to send me instructions for this? I am not that familiar with SQL coding but I can definitely figure it out. I have been wanting to get information on reports from multiple entities for a very long time! The only way I can
    currently do it is have our document management software people write the report for me for quite a large fee. I would much rather do this myself. Right now I can select a few fields from one entity (the main one), some from a second entity under that one,
    but I cannot add any fields from a third entity! Quite annoying and hindering! Thank you :)

  • Data from different databases in the same report.

    Hi Everyone,
    I am trying to build a reconciliation report in which I need to show the data from the source and target, side by side.
    Source and target are both different databases, although being oracle only
    Whenever a new data model is created, it gets attached to a data source and in the report we need to choose a specific data model.
    Can we have data from different databases in the same report ?

    Yes, it is possible.
    One way Is to use dataTemplates. There you can make queries from any number of different databases (The max I have done is 5).
    It looks something like that:
    <dataTemplate name="NameOfTemplate">
    <dataQuery>
         <sqlStatement name="Q1" dataSourceRef="Connection1">
              <![CDATA[     select * from table1]]>
         </sqlStatement>
         <sqlStatement name="Q2" dataSourceRef="Connection2">
              <![CDATA[     select * from table2]]>
         </sqlStatement>
      </dataQuery>
      <dataStructure>
         <group name="RESULT1" source="Q1">
              <element name="P_FIRST_NAME" value="P_FIRST_NAME"/>
         </group>
         <group name="RESULT2" source="Q2">
              <element name="P_DATE" value="P_DATE"/>     
         </group>
      </dataStructure>
    </dataTemplate>dataStructure is very important when you get data from different places, if you don't define those elements, then only the result from Q1 is shown.
    The second possible way is to make as two different data models, each containing their own query and then set Main Data Set as concatenated SQL Data Source.
    Best of luck,
    Evelyn

  • Fact table with 2 time keys, measures showing together in the same report

    Hello,
    I am using OBI EE and I have the following scenario: a fact table hold information about enquiries. An enquiry may or may not generate an appointment. So in my fact table I have two date columns: enquiry date and appointment booked date (not the date of the appointment itself, but when it was actually booked).
    This raises a couple of questions. First question is: I can only have one logical FK to the Times table, how to create two LFKs for those 2 dates? Should I create a logical copy of the Times table in the BMM, along with another time dimension?
    Second question is how to display both pieces of data in the same report. For instance, in a summary report per month I want to see the number of enquiries made and appointments booked in each month. Most likely they will be different numbers and refer to different rows in the database. What is the best way to model this in the BMM?
    For instance, in October there were 10 enquiries, 8 of them were converted into appointments along with 3 enquires made in September. So, the report should show for October: number of enquires: 10, number of appointments: 11 (8 from October + 3 from September)
    Sorry if this is a basic question but I couldn't find around any examples of this scenario.
    Thanks,
    Luis

    Genius, that works perfectly, thanks!
    Just one issue that I noticed... I have other dimensions on that fact table, one of them is "channel". Channel is linked to a column in the original fact table, as is Number of Enquiries.
    If I include Channel in a report that shows Number of Enquiries and Number of Appointments, the Number of Appointments column only shows zeros, while the Number of Enquiries column still shows the correct numbers:
    Month    Channel   Enquiries   Appointments
    Jan 09   Email      100           0
             Phone      120           0
    Feb 09   Email       87           0
    ...Then I figured out that I needed to add a PFK for all dimensions to the aliased fact table, not only for the times dimension.
    Thanks again
    Luis

  • Calling the same controller in Weblogic portal 10.3.2

    In weblogic 8.1 calling the same controller instance (different action) is very simple.... just pass on the jpfScopeId in the request parameter as per the code below
    function openActionInNewWindow(index){
    <%
    PortletPresentationContext ppc = PortletPresentationContext.getPortletPresentationContext(request);
    String jpfScopeId = ppc.getInstanceLabel();
    %>
    url = "/someApp/portlets/somePath/someAction.do?index="+index;
    url += '&jpfScopeID='+'<%=jpfScopeId%>';
    alert(url);
    extWindow = window.open(url, 'second', 'title=Breaking News,width=650, height=300,toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes');
    extWindow.focus();
    How do we do the same in Weblogic portal 10.3.2? I tried the above code but its invoking a new instance of the controller. I want to call the same controller instance as some instance variables in the controller are being used across different actions.

    No, there isn't problem show in log. I don't know why... Please suggest me or help me.
    Thanks in advance!
    Best Regards,
    Coy.

  • Display multiple records as sub-sections in the same report.

    I am using Crystal Reports (VS-2005).
    In a report, I have various sub-sections in the Details section. Each section represents a category and is connected with SQL command which uses LEFT OUTER JOIN.
    The first section is the main section and the subsequent sections are the child sections.
    Sometimes, a sub-section (other than the first main sub-section) picks multiple records of that category. In this case the report extends to multiple pages. Each report displays one record of this sub-section.
    I want to show the the same sub-section multiple times in the same report as opposed to multiple reports that are now automatically generated by Crystal Reports.
    How to handle this issue?

    This is a .NET programming forum related to Crystal Reports. Your question is best suited for our report design forum below. Also, when you post your question it will be helpful if you use report design terminology. We have elements like Report Header, Page Header, Groups, and Details sections. Just mentioning "sections" doesn't give us a good idea about what you are attempting to do.
    Check out the grouping options and see if it helps. You might need to create a formula to help you with your grouping though.
    If you like, I can move this to the design forum.
    [SAP Crystal Reports Design|SAP Crystal Reports;

Maybe you are looking for