R12 XML Report to Pick the Templates dynamically based on Operating Unit

Hi,
I have written a PL/SQL stored procedure to pick the layout based on the operating unit. We have three layout’s for three different operating units(US,UK,CHINA). For the PL/SQL Stored procedure I have registered a concurrent program. In this Procedure I am assigning the layout based on the request ID submitted for the child concurrent program. Finally to say I am running a program for PL/SQL stored procedure and in that procure I am calling the child program which is registered for RDF layout’s.
But the client don’t want two concurrent programs. He asked to implement in one concurrent program and if possible add the code in RDF only.
I have used the following code in After parameter form trigger but the code is not working.
(IF p_org_id IN ('101')
THEN
v_layout :=fnd_request.add_layout ('AR',
'RAXINVXML_US',
'en',
'US',
'PDF'
fnd_file.put_line (fnd_file.LOG, 'If P_ORG_ID in (602,1622)');
ELSIF p_org_id = '102'
THEN
v_layout :=fnd_request.add_layout ('AR',
'ARRAXINVXML_UK',
'en',
'US',
'PDF'
fnd_file.put_line (fnd_file.LOG, 'If P_ORG_ID= 1883');
ELSIF p_org_id = '2006'
THEN
v_layout :=fnd_request.add_layout ('AR',
'ARRAXINVXML_KT',
'en',
'US',
'PDF'
fnd_file.put_line (fnd_file.LOG, 'If P_ORG_ID in (2006)');
ELSE
v_layout :=fnd_request.add_layout ('AR',
'ARRAXINVXML_US',
'en',
'US',
'PDF'
fnd_file.put_line (fnd_file.LOG, 'If Org_Id other than 1883,2006,602,1622');
END IF;
I have followed the Subtemplate concept, but it is also not working.
(<?import:xdo://AR.RAXINVTST_M.en.US/?>
<?if:P_ORG_ID1='101'?> <?call-template:RAXINVTST_S?> <?end if?>)
Could some one suggest how to proceed on this. Please help on this.
Thanks in advance.
Warm Regards,
Thirupathi

Thanks for your reply.
I have tried this logic in AFTER REPORT trigger also, but it is not picking dynamically and also not giving any output.
Could you please let me know if there are any possibilities.
Thank you,
Regards,
Thirupathi

Similar Messages

  • Report not picking the template

    Hi all,
         I built and registered a rtf template to an Oracle Report(print purchase orders), which is typically run
    while approving a PO by selecting the check box (PRINT) in the Approve Documents Form. But Its not picking the
    template instead it prints the XML Data. Do I need to call the template through the report trigger.
    In other words, How to apply rtf template for the cocurrent report w/ short name, POXPPO? Please Help.
    Thanks,
    kalyan.
    Edited by: kwin on May 21, 2010 6:22 AM

    Hi
    We had similar issue while submitting BI Publisher report from Shipping transaction form though report is associated with template and data defintion.
    To fix we need to another setup through responsibility System Administration > Concurrent Programs > Define query for concurrent program choose update and go to onsite setting tab, In template choose template in LOV after it worked with out any issues. Try similary for this issue it might work. If this doesn't work create forms personalization on approving PO call that step where you can call plsql program, in plsql program you can call template use standard API's before submitting concurrent program
    Let me know if this as worked
    Thanks
    Kamalakar.G

  • How change the graph dynamically based on pivot table.

    Hi,
    My Report having pivot table and bar chart. Organization Name column set as pivot table prompts in pivot table.So Organization Name is appear as dropdown list.If i choose the diffrent Organization Names the pivot table data is according to the Organization Name but no changes in chart.How change the Graph dynamically based on pivot table.
    Please help on this.

    ok.I created pivot table with 4 columns and created chart using pivot table chart options but all 4 columns are displaying chart.But I need only 2 column in chart ..unable to edit the only chart in pivot table.Please help on this.Thank you..

  • How to report with different time zone dynamically based on user's account?

    Hello
    I am wondering is there a way to change the report's date & time data based on user's locale setting in OBIEE?
    Let's say the user log in to OBIEE with eastern time zone setting. The data that's in the database is storing a transaction of $400 at 1am Pacific time.
    So when this user run a query which does something like 'select date, transaction, amount from date, transaction, sales where this = that', it should display the $400 amount done at 4am eastern time instead of 1am pst.
    What I have done is to have data stores in date dimension to be UTC time, and I have also changed the data type of the date column to be 'local time zone'. DB is Oracle DB 11G now.
    Now this query works perfectly well in the DB as long as I run the following commend first:
    Alter session set time zone = 'whatever my time zone'
    and then
    Select date, transaction from tables..
    The date displayed will automatically be converted into different time zone..
    Since everything is working nicely from Oracle DB level, I need to know how to make it work when OBIEE sends the same query down to the DB..
    I know that, probably I will have to enter the above alter session commend in the connection pool, however, I can't hardcode the time zone value.
    I also don't want to store user's time zone in the user table because these users travels a lot. So even if his table setting is EST, but at a given day he can be traveling to pst time zone and view reports.
    Is there a way to dynamically set the time zone based on user's account locale setting?
    Let me know if you guys have implemented something similar or not
    Thanks

    garuda wrote:
    Hello Sarvan
    I have already done that part at the DB level and it is working perfectly with alter session commend before the query.
    My question is, how do I configure OBIEE so that before each user runs a report from BI, the alter session commend will be fired with each user's personal locale time zone setting passed through so that each user will be able to view data according to their different time zone?did you tried with Connection scripts(Execute On connect) in Connection pool.write ur Alter commend to Change Time Zone in this script box.

  • SAP Standard report to view the asset balance- Based on the calender year

    Hi ALL
    Any sap standard programs are available to view the asset balance based on the calendar year not for the fiscal year. 
    Asset balance report S_ALR_87011964 will display based on the fiscal year in report date. For example I want to view the September month asset balance, Any standard report to view the calendar year wise output.
    Regards
    K.Gunasekar

    Dear Gunasekar,
    in Asset balance report S_ALR_87011964 you can view also a calendar year, you can enter every Reporting date in the progrm.
    In RABEWG_ALV01 you can enter also a Capitalization date "from to". I think this is what you want.
    regars Bernhard

  • Can Pick Release Rule be restricted to Operating Unit

    Hi Gurus,
    I have created Pick Release Rule for two operating unit. Though operating units are different , I am able to see Pick Release rule in both Responsibilities.
    Also all inventory organisations created are appearing in LOV of Warehouse field of pick release rule.
    Can anyone please suggest if I can achieve this without customization?
    Edited by: user11981009 on Nov 11, 2012 4:14 AM

    Hi,
    you can achieve this through form personalisation.
    Regards,
    Rajesh

  • Unable to open XML report in Oracle EBS r12

    Hi,
    I have new installation of Oracle EBS r12 (12.1.1) on linux.
    To test the XML report, I changed the output of standard report 'Active Users' from 'Text' to 'XML' and defined the data definition and template for this report.
    I am unable to see the output for XML reports. The report completes without error, however I cannot open the output file.
    The browser opens for fraction of a second and then closes down. My client machine is Windows 7 and I used Microsoft words 2010 to build template
    I used the 5.7.201 version of BI publisher to create the rtf template.
    Please help me to resolve this issue.
    Thanks

    I changed the output of standard report 'Active Users' from 'Text' to 'XML' and defined the data definition and template for this report.
    looks like xml publisher report, so output for concurrent must be 'XML'
    ******* I have changed the output of concurrent program 'Active Users' from 'Text' to 'XML'
    I am unable to see the output for XML reports.
    how you see it?
    ******* I tried to open the report by clicking on 'Output' button from view request screen of EBS.
    did you try after concurrent completed check 'diagnostic -> view xml'?
    ******* I haven't tried this. Will do now.
    The report completes without error, however I cannot open the output file
    what is error?
    ******* There is no error, the request completed successfully. When I tried to open the output file by clicking 'output' button, the browser doesn't open.
    did you check OPP log?
    ******* There is nothing in the OPP log.
    if concurrent failed so first of all check your code - data template and package (if used)
    ******* I used the standard EBS report 'Active Users' and just changed the output from 'Text' to 'XML' and attached the rtf template.

  • Need to generate XML report  (when user clicks the button)from Application Express 4.0.0.00.46

    I am new to Apex so I invoke all the APEX GURUS to help me !!!
    Here are details.
    When the user hits a button from APEX page he can download an XML report
    here is the parameterized SQL query:

    Duplicate thread: https://community.oracle.com/message/11325665

  • Displaying HTML data in the xml report

    hi
    can anybody help me out on how to display the HTML data in XML report, for example the data in the table is in the following format with HTML tags attached to it
    *&lt;b&gt;Test Good display as normal text&lt;b&gt;*
    +&lt;i&gt;Test Italicized &lt;i&gt;+
    i would like to display the above data in the XML report as a following with "Test Good display as normal text" as BOLD and "Test Italicized" as Italicized
    Test Good display as normal text Test Italicized
    if anybody came across similar issue please help me out.
    Regards
    Hemi.

    Hi..
    Check out this link..hope this helps..
    http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html

  • 'XML Report Publisher' not producing Excel output

    when i run a report from SRS window, selecting output format as EXCEL, output comes out great in EXCEL format(no problem here)
    but when I run ‘XML Report Publisher’ and select the Request ID of the above report and give EXCEL as output format, output is coming in HTML.???
    If I select PDF – comes out properly as PDF
    If I select HTML – comes out properly as HTML
    If I select RTF – comes out properly as RTF
    But only If I select EXCEL – comes out properly as HTML
    Does any one know what is this???
    I badly need the EXCEL output from ‘XML Report Publisher’ because I have developed a template for a seeded process,
    XML Report Publisher is the only way to get the output for these kind of Spawned reports.
    Help will be highly appreciated!!!
    Thanks
    ss

    ANY Updates on this?????
    did any of you run into similar stitutation??
    or
    can any of you try this and see if it is acting the same?

  • Org.xml.sax.SAXParseException with XML Report Publish

    Anyone see the following error in XML Report Publisher? This happened after I ran Employee W2 XML Interface and ran XML Report Publisher for the output of the PDF output.
    --XDOException
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:570)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:235)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:684)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Caused by: org.xml.sax.SAXParseException: <Line 268, Column 6>: XML-20109: (Fatal Error) PI with the name 'xml' can occur only in the beginning of the document.
         at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
         at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:305)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
         ... 17 more
    Thanks.

    We are going to user Employee W-2 PDF.

  • XML Report

    Hi All,
    can anyone tell me difference between the xml report and rdf report
    i know some difference
    1) in the xml report we separate the data source with layout
    2) we can generate EXCEL output
    3) using single data source file we can build many layout template and we can generate different output with some little changes and we can generate in different luguages
    4) low development and customization cost
    5) we can easly generate complex report like fincail invoice ,purchase order report
    am i correct or anything i missed
    if anyone know plx explain me
    thnaks in advace

    Hello,
    I have been using Oracle Reports for over ten years and have worked on BIP for almost two years now, but with that said this is just my opinion...
    1) in the xml report we separate the data source with layout
    - Yes this is true and is IMO, the single, best feature of BIP you mention. But, it is not 100% always the case (I suspect due to BIP being a "new" tech; for example: subtemplates, see my thread I bump every week awaiting an answer...)
    2) we can generate EXCEL output
    - Yes, true, but this can be done in Oracle Reports as well
    3) using single data source file we can build many layout template and we can generate different output with some little changes and we can generate in different luguages
    - Yes, and I would most likely love this more if I had to actually use this functionality. ;-)
    4) low development and customization cost
    - I have to disagree with this. I am sure this is a point Oracle is pushing (but I remember them saying for Oracle Reports years ago too!). And for very, very simple reports it might actually be the case. But, overall, no it is not. I will fully retract this statement if you have an in-house (experienced) XML-FO developer that does not charge a ton of money (we do not).
    5) we can easly generate complex report like fincail invoice ,purchase order report
    - No, see #4 above.
    In regards to #4 and #5 I would have to say that developing most moderately complex reports in BIP is no easier than it was in Oracle Reports. The main difference you will find is that there are a lot more developers that have years of experience with Oracle reports, many less that have experience with BIP. And the same can be said for training (esp. in XML-FO) which is much harder to find. Also, I think the entire concept appears because it is supposed to be so much easier to use the MSWord plug in than it was to use the layout editor in Oracle Reports...well this may be true but there are many things that I can do in Oracle Reports that either can not be done or are much more difficult in BIP. And if my developer can not handle the layout editor in Reports, I don't want him! The bottom line on this is that the MSWord plug in is no where near an adequate replacement for the layout editor of Reports on complex reports (we have had to resort to using and codign "raw" XML-FO templates).
    Also, you left out the #1 reason to use BIP! Oracle Reports is going away and it will be replaced by BIP or something like it. This single point can not be over stated IMO (seriously).
    But, like I said, this is just my opinion.
    Scott
    Edit, okay I just re-read this and it seems a bit harsh...but I stand by it all. But, IMO BIP has huge potential and if you are a fool for XML-FO you can start reaping those rewards now...for the rest of us we need a real development tool, not just a MSWord plugin
    Edited by: ScottC on Oct 15, 2008 9:12 PM

  • Print Images in XML Report

    Hi,
    I do have a requirement to print digital signature in a Quote, the signature is been stored as a picture (longraw datatype per_images table) in HRMS Tables
    HRMS Responsibility -> people -> Enter and Maintain -> Picture, here we will upload the signature of a person and this need be printed in XML Report.
    In the Report Builder if we change the ‘file format’ to ‘Image’ we are able to display the image , but when we are register in APPS, we not able to get the image, even XML tags are not been generated.
    Regards,
    Satish.

    Here...this should help !
    BLOB image in XML Publisher

  • How to run an XML Report from Oracle Forms 10G

    Hello Friends,
    I am in need of showing a xml report output through a button press trigger in Oracle Forms10G.
    I have designed the report in XML Publisher and the report looks fine.I found few scripts useful in running the Oracle Report from Oracle forms10G like Run_Report_Object.But I am not aware of any script that could run a XML report and show the output directly from a Form.
    All I want is to run a XML report from an Oracle Form with a button press trigger and show the output in an html version.
    Can this be achieved?
    If so, Kindly advise as this is an immediate work.
    Regards,
    Badrul.

    Hi,
    If I am not wrong the XML publisher is same as BI publisher ...
    There is one document which explains how to integrate using web service
    You want to check this
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
    or you can also try web.show_document ..

  • Share photos by email - where are the templates ?

    Hello, can anyone tell me where in Aperture 3 are the nice looking pre-made templates which exist in iPhoto when sharing photos by email?
    Thxs,

    I just tried it from Aperture and it works great. All you have to do is select the photos you want to email from within Aperture. Right click, output, email and Mac Mail will open placing the photos you've selected in a new mail dialogue box. Once they are there, just click Stationary (which is in the upper right portion of the new mail dialogue box toolbar. After you click stationary, pick the template that you want, and the photos are automatically dropped into place. If you don't like the template, you can choose another and the photos automatically switch into the new template. If you don't like the arrangement, just drag the images around and they will automatically switch positions. It really couldn't be easier. And remember, you have the ability to control the quality of the image that is sent via the Aperture preferences, export tab. I don't think it matters when you are using templates, but for future reference, you should set this the way you want from the beginning so that the images get sent at the quality you want.
    I hope this helps.
    Mac
    Message was edited by: macorin

Maybe you are looking for

  • Trying to create a form

    Newbie here. I am trying to create a form and have the information emailed to me. When I hit the submit button, it opens my outlook email. I have searched online and looked @ videos and am sure I have everything correct. What am I not doing? Thanks i

  • How much cost a keyboard backlight replacement ?

    Hi, I just spill coffee on my MacBook pro (mid 2010). I was lucky, everything working fine, except the keyboard backlight :/ How much is it to replace it in a apple store ? Thanks

  • SRM Portal Reports display problem

    Hi, Our SRM & Portal integration is working fine. But when we try to display resports like (login with an organizational purchaser or strategic purchaser) Purchasing --> Reports --> Overview of Approvals Absolutely nothing happens. No error, no log,

  • PO Change Order and Approval

    EBS 11.5.10.2 It is observed and seems the standard functionality that, when changes are done to approved PO, it revises and changes the status to Required Reapproval. This seems to be happening even when the fields like item description, need-by-dat

  • Synchronizing multiple lists with each other

    Hi, here's my use case, which I am having trouble to solve properly: In a chat application there are contacts on a roster. From each contact the user can receive messages, which are indicated with a blinking circle near the contact as long as they ar