How to call Other webapplication resource ,which is in different contex.
How to call Other webapplication resource ,which is in different contex.
Hi,
Hope you have a directory or the file path of the file stored in the application server.
Please check this...
Step1: Create a RFC function module in SE37 with exporting the file name with full path and importing to the table for storing the records of the file. You can use the open dataset for output statement for reading the data from the application server. Also check transaction CG3Z & CG3Y for uploading and downloading the file from application server.
Step2: call this RFC enabled FM in your program with destination as target system(file stored) to get the data from the file.
If you are not sure about the file path, then you the FM which you specified to get the actual and correct file path.
Thanks!...
Regards,
Suresh.D
Similar Messages
-
How to call a Oracle Proc,which contains Object Type as in Param, from java
Hi
Would like to know how to call a Oracle Procedure which contains the Object Type Parameter from java.
Here is my code will look like...
1. CREATE OR REPLACE TYPE emp AS OBJECT
Empno NUMBER,
Ename VARCHAR2(50)
[COLOR=royalblue]In step1 I have created object type.[COLOR]
2.CREATE OR REPLACE PACKAGE ref_pkg IS
TYPE tab_emp IS TABLE OF emp;
END ref_pkg;
[COLOR=royalblue]In step2,I have created a table type which is of type emp;[COLOR]
3. CREATE OR REPLACE PROCEDURE p_emp(p_emptab IN ref_pkg.tab_emp) as
BEGIN
FOR I IN 1..p_emptab.COUNT
LOOP
Some code written here
END LOOP;
END;
[COLOR=royalblue]In step3 I have passed tabletype which is of type emp as argument.[COLOR]
Now I need to invoke this procedure from JAVA.
Calling a procedure doesn�t matter.
But how I can map objecttype ? how will java recognize oracle object ?
How can I implement this ?
Any Help/Clues is Appreciated.
Thanks
KrishnaHi Bob
You can call a stored proc from a database control with the jc:sql annotation itself.
Assume a stored proc taking one In parameter
* @jc:sql statement="call sp_updateData({id})"
void call_sp_updateCust(int id);
You can even call stored proc with OUT parameters using
* @jc:sql statement="{call sp_MyProc(?, ?)}"
void call_sp_MyProc(SQLParameter[] params)
You can also call stored functions via db control.
More info and diff ways to call at
http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/database/conStoredProcedures.html
Thanks
Vimala -
How to call other Entity service
Hi,
How to call other Entity service to our entity service?
Regards
AshifHi,
I mean, need to call the other project entity service to my project application service, for example, am having the project with the name "aaa", and i wanna to get the entity services of the other project "xxx" to my project "aaa".
Can you please, let me know how to call the same.
provide me some links for the same.
Thanks -
How to call other number its number did my phone number into blacklist? Please......May I know...
If someone somehow blacklisted your phone number, you would have to either call them from a number their phone will allow or get them to white list your number.
-
Error -50103 : How can I get the resource which is reserved
I get the error -50103 when I try to start two A0 task on two different channels. The error message tells me that "The specified resource is reserved".
But how can I known what is the specified resource. Is that a clock signal, a buffer or what else ?
More generally, how can I known the resources used by a task ? Is that a VI which can gives me all the resources used by a task?
Thank for your answer
Félix
Software : Labview 7, Driver : daqmx 7.3,
Board : PCI 6259 M serieHello:
I'm trying out a shipped example called PID-Control Multichannel VI and
I'm getting the same error? How can NI shipped it with this problem?
Anyway what should be the remedy here?
Thanks,
Berns
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: [email protected]
Attachments:
PID Control-Multi Channel.vi 160 KB -
How to call a write procedures which has output parameters in an xsodata service?
Hi,
I have a use case where we call a Stored procedure from an xsodata service, where in I also need some output from procedure.
We couldn’t achieve this because whenever I pass some output from my procedure , framework is considering the response as an error always.
Looks like we cannot pass back any values apart from errors.
Since we are doing some insert statements in our procedure I couldn't even wrap the procedure using calculation view
because from calculation view we can call only call only read only procedure.
What is the right way of calling a write procedure which returns some output always apart from error from an xsodata service?
Thanks and Regards,
ArjunAnother suggestion Arjun,
you said you have a writeable procedure with you, which will return a result set after the processing. You split the procedure into two, one writeable and one read only, so that the writeable will update the data, and read only procedure would return the required result set. The, use xsjs to call the writeable, and use xsodata to call the read only procedure(complicate it man ).
Sreehari -
How to call "Edit VISA resource" window from run-time shortcut menu
Hope somebody is able to help me
When editing my application I have "Edit VISA resource" menu item.
You can see it on the first picture
But when I turm on run-time shortcut menu and run the application I\d like to get same menu item directing me to VISA resource settings window.
Is it possible or not?
How can I call different MAX components programmatically? I can invoke MAX with ActiveX, but I can not find how can I invoke exactly "Edit VISA resource" window...
Thanks to anybody for any help!
Attachments:
edit visa resource.png 63 KB
no edit visa resource.png 60 KBcomper wrote:
Hope somebody is able to help me
When editing my application I have "Edit VISA resource" menu item.
You can see it on the first picture
But when I turm on run-time shortcut menu and run the application I\d like to get same menu item directing me to VISA resource settings window.
Is it possible or not?
How can I call different MAX components programmatically? I can invoke MAX with ActiveX, but I can not find how can I invoke exactly "Edit VISA resource" window...
Thanks to anybody for any help!
Not sure it is a good idea to be editing VISA resources while the VI is running. I'm not even sure it's "legal" which might explain why it isn't there. If all you want to to is be able to change which equipment to talk to, maybe it's best to just to have a VISA resource control and have the user select from there, or maybe a ring control with pre-defined VISA resources.
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all. -
How to declare a JNDI resource which is not a datasource ?
Hi,
I'm looking for a way to create a jndi bound resource, as a jang.lang.String for instance, within oc4j enterprise console or maybe by editing config files.
I'm trying to configure an application once for all, so that I can deploy a .ear which is identical for development, testing, validation, production, ... environments while being able to configure those instance independently.
Can it be done with oc4j ? (it's intuitive to create a jndi bound resource if it's a datasource, but it seems to be the only kind of resource we can create) and if so, how ?
thx in advance
OlivierHi Olivier,
As far as I know, this is not possible. I see only three ways
1. Add an OC4J startup class and bind the desired names into JNDI
(not sure, whether this is really possible)
2. If you need the bound JNDI objects only in a web application: just add them to your web.xml file
3. Write your own provider and add it to the default application.xml or to your application's application.xml
Best,
Manfred -
In a java applet , how to call other jar file?
i have i programm, this programm is a java application,
also, i already put these program into jar file, and then if i double this jar file , its work!
but , now i need to run this program in web browser,
i thing that i will write a simple applet with a button
after i click this jButton, how the java applet call and run the java file?
please help me.. it is because this is my project! thx..........
[email protected]I have a solution write one batch file in that you specify class path and java home.
then give
java -jar Test.jar
then call this batch file from program using Java runtime
Runtime.exec method...
Hope will this work -
How to call a stored procedure which has out parameter value
my code is
public Connection createConnection() {
Connection conn = null;
try {
Class.forName(DRIVER);
conn = DriverManager.getConnection(URL,USER,PASS);
} catch (ClassNotFoundException cnfe) {
System.err.print("Class not found");
} catch (SQLException sqle) {
System.err.print("SQLException");
return conn;
public static void main(String args[]){
StroedProcedure stp = new StroedProcedure();
Connection con = stp.createConnection();
try {
CallableStatement stproc_stmt = con.prepareCall("{call Account_Summary(?,?,?,?,?,?,?,?)}");
stproc_stmt.setString(1, "123456");
stproc_stmt.setDate(2, null);
stproc_stmt.setString(3, null);
stproc_stmt.setString(4, null);
stproc_stmt.setString(5, null);
stproc_stmt.setString(6, null);
stproc_stmt.setDate(7, null);
stproc_stmt.setDate(8, null);
stproc_stmt.registerOutParameter(1,Types.CHAR);
stproc_stmt.registerOutParameter(2,Types.DATE);
stproc_stmt.registerOutParameter(3,Types.CHAR);
stproc_stmt.registerOutParameter(4,Types.CHAR);
stproc_stmt.registerOutParameter(5,Types.CHAR);
stproc_stmt.registerOutParameter(6,Types.CHAR);
stproc_stmt.registerOutParameter(7,Types.DATE);
stproc_stmt.registerOutParameter(8,Types.DATE);
stproc_stmt.execute();
System.out.println("test "+stproc_stmt.getString(1));
ResultSet rs = stproc_stmt.executeQuery();
while (rs.next()){
System.out.println("result "+rs.getString("ACCPK"));
} catch (SQLException e) {
e.printStackTrace();
}And the stored procedure is
CREATE OR REPLACE
procedure Account_Summary (accpk in out char, incdt out date, bcur out char, bmark out char, tarTE out char, numHold out char, stDt out date, AsDt out date)
is
begin
select account_pk, inception_date, base_currency, benchmark into accpk, incdt, bcur, bmark
from account a
where a.Account_pk=accpk;
select target_te, number_holdings, start_date, as_date into tarTE, numHold, StDt, AsDt
from acc_summary asum
where asum.account_pk=accpk;
end Account_Summary;but it gives a exception ORA-01460: unimplemented or unreasonable conversion requested
ORA-06512: at "REPRO.ACCOUNT_SUMMARY", line 4
ORA-06512: at line 1
i want to execute a stored procedure which has in , inout or out parameter
but it can not work========================
In some contects varchar2 variable limit is 32512 characters... October 16, 2003
Reviewer: Piotr Jarmuz from Poznan, Poland
Interesting to note is the fact that varchar2 variables as parameters to stored
procedures (in in/out out) may be "only" 32512 bytes long.
I've checked this in Java and Perl. 32512 is the last value that works, for any
bigger it throws:
Exception in thread "main" java.sql.SQLException: ORA-01460: unimplemented or
unreasonable conversion requested
But in PL/SQL as you said 32767
Regards,
Piotr
=================================
This i got it from ask tom, well it make sense.... try checking your input with small numbers and strings
Have fun -
How to call other program in java
how do i write code to call a program, software in window envirenment?
such as opening Microsoft Excel files using Microsoft excel?
plz helppublic static void main(String[] args)
try
Runtime.getRuntime().exec("Book1.xls");
catch (IOException ed)
}i tried, but it not working , plz help -
How to call other method using struts
Hi,
in my TestAction.java,
i have 2 method, one is execute(...) and another is changeABC(...)
in jsp,
when i onchange, i call a javascript
function onSwitch()
document.forms[0].action.value = "changeABC";
document.forms[0].submit();
<html:form action="/test.do">
</html:form>
test.do will call TestAction.java and TestActionForm.java.
y when i submit, it keep calling the execute method??
How i suppose to do to enable it call changeABC method??
pls advice.. thankshi
i am sending u one plz reply as soon as possible -
How to call method in JCD - which will execute prepared statement
Hi All,
I have a scenari where I have to call method in JCD, where in this method I have to execute prepared statement and return value.
Please suggest me how to do this.
Thanks & Regards,
Anitha.Bhi bolla,
this is 100% java code. can you elaborate a little more what is your exact problem?
i think your scenario is easy to accomlish.
regards chris -
How to call other execs from java application
What is the best way to make a call to execute an external executable written in another language (i.e. c++ or ada95) from within a java application?
Hi,
Runtime.getRuntime().exec(new String[]{"C:\\Office\\winword.exe"});
you should catch IOException as well.
Phil -
How to call a unix program which is IRIX OS from java
Hi,
I have a program on UNIX platform and OS is IRIX. I have a java program on WINDOWS machine. I want to run that program, which is on UNIX paltform from java. I know the path but I am not able to give that path using Runtime.exec() command.I can run any file on the WINDOWS machine using my JAVA program. Can anybody help me ???I am not really sure if I understood your problem, but it might have something to do with forgetting to set the LD_LIBRARY_PATH.
Set this path according to your needed paths and maybe this already solved your problems.
Greetings,
John
Maybe you are looking for
-
Configuration setting that needs to be changed to allow flexibility copy and to paste formatted text
what is the configuration setting in Contribute that needs to be changed to allow me flexibility copy and to paste formatted text? Example I am unable to copy and paste formatted text within contribute and the line that is represented under the headi
-
I know I must be missing something stupid here, but I cannot, for the life of me, get my timeline to show up. I have clicked on "view/timeline" and a checkmark is present there. I have tried clicking on the little arrow bar thingy above the slide, th
-
I am using javascript to disable date fields, so the users are forced to use the date pickers. The field is disabled and the date picker works but when I save the record the entry in the date field disappears. Page Header <script language="JavaScript
-
In GP i am getting Nullpointer Exception
i created on develpment component in web dynpro. In that one comp is created. //@@begin others private IGPExecutionContext executionContext; //@@end In that execute is not running. public void execute( com.sap.caf.eu.gp.co.api.IGPExecutionContext
-
ACR 4.3.1 Temperature Slider
When I open a raw image in ACR (4.3.1, CS3), the temperature slider reads an integer value rather than degrees K. I thought that the temperature slider was supposed to read in degrees K for a raw image and in an integer for JPEGs and TIFFs. What am I