How to call different templates from EBS 11i?
Hi,
I have three templates having same layout but different page width and heigth.
How can i call these three templates conditionally from main template in EBS.
Need urgent help
Thanks,
Mahesh
Register them as subtemplates in Main template using syntax given below
<?import:xdo://SDS.SDSCOMINVHDBG.en.US?>
(<?import:xdo://<Application short name>.<Template name as registered>.<language>.<Territory>?>)
and call them in main template based on condition as relevant.
Thanks
Kamalakar.G
Similar Messages
-
How to call translation template from bursting control file.
Hi All,
Greetings!!!!!!!!!!!!!
Need help on calling translation template from the bursting control file.
While calling the translation template from bursting control file it ends in error. Following is the error
[063010_063059160][][EXCEPTION] The URL ( xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true ) is invalid.
But same control file is working for standard tempalte.
Here is the sample control file.
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request select="/XXXPRPOLXML/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_HEADERS/G_HEADERS">
<xapi:delivery>
<xapi:email id="123" server="nasmtp.us.XXX.com" port="25" from="${C_ORIGINAL_BUYER_EMAIL}" reply-to ="">
<xapi:message id="123" to="${C_VENDOR_CONTACT_EMAIL}" cc="" bcc=""
attachment="true"
subject="Purchase Order ${POH_PO_NUM} revision ${POH_REVISION_NUM} from XXX">
${POH_VENDOR_CONTACT_NAME},
${C_MAIL_SUBJECT}
PO number ${POH_PO_NUM} revision ${POH_REVISION_NUM}
Please reply to ${C_ORIGINAL_BUYER_EMAIL} - ${POH_ORG_ID}
Thank you,
${POH_BUYER}
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="${POH_PO_NUM}-rev${POH_REVISION_NUM}" output-type="pdf" delivery="123">
<xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.en.US/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !=''and POH_ORG_ID = 54]"></xapi:template>
<xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161]"></xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
Please let me know how to call a translation template from bursting.
Thanks
RajeshGot the solution...
This is how we have to call a translation template from bursting file.
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request select="/XXXPRPOLXML/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_HEADERS/G_HEADERS">
<xapi:delivery>
<xapi:email id="123" server="nasmtp.us.XXX.com" port="25" from="${C_ORIGINAL_BUYER_EMAIL}" reply-to ="">
<xapi:message id="123" to="${C_VENDOR_CONTACT_EMAIL}" cc="" bcc=""
attachment="true"
subject="Purchase Order ${POH_PO_NUM} revision ${POH_REVISION_NUM} from XXX">
${POH_VENDOR_CONTACT_NAME},
${C_MAIL_SUBJECT}
PO number ${POH_PO_NUM} revision ${POH_REVISION_NUM}
Please reply to ${C_ORIGINAL_BUYER_EMAIL} - ${POH_ORG_ID}
Thank you,
${POH_BUYER}
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="${POH_PO_NUM}-rev${POH_REVISION_NUM}" output-type="pdf" delivery="123">
<xapi:template type="xsl-fo" location="xdo://XXX.XXXPOXPRPOL.fr.CA" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161 and CLANGUAGE2 = 'fr']"></xapi:template>
<xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.en.US/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 54 or POH_ORG_ID = 56 or (POH_ORG_ID = 161 and CLANGUAGE2 = 'en')]"></xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
where
XXX - Application shortname
XXXPOXPRPOL - Template Code
Hope this helps!!!!!!!!!!!!!!!!!!!!!
Regards
Rajesh -
How to call Siebel wsdl from EBS R12
Dear Gurus,
Is there anyone knows how to call Siebel wsdl file generated from EBS R12, directly without using middleware/weblogic ?
Please help
Thanks in advance
EldinHi Eldin,
From where do you intend to invoke the WSDL?
Through SQl, PL/SQL - By implementing Web Service Call-Out in the database. Refer http://download.oracle.com/docs/cd/B32110_01/web.1013/b28974/devdbase.htm#BDCGJJHD.
From Forms/OAF page - By using Jdeveloper to develop the proxy/stub, which can subsequently be used in the OAF page/ Forms
Refer: http://www.oracle.com/webfolder/technetwork/tutorials/obe/forms/webservicefromforms/ws_10_1_3_from_forms.html
Hope this helps.
Pls update the thread with your progress.
Regards,
Sujoy -
How to call a package from a different instance?
Dear all:
how to call a package from a different instance?
for example:
package A belongs to instance A1
package B belongs to instance B1
Now I want to call the package B in instance A1, how can I do ? my environment is oracle 10g
Regards
TerryTerry Chen wrote:
Dear all:
how to call a package from a different instance?
for example:
package A belongs to instance A1
package B belongs to instance B1
Now I want to call the package B in instance A1, how can I do ? my environment is oracle 10g
First you have to create create dblink in A1 database as below
CREATE DATABASE LINK INSA1
CONNECT TO USER_NAME IDENTIFIED BY <pass>
USING 'B!' Then you can execute exec pack_b@INSA1; -
How to call business service from xquery transformation in OSB ??
Hi All,
How to call business service from xquery transformation in OSB ??
I need to assign the response variable of Business Service to a target element in XQuery Transformation Mapper file.
It's urgent.
Regards,
Jyoti NayakTransformation is to mapping the source and target of 2 different schemas.
In your case you should have a XQuery transformation between, your Business Service output schema and the target schema.
Thanks,
Vijay -
How to Initiate Demantra Workflw from EBS SPP ?
Hi ,
I need to know ;
1. How to kick start a "Demantra Workflow " from within EBS ? ( A step wise approach is appreciated) ( opening Demantra workflow manager and manually doing starting is workflow is not an option for me)
2. When we kick start the workflow from SPP , I need to pass a parameter to the workflow ( the first step of workflow is a Stored procedure Step) , Is that possible , and how to do that ?Hi,
Please find the answers inline
1.We can use the package utl_http.request to call demantra workflows from EBS. Develop a custom procedure similar to msd_dem_collect_history_data.run_load (this standard procedure has all the logic required to launch demantra workflow) and register it as a concurrent program in EBS which accepts workflow name as a parameter.
Using this concurrent program you can launch any demantra workflow just by passing the workflow name as a parameter to the concurrent program. No need to log in to workflow manager to launch a workflow :)
2.We can only pass arguments to workflow through methods but to use methods one needs to login to collaborator workbench , but to pass an argument from SPP(EBS) without logging into Workflow Manager or Collaborator workbench , you can follow below workaround
a.Hard the parameter in the workflow(procedure step) as P_PARAM
b.Accept the parameter which you want to pass to the workflow say ACT_PARAM from the concurrent program which launches workflow
c.update the table wf_schemas (this stores the workflow definition)
UPDATE wf_schemas
SET schema_data = replace (schema_data,'P_PARAM','ACT_PARAM')
WHERE schema_name='xx_workflow_name';
commit;
d.Launch workflow using the custom procedure developed to launch workflows
e.Rollback the changes done to the wf_schemas
Please try this workaround on a test instance thoroughly before progressing it to Prod.
Thanks,
Sudeep.
Edited by: Sudeep Bemidigi on Aug 26, 2012 11:45 PM -
How to call a function from asp
Hi!, I'd like to know how to call a function from an asp page. I've written:
set rs = server.createobject("Adodb.recordset")
rs.open "call dbo.sf_Obt_Des_Producto ('0000161')",Conn
if err.description <> "" then
response.write ("No se pudo! :(")
else
response.write ("rs: " & rs(0))
end if
rs.close
set rs = nothing
but there is an error:
ORA-06576: not a valid function or procedure name
Please is very urgent!!!
Thanks.
Angie.You need to use the syntax "{call <procedure_name>}".
The {call } syntax tells the OLE DB provider that it needs to translate the call into whatever the database's procedure calling syntax is. This means that even though different databases have different syntax for calling stored procedures, your OLE DB code can be run against any of them without changing.
Justin -
How to call a form from report? in 6i
How to call a Form from Report? In Developer 6i of oracle. Plz tell me tex.
try this
declare
AppID PLS_INTEGER;
begin
AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
exception when others then
srw.message(1,'Errror');
end;Baig
[My Oracle Blog|http://baigsorcl.blogspot.com/] -
How to call a package from the Report in Oracle Application Express
How to call a package from the Report in Oracle Application Express
Hello,
What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
Or do you want to execute a procedure when something happens on the page, like clicking a button?
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
How to call java program from ABAP
Hi Experts,
My requirement is to call java programs from ABAP. For that i have set up SAP JCO connection by using this link http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/739. [original link is broken] [original link is broken] [original link is broken] Connection gets sucessfully. After this how to call java program from ABAP as per our requirement. Please help me out.
Also i tried this way also.. but while executing the DOS Command line appear & disappear in few seconds. So couldnt see the JAVA output. Please help me out to call java programs in ABAP..
DATA:command TYPE string VALUE 'D:Javajdk1.6.0_20 injavac',
parameter TYPE string VALUE 'D:java MyFirstProgram'.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = command
parameter = parameter
OPERATION = 'OPEN'
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
OTHERS = 8.
Thanks.This depends on the version of your Netweaver Java AS. If you are running 7.0, you will have to use the Jco framework. The Jco framework is deprecated since 7.1 though. If you want to build a RFC server in 7.1 or higher, it is adviced that you set it up through JRA.
Implement an RFC server in 7.0:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
Implement an RFC server in 7.1 or higher:
http://help.sap.com/saphelp_nwce72/helpdata/en/43/fd063b1f497063e10000000a1553f6/frameset.htm -
How to call the RFC from R/3 to SRM, when we use webdynpro abap? (Urgent)
Hello
We use SRM Server 5.5 with classic scenario.
We want to call RFC in R/3 from webdynpro ABAP.
How can we do that?
We are developing the web report using webdynpro abap.
So we need some of R/3 data such like PR(EBAN)and PO(EKKO,EKPO).
When user choose the search parameter, report diplay the Shopping cart, PR and PO data on webdynpro. So we call the R/3 RFC to display the PR, PO data.
But I tired to call the RFC in R/3, We could not call it.
How to call the RFC from R/3 to SRM, when we use webdynpro abap?
Thank you,
Best Regards,
SH.Hi
<b>Please look at the following threads as well -></b>
WebDynpro in SRM
BAPI's /RFC's in SRM
BAPI to Change Shopping Cart by RFC
SRM60 and webdynpro
Webdynpro Services Exception
WebDynpro using BAPI has an error
SRM60 and webdynpro...
<b>SAP uses META Function modules in SRM to get data from R/3 back-end.</b>
<u>For getting Purchase requistion data, use the function modules -></u>
META_REQUISITION_CHANGE Change purchase requisition
META_REQUISITION_CREATE Create Requisition
META_REQUISITION_DELETE Delete/close purchase requisition
META_REQUISITION_GETDETAIL Display requisition details
META_REQUISITION_GETITEMS Display requisition items
META_REQUISITION_GETRELINFO Get Releasease Info for requisitions
<u>For getting Purchase order data, use the function modules -></u>
META_PO_CREATE Create purchase order
META_PO_DELETE Delete reservation
META_PO_GETDETAIL Display purchase order details
META_PO_GETITEMS Display purchase order items
META_PO_GETRELINFO Display purchase order release information
Hope this will definitely help. Do let me know.
Regards
- Atul -
How to call javascript function from PL/SQL procedure
Can anybody advice me how to call javascript function from PL/SQL procedure in APEX?
Hi,
I have a requirement to call Javascript function inside a After Submit Process.
clear requirement below:
1. User selects set of check boxes [ say user want to save 10 files and ticks 10 checkboxes]
2. user clicks on "save files" button
3. Inside a After submit process, in a loop, i want to call a javascript function for each of the file user want to save with the filename as a parameter.
Hope this clarify U.
Krishna. -
How to call oracle function from ejb3
i'm trying to call an oracle query-function from ejb3.
The oracle function:
create or replace FUNCTION getSecThreadCount(secId in NUMBER,avai in NUMBER)
RETURN SYS_REFCURSOR is cur SYS_REFCURSOR;
m_sql VARCHAR2(250);
BEGIN
m_sql:='select count(thrId) from thread where secId='|| secid||'
and thrAvai='|| avai;
open cur for m_sql;
return cur;
END;
I'v tried several ways to call it,but all failed:
1. the calling code:
public Object getSectionThreadCount(int secId,int avai){
Query query=manager.createNativeQuery("{call getSecThreadCount(?,?) }");
query.setParameter(1, secId);
query.setParameter(2, avai);
return query.getSingleResult();
but i got the exception:
Exception in thread "main" javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query; nested exception is: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
Caused by: java.sql.SQLException: ORA-06550: row 1, col 7:
PLS-00221: 'GETSECTHREADCOUNT' not procedure or not defined
ORA-06550: row 1, col 7:
PL/SQL: Statement ignored
2. the calling code:
@SqlResultSetMapping(name = "getSecThreadCount_Mapping")
@NamedNativeQuery(name = "getSecThreadCount",
query = "{?=call getSecThreadCount(:secId,:avai)}",
resultSetMapping = "getSecThreadCount_Mapping",
hints = {@QueryHint(name = "org.hibernate.callable", value = "true"),
@QueryHint(name = "org.hibernate.readOnly", value = "true")})
public Object getSectionThreadCount(int secId,int avai){
Query query=manager.createNamedQuery("getSecThreadCount");
query.setParameter("secId", secId);
query.setParameter("avai", avai);
return query.getSingleResult();
but i run into the exception:
Exception in thread "main" javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query; nested exception is: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
Caused by: java.sql.SQLException: lost in index IN or OUT parameter:: 3
By the way, i have successfully called the function from hibernate. And i use oracle 11g, JBoss5 RC1.
Could anyone tell me how to call the function from EJB3?
Thanks.Here's a working model:
package.procedure: (created in example schema scott)
CREATE OR REPLACE package body data_pkg as
type c_refcursor is ref cursor;
-- function that return all emps of a certain dept
function getEmployees ( p_deptId in number
return c_refcursor
is
l_refcursor c_refcursor;
begin
open l_refcursor
for
select e.empno as emp_id
, e.ename as emp_name
, e.job as emp_job
, e.hiredate as emp_hiredate
from emp e
where e.DEPTNO = p_deptId;
return l_refcursor;
end getEmployees;
end data_pkg;
/entity class:
package net.app.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedNativeQuery;
import javax.persistence.QueryHint;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@SuppressWarnings("serial")
@Entity
@Table (name="emp")
@SequenceGenerator(name = "EmployeeSequence", sequenceName = "emp_seq")
@NamedNativeQuery( name = "getEmpsByDeptId"
, query = "{ ? = call data_pkg.getEmployees(?)}"
, resultClass = Employee.class
, hints = { @QueryHint(name = "org.hibernate.callable", value = "true")
, @QueryHint(name = "org.hibernate.readOnly", value = "true")
public class Employee implements Serializable
@Id
@Column(name="emp_id")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "EmployeeSequence")
private int id;
@Column(name="emp_name")
private String name;
@Column(name="emp_job")
private String job;
@Column(name="emp_hiredate")
private Date hiredate;
// constructor
public Employee (){}
// getters and setters
public int getId()
return id;
etc...session bean:
package net.app.entity;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import net.app.entity.Employee;
import net.app.iface.ScottAdmin;
@Stateless
public class ScottAdminImpl implements ScottAdmin
@PersistenceContext
private EntityManager entityManager;
@SuppressWarnings("unchecked")
public List<Employee> getEmployeesByDeptId(int deptId)
ArrayList<Employee> empList;
try
Query query = entityManager.createNamedQuery("getEmpsByDeptId");
query.setParameter(1, deptId);
empList = (ArrayList<Employee>) query.getResultList();
return empList;
catch (Exception e)
e.printStackTrace(System.out);
return null;
}client:
package net.app.client;
import java.util.List;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import net.app.entity.Employee;
import net.app.iface.ScottAdmin;
public class ScottClient
public static void main(String[] args)
try
// create local interface
InitialContext ctx = new InitialContext();
ScottAdmin adminInterface = (ScottAdmin) ctx.lookup("ScottAdminImpl/remote");
// select employees by deptno
int deptno = 20;
List<Employee> empList = adminInterface.getEmployeesByDeptId(deptno);
// output
System.out.println("Listing employees:");
for (Employee emp : empList)
System.out.println(emp.getId() + ": " + emp.getName() + ", " + emp.getJob() + ", " + emp.getHiredate());
catch (NamingException e)
e.printStackTrace(System.out);
}Basically you just ignore the refcursor outbound parameter.
This is a stored function, have yet to try outbound refcursor parameters in stored procedures...
Edited by: _Locutus on Apr 2, 2009 2:37 PM -
How to call WEB Service From SAP
Hi Friends,
How to call WEB Service From SAP.
Thanks in advance,
Murali Krishna KHi,
if you mean calling a web service in Web Dynpro ABAP, see the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm">documentation</a>, if you mean calling a web service in general, this is not the correct forum. This here is the Web Dynpro ABAP forum, for general questions on ABAP, use the ABAP forum.
Regards, Heidi -
How TO CALL c++ EXECUTABLE FROM XI(VERY iMPORTANT)
hI ALL
pLEASE DO GIVE SUGGESTIONS AND DOCCUMENTATION LINKS THAT <b>HOW TO CALL c++ EXECUTABLE FROM XI</b> .THIS IS VERY IMPORTANT AND YOUR HELP WILL BE REWARDED.
WITH REGARDS
SUBRATO KUNDUHi Subrato,
AFAIK you can call C / C++ methods in Java using Java Native Interface (JNI).
Please refer the following links for how to do the same.
<a href="http://www.nag.com/IndustryArticles/CallingCLibraryRoutinesfromJava.pdf">For C:</a>
<a href="http://www.javaworld.com/javaworld/javatips/jw-javatip17.html">For C++:</a>
Regards,
Ananth
Maybe you are looking for
-
Hi there, I am having some strange issue with my PowerPivot for SharePoint but can't figure out what is causing this. Here is what happened: I setup PowerPivot (PP) for SharePoint and activate it on few site collections in production environment; I u
-
Java 7 u45 Web Start application won't launch
I maintain an Eclipse RCP application launched with WebStart. Java 7 u45 made some security changes, and now my application crashes on startup. I've added to the manifest: Permissions: all-permissions Codebase: * Trusted-Library: true This removed al
-
ICR File Upload Process 002 G/L Accounts
Dear SAP experts, For external companies, we want to upload their intercompany transactions in the intercompany reconciliation cockpit. But it seems that is not possible for process 002 (G/L accounts): indeed, when I go on the customizing step 'Compa
-
Too many chiefs, not enough Indians
I placed an order on-line with Best Buy on 3-3-14 in which were 2 items. 1ea. guitar tuner and 2ea. HDMI cables. One item was shipped UPS to my old address in which was the wrong address and the other item USPS and still went to old address even afte
-
"Font Capture: Adobe Premiere Elements.exe - Bad Image" error message
I purchased Premiere Elements 11 last year and it has been working fine. But just put in a new HDD into my laptop and now I can't open Premiere. I uninstalled / reinstalled the program a couple times today with no improvement. The problem is alway