Calling a report into another report

Hi,
I want to call report2(ALV) containg output table ITAB into report 1. How to write SUBMIT statement for this and how to bring ITAB into report1 from report2.Please help.
Thanks
Venkat

Hi,
Let..
Program A : ZAM_TEMP00
Program B : ZAM_Temp0
Program A will call B (In B we will get the contents of ITAB present in program A)
ZAM_TEMP00
report abc.
data : itab like table of t001 with header line.
select * from t001 into table itab.
export itab to memory id 'ITAB'.
submit zam_temp0 and return.
ZAM_TEMP0
report abc.
data : itab like table of t001 with header line.
import itab from memory id 'ITAB'.
Regards.
Nitesh

Similar Messages

  • How to call a report in another report?reply plz

    how to call a report in another report?

    hi,
    chk this.
    *Code used to populate 'select-options' & execute report 
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    *Code used to populate 'parameters' & execute report 
    SUBMIT zreport with p_param1 = 'value'
                    with p_param2 = 'value'.
    Other additions for SUBMIT
    *Submit report and return to current program afterwards
    SUBMIT zreport AND RETURN.
    *Submit report via its own selection screen
    SUBMIT zreport VIA SELECTION-SCREEN.
    *Submit report using selection screen variant
    SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
    *Submit report but export resultant list to memory, rather than
    *it being displayed on screen
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    *  Once report has finished and control has returned to calling
    *  program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
    *  DISPLAY_LIST to retrieve and display report.
    Regards
    Anver

  • Calling a report from another report

    Hi,
    Is there any way ,(any built in ) to call a report from another report in Report Builder 2000 and Report Builder 6i.
    Regards

    Try to call report from report by a button in the calling report:
    1     In the Layout Model view, click in the tool palette. Note
    2     Click and drag a rectangle.
    3     Double-click the button object to display the Property Palette.
    4     Under the Button Label node, set the Label Type property to either Text or Icon:
    n     If the button label is text, set the Text property to the text you want to appear on the button.
    n     If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
    5     Under the Button Behavior node, set the Type property to PL/SQL.
    6     Double-click the PL/SQL Trigger property value field.
    7     In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
    8     Set other properties as desired.
    9     To activate the button, run the report, then display it in the Runtime Previewer.

  • Calling a Report from another Report.....URGENT

    Hi,
    I am calling a report from another report using hyperlink. I want that this new report should come in a new page.
    Can any body help me where i can set this property, so that the new report will open in a new page.
    Thanks in advance
    Regards
    Kamal

    Try to call report from report by a button in the calling report:
    1     In the Layout Model view, click in the tool palette. Note
    2     Click and drag a rectangle.
    3     Double-click the button object to display the Property Palette.
    4     Under the Button Label node, set the Label Type property to either Text or Icon:
    n     If the button label is text, set the Text property to the text you want to appear on the button.
    n     If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
    5     Under the Button Behavior node, set the Type property to PL/SQL.
    6     Double-click the PL/SQL Trigger property value field.
    7     In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
    8     Set other properties as desired.
    9     To activate the button, run the report, then display it in the Runtime Previewer.

  • Can we call a report in another report?

    I have developed a XMLP report for AR receivables for a customer and another XMLP report for AP vouchers for a customer.
    Now my requirement is to develop a report for AR/AP Balance for a customer,which is combination of above 2(ie AR Receivables report + AP vouchers report).
    What is the possible solution to above mentioned requirement??
    Can I call a report from another report(for ex AP vouchers report from AR Receivables report).Is this possible?
    If yes,please explain...
    Or are there any alternatives to this requirement??
    Thanks in advance!!

    Hi,
    Calling another report in a report? Not sure about your requirement but you can do fnd_submit/fnd_request.
    OR, if you need AR/AP balance,... here's an alternative solution:
    If you're in R12, there is the "Automatic Netting (AP/AR)" feature in Payables. You could check on the available report if it fits your need.
    In 11i, you may run "Supplier Customer Netting Report" (ARXSCN). This is an OReport(RDF) and could be converted to XMLP. This report is designed to display the net balances in AP and AR for Vendors and Customers with the same name, NIF Code, or VAT Registration.
    Hope this helps.
    Rownald

  • Reg:how to include a report in another report.

    Hi,
    Can anyone please tell me how to call a report from another report.
    My requirement is for example please see the below requirement :
    In report1 I write the logic.
    Zreport1.
    select kunnr name1 from kna1 into table itab.
    loop at itab.
    write: / itab-kunnr,itab-name.
    endloop.
    In report 2 i write the declaration.
    Zreport2.
    Tables:kna1.
    data:begin of itab occurs 0,
    kunnr like kna1-kunnr,
    name1 like kna1-name1,
    end of itab.
    Now I want to include or call the report1 in report2 .Can anyone please tell me how it can be done??

    Hi,
    write the submit statement as SUBMIT ZREPORT1 AND RETURN  in ZREPORT2 program..
    If you dont execute the ZREPORT1 independently then its better you write that in a ZINCLUDE... and
    include that in your second program where ever necessary..
    for that check this...
    +ZINCLUDE+
    select kunnr name1 from kna1 into table itab.
    loop at itab.
    write: / itab-kunnr,itab-name.
    endloop.
    *ZINCLUDE ends here...
    *Use the above ZINCLUDE as below...
    Report Zreport2.
    Tables:kna1.
    data:begin of itab occurs 0,
    kunnr like kna1-kunnr,
    name1 like kna1-name1,
    end of itab.
    INCLUDE ZINCLUDE. " this will do the task mentioned in the include above...
    I would rather suggest to go for the second method that is _ Specifying ZINCLUDE_ coz for the first one.. you need to
    have data declarations and which is not necessary for just a simple select query.. if you are processing
    any further in the first program then go for the first method_( SUBMIT STATEMENT)_ by declaring the necessary variables..
    This would solve your issue...
    Good luck
    Narin
    Edited by: Narin Nandivada on Sep 9, 2008 4:37 PM

  • Convert abap reports into crystal reports

    Hi,
    We are trying to convert abap reports into crystal reports.We could convert these reports into XML files
    Now we want to create utility which will automate the conversion of XML files into RPT files of crystal reports.Later on we can refresh the data in reports by changing the datasource location.
    Can you please guide us whether it is possible and if yes how should we go about it?
    regards,
    shital

    Hi, i suggest, 2 technies to do this, the first one, you can use,
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        APPLICATION            = 'C:\Program Files\crystalreports.exe'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        OTHERS                 = 10.
    where, exe file could be, a crviewer.exe, and, use a parameters  ( on exe ) to indicate rpt file, or, define of standar mode, a generic name and put, xml file generated via abap, on  a repository, this way, rpt file, when launched, displaying file.
    the second choice, could be,  go SM69, click create. enter a command name 'ZCREXE', enter the path and the exe file name in operating system command field. You can call this exe from ABAP using SXPG_COMMAND_EXECUTE.
    i hope so that my answers help you.
    greetings.

  • Can we run one report from another Report in reports 6i

    Actually my requirement is i want to run 4 reports from another report(driver report) by passing parameter same as the driver report.
    i want to see the out put on the screen report by report next to driver report output.is it possible?? actually i got the solution for printing or taking file. but i want to show the output on the screen.
    Edited by: user9165808 on Feb 16, 2010 3:21 AM

    I used SRW.RUN_REPORT () . But my question that is it possible to show report in batches on screen??
    Edited by: user9165808 on Feb 19, 2010 4:23 AM

  • How to convert  PLD Report into Crystal Report

    Hello Experts,
                             I want to convert my  PLD Report into Crystal Report, but  i am not able to find the solution ,
                             so how can i do this and what are the  steps have to taken.
    Kindly give me the solution .
    Regards
    Rahul

    Hi Rahul........
    SAP has given a tool where you can convert your PLDs into Crystal Reports.......
    Please check the below link to download tool......
    http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/108305a7-1555-2d10-8289-9a178d441c71
    Regards,
    Rahul

  • Error while calling oracle reports from another report

    Hello everyone,
    I have a problem running oracle reports. In one report I have a button
    that calls another report. There is a button for each row of the result
    in the first report , and i have used Srw.run_report to call the second
    report.
    My problem is, when I run the report, at the first time i can push the
    button and the second report opens and works correctly. But if i close
    the second report and come back to the first one, when i push the
    button for a different row ,the second report starts to run but then I
    get some oracle errors like table does not exist or... while the first
    time the report worked correctly.
    It seems that when i close the second report and go back to the first
    one, sth happens that changes my session or connection. I don't know
    what can be the problem.
    By the way, when I log in with the user that owns the tables and has
    all the privileges, I don't get this problem. It only occurs when I
    use other users ( which have all privileges on all of the tables
    needed in the report )
    I am using Report Builder 6.0.5 and the DB is Oracle Database 10g.
    Can anyone please help me with this problem?
    Thanx in Advance.
    Maryam.

    6.0.5 is not certified against 10g database, so I suggest to upgrade to 6.0.8.26 (6i patch 17) first to see if the problem is gone.

  • Calling one Report from another Report in oracle 10g(Urgent)

    Hi All,
    Can anyone let me know how to make hyperlink to call another report.
    I am trying
    SRW.SET_HYPERLINK('/reports/rwservlet?&report=rep059_v31.rdf&il&destype=cache&desformat=pdf');
    But i am getting message 'make sure the path or internet address is correct' .
    Please let me know what are the attributes used to create hyperlink.
    Thanks
    Nikhil
    Edited by: user9527411 on 29-Apr-2009 05:53
    Edited by: user9527411 on 30-Apr-2009 00:24

    Hello,
    The syntax is correct (except the & after the ?)
    You are using a "relative URL" . It means the browser will use the protocol , server and port from the current page in order to build a full URL
    (full URL = <protocol>://<server>:<port>/reports/rwservlet?report=test&destype=cache&desformat=html)
    Regard

  • Import AWR Html report into another database

    Hello,
    Im in 11gR2, is it possible to import the AWR Html report from database 1 into another database 2?
    I would like to use ADDM from another database 2 to analyze the AWR Html report of database 1.
    Thanks,

    AWR report importing on another database
    i dont think so

  • Calling stored procedure into Crystal Report

    Could any one help in suggesting how to call the stored procedure with parameters into crystal report?
    i have tried using couple of methods
    I have added this in add command option of Crystal report
    Execute HRMS_DEVP.DPRC_GET_LEAVE_BAL(P_COMP_CODE,P_EMP_CODE,P_LV_CATG_CODE,P_DATE,P_BALANCE)
    WHERE in p_balance i would be retrieving the output.
    Second method i followed is
    SELECT DFUN_GET_LEAVE_BAL(:P_COMP_CODE,:P_EMP_CODE,:P_LV_CATG_CODE,:P_DATE)FROM
    DUAL;

    Hi,
    Have you tried the 'get_value' function?..The syntax is
    declare
    l_dept number(5);
    begin
    l_dept := get_value('dept');
    /* further process */
    end;
    where 'dept' is name of the bind variable.
    -Krishnamurthy

  • Calling a report from another report in after parameter form

    hi,
    I'm calling Emp.rdf report with deptno as parameter and if the parameter is '10' then i have to call dept.rdf
    function AfterPForm return boolean is
    begin
    if :p_deptno =10 then
         srw.run_report('report=c:\reports\dept.rdf destype=screen p_deptno='||:p_deptno);
         end if;
    return (TRUE);
    end;
    But, now i'm getting an error as
    REP-1428: afterpform': Error while running SRW.RUN_REPORT
    Could you please help on this. thanks Bcj

    Hi , I have tried destype=file , didn't work for me. same time i tried with background=yes , that time report crashed.
    Actualy what i'm trying to do is,
    whenever the main report received an incorrect user input , i have to run a different report based on that particular input value and to show the users the actual input values.
    so the coding would be like this in the after parameter form,
    BEGIN
    IF :P_ID between 1000 and 5000 then
    --here i'm only changing the paramter value ,
    ELSE
    --here i'm calling the new report
    srw.run_report('report=c:\reports\emp.rdf batch=yes destype=file desname c:\reports\id.txt background=yes p_new_id='|| :p_id);
    return(true);
    END;
    Any help....

  • How to copy report properties into another report?

    I have created one updated list report and I wanted to create another updated list report with same report properties of first one but with different data objects so I don't have to redo properties settings.
    I copied first report to another name and I tried to change data objects but It didn't allow me to choose different data object. It says "Data object must contain at least the same fields as in the Original Data object".
    Do I have to create another report from scratch?

    You could edit the report xml.

Maybe you are looking for