How to run a procedure before executing the report in BI Publisher

Dear All,
I got a requirement when I should execute a procedure before running the report.
Here is my requirement
I have created a temp table and created a stored procedure (temp_proc) which will insert sysdate value.
create table temp (emp_name varchar(10));
create or replace procedure temp_proc
is
begin
insert into temp values(sysdate);
commit;
end;
I have written a query in the Data Model section with a new Dataset as SQL Query Type. Now I want to run this report so that the procedure should be executed and it should insert a value in the temp table. I cannot create a datatemplate instead of sql query as it will consume more time.
I am using BI Publisher 10.1.3.4.2 Standalone version. Please help me out.

Hi,
better to ask a question about BI Publisher in BI Publisher Forum than here in Reports Forum.
You can create a template in your rtf wich you reference in your header. With BI Desktop in Winword you can use a different header for first page than the others.
Regards
Rainer

Similar Messages

  • What happens to the report if the underlying stored procedure to execute the report take atleast 3 hrs to run

    Hi,
    I have a report which is calling a stored procedure..
    Stored procedure exceutes 4-5 stored procedure and then returns the count each procedure it ran using union all statement... The stored procedure takes around 3-4 hrs to run because it is looking at quarterly data and YTD data.
    So once the report is kicked off and the procedure behind it runs and runs how will communicate to the report to show the final data... the final data will just be 5 rows with counts.
    I think we are running into a issue where the stored procedure runs and runs and then the report goes into la la land and has no clue what to do...
    Can you please shed some light on this..
    Thanks
    Karen

    Hi Karen,
    When we render a report, the report would process the following procedures:
    Open connections to data source and reading data rows from data extensions for all datasets, means retrieve data. Then process the engine requests, including the tablix, grouping, sorting, filtering, aggregations and subreport processing, means process report.
    Finally, render the report, including the pagination modules and on-demand expression evaluations.
    So the report rending has to wait until the stored procedure is executed. To improve the performance, we can consider the three aspects:
    Improve the performance of the stored procedures. Such as index and join. For better support, I suggest you can post a new thread about this issue in Transact-SQL forum at:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=transactsql. It is appropriate and more experts will assist you.
    Simplify the report. For example, avoid including a reference to [&TotalPages] or any complex expressions in the page header and page footer. For more details, please see the following document:
    http://technet.microsoft.com/en-us/library/bb522806(v=sql.105).aspx
    Using cashing if you have a long-running query that cannot be tuned further. For more details, please refer to the following article:
    http://msdn.microsoft.com/en-us/library/ms159241(v=sql.110).aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • ODI - How to clear a slice before executing the data load interface

    Hi everyone,
    I am using ODI 10.1.3.6 to load data daily into an ASO cube (version:11.1.2.1). Before loading data for a particular date, I want the region to be cleared in the ASO cube defined by "that date".
    I suppose I need to run a PRE_LOAD_MAXL_SCRIPT that clears the area defined by an MDX function. But I don't know how I can automatically define the region by looking at several coloums in the data source.
    Thanks a lot.

    Hi, thank you for the response.
    I know how to clear a region in ASO database. I wrote a MaxL like the following:
    alter database App.Db clear data in region '{([DAY].[Day_01],[MONTH].[Month_01],[YEAR].[2011])}'
    physical;
    I have 3 seperate dimensions such as DAY, MONTH and YEAR. My question was, I don't know how I can automize the clearing process before each data load for a particular date.
    Can I somehow automatically set the Day, Month, Year information in the MDX function by looking at the day,month,year coloumns in the relational data source. For example if I am loading data for 03.01.2011, I want my MDX function to become {([DAY].[Day_01],[MONTH].[Month_03],[YEAR].[2011])}'. In the data source table I also have seperate coloumns for Day, Month , Year which should make it easier I guess.
    I also thought of using Substitution variables to define the region, but then again the variables need to be set according to the day,month, year coloums in the data source table. I also would like to mention that the data source table is truncated and loaded daily, so there can't be more than one day or one month etc in the table.
    I don't know if I could clearly stated my problem, please let me know if there are any confusing bits.
    Thanks a lot.

  • ABAP Run time Error whle executing the Balance sheet report in FGI0

    Hi,
    I am getting the below ABAP Run time error while executing the Balance Sheet report in FGI0.It was working before but now it is giving the error.Kindly help me in solving this.
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          06/12/2009 15:17:17
    Short text
         The current application triggered a termination with a short dump.
    What happened?
         The current application program detected a situation which really
         should not occur. Therefore, a termination with a short dump was
         triggered on purpose by the key word MESSAGE (type X).
    Error analysis
         Short text of error message:
         RAISE RKD_CONDITION_READ       (internal error)
         Long text of error message:
          Diagnosis
              The program was terminated because a situation occurred which
              should not have arisen.
          Procedure
              Analyze the situation and contact SAP.
         Technical information about the message:
         Message class....... "KH"
         Number.............. 299
         Variable 1.......... "RKD_CONDITION_READ"
         Variable 2.......... " "
         Variable 3.......... " "
         Variable 4.......... " "
    Trigger Location of Runtime Error
        Program                                 SAPLKYPR
        Include                                 LKYPRU31
        Row                                     36
        Module type                             (FUNCTION)
        Module Name                             RKD_CONDITION_READ
    Thanks
    Supriya

    Hello,
    Please refer SAP
    Note 971535 - dump when deleting characteristic with hierarchy
    Regards,
    Ravi

  • Please Run HRGLOBAL (global) before submitting the Request.

    Hi All,
    When one of the user is trying to run the Concurrent Program.
    He is getting an Error 'Reference data is not available, Please run HRGLOBAL (GLOBAL) before submitting the Request'.
    Oracle Apps version : apps R12
    OS : Solaris Sparc
    Can Anybody let me know why the client is getting this error.
    how to resolve this?
    Any Assistance in this regards is much appreciated.
    Thanks in Advance,

    What is the application release? DB version? OS?
    When one of the user is trying to run the Concurrent Program.What is the concurrent program name?
    He is getting an Error 'Reference data is not available, Please run HRGLOBAL (GLOBAL) before submitting the Request'.
    Oracle Apps version : apps R12
    OS : Solaris SparcLooks like you have to apply hrglobal.drv using adpatch -- See these docs for details.
    Latest Oracle HRMS Legislative Data Patch Available (HR Global / hrglobal) [ID 145837.1]
    How to Run DataInstall and Hrglobal for US Legislation Payroll [ID 1061464.1]
    Instructions for Running DataInstall/hrglobal.drv on R12 [ID 414434.1]
    HRMS: On What Server Do I Run The Datainstall Utility And Hrglobal.Drv? [ID 188698.1]
    Thanks,
    Hussein

  • How to run a Concurrent Program from the back end?

    Hi,
    How to run a Concurrent Program from the back end?
    Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
    If yes, then Please Give reply how to write the code
    Thanks in Advance,
    Bharathi.S

    This is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
    221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
    235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
    HTH
    Srini

  • How to write a procedure for update the table

    Hi all
    can any body please tell me how to write a procedure to update the table......
    I have a table with about 10,000 records...........Now I have add a new column and I want to add values for that like
    registration Code Creidits
    13213 BBA
    1232 MCS
    I had add the creidit now i want to update the table.........the new value want to get by SQL like
    Creidit = select creidit from othere_table...........
    Hope u can understand my problem
    Thanks in advance
    Regards
    Shayan
    [email protected]

    Please try the following --
    update Program_reg a
    set TotalCreidit = ( select tot_cr <Accroding to your logic>
                                from Program_reg b
                                where a.Registration = b.Registration
                                and    a.Enrollment = b.Enrollment
                                and    a.code = b.code
    where a.Registration in ( select distinct Registration
                                        from Program_reg );
    N.B.: Not Tested....
    Regards.
    Satyaki De.

  • Select the Key Figures to be presented in a query before execute the it

    Hi,
    I want to select(through checkbox) the Key Figures to be presented in a query before executing the query. I'm creating BEX queries and web templates (I'm working on BEX 7.0).
    I haven't found clear post about this so if you have implemented something like this please help me and share your solution.
    Kind regards,
    Ana

    Hi,
    If you set a property of your KF as "Hide and can be shown", you will get a filter option for these KFs after executing the report in the navigational block of web report.
    When you click on that filter, you will get the list of KFs, then you can select the desired KFs using check box.
    Regards,
    Yogesh.

  • How to know the User name and date, who executed the report last time.

    Hi All,
    We are collecting a list of reports which are not executed for past 3 months. Can anybody tell me how to know the username and date they executed the report last time.
    Is there any table to look ? or is there any process ?
    Thanks,
    Ravi.

    Ravi,
    Use SE16 - then look at rszcompdir.
    We look up Version = 13 for queries.
    Regards
    Gill

  • Performance Problem when executing the report for the first time.

    Hi,
    We have a Zreport...to improve the performance i created Index on few Data Base table..before my changes it used to take more than 15 minutes after the changes it taking less than 1 min for the same variant and for other variants also.
    But when executing the first in morning its taking the same time more than 15 min.Please let me know how to increase the performance when executing first time also,
    Thanks,
    Kiran.

    Hi all,
    Appreciate your valuable replies...
    @ Thomas: i do accept with your solution running a background job..but user is not accepting for it..thanks for your reply.
    @Siegfried Boes  : for testing purpose Im running this manytimes..but for user they may
    require when ever they need to know open oders.the volume of the data is barongs 300-350 at
    max.
    @Brad Bohn  : After creating the index the repose time reduced to half ...i hope  i have
    created a right index.
    Observation here...I executed the report in production system more than 5 times it took the
    same time, my changes are still in quality..so i think may be for selecting the right index
    its taking this much time.and for the next time is taking right index n doing it so it taking
    less.
    Do you accept it?.if so Please let me know how to explicitly say the select statement to
    use my index.
    Thanks,
    kiran.

  • TSV_TNEW_PAGE_ALLOC_FAILED  error while executing the report

    Hi all,
    . We are having an info cubeXFIAP_C12 (FIAP: Vendor Line Item Open).In which we have defined 10 Dimensions and 6 Line Item Dimensions. We have created a report  on this with Key date as Input Variable Which gives me From Start to Till Date data. Also have an Variable on company code.
    Then No of Records in my Cube is 45, 70,624.Compressed the Info Cube data .But No aggregates on it.
    Now when I provide the key date as 30.06.2011 and Company code =XYZ.
    I am unable to Execute the Report, It gives me a short Dump. Saying NO ROLL MEMORY.
    Variables:
    1. Key Date:  Is a  Customer Exit variable .If user Enters Data as 30.06.2011 ,It fetches data from     u201C00000000u201D to u201C30.06.2011u201D.
    2.Company code: Is a Manual Entry /Default variable.
    I also have shot dump.Please find the error analysis of dump below:
    The internal table "\FUNCTION-POOL=RRK0\FORM=MEGA_SORT_M\DATA=C_TSX_SORTK[2]-GT
    ABIX[1]-GTABIX" could not be further extended. To enable
    error handling, the table had to be delete before this log was written.
    As a result, the table is displayed further down or, if you branch to
    the ABAP Debugger, with 0 rows.
    At the time of the termination, the following data was determined for
    the relevant internal table:
    Memory location: "Session memory"
    Row width: 4
    Number of rows: 1503307
    Allocated rows: 1503307
    Newly requested rows: 2048 (in 1 blocks)
    can any one help me .......
    Regards
    Laxman

    Hi,
    Just check following things
    1http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCSTMM/BCCSTMM.pdf
    2. See whether any back up process is happening and it has consumed the main memory.
    3. Are you getting this error regularly
    4. See any transport went and compression/aggregation got removed.
    5. Check whether there are many dumps in ST22 same time when you execute report
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4ab89e84-0d01-0010-cda2-82ddc3548c65?QuickLink=index&overridelayout=true
    6. http://www.sap-press.de/download/dateien/1049/sappress_bw_performance_optimization_guide_080.pdf
    7. Check whether Infoprovifder got removed from BIA
    8. Query removed from BIA post transport
    9. Run RSRT and regenerate the report.
    Thanks and regards
    Kiran

  • Executing the report in the background

    Hi Frnds,
    I want to execute a report in background.After executing the report I want to receive a mail.
    I think this is possible through reporting agent.
    so i need the steps for this how to do...pls do the need ful..waiting for reply..
    Thanks and Regards
    Rajasekar.

    Hi,
    there are two parts of it -
    a. you have some exceptions & you run report in background & are informed if exception occurs, for that kind of scenario look at -
    http://help.sap.com/saphelp_bw33/helpdata/en/d3/a850390aa3b608e10000000a11402f/content.htm
    b. Without exception you can play with WEb template & get informed -- I am not very sure.see this --
    http://help.sap.com/saphelp_bw33/helpdata/en/9e/9f653ade969f4de10000000a114084/content.htm
    If you are on BW350, it can be achieved by Information Broadcasting feature. see this -
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/359840dfa5a160e10000000a1550b0/content.htm
    Hope it helps
    regards
    VC

  • Need a Syatem variable for Executing the report by RFC.

    Hi Experts,
    Need a Syatem variable for Executing the report by RFC.
    what i mean to say is,i can execure the report directly ...then no issues.
    But if i execute the Report by RFC ,then i should put a condition with system variable...
    Please suggest me ,how can put a condition when i am executing the report through RFC.
    Thanks
    Babu

    Hello Friend,
    what I understood that you want to put some extra condition if that report is getting called from RFC...
    you can use the system variable SY-CPROG....it will hold the value of the report when it is geeting executing directly...
    but when it is getting executed therough RFC...it will hold that RFC name...
    Thanks
    Krish

  • Getting different result while executing the report by debugger

    Hi All,
                I am facing a peculiar issue. When i execute the report from SE38 i am getting a particular set of values in a alv report.
    But if i start debugging the report by using /h and execute . i am getting another set of result. How does it happen any idea.
    Without debugger result is
    a
    b
    c
    With debugger i am getting result as
    a
    d
    e
    f
    What may be the reason . Kindly help.
    Thanks in advance.
    S.Velsankar

    Hi,
    you mean you have'nt change anything while debugging and results are different when ALV is displayed?
    I don't really understand your issue... Could you give more details?
    Kr,
    m.

  • Button on toolbar after executing the report i.e. after result display

    Hi, after executing the report result is being displayed.Now at this stage I want a button on the application toolbar clicking on which will allow a perform to get triggered.
    I tried in following manner:
    SELECTION-SCREEN: FUNCTION KEY 1.
    *INITIALIZATION.
    TABLES: SSCRFIELDS.
    *MOVE icon_mail TO sscrfields-functxt_01.
    *form SEND_EMAIL .
    IF sy-ucomm = 'FC01'.
         PERFORM SEND_MAIL_ASSET_STATUS.
    ENDIF.
    But it's not ok.The above way is not working.
    Please note: I want button on toolbar only after executing the report i.e. after result display.
    How can I do this?
    Kindly guide.
    Best regards.

    hi
    if you are using alv than just pass 3 values to function call
         I_CALLBACK_PROGRAM                = SY-REPID   " program name
         I_CALLBACK_PF_STATUS_SET          = 'STATUS'  "PF-STATUS
         I_CALLBACK_USER_COMMAND           = 'UCOMMAND'  " subroutine name
    and check the value of UCOMM in subroutine

Maybe you are looking for

  • Windows Server 2008 black screen with mouse *PLEASE HELP*

    Hello fellow techs, I have been tearing my hair out for the past 12hrs on this issue. About 3 weeks ago, one of our clients reported that they were experiencing issues on the network so one of the staff went into the server room and noticed the scree

  • Problem in photo saving

    I am currently using Apple Iphone 4s 64 Gb with i OS-5, While Taking photo in Contact photo won't save

  • Changes in ´Additional tab B´ must only visible to one client

    Hello SAP Programmers, When i create addtional custom fields on ´Additional tab B´, these custom fields must only visible to one client(i am logged in as client 400). Is there any way please suggest me. Thanks & Regards, NarsiReddy Cheruku

  • Can we run Payment medium   or dunning  in the profit center level also ?

    Hi friends Is it possible we can run a payment medium program or dunning in the profit center level.If it is yes means, how we can run at the profit center level for all vendors and customers Regards Aravind 9980838025 Bangalore India

  • Database conectivity toolkit.

    Hola recien comneze un proyecto en el cual quiero mandar mucha información a una base de datos, esta información(strings, numericos etc) no solo se almacenara sino que se envia a dica base de datos paro poder ser modificada, elminada, actualizada etc