XML Template are not publish in EBS

Dear All,
I've create Invoice Voucher in BI Publisher and it's working fine in EBS. But I have to print this report from Invoice Workbench so I have done it by the help of Form Personalization but when I run this report from Invoice Workbench the template are not publishing its only generate XML.
Then I use FND_SUBMIT.add_layout() before FND_REQUEST.submit_request but after this the report is on the same condtion, im using the following code kindly verify this code is it correct or it contains some logical error:
PROCEDURE XX_SUBMIT_INV_VOUCHER
p_org_id IN NUMBER,
--p_resp_name IN VARCHAR2,
p_inv_no IN VARCHAR2,
--p_invoice_date IN DATE,
p_doc_seq_value IN NUMBER,
p_created_by IN NUMBER
IS
x_user_id NUMBER;
x_appl_id NUMBER;
x_resp_id NUMBER;
x_pos varchar2(50):='XXX';
V_LAYOUT BOOLEAN;
--req_id NUMBER;
BEGIN
x_pos:='BEFORE USER';
SELECT user_id
INTO x_user_id
FROM FND_USER
WHERE user_id = p_created_by ;
x_pos:='AFTER USER';
SELECT application_id
INTO x_appl_id
FROM FND_APPLICATION
WHERE application_short_name = 'SQLAP';
x_pos:='AFTER APPLICATION';
SELECT responsibility_id
INTO x_resp_id
FROM FND_APPLICATION fa, FND_RESPONSIBILITY_TL fr
WHERE fa.application_short_name = 'SQLAP' AND
fa.application_id = fr.application_id AND
fr.responsibility_name = 'HUBCO AP Super User';
x_pos:='AFTER RESPONSIBILITY';
FND_GLOBAL.APPS_INITIALIZE(x_user_id, x_resp_id, x_appl_id);
--Mo_Global.init('SQLAP');
--mo_global.set_policy_context('S',200);
x_pos:= 'BEFORE API';
V_LAYOUT:= FND_SUBMIT.add_layout(template_appl_name => 'SQLAP'
,template_code => 'HUBAPAPN'
,template_language => 'en'
,template_territory => '00'
,output_format => 'PDF');
IF V_LAYOUT = TRUE THEN
--INSERT INTO XXCS_LAYOUT_TABLE VALUES('YES');
v_request_id := fnd_request.submit_request(application => 'SQLAP'
, program => 'HUBAPAPN'
, description => NULL
,start_time => SYSDATE
,sub_request => FALSE
, argument1 => p_org_id
, argument2 => NULL--p_invoice_date
, argument3 => NULL--p_invoice_date
, argument4 => p_doc_seq_value
, argument5 => p_doc_seq_value
, argument6 => p_inv_no
, argument7 => p_inv_no
, argument8 => NULL
--, argument9 => 'N'
--, argument10 => 'N'
-----, argument11 => 180
--FND_REQUEST.add_layout(template_appl_name => 'SQLAP');
END IF;
x_pos:='AFTER API';
commit;
/*if v_request_id > 0 then
dbms_output.put_line('Successfully submitted');
else
dbms_output.put_line('Not Submitted');
end if;*/
--REQ_ID := v_request_id;
--req_id := xx_ret_REQUEST_ID(v_request_id);
--DBMS_OUTPUT.put_line(v_request_id);
--DBMS_OUTPUT.put_line(x_user_id);
--DBMS_OUTPUT.put_line(x_resp_id);
--DBMS_OUTPUT.put_line(x_appl_id);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(x_pos);
dbms_output.put_line(SQLERRM);
END;
Regards
Zain A. Siddiqui

Hi,
Yes, Update Portal Resource available, seems like it's already enabled by default as I don't remembering create portal resource.
I have create tramplate in the same folder as other templates resides i.e. WebCenter\oracle\webcenter\portalapp\pagetemplate
-----------------Template code---------------------
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<af:pageTemplateDef var="attrs">
<af:panelStretchLayout id="pt_psl1" topHeight="141px" dimensionsFrom="children">
<!--<f:facet name="bottom">
<af:panelGroupLayout layout="vertical"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
id="pt_pgl4">
<af:facetRef facetName="Footer"/>
<af:panelGroupLayout id="pt_pgl3"/>
</af:panelGroupLayout>
</f:facet>-->
<f:facet name="center">
<af:facetRef facetName="Content"/>
</f:facet>
<f:facet name="top">
<af:panelGroupLayout layout="vertical"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
id="pt_pgl2">
<af:facetRef facetName="Header"/>
<af:panelGroupLayout id="pt_pgl1">
<jsp:include page="/oracle/webcenter/portalapp/fragment/RecruitmentKACSTDetailHeader.jsff"/>
</af:panelGroupLayout>
</af:panelGroupLayout>
</f:facet>
</af:panelStretchLayout>
<af:xmlContent>
<component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
<display-name>RecruitmentKACSTDetailTemplate</display-name>
<facet>
<facet-name>Header</facet-name>
</facet>
<facet>
<facet-name>Content</facet-name>
</facet>
<facet>
<facet-name>Footer</facet-name>
</facet>
</component>
</af:xmlContent>
</af:pageTemplateDef>
</jsp:root>
Thanks,
Srinivas rao

Similar Messages

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • Problem in ABAP Proxy(sometimes XML Messages are not being created)

    Hi,
    I am trying to send the data from ECC to CRM when post goods issue is done for a delivery from ECC side. I called my proxy method in BADI : DELIVERY_PUBLISH.
    And after calling the method, I used commit work also.
    But the problem is, some times it is working fine. and some times the XML messages are not getting created. When I go in debug, looks everything is fine.
    I am unable to understand why this inconsistency.
    Could you please help me out, do I need to take any more precautions.
    Thanks,
    Sandeep

    You mean you can't find any message in SXMB_MONI of your ECC or is it XI where you can't see message?
    If you have not checked in SXMB_MONI of ECC then may be messages are created but they are going into error and that's why you are not able to see any message in XI.

  • Lightroom 5.6 When I try to publish the photos from Lightroom to SmugMug I get an error Canceling task at the top left side and the photos are not published. I have published photos before just last week so not sure whats going on. Any help would be great

    Lightroom 5.6 When I try to publish the photos from Lightroom to SmugMug I get an error Canceling task at the top left side and the photos are not published. I have published photos before just last week so not sure whats going on. Any help would be great.

    See my first post in this topic:
    https://discussions.apple.com/message/21371126#21371126
    Trashing the preference file may help, as I've outlined in the topic I've linked to. Otherwise, follow the steps regarding removing 3rd party QuickTime components. Also, see the final post by the OP (EEye87) regarding how his problem was resolved (a combination of trashing the preference file and the 3ivx component).
    John

  • Why the templates are not responsive

    why the templates are not responsive in FormsCentral, and why there's not a preset address field, telephone and a calculation for billing. why i can't change my pdf form to an html form ofor my website?

    CeraG - It will help to answer if you supply your system version, pages version and if you lately have done anything to the computer (installing, uninstalling etc)
    I think you have forgotten to do a Software update or it could also be a font problem but more info from you is needed!

  • XML Template was not working correctly in 11.5.9

    Hi
    I am currently working on XML rtf template for Invoice. And the rtf XML template is working fine (getting results as expected) in 11.5.10 but the same rtf is not working fine in 11.5.9( not getting the results as expected). My current version of XML Publisher in 11.5.9 is 4.5 and in 11.5.10 is 5.6. My question is there any to make the rtf work correctly in 11.5.9 aslo.
    Thanks,
    Ram.

    I have seen such issues earlier. What you can do is to either upgrade xml publisher version or you have to play around with template a bit like adding dummy rows with lines invisible and consume very less space, dummy columns etc to get desired results

  • BW/BI WAD Templates are not appearing in the Enterprise Portal.

    Hi Experts
    We have executed BW/BI WAD Templates in the portal but they are not getting displayed where as if we execute BEx Queries its running successfully.Could anybody help us in solving the issue.
    Regards,
    Piyush S

    Hi,
    Are you getting Blank Page while executing the web Template ???
    Then the problem might caused by some outdated iView portal content.
    Deploy Supportdesk tool as per note 937697 and see if RED signals are there, if you find any then make sure you clear those
    RED signals by using remidies provided in the solution part on the same support desk tool.
    Make sure the Supportdesk tool signals are GREEN.
    Regards,
    Mani

  • Help - Templates are not displaying in English

    For some reason, the templates in Pages (as well as in iWeb) are not displaying in English -- although that's my default language on my MacBook. I would think this is something easy to fix, but I must just be overlooking something. (MS Word displays its templates in English).
    Can someone please help -- it is a bit annoying that the templates are displaying in a different language. Thanks.

    Welcome to Apple Discussions
    iWork uses a "filler" text known as Greeking to let you see how the templates look with text without having text that would distract you from the layout. This is a fairly common question, so DennisG wrote a user tip about it - Placeholder text in a foreign language.

  • PI 7.1 XML messages are not getting archived.

    Hi Experts,
    Currently I am wotking with PI 7.1. I am trying to archive PI messages from PI Production server,and also maintianed the following parameters in SXMB_ADM.
    ARCHIVE PERSIST_DURATION ASYNC 1 1
    DELETION PERSIST_DURATION ASYNC 1 1
    DELETION PERSIST_DURATION HISTORY 7 30
    DELETION PERSIST_DURATION SYNC 2 0
    DELETION PERSIST_DURATION_ERROR SYNC 3 1
    Retention period
    Retention Period for Asynchronous XML message in the Database
    XML Messages Without Errors Awaiting Deletion 1
    XML Messages Without Errors Awaiting Archiving 1
    Retention Period for Synchronous XML message in the Database
    XML Messages with Errors Awaiting Deletion 3
    XML Messages Without Errors Awaiting Deletion 2
    Retention Period for History Entries in the Database
    History Entries for Deleted XML Messages 7
    Messages are not getting archived.
    When I execute the report "RSXMB_SHOW_REORG_STATUS"
    I am geting the following output.
    Msgs not in retention period (can be archived):            0
    Msgs in retention period (cannot be archived):           88
    Kindly suggest me what changes can be done so that PI messages will get archived from PI production server.
    Regards
    Naveen

    Hi,
    Please refer this thread.
    [Deleting XML messages, database growing|Deleting XML messages, database growing]
    Suresh

  • My sent messages or templates are not saved in the sent or template box.

    My sent messages are not appearing in my sent box. I try to save an email as a template, but it does not save. Help!

    there may be differencies between phone models here (S60 devices or S40 devices, you have S40). Also if I recall right, it used to be so that some older versions of PC Suite did not save the PC sent sms's to phone.
    However, with my N95 the messages are saved. So make sure you have the latest Pc Suite and then try again. If it fails, then it might be that message saving is not supported with S40 phones (Anyone having a S40 phone could verify this)

  • Changes to BI web templates are not updated

    Hello BI Experts,
    I need to find a way to advise my portal resource on how to resolve a problem we are experiencing.
    When we make a change to a web template, the changes are not updated and it appears that the old version is cached.  The only way we can get the new template to show is to bounce EP.
    Does anyone have suggestions where we can find the appropriate global settings to set the cache so that EP will retrieve new BI content as it is modified?
    Thanks in advance for any help.
    Tom

    Hi Tom,
    If there is some incorrect setting in the portal, the WAD templates does not get saved after the first Save action.
    I am not sure of the setting which needs to be done. But I can provide you an alternate solution. If there is no other issue than the templates not getting saved, you can use this.
    You can save your changed template using 'Save As' in a different name and then you can delete the original template. Afterwards, you can save this template with the actual name.
    I hope this would solve your problem.
    Regards,
    -Neethu

  • WDK8 Templates are not loaded to VS 2013 Ultimate automatically?

    I have installed the WDK8.1 and checked that a "Windows Kits" folder was created with all respective files in it.
    However, in Visual Studio 2013 Ultimate the templates are still the same!
    Do I need to configure them manually or what could be the problem?
    PS: Platform Windows 7 64 bits, Visual Studio was installed before installing the WDK.

    Hi,
    Welcome to MSDN forum.
    But I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Please restart VS2013 then check whether the driver template appears under Visual C++ template. If still no driver template, one possible reason is WDK8.1 was not installed well, and maybe we need to configure something else to get the driver template, but
    I am not WDK expert, I don’t know whether we need do something else in order to get driver template in VS2013, in order to resolve your issue better, I suggest you to consult on
    Windows Hardware WDK and Driver Development forum like this similar thread:
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/0b91281d-4f90-4546-94c0-53a7b06729da/how-can-i-get-windows-driver-templates-to-show-in-visual-studio-2012?forum=wdk .
    Thank you for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The templates are not showing up after I select them???

    the templates on pages are not showing up after I select them....unless I highlight the entire page and select a particular colour.  That leaves all the colours in the photo off.  Any help would be so very helpful.   

    CeraG - It will help to answer if you supply your system version, pages version and if you lately have done anything to the computer (installing, uninstalling etc)
    I think you have forgotten to do a Software update or it could also be a font problem but more info from you is needed!

  • XML Template could not find error when submitting for other than English

    Hi All,
    When I try to submit my custom xml report through SRS window, in NON english language, I get following error
    "The simultaneous application program could not find an xml template for the program. Check the configuration of the data and information medianate template for the program administrator the responsibility to xml editor" --- (Transalted from spanish message by me)
    and then giving FRM-41072:can not create the group req_layout
    error.
    I have other xml report for which I have no this type of problem
    Please help me.
    Edited by: DharV on Oct 30, 2011 10:42 PM

    Hi,
    I have a template created using UI Shell and have 2 fragments being used as a dynamic region. So far so good. All is well and when i run the application i can see the regions.
    Don't know what this has to do with the problem and its solution. Its confusing.
    Now i created a custom template (.jspx) file and tried to use the same fragments in this template.
    Assume you meant that you used the same task flow reference - correct ?
    If you set definition="public" , does it make a difference ?
    Frank

  • Eloqua Email template are not Android friendly?

    The Mobile email templates in Eloqua are not Android friendly.

    It seems that after updating to 7.0.3, this issue is back. Both the template for the signature in the localization content (English) and the standard location for changing this are what we wish them to be, but emails going out still read the default Novell Service Desk, etc...
    Any ideas on how to correct this?
    Thanks,
    LK

Maybe you are looking for

  • I forgot what I changed in Illustrator, please help

    When ever I resize the graphics or letters it doesnt let me. I pressed something and totaly forgot what I did when I was going thorugh the Lynda.com courses Illustrator Fundamentals. The Illustrator is downloaded from Adobe. An expert in Illustrator

  • Purchase block in purchasing data of BP

    Hi all. I have a block in the purchasing data of the BP transaction of one of my vendors, and the field is greyed out and cannot be changed. How can I unblock this vendor? The block is in the local purchasing organization, so I would suspect this blo

  • OEM is not conifgured when try to reconfigure it manually

    Hi Guru's, This question asked previously but after applying the solutions what exactly i am getting there still i am not able to reconfigure the EM manually. C:\Data> set ORACLE_SID=orcl C:\Data> emca -deconfig dbcontrol db -repos drop DROP USER sys

  • Difference in images when viewed in CS5 and CC

    When I view the an image in CC, there is considerably more noise in the image than when it is viewed in CS5. Being viewed on the same PC.

  • How do I set document property with delay using jquery?

    56     $("#DivStage2").delay(11000).fadeIn(1000); 57     $("#DivStage2").delay(56000).fadeOut(1000); //11000 to 69000 58     < need code here >    I have document item as defined below   document.getElementById('2').setAttribute("style", "color: #FFF