XML Publicher Report Output without Prompt Value

Hello,
I've one report(XML Publisher) which prints various data from PS_JOB,PS_PERSONAL_DATA and some other Performance tables.
The Prompt Values are from a dynamic view which shows the Subordinate employees(emplids and names) of the login employee.
The base query view i created has all the information of all active employees from all Business Unit. Now when i select when employee from prompt table the output values for that particular employee and is ok. But when i don't select anything(no table edit), it is not showing the output of my subordinates but for all the employee. That is Right because i've base report view is for all employees.
Is there any way that if i dont select anything from prompt values i'll get only output of my subordinates only?
Regards!

Thanks. I did try that before but the view didn't build but i don't how today the view built successfully.
But when i tried to run the query with a normal user who's having subordinate the excel output is still blank.
One more thing, when i checked Resolve Meta SQL in Application designer, the %oprclause doesn't resolve to PS.
below is my complete query..with subqeury for finding current user..
SELECT A.emplid,
       A.Name_Display,
       K.descr,
       T4.effdt join_date,
       D.grade,
       G.descr Dept,
       D.effdt Last_prom_dt,
       period_begin_dt,
       AA.EMPLID MGR_ID_VW,
       AA.NAME_DISPLAY NAME_DISPLAY_MGR,
       ab.supervisor_id EMPLID_FM_VW,
       FMGN.name_display NAME_DISPLAY_FM,
  FROM PS_PERSONAL_DATA A,
       (SELECT EMPLID, NAME_DISPLAY FROM PS_PERSONAL_DATA) AA,
       (SELECT ad.emplid,
               DECODE(ad.supervisor_id, ' ', 'XXXX', ad.supervisor_id) supervisor_id
          FROM ps_job ad
         WHERE ad.effdt = (SELECT MAX(t3.effdt)
                             FROM ps_job t3
                            WHERE ad.emplid = t3.emplid)) AB,
       (SELECT EMPLID, NAME_DISPLAY FROM PS_PERSONAL_DATA) FMGN,
       (SELECT emplid, effdt
          FROM ps_job T3
         WHERE effdt =
               (SELECT MIN(effdt) FROM PS_JOB T5 WHERE T5.emplid = T3.emplid)) T4,
       PS_EP_APPR B,
       PS_EP_APPR_ITEM C,
       PS_JOB D,
       PS_DEPT_TBL G,
       PS_BUSUNIT_HR_VW K
WHERE A.EMPLID = B.EMPLID
   AND B.EP_APPRAISAL_ID = C.EP_APPRAISAL_ID
   AND A.EMPLID = D.EMPLID
   AND AA.EMPLID = D.SUPERVISOR_ID
   AND D.supervisor_id = AB.emplid
   AND FMGN.Emplid = AB.supervisor_id
   AND c.ep_appraisal_id = pnt.EP_APPRAISAL_ID
   AND T4.emplid = D.emplid
   AND D.deptid = G.Deptid
   AND D.business_unit = K.Business_unit
   AND D.effdt =
       (SELECT MAX(t1.effdt) FROM PS_JOB t1 WHERE t1.emplid = D.EMPLID)
   AND A.EMPLID IN
     (SELECT EMPLID                                                            ----------here comes subquery for finding logged in user
          FROM (SELECT B.EMPLID
                  FROM PS_NAMES A
                 INNER JOIN PS_JOB B ON B.EMPLID = A.EMPLID
                                    AND B.EMPLID = A.EMPLID
                                    AND B.EFFDT =
                                        (SELECT MAX(CA.EFFDT)
                                           FROM PS_JOB CA
                                          WHERE CA.EMPLID = B.EMPLID
                                            AND CA.EFFDT <= %CurrentDateIn)
                 WHERE A.NAME_TYPE = 'PRI'
                   AND A.EFFDT = (SELECT MAX(B.EFFDT)
                                    FROM PS_NAMES B
                                   WHERE B.EMPLID = A.EMPLID
                                     AND B.NAME_TYPE = A.NAME_TYPE
                                     AND B.EFFDT <= %CurrentDateIn)
                   AND B.SUPERVISOR_ID =
                       (SELECT T1.OPRID FROM PSOPRDEFN T1 WHERE %oprclause)
                    OR A.EMPLID =
                       (SELECT T2.OPRID FROM PSOPRDEFN T2 WHERE %oprclause)
                    OR B.SUPERVISOR_ID IN
                       (SELECT EMPLID
                          FROM PS_JOB
                         WHERE SUPERVISOR_ID =
                               (SELECT T3.OPRID
                                  FROM PSOPRDEFN T3
                                 WHERE %oprclause))))
