How to call a mapping in a PL/SQL proc ?
Hi all,
I want to create a PL/SQL proc to call my mappings in the right order, and to make other operations the mapping don't do.
The mapping I want to call is located in the packages.
How can I call it ?
Thanks,
Nico
Hi Carsten,
Thank you for trying to help me.
I do have the "Main" method you are talking about, but this method need a parameter (called "p_status") that I don't know how to implement...
The mapping I create and I want to call needs no parameter, that's why I don't understand...
This is the beginning of the main proc of my mapping package :
PROCEDURE Main(p_status OUT VARCHAR2,
p_max_no_of_errors IN VARCHAR2 DEFAULT NULL,
p_commit_frequency IN VARCHAR2 DEFAULT NULL,
p_operating_mode IN VARCHAR2 DEFAULT NULL,
p_bulk_size IN VARCHAR2 DEFAULT NULL,
p_audit_level IN VARCHAR2 DEFAULT NULL,
p_purge_group IN VARCHAR2 DEFAULT NULL) IS
x_schema VARCHAR2(30);
x_audit_id NUMBER;
x_object_id NUMBER;
x_env wb_rt_mapaudit.wb_rt_name_values;
x_param wb_rt_mapaudit.wb_rt_name_value;
x_result NUMBER;
x_return_code NUMBER;
BEGIN
etc, etc....
----------------------------------------------------------------------------------------------------------------------
Similar Messages
-
How to call Java Map in XSLT map
Hello,
Can anyone tell me how to call Java Map in XSLT map.
Thanks and Regards
HemantHello, Vijay,
Can you help in understanding how can we pass whole payload in the parameter in XSLT map.....
for eg
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:javamap="java:DATEandTIME.Date_Time">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="inputparam" />
<xsl:template match="/">
<MT_TARGET>
<date>
<xsl:if test="function-available('javamap:getDateValue')">
<xsl:value-of select="javamap:getDateValue($inputparam)"/> </xsl:if>
</date>
<time>
<xsl:if test="function-available('javamap:getTimeValue')">
<xsl:value-of select="javamap:getTimeValue($inputparam)"/> <xsl:value-of select="$test"/>
</xsl:if>
</time>
<project>
<xsl:value-of select= "//project"/>
</project>
</MT_TARGET>
</xsl:template>
</xsl:stylesheet>
here we are passing static value in parameter.....
Java code is:
private static AbstractTrace trace = null;
public static String getDateValue(Map inputparam)
trace = (AbstractTrace)inputparam.get(
StreamTransformationConstants.MAPPING_TRACE );
Date now1 = new Date();
SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMd");
String dateString = formatter.format(now1);
return dateString;
public static String getTimeValue(Map inputparam)
trace = (AbstractTrace)inputparam.get(
StreamTransformationConstants.MAPPING_TRACE );
Date now1 = new Date();
SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");
String dateString1 = formatter.format(now1);
return dateString1;
I want to pass whole payload so how can i pass it. -
Calling a url from a pl/sql proc
HI!
I was wondering if anybody has code that they can share calling a url from a pl/sql proc.
Thanks!!Thanks - tell me if I am wrong but it does not seem to be what I need. does this package have the capabilities of doing the following... I want to call a pl/sql procedure - I am not in any browser window and by calling this proc it will bring up a browser window with the given url.
-
How AAE call the mapping program?
Hi Experts,
i almost have no experience on using AAE. after reading some documents i still have the below questions,
1. mapping program is happened in integration engine, while AAE is used for integrated scenarios without going into integration engine, then how to execute the mapping program?
2. till now all the work i have done is using the common scenario, then for which scenarios i can suggest my client that "we should use integrated scenario , and there is no 'side-effect' of using is instead."
3. in some documents "persistence" is discussed, can someone help me into more details?
thanks in advance. hope these could be explained.> 1. mapping program is happened in integration engine, while AAE is used for integrated scenarios without going into integration engine, then how to execute the mapping program?
When you implement AAE,Adapter engine will execute your mapping program,that means AE has the capailities , they have copied moved routing ,mapping features in AE,so no need to interact with IE.
> 2. till now all the work i have done is using the common scenario, then for which scenarios i can suggest my client that "we should use integrated scenario , and there is no 'side-effect' of using is instead."
There is no side effects at all,but there are some limitations like in PI7.1 monitoring not possible,ABAP PRoxy,look ups will not supported and only supports AE adapters communication.
PI7.1 EHP1 some enhacements happend on the same
search in sdn.
> 3. in some documents "persistence" is discussed, can someone help me into more details?
can you explain bit more..
Regards,
Raj -
How to call google map in mapviewer application?
Hi
i want to use google map as the base map in my mapviewer application, on which i can do all the analysis provided by mapviewer like geocoding tool etc. how can i do it? if anyone can help?On otn.oracle.com an article was posted a while ago on how to use Google Maps. Search there - this might help.
cu
Andreas -
How to call external Perl routines from Pl/SQL - Urgent
Available software in the Test Environment:
1. Sun Unix 2.8
2. Oracle 8.1.7 ( 8i)
3. Perl 5
Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts.
The steps followed for for C are -
1. Create and compile a simple C program to execute a unix command (eg., touch a file).
2. Make a shared library of the above compiled program (object), i.e., load the compiled object module into a dynamic load library.
3. Declare the above library in Oracle using SQL*Plus.
4. Define a PL/SQL function or procedure to call the external routine.
5. Test the external routine.
The above steps run good for a C program, but step 2 fails when run for a Perl script.
When I tried to use the following command for step 2 -
make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
SHARED_LIBNAME=cmd_lib.so \
OBJS=tst_cmd.pl
got the following error -
ld: fatal: file tst_cmd.pl: unknown file type.
ld: fatal: File processing errors. No output written t cmd_lib.so
*** Error code 1
This gives me an indication that demo_rdbms.mk does not understand/interpret Perl scripts. Going through the demo_rdbms.mk suggests the same.
My questions is - How do we call external Perl scripts/routines from PL/SQL ??
Do I have to get a different version of "demo_rdbms.mk" ?
PS: The perl scripts used above (tst_cmd.pl) is error free and works as intended in the unix environment.Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts. Well, C is a "compiler" language and Perl is interpreted. In a sense, C is not "scripts".
When I tried to use the following command for step 2 -
make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
SHARED_LIBNAME=cmd_lib.so \
OBJS=tst_cmd.pl
got the following error -
ld: fatal: file tst_cmd.pl: unknown file type.
ld: fatal: File processing errors. No output written t cmd_lib.soI guess this compiles an extproc "stub" with your object file, generating an external procedure. So the object file really needs to be an object file :-)
My questions is - How do we call external Perl scripts/routines from PL/SQL ??I'd guess you need an embedded Perl interpreter in the external procedure.
Not much help though I'm afraid :-/
Cheers
Fredrik -
How to call xslt mapping in message transformbean
Hi Folks,
I have written a simple xslt mapping to convert 2 fields into different fields. That is working fine from me.
I want to use this xslt mapping in message transformbean adapter module. I dont want to use this in operation mapping. Can you please tell me how would I do this.
How would I configure this.
Thanks,
RohiniHi,
According to me, we cannot call the xslt program/map from adapter module.
Why we can't call is in adapter module we can use java EJBs, but what ever you suppose to call is not an EJB application.
FYI
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
Regards,
Venkata Ramesh -
How to call a FoxPro .prg file through SQL statement
I created a program exclusive.prg which basically consisted of the statement USE my table exclusive. How can i call this function through a SQL statement using java
Hi,
Thank you for he reply.
Runtime.getRuntime().exec(..)works fine with .exe files.
but, when a foxpro program file(.prg) is compiled, a (.fxp) file is produced and not a .exe file
when i write some thing like
statement.execute("exclusive.fxp")i'm getting an error. here is the stack trace
java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Syntax error or access violation
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at excel.TestMom.main(TestMom.java:28)i also tried using
statement.execute("do exclusive.fxp") and
statement.execute("do exclusive.prg")I got the same error.
Dont know what else to do.Can you please suggest some way to work around. -
How to call shell script from a pl/sql procedure
Hi all,
I am little bit new to plsql programming, i have a small problem as follows
I have to call a shell script from a pl/sql procedure ..
Please suggest me some methods in oracle 10g, which i could make use of to achieve my goal. also please tell me what are the constraints for those methods if any.
I already came across dbms_scheduler, but i have got a problem and its nor executing properly its exiting giving 255 error or saying that permission problem, but i have already given full access to my shell scripts.
Thanks in advance
Best Regards
SatyaHi,
Read this thread, perhaps is there your response :
Host...
Nicolas. -
How to call a web service from PL/SQL?
The link to this article seems to be gone, and I can't find much information out there? Does anyone have a link that works? Or perhaps archived the old article at the bottom of this page:
http://www.oracle-base.com/articles/9i/ConsumingWebServices9i.phpDear,
I have read your article, it is useful for me. But I cannot Apply to my case. Please kindly help me. Thank you.
When running, the error occurs:
1:39:31 Execution failed: ORA-20000: soapenv:Server.userException - org.xml.sax.SAXParseException: Attribute name "password" associated with an element type "user" must be followed by the ' = ' character.
My webservice Url: http://abc.com.vn:81/axis/ABC_WS_TEST.jws?wsdl
I make PL/SQL (similiar as your example)
FUNCTION INVOKESENDMT
RETURN VARCHAR2
AS
l_request soap_api.t_request;
l_response soap_api.t_response;
l_return VARCHAR2(32767);
l_url VARCHAR2(32767);
l_namespace VARCHAR2(32767);
l_method VARCHAR2(32767);
l_soap_action VARCHAR2(32767);
l_result_name VARCHAR2(32767);
p_zipcode VARCHAR2(160);
BEGIN
--p_zipcode:='''TEST'' ; ''TEST'';''84912187098'';''84912187098'';''0'';''8118'';''1'';''000001'';''ThuNghiem'';''''';
p_zipcode:='TEST';
-- Set proxy details if no direct net connection.
--UTL_HTTP.set_proxy('myproxy:4480', NULL);
--UTL_HTTP.set_persistent_conn_support(TRUE);
-- Set proxy authentication if necessary.
--soap_api.set_proxy_authentication(p_username => 'TEST',
-- p_password => 'TEST');
l_url := 'http://abc.com.vn:81/axis/ABC_WS_TEST.jws';
l_namespace := 'xmlns="' || l_url || '"';
l_method := 'sendMT';
l_soap_action := l_url || '#sendMT';
l_result_name := 'sendMTResponse';
l_request := soap_api.new_request(p_method => l_method,
p_namespace => l_namespace);
soap_api.add_parameter(p_request => l_request,
p_name => 'user password sender receiver chargedflag servicenumber messagetype messageid textcontent binarycontent',
p_type => 'xsd:string',
p_value => p_zipcode);
l_response := soap_api.invoke(p_request => l_request,
p_url => l_url,
p_action => l_soap_action);
l_return := soap_api.get_return_value(p_response => l_response,
p_name => l_result_name,
p_namespace => l_namespace);
RETURN l_return;
END; -
Java code for calling xslt mapping in module?
Hi,
We have 2 mapping(xslt) in IR
source->cannonical and cannonical->target
we want to remove source->cannonical mapping and want to put that in MODULE of communication channel.
My problem is how to call xslt mapping using java code and we done value mapping their. Did that vallumapping will work in module..
waiting for responce..its an urgent task..
thanq
krishnaYou can use the MessageTransformBean to run the XSLT in the adapter framework:
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]
I do not know, if the value mapping works here. Maybe you just give a try.
Regards
Stefan -
How to call the second mapping in the first mapping fails in the BPM
Hi All,
I have a scenario like this.
There are two mappings. There is a one condition while genearying the root element of the first mapping. If this condition is not satisfies the first mapping will fail. If this mapping fails i want to trigger another mapping.
How to achieve this functionality.
If it is possible with BPM. how to call the second mapping in the BPM.Hi
you can not create the containter for the synchronous interfaces.
you have to craete the two asysnchronous abstact interfaces .
thenusing those two abstract interfaces you have to define the containers in the BPM.
and you also have to define the interface mapping b/w those two abstract interfaces.
once you define the interface mapping you will be able to select the interface mapping using the transformation step in BPM.
once you select the interface mapping in BPM then you will be able to selece the interfaces
if you still face the problenm please reply me back.
Thanks
Rinku Gangwnau -
How to call LSMW from a Report program
Hi,
I have a requirment of extending vendor master data (Companycode data and Purchasing Organization data ) through Tcode XK02 using LSMW.Also I need to generate an error log file for validating the data from flat file and must have an export option of the error log file.
Can you help me how to proceed on this in steps.
Also pls let me know how to call LSMW transaction through a Report.
Based on the selection criteria I need to maintain two source structues,one for companycode data and the other for Purchasing Orgnization data for uploading data thru LSMW.How to do this?
pls respond ASAP,
Thanks,
NagendraHi,
create 2 LSMW object (under same project and subproject)..
one for extended vendor master data for company code data and other for extended purchase organization data for company code data.
Now check the radio buttons and based on that populate ur LSMW object.
Store project
project = < >.
Store subproject
subproj = < >.
Store object
object = '6GSC022_TS3'.
if r_ccode = 'X'.
Store object
object = < >.
else.
Store object
object = < >.
endif.
Call the function module to display object (LSMW) maintenance screen
CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER'
EXPORTING
project = project
subproj = subproj
object = object
EXCEPTIONS
no_such_object = 1
OTHERS = 2.
Generating error log:
After the checking the field if u think for this u need to generate error message then In the Maintain Field Mapping and Conversion Rules option under the required field write the following code:
data: v_msgtxt(100) type c.
message <msg ID> <message type> <message no>
with <var1> <var2>
into v_msgtxt.
write v_msgtxt.
Follow the next step in LSMW object till you reach the option Convert Data.
After you execute this option you will get the desired message here.
Regards,
Joy. -
How do I import Map Info Tab files into Spatial for a map of europe?
How do I import Map Info Tab files into Spatial for a map of europe via FME and have oracle spatial draw the map without problems?
So far I've got to the stage where I can import the data, spatially index it (in oracle 9i) and get my SVG (scaleable vector graphics) application to view the map.
The problem is that countries that have more than one polygon (more than one row in the database) do not draw properly.
When I view the Map Info tab file in the FME viewer I can see that the data is fine, but I can also see that some of the polygons used to draw a country are donugts and some aren't.
This seems to cause a problem when I import the data into oracle spatial as I don't know if a row in the table needs to be inserted as an independent SDO_GEOMETRY or if it should form part of a larger SDO_GEOMETRY (as in 2 or more rows make up the polygon shape for a country).
I have a feeling that I'm not using FME correctly, because at the moment I have to import the tab file into Oracle then re-insert the data into a spatially formatted table (one with a spatial index) - I get the impression that FME should do that for me but as I'm new to this I don't really know.
Any Help welcome :|
TimTim,
MapInfo has a free utility called EasyLoader that allows you to upload a table directly to Oracle. EasyLoader creates the geometries and spatial index. You can download it free from http://www.mapinfo.com/products/download.cfm?ProductID=1044
Andy Greis
CompuTech Inc. -
How to call a struts action from a JSF page
I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
Sameer Jafferis it not possible to call a action from the faces submit button and/or the navigation?
This a simple POC using struts-faces exmaples.
Here is my struts-config and faces-config file.
<struts-config>
<data-sources/>
<form-beans>
<form-bean name="GetNameForm" type="demo.GetNameForm"/>
</form-beans>
<global-exceptions/>
<global-forwards>
<forward name="getName" path="/pages/inputname.jsp"/>
</global-forwards>
<action-mappings>
<action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
<forward name="sayhello" path="/pages/greeting.jsp"/>
</action>
</action-mappings>
<controller>
<set-property property="inputForward" value="true"/>
<set-property property="processorClass"
value="org.apache.struts.faces.application.FacesRequestProcessor"/>
</controller>
</struts-config>faces-config
<faces-config>
<managed-bean>
<managed-bean-name>calculate</managed-bean-name>
<managed-bean-class>com.jsftest.Calculate</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>GetNameForm</managed-bean-name>
<managed-bean-class>demo.GetNameForm</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/calculate.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/success.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/failure.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/inputNameJSF.jsp</from-view-id>
<navigation-case>
<to-view-id>/pages/greeting.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>in my inputNameJSF.jsp (faces page)
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Say Hello!!</title>
</head>
<body>
Input Name
<f:view>
<h:form >
<h:inputText value="#{GetNameForm.name}" id = "name" />
<br>
<h:commandButton id="submit" action="/greeting.do" value=" Say Hello! " />
</h:form>
</f:view>
</body>
</html>I want to be able to call the struts action invoking the Action method in the that returns the name
package demo;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public class GreetingAction extends org.apache.struts.action.Action {
// Global Forwards
public static final String GLOBAL_FORWARD_getName = "getName";
// Local Forwards
private static final String FORWARD_sayhello = "sayhello";
public GreetingAction() {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
String name = ((demo.GetNameForm)form).getName();
String greeting = "Hello, "+name+"!";
request.setAttribute("greeting", greeting);
return mapping.findForward(FORWARD_sayhello);
}Edited by: sijaffer on Aug 11, 2009 12:03 PM
Maybe you are looking for
-
In Pages for iPad is it possible to insert special characters like those for logic and math?
Hello there, Is there a way to digit special characters in Pages for iPad? I need to include in my document logical symbols. Thank you!
-
If I purchase an iPhone 4S in Indonesia can I unlock it for use in Canada and the US as well? Can I swap out sim cars in each country as well?
-
Help CS6 won't load?????
Hi I'm trying to run CS6 on a Mac Book Pro all has worked fine until recently, now it won't load! I have tried reinstalling but get the following error messages DW063 and DW050 help.
-
Newport PCS application errors with
We have a Newport Laser Weld station running Newport PCS software (GUI and programming interface). It has a "Vision" option that apparently stopped working when the client loaded a Beta version of Newport's latest software, Integra. Both support code
-
When I select Photos, the albums are listed. However, the first album name is covered over by the larger "Album" category label. I cannot select that first album. The other albums listed lower work just fine. Thank you.