ORDER BY A.emplid Regards!

Similar Messages

  • XML Publisher Report Output from OAF Page

    Hi,
    I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
    Please see the below code.
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
    String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
    System.out.println("s1 = " + s1);
    String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
    System.out.println("s2 = " + s2);
    String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
    CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
    System.out.println("s3 = " + s3);
    if(requestId != 0)
    try
    Number number = new Number(requestId);
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, number.intValue());
    callablestatement.setString(3, s2);
    callablestatement.setString(4, s1);
    callablestatement.execute();
    String s4 = callablestatement.getString(1);
    System.out.println("Before S4 if statement");
    if(s4 == null || s4.equals(""))
    // throw new RuntimeException();
    System.out.println("URL is null");
    System.out.println(" print ouput url - " + s4 );
    // throw OAException.wrapperException(exception);
    oadbtransactionimpl.putValue("OutputURL", s4);
    System.out.println(" print ouput url - " + s4 );
    }

    Look at the links AJ gave.
    Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
    All of these things are in the XML Publisher documentation and Javadocs.

  • XML Publisher Report Output

    Hi,
    For one of our XML Publisher report, the output is varying from one instance to another. The data output is same.
    There are nine records that need to be displayed.
    In the first instance, all the nine records are being displayed in the first page.
    In the second instance, eight records are being displayed in the first page and the last record is being displayed in the next page.
    Please let me know what could be the cause/resolution for this issue.
    Thanks,
    Krishna

    before all you need to check version of publisher with patches
    Liviu Iliescu-Oracle how data source can impact to output in this case ?
    OP said
    The data output is same.

  • XML Publisher report output in RTF format does not display full page

    Hi,
    We have one XML Publisher report, the output of report in RTF format is not getting displayed in Full Page in normal way (MS Word -->View menu --> Print layout) but we can see full page display when we do MS Word -->View menu --> Outline.
    Appreciate your valuable inputs on this.
    Is this a template issue or any profiles needs to be set.
    Thanks
    Vijay

    Do you have any header and footer on your template?
    If you have any header and footer then try to adjust it as of to display full page.
    Thanks
    Yasar

  • Bookmark Issue in WAD (Report Output without Variable Screen)

    Hi ,
    This issue is with the Saving of Report Output to Bookmark.
    Expected Output:
    Clicking on the Bookmark should bring out the Report Output with the Period and Year, which was used while saving the Bookmark. It should not pop up variable screen at the beginning.
    Issue:
    Currently, when I click the bookmark, Its triggers the default template and it brings out the  Variable Screen with the default Selections, which i dont want to. I need to get the same output with the values which I saved under Bookmark.
    Please suggest me a solution...
    Thanks / Selvan

    Hi, i dont rememberm but, can you check mark you DP_1 and properties->Behavior->Display variables screen->on
    I hope helps.

  • Printing the XML Publisher report output  from different trays of printer.

    I am generating the XML Publisher report and the output is in 5 pages and that is sent to the printer
    In the printer there are two trays one tray(tray 1) consists of company watermarked papers and the other tray(tray 2) will be consisting of ordinary papers
    I want to print the first two pages of the report on the papers of first tray and the remaining pages to be printed from another tray consisting of ordinary papers.
    How can i do this in XML Publisher.
    Any response will be appreciated
    Thanks
    Saurav

    Look at the links AJ gave.
    Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
    All of these things are in the XML Publisher documentation and Javadocs.

  • Report execution without prompting user id

    Hi,
    Is it possible to execute the report using Query designer/Web Application designer without prompting for User Id and password for selected queries?
    If possible, please let us know.
    Thanks in advance.

    Hi,
    This is possible with workbook and by creating a macro which has the auto logon code. Create a workbook on the query and you need to create a macro and call the function 'sapBEXgetConnection'.
    With this you can specify the user id and password to workbook and when ever workbook is refreshed the logon will be done automatically for specified user id and password and data will be retrieved.
    Hope this gives you an idea.
    Regards
    Akhan

  • How to filter reports based on Prompt values

    Hi All,
    I have requirement in dash board.
    in my dash board it contains two reports which is having same column with different values.i.e.,
    one report contains Input method column with CSS value,
    another report contains Input method column with SFF value
    and i have dashboard prompt for INPUT METHOD column.
    when i need to select CSS value in prompt the first report should enable(display).second report should disable.
    when i need to select SFF value in prompt the second report should enable(display).first report should disable.
    But problem is when iam prompting values the 2 reports displaying same report only.Can any give solution for this one. how to solve this prob?
    Thanks in Advance response .
    Naveen

    Hi,
    Follow the steps from this link. I hope it will be helpfull
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-selecting-reports-from-dashboard-prompts-and-guided-navigation-sections/
    Phani.

  • Report templates by prompt values

    Hi everyone,
    For a report due to sturctural changes in templates for 2010 we created new template 'Test2' and For 2009 year it has 'Test1' . Now the issue here is when we display this report with templates on Dashboard user need to select values in prompt and also the type of template for that year.
    Eg: if user selects year value =2010 and then he has to select the template type 'Test2' to get report in excact sturuture.
    Is their any way where when a user selects year prompt value as 2010 then template has to change to 'Test2'.
    Thanks in advance
    Regards

    Can't you combine them into one template and use a if condition inside to select?
    If that becomes two complicated, you may also consider writing the 2 templates as
    sub templates and have a template that includes either one depending on the selected
    values. Converting a template to a subtemplate requires you to wrap them in a function
    but it shouldn't be too hard. In EBS subtemplates are supported in 10g standalone you need
    to store them somewhere accessible by a URL. Standalone 11g will support subtemplates as
    well as EBS.
    Klaus

  • Don't have to run the report for no prompt value

    Hi,
    The requirement is that I need to create a report which is more of a search report kind of thing. So on the dashboard we need to show only prompts. The users would choose any prompt and run the report.....now the issue is....that when no prompt values is selected and user hit the GO button ..i need to show a message saying "Please select any value" ...how to do that ..
    I have already refered kishore's blog on guided navigation to implement this ..but the issue which I am facing is that my intermediate report is taking too much time (almost 10 mins) to come back with values and then my actual report shows the message thorugh No results view ...but i need to load the messsage to the dashboard in not more that 1 mins ...how to do that .....
    any help would be much appreciated ....
    Thanks
    Ronny

    Thanks Kishore, but I have already refered your blog and implemented this approach as I have mentioned above, however, the issue is that my intermediate report in which I am using the dummy filter is taking too much time to run ...like 10 mins...so guided navigation doesn't work properly ....I have almost 15 prompts so it is taking time ..is there any other work around ?
    Thanks,
    Ronny

  • Report Views Ignoring Prompt Values

    Hi:
    OBIEE 11.1.1.7.0
    I created a dashboard with a prompt region and one report view. The prompt region contains two column prompts, year and product type.  The report view contains these two columns, as well.  When I change the year prompt, the report view updates.  But when I change the product type prompt nothing happens.  When I look at the SQL I see the year value in the where clause but nothing for the product type.
    I don't understand this behavior.  Can anyone offer any advice for how I can get the report view to react to a change in the product type.
    Thanks.

    There might be a physical column mapping mismatch.Please remove the existing column and add one more time and look at the results and also observe the same with anyother columns which are available in the report.

  • Enable to get the aligned XML Publisher Report output

    Hi All,
    In BI Publisher report there is a column called short_text which have data like
    i) Price Basis : Free Delivery to Tata Power SED
    (ii) Delivery time : Within 6 weeks from the date of PO
    (iii) Payment : After acceptance within 7 Days
    (iv) Freight : Nil
    (v) Insurance : Nil
    (vi) Packing & Forwarding :Nil
    (vii) CST/VAT : @ 5% VAT
    (viii) Excise Duty : @ 10.3%
    (ix) Service Tax : Nil
    (x) Entry Tax : Nil
    (xi) Warranty : Nil
    But the data in the output is not coming in the aligned manner like above.
    Could anyone please help on this??
    Regards,
    Swapna.

    Hello Bala,
    I wouldn't SUBMIT the same program to get the Spool number. You can achieve the same by [NEW-PAGE PRINT ON|http://help.sap.com/abapdocu_702/en/abapnew-page_print.htm#!ABAP_ADDITION_1@1@] command.
    Check the code snippet i've provided below:
    DATA: spfli_wa         TYPE spfli,
          print_parameters TYPE pri_params,
          valid_flag       TYPE c LENGTH 1.
    START-OF-SELECTION.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          no_dialog            = 'X'
        IMPORTING
          out_parameters       = print_parameters
          valid                = valid_flag
        EXCEPTIONS
          invalid_print_params = 2
          OTHERS               = 4.
      IF valid_flag = 'X' AND sy-subrc = 0.
    *   1. Write the output to the output list(no spool is generated)
        SELECT carrid connid
               FROM spfli
               INTO CORRESPONDING FIELDS OF spfli_wa.
          WRITE: / spfli_wa-carrid, spfli_wa-connid.
        ENDSELECT.
    *   2. Write the output to SAP spool(no list is displayed)
        NEW-PAGE PRINT ON PARAMETERS print_parameters NO DIALOG.
        SELECT carrid connid
               FROM spfli
               INTO CORRESPONDING FIELDS OF spfli_wa.
          WRITE: / spfli_wa-carrid, spfli_wa-connid.
        ENDSELECT.
        NEW-PAGE PRINT OFF.
        MESSAGE i000(zibi027) WITH 'Spool' sy-spono 'is generated!!!'.
        "You can use the spool number (SY-SPONO) to email the list output
      ENDIF.
    Hope this helps.
    BR,
    Suhas

  • Report Output for KF Values

    Hi Experts,
    I want one of my KF value as positive only even it have negative value,
    Ex: value of -9 is 9
          value of 3 is 3
    And for one more KF value need to come like below;
         Value (-3.14);
         This would round down to -4
         Value (3.14);
         This would round down to 3
    How can i achive above 2 KF values in our BI report
    Thanks
    David
    Edited by: david Rathod on Feb 27, 2012 10:37 AM
    Edited by: david Rathod on Feb 27, 2012 10:37 AM

    YOU CAN USE  ABS(absolute) function for the first requirement and FLOOR function  for THE 2ND REQUIREMENT.
    ABS function gives the absolute value
    so for -3 it will give 3
    Floor function truncates the fractional part and returns the greatest whole number less than operand
    floor(4.2) will give 4
    floor (-4.2) will give 5
    Both functions are  present in mathematical functions in query designer
    Edited by: shyam agarwal on Feb 27, 2012 10:50 AM

  • Xml report output in excel format without using options tab in EBS

    How to get xml publisher report output in excel format without using options tab in EBS?
    I am getting XML Publisher report output in excel format by using options tab while submitting the concurrent request .
    But i want to get excel output automatically.
    Can anyone give idea to get XML publisher Report output in excel without selecting options tab.
    Thanks in advance
    Sandeep V

    Hey Sandeep,
    I am working on a similar format for a report and if possible can you please give me some guidelines. I have initially created reports using XML Publisher, but for those , the output preview format was PDF. So, if I select the preview format as EXCEL will it give me output in Excel and for this to happen, how do I define the rtf template. I believe the working will be same as for PDF, create a rdf report, get output in XML and apply the template to get the data in Excel or there is something different to this.
    Thanks,
    Sunil

  • Save Prompt Value on report closing

    Hi,
    we are facing a problem with some users.
    They are not (and must not be) allowed to modify reports in a public folder.
    They are only allowed to refresh the reports, updating some prompts value.
    We wish to let them save the new inserted prompt's value automatically every time they close the reports.
    Is it possible, without giving them the rights for modifying reports and not force them to click on save button?
    Thanks in advance.
    Lorenzo

    A workaround is to grant the users the "Edit objects" right in the public folder the reports reside in  but then deny all editor functionalities under Applications->Web Intelligence->Advanced rights. Please keep in mind that this way the users will NOT be able to really edit any web intelligence reports (regardless of the folder the report resides in)
    Regards,
    Stratos

Maybe you are looking for