URGENT HELP !JCO RETURN structure from SAP
Hello,
I am working on my intern project and I got some trouble.
I have used JDBC to access a table in Oracle(this is an independent DB)I updated a column in the table and selected all data that
was marked as 6 based on the update(SAP needs this data). I passed the values to a JCO application,
which connects to SAP and send the data (I presume what I'm doing is correct) to a structure in SAP.
SAP does some internal calculations with the data and should return the data back using the same
structure but this time with some changes on the data.
For example the field steuk is marked as 7 if the data processing was successful and if the data
structure wasn't successful a 6 will be return.
The return Values should be updated in the oracle DB indicating if the transfer was successful
or not. And next time the same data will be sent to SAP following the same path.
Now when I look at the return getString data in Eclipse, the result seems ambiguous.I don't see the data I presumably
sent to the SAP structure using:
JCO.ParameterList list = function.getTableParameterList();
JCO.Table ztable = list.getTable("ZSAORA_RUECK");
for (int i = 0; i < 19; i++) {
ztable.appendRow();
ztable.setValue(value,field name);
Am I doing some thing wrong here??? Any Help will be highly appreciated. Codes could be sent to [email protected]
BELOW are the codes:
CONNECTING TO test_table in Oracle DB:
import java.sql.*;
public class DatabaseConnect {
public static void main(String[] args) {
Connection con = null;
Statement stmt = null;
ResultSet re = null;
String[] ParamArray;
ParamArray = new String[24];
//Properties logon;
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection
("jdbc:oracle:thin:@226.190.0.1:1521:testdb","test","test1");
stmt = con.createStatement ();
stmt.executeUpdate("UPDATE test_table set steuk = 6 WHERE steuk = 5");
ResultSet rs = stmt.executeQuery("SELECT mandt,kokrs,werks,arbpl,aufnr,vornr,ile01,"+
"lsa01,ism01,ile02,lsa02,ism02,ile03,lsa03,ism03,"+
"ile04,lsa04,ism04,steuk,matnr,budat,kostl,pernr,"+
"rueckid FROM test_table where steuk =6");
while (rs.next()) {
for (int i = 1; i <= 24; i++){
ParamArray[i-1] = rs.getString(i);
System.out.print(rs.getString(i) + 't');
System.out.println();
} catch(Exception e) {
e.printStackTrace();
} finally {
try
if(stmt != null) stmt.close();
if(con != null) con.close();
} catch (Exception exception) {
exception.printStackTrace();
// Bapi call
TryBapi sap = new TryBapi(ParamArray);
BELOW IS THE JCO Code which connects to SAP and send data to the structure:
import com.sap.mw.jco.IFunctionTemplate;
import com.sap.mw.jco.JCO;
public class TryBapi extends Object {
JCO.Client mConnection;
JCO.Repository mRepository;
OrderedProperties logonProperties;
public TryBapi(String[] paramArray){
try {
logonProperties = OrderedProperties.load("/logon.properties");
mConnection = JCO.createClient((String)logonProperties.get("jco.client.client"),
(String)logonProperties.get("jco.client.user"),
(String)logonProperties.get("jco.client.passwd"),
null,
(String)logonProperties.get("jco.client.ashost"),
String)logonProperties.get("jco.client.sysnr")
mConnection.connect();
mRepository = new JCO.Repository("SAPJCO",mConnection);
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
JCO.Function function = null;
JCO.Table tab = null;
try {
function = this.createFunction("Z_UPDATE_SAORA_RUECK");
if (function == null) {
System.out.println("Z_UPDATE_SAORA_RUECK not found in SAP.");
System.exit(1);
JCO.ParameterList list = function.getTableParameterList();
JCO.Table ztable = list.getTable("ZSAORA_RUECK"); //inserting 24 records loop.
for (int i = 0; i < 24; i++) {
ztable.appendRow(); //ztable.setValue(value, field name)
ztable.setValue("300","MANDT");
ztable.setValue("KOKRS" + i, "KOKRS");
ztable.setValue("WERKS" + i, "WERKS");
ztable.setValue("ARBPL" + i, "ARBPL");
ztable.setValue("AUFNR" + i, "AUFNR");
ztable.setValue("VORNR" + i, "VORNR");
ztable.setValue("ILE01" + i, "ILE01");
ztable.setValue("LSA01" + i, "LSA01");
ztable.setValue("ISM01" + i, "ISM01");
ztable.setValue("ILE02" + i, "ILE02");
ztable.setValue("LSA02" + i, "LSA02");
ztable.setValue("ISM02" + i, "ISM02");
ztable.setValue("ILE03" + i, "ILE03");
ztable.setValue("LSA03" + i, "LSA03");
ztable.setValue("ISM03" + i, "ISM03");
ztable.setValue("ILE04" + i, "ILE04");
ztable.setValue("LSA04" + i, "LSA04");
ztable.setValue("ISM04" + i, "ISM04");
ztable.setValue("STEUK" + i, "STEUK");
ztable.setValue("MATNR" + i, "MATNR");
ztable.setValue("BUDAT" + i, "BUDAT");
ztable.setValue("KOSTL" + i, "KOSTL");
ztable.setValue("PERNR" + i, "PERNR");
ztable.setValue("RUECKID" + i, "RUECKID");
list.setValue(ztable,"ZSAORA_RUECK");
function.setTableParameterList(list);
mConnection.execute(function);
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
JCO.Table codes = null;
try {
codes = function.getTableParameterList().getTable("ZSAORA_RUECK");
System.out.println("Return Values starts HERE:");
for (int i =0; i < codes.getNumRows(); i++){
codes.setRow(i);
System.out.println(codes.getString("MANDT")+ 't'+
codes.getValue("KOKRS")+ 't'+
codes.getString("WERKS")+ 't'+
codes.getString("ARBPL")+ 't'+
codes.getString("AUFNR")+ 't'+
codes.getString("VORNR")+ 't'+
codes.getString("ILE01")+ 't'+
codes.getString("LSA01")+ 't'+
codes.getString("ISM01")
/* codes.getString("ILE02")+ 't'+
codes.getString("LSA02")+ 't'+
codes.getString("ISM02")+ 't'+
codes.getString("ILE03")+ 't'+
codes.getString("LSA03")+ 't'+
codes.getString("ISM03")+ 't'+
codes.getString("ILE04")+ 't'+
codes.getString("LSA04")+ 't'+
codes.getString("ISM04")+ 't'+
codes.getString("STEUK")+ 't'+
codes.getString("MATNR")+ 't'+
codes.getString("BUDAT")+ 't'+
codes.getString("KOSTL")+ 't'+
codes.getString("PERNR")+ 't'+
codes.getString("RUECKID") */
catch (Exception ex) {
ex.printStackTrace();
System.exit(2);
mConnection.disconnect();
public JCO.Function createFunction(String name) throws Exception {
try {
IFunctionTemplate ft = mRepository.getFunctionTemplate(name.toUpperCase());
if (ft == null)
return null;
return ft.getFunction();
catch (Exception ex) {
throw new Exception("Problem retrieving JCO.Function object.");
Message was edited by: Rudolph Emange
Message was edited by: Rudolph Emange
Hi Astrid,
Thank you for your remarks. The problem I'm having is that when I do send the values to SAP using the loop:
JCO.ParameterList list = function.getTableParameterList();
JCO.Table ztable = list.getTable("ZSAORA_RUECK");
for (int i = 0; i < 19; i++) {
ztable.appendRow();
ztable.setValue(value,field name);
I do expect to have(or see) some values when I do access the same table structure(This is just a structure and
not a real table as I do understand that there is a different between a structure and a table in SAP) and
not the field names back.In the second try and catch block:
try {
codes = function.getTableParameterList().getTable("ZSAORA_RUECK");
System.out.println("Return Values starts HERE:");
for (int i =0; i < codes.getNumRows(); i++){
codes.setRow(i);
System.out.println(codes.getString("MANDT")+ 't'+
codes.getValue("KOKRS")+ 't'+
codes.getString("WERKS")+ 't'+
codes.getString("ARBPL")+ 't'+
codes.getString("AUFNR")+ 't'+
codes.getString("VORNR")+ 't'+
codes.getString("ILE01")+ 't'+
codes.getString("LSA01")+ 't'+
codes.getString("ISM01")
I'm trying to access the values I sent in the first try and catch block. I presume I should see some real values and not the
field names.This is how my output looks like:
300 KOKR WERK ARBPL0 AUFNR0 VORN ILE
300 KOKR WERK ARBPL1 AUFNR1 VORN ILE
300 KOKR WERK ARBPL2 AUFNR2 VORN ILE
300 KOKR WERK ARBPL3 AUFNR3 VORN ILE
300 KOKR WERK ARBPL4 AUFNR4 VORN ILE
300 KOKR WERK ARBPL5 AUFNR5 VORN ILE
This does not reflect the values but the field names. Why is it this way? Does it mean that my array is wrong or I'm not at all
sending the values. Please HELP ME OUT HERE.
Could any one show me a better way how to send the values selected from Oracle table using perhaps an
ARRAY to the ZSAORA_RUECK structure in SAP?
I am trying to send the values from the select statement in the first jdbc application
to the value field in ztable.setValue(value, field name).
My Regards!
Message was edited by: Rudolph Emange
Similar Messages
-
How to access the ORACLE APPS table structures from SAP
Hi Experts,
How to access the ORACLE APPS table structures from SAP? Is it possible from SAP?
Thanks in advance
ThomasHi Silviya,
you can access this database using a technique called DB Multiconnect - sometimes written as multi-connect.
Search the SAP documentation and notes for this term and you will find how to do it.
Essentially you configure the remote database connection via transaction DBCON.
If your SAP system is not running on Oracle you will need to install the db-specific kernel files for Oracle along with the Oracel db client software - SQL*Net.
Then you can access the Oracle database from ABAP using native-SQL. It works a treat!
Cheers
Graham Robbo -
Query and return attributes from SAP R/3
Hi All,
Please help in how to fetch attributes from SAP R/3 and display in IDM.
There is an attribute which will have list of names and id's in SAP R/3 we need to fetch that information from SAP R/3 and display that information in SUN IDM.
We are Using JCO adapter.
Pls help me in this.You can get a list of users on an SAP system with the bapi function "BAPI_USER_GETLIST". I don't see that function used by the resource adapter for SAP. You can write some Java code to call "BAPI_USER_GETLIST" and write a rule to access it.
-
Error when importing IDOC structure from SAP - Control record missing
Hi!
We are hitting problems when importing IDOCs from SAP into the Integration Builder. The import ends successfully but when we drill into the IDOC structure we get a message: <b>Schema for type EDI_DC40.ASN_OUT.DELVRY01.Z1DELVRY (category Data Type) not found</b>. This is only happening for one specific IDOC type only. We have checked all we can think of but cannot get this to work. Any help would be very much appreciated. Of course, points awarded for any good ideas. Thx, DuncanHi Duncan,
Taka a look at these threads which address similar issues:
Error during import of FIPARQ01 Idoc
Error during IDoc Import
Importing idocs:
http://help.sap.com/saphelp_nw04/helpdata/en/2b/a48f3c685bc358e10000000a11405a/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/78/21753251ce11d189570000e829fbbd/content.htm
Hope these help!.
Cheers,
Chandra
Message was edited by: chandravadhana gopalakrishnan -
Help with returning query from loadURL()
I finally came across loadURL() and figured out that I can
use it to invoke my ColdFusion components without page
reloading--very handy!
Now, I need to figure out how to do this to return values
from my components. Has anyone done this and have an example I
could see, or at least point out to me a suggestion of code for
successfully doing this?
Right now, my component looks like this:
<cfcomponent output="no">
<cffunction name="getComments" access="remote"
output="no" returntype="query">
<cfset var rsComments = "">
<cfquery name="rsComments" datasource="xmlTest">
SELECT *
FROM comments
ORDER BY commenter DESC
</cfquery>
<cfreturn rsComments>
</cffunction>
</cfcomponent>
I am trying to use loadURL() as follows:
function myQuery() {
var myDatasetURL = 'xmlTest.cfc?method=getComments';
var req = Spry.Utils.loadURL("GET", myDatasetURL, true);
In Firebug, the "Response" shows a serialized WDDX packet.
I've not really messed with these before, so any help would be
greatly appreciated!
Thanks
JoelYour first mistake was to choose an array. An array has a fixed length, so it's not appropriate for storing a sequence whose length you don't know in advance. You should choose a List instead; an ArrayList would be a reasonable implementation to choose.
Then you just add the Point to the ArrayList. Here's how you declare it:
List<Point> points = new ArrayList<Point>();and here's how you use it in the listener:
points.add(evt.getPoint());Returning anything from the listener to its caller, which is something buried in the GUI hierarchy, would be... um... pointless. -
Returning structure from dll to pl/sql
hi
we have a problem regarding how to return structure of arrays from c dll. It may be possible with oci programing . Is it possible with simple c program using oracle object types or by pl/sql records .
We are having oracle 8i running on windows 2000 server
Thanks,
Zuber
nullOracle9 i JDBC Developers Guide and Reference(page 21-16):
It is not feasible for Oracle JDBC drivers to support calling arguments or return
values of the PL/SQL RECORD, BOOLEAN, or table with non-scalar element types.
However, Oracle JDBC drivers support PL/SQL index-by table of scalar element
types. For a complete description of this, see "Accessing PL/SQL Index-by Tables"
on page 16-21.
As a workaround to PL/SQL RECORD, BOOLEAN, or non-scalar table types, create
wrapper procedures that handle the data as types supported by JDBC. For example,
to wrap a stored procedure that uses PL/SQL booleans, create a stored procedure
that takes a character or number from JDBC and passes it to the original procedure
as BOOLEAN or, for an output parameter, accepts a BOOLEAN argument from the
original procedure and passes it as a CHAR or NUMBER to JDBC. Similarly, to wrap a
stored procedure that uses PL/SQL records, create a stored procedure that handles
a record in its individual components (such as CHAR and NUMBER) or in a structured
object type. To wrap a stored procedure that uses PL/SQL tables, break the data
into components or perhaps use Oracle collection types. -
Download IDOC structure from SAP web Site
HI
to anticipate the SAP ERp upgrade, i would like to download the most up to date Idoc structure (for ADRMAS and DEBMAS) . Instead of download this structure from an SAP Instance , i would like to download it from SAP Web site.
Does anybody already do that ?
How can i proceed
regards
fredHi Siva
Thanks for your input. I Know and i did that from a couple of years , neverthelss, each time you upgarde your system, you have to rewrite your development. My goal is to try to anticipate that by for exemple download the IDOC structure in advance . Let me say IDOC structure used by MySAP ERp 2007 instaed of SAP ERP 4.6. If i can download those STructure i will not be obliged to rewrite my Dev after each upgrade. Do you see what i mean ?
regards
fred -
Hi experts.
I sent request from DEV system to PRD system at OS level but I am facing interesting problem. I sent request at OS level and return code 8, that means with error but if we look same request transporter log at SAP side vi tranzaction SE01, Transporter log show me no error. I did not test with return code 0(zero), 4 or 12 at OS level.
Our OS is SOLARIS 11.2 and Database Oracle 11G and SAP Netweaver 7.40.
Thank for help.Read what you have posted:
Alternatively, you can find these logs in the following files in the
log directory of your transport directory (usually:
/usr/sap/trans/log):
- tp Step 6: P<YY><MM><DD>.<SID>
- tp Step N: N<YY><MM><DD>.<SID>
- tp Step S: DS<YY><MM><DD>.<SID>
Sort the files by date and check the latest one.
Markus -
Need help on returning arrays from C++ to Java
Hi all, I hava a C++ application that contains a method that will return a float array to Java. I was able to write the Java Code, the JNI code to call the C++ method and compile them successfully. However on calling the native method from Java, the data in the array returned was not what I want. Please look through my code and see what is wrong with it.
My Java Code:
public native float[] Statistics(int inputKey); // This is the native method
public float[] Stats(int k){ //Java method to call the native method so that I can use it in a Bean for a JSP.
inputKey = k;
float[] p = new float[4];
p = Statistics(inputKey);
return p;
For this native method, an integer is passed from Java to the native side and the native method will use this integer to generate a float array size of 4 and populate it with data and return it back to Java.
My JNI code
extern "C"
JNIEXPORT jfloatArray JNICALL
Java_com_jspsmart_upload_FinalWaterMark_Statistics(JNIEnv *env, jobject obj, jint inputKey)
jfloatArray floatArray = env->NewFloatArray(4); //This creates a new Java floatArray to store the C++ array
CWatermarker2App p; // This is the C++ class to be used
jfloat *stats = p.OnWatermarkStatistics(inputKey) // The C++ method returns a float pointer for an array of size 4
env->SetFloatArrayRegion(floatArray, 0 , 4 , stats); //storing the C++ float array into the Java float Array
return floatArray; // return the Array to Java
In this example, I should have the data returned as [4952.0 2529.0 1706.0 33.6] in the array.
But i am getting junk instead like 2.53E-23, 1.402E-15 etc..
Is this a type conversion mistake?
Please help!The first thing I notice - probably not the problem - is the line defining p. There is no reason to define this as an array of size 4, because the return from the native method is going to wipe that definition, replacing it with the return value of the native method. Alternatives:
1. float[] p = null.
2. float[] p = Statistics(inputKey);
3. return Statistics(k); -
HELP! RETURN CLOB from External DLL
Hi
I am working on an External DLL using OCI. Basically, PL/SQL
calls an
External DLL to process the data and then returns LOB back to
the PL/SQL
procedure. Inside the DLL, I created a Temporary lob to process
the data.
The error is prompted from PL/SQL:
SQL> exec isdb.test_clob;
Before original length=10
ORA-24805: LOB type mismatch
ORA-06512: at "ISDBSVR.ISDB", line 24
ORA-06512: at "ISDBSVR.ISDB", line 29
ORA-06512: at line 1
So far I know that error is caused by the return from PLS_CLOB
is not clob.
"After_original := PLS_CLOB(before_original); {you will see more
code in the
below}" However inside the DLL, I have defined OCIClobLocator
and
OCI_TEMP_CLOB to carry the CLOB data.
I have found the following observations:
1. If I change everything to blob, it works fine. (such as
OCILobLocator,
OCI_TEMP_CLOB and all variables in PL/SQL)
2. If I run the same DLL and PL/SQL in 9i, it works fine (clob
too)
I guess it would be a bug for clob, please help to check thanks
-- CODE - PL/SQL
CREATE OR REPLACE PACKAGE BODY "ISDBSVR"."ISDB"
as
Function PLS_CLOB(var_clob in clob)
RETURN clob IS
EXTERNAL LIBRARY bb
WITH CONTEXT
NAME "Encrypt_Blob"
LANGUAGE C
PARAMETERS
CONTEXT,
var_clob,
var_clob INDICATOR SB4,
RETURN INDICATOR SB4
PROCEDURE TEST_CLOB IS
before_original cLOB;
After_original cLOB;
CHAR_TO_CLOB varchar(200);
bsize int;
BEGIN
CHAR_TO_CLOB := 'AAAAAAABBBBBBCCCCCCC';
dbms_lob.createtemporary( before_original, TRUE );
DBMS_LOB.write( before_original,10,1,CHAR_TO_CLOB);
bSize := DBMS_LOB.GetLength(before_original);
DBMS_OUTPUT.PUT_LINE('Before original length='||bSize);
After_original := PLS_CLOB(before_original);
bSize := DBMS_LOB.GetLength(After_original);
DBMS_OUTPUT.PUT_LINE('After original length='||bSize);
dbms_lob.freetemporary(before_original);
END;
END ISDB;
/* CODE - DLL */
EXPORT OCILobLocator * EncryptBlob(OCIExtProcContext
*with_context,
OCILobLocator *plaintext2,
sb4 pt_indicator2,
sb4 *ret_indicator
{ FILE *fp;
OCIClobLocator *cipherbb;
ub4 amount;
ocictx oci_ctx;
ocictx *oci_ctxp = &oci_ctx;
status = OCIExtProcGetEnv(with_context,
&oci_ctxp->envhp,
&oci_ctxp->svchp,
&oci_ctxp->errhp);
status = OCIDescriptorAlloc(oci_ctxp->envhp,
(dvoid **) &cipherbb,
(ub4) OCI_DTYPE_LOB,
(size_t) 0,
(dvoid **) 0);
status = (int) OCILobCreateTemporary(oci_ctxp->svchp,
oci_ctxp->errhp, cipherbb,
OCI_DEFAULT,
OCI_DEFAULT,
OCI_TEMP_CLOB, OCI_ATTR_NOCACHE,
OCI_DURATION_SESSION);
amount = 6;
status = OCILobCopy(oci_ctxp->svchp,
oci_ctxp->errhp,
cipherbb,
plaintext2,
amount,
(ub4) 1,
(ub4) 1);
*ret_indicator = OCI_IND_NOTNULL;
OCIDescriptorFree((dvoid *) cipherbb, (ub4) OCI_DTYPE_LOB);
return(cipherbb);In what database version did you observe the problem?
Thomas -
NEED HELP on returning values from a method
Hello Java World,
Does anyone know how to return more then 1 value from a method..
ex.
//the following returns one value
//Person Class
private String getname()
return this.name;
how can i get two values (ex. name and occupation of person)
Thank you in advance.Create a Class which will hold the values you want and return that object. Or return a List, or return an array, or - taking your example with the person, why don't you return the whole person object?
Thomas -
Urgent help in reading data from oracle
Hi All
I was reading the data from an oracle database table through jdbc and storing them in an ArrayList, since there were around 1000 records and performing the action by iterating through the arrayList
But now the record count has gone up to 200000, so i don't want to store them in the ArrayList rather process them one after the other so that i can save the memory of the ArrayList
What are the best ways of achieving this, do i need to use some tools or anything, please let me know?
Any help would be greatly appreciated.
Thanks
DianaReading one record at a time from the database is very very very slow. I suggest keeping it in a large array. Memory is cheap. Read up on 'java -xmx' on how to increase the amount of memory available for java if you think you are running out of memory.
Do you really need all fields in a record and all records?
If still need to process all records, you can fetch a subset of records (say, 10000) and process them, then fetch another subset. Your sql may support fetching a subset but I dont recall the syntax. -
Need Urgent help in passing items from one page to another
Hi
I have a page with item "X" holding a value. The page displays a report in which one of the fields "Devide name" is a link to Interface page. By clicking the link on "Device name" Im passing the value device name to another page and displayes all the interfaces under the device.
But I need to access the variable "X" also in the second page i:e Interface page.
Can somebody help me on this?
~roseThe problem is is P29_IV_SERVERS is defined in page 29 and Im using
UPDATE PROVISION_IV
SET PROVISION_STATE_ID = 2,SERVER_ID = :P29_IV_SERVERSin page 50. That was my initial issue. As suugested I used the '&' and its throwinf error..
Here is my complete code.
DECLARE
LATEST_TASK_ID Number;
TASK_NAME_IV varchar2(50);
--TASK_NAME_ISM varchar2(50);
SELECT_FLAG_IV Number:=1;
--SELECT_FLAG_ISM Number:=1;
DS_COUNT_IV Number;
--DS_COUNT_ISM Number;
DS_ID_IV Number;
--SELECT_FLAG_IV:=1;
--SELECT_FLAG_ISM:=1;
BEGIN
FOR i in 1..APEX_APPLICATION.G_F10.count
LOOP
UPDATE PROVISION_IV
SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = :P29_IV_SERVERS
--SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = 2
WHERE
TERMINATION_ID=APEX_APPLICATION.G_F10(i);
SELECT DELIVERED_SERVICE_ID INTO DS_ID_IV FROM DELIVERED_SERVICE
WHERE DELIVERED_SERVICE_NAME=APEX_APPLICATION.G_F11(i);
SELECT COUNT(*) INTO DS_COUNT_IV FROM DELIVERED_SERVICE_MAPPING
WHERE TERMINATION_ID=APEX_APPLICATION.G_F10(i);
IF DS_COUNT_IV=0 THEN
INSERT INTO DELIVERED_SERVICE_MAPPING
(ID,
CUSTOMER_ID,
EQUIPMENT_ID,
TERMINATION_ID,
DELIVERED_SERVICE_ID,
LAST_MODIFIED_BY,
LAST_MODIFIED_ON)
VALUES
(DELIVERED_SERVICE_SEQ.nextval,
NULL,
NULL,
APEX_APPLICATION.G_F10(i),
DS_ID_IV,
:APP_USER,
sysdate);
SELECT_FLAG_IV:=0;
ELSE
UPDATE DELIVERED_SERVICE_MAPPING SET DELIVERED_SERVICE_ID = DS_ID_IV,
LAST_MODIFIED_BY = :APP_USER,
LAST_MODIFIED_ON = sysdate
WHERE TERMINATION_ID = APEX_APPLICATION.G_F11(i);
SELECT_FLAG_IV:=0;
END IF;
END LOOP;
IF SELECT_FLAG_IV=0 THEN
IF :P29_CHECK_TASK_NAME_IV=1 THEN
IF :P29_TASK_NAME_IV is NULL THEN
TASK_NAME_IV:=:APP_USER||'_INTERFACE PROVISIONING_'||SYSDATE;
INSERT INTO TASKS
(TASK_ID,
TASK_NAME,
CREATED_BY,
CREATED_ON,
TASK_ACTION,
TASK_STATE_ID,
SERVER_ID)
VALUES
(TASK_ID_SEQ.nextval,
TASK_NAME_IV,
:APP_USER,
sysdate,
5,
1,
2);
ELSE
INSERT INTO TASKS
(TASK_ID,
TASK_NAME,
CREATED_BY,
CREATED_ON,
TASK_ACTION,
TASK_STATE_ID,
SERVER_ID)
VALUES
(TASK_ID_SEQ.nextval,
:P29_P50_TASKNAME,
:APP_USER,
sysdate,
5,
1,
2);
END IF;
SELECT max(TASK_ID) INTO LATEST_TASK_ID from TASKS where CREATED_BY=:APP_USER;
FOR i in 1..APEX_APPLICATION.G_F01.count
LOOP
INSERT INTO TASK_DETAILS
(TASK_DETAILS_ID,
EQUIPMENT_ID,
TERMINATION_ID,
TASK_ID)
VALUES
(task_detail_seq.nextval,
:P29_TO_INTERFACEPAGE,
APEX_APPLICATION.G_F10(i),
LATEST_TASK_ID);
END LOOP;
END IF;
END IF;
END;I have the variables P29_CHECK_TASK_NAME_IV, P29_TASK_NAME_IV and P29_IV_SERVERS defined in page 29.
But the above query is written in page 50, so I want to access the value of these variables as set in pahe 29.. :-( -
Urgent HELP needed: Problems transfer from Bold 9900 to Z10
Dear helpdesk,
I've just received my new Z10 and want to transfer all data from my old 9900.
Using Link software seems to work fine.... until the copying from the 9900 is almost finished. Then I get the message "Data could not be copied from your device due to the following errors: There could have been a problem with the device or communication during the backup. Verify that the device is tuned on and connected".
Surely that IS the case.... I've already removed the old BB Desktop SW and reinstalled the Link SW.
Without success unfortunately.
What do I do wrong/do I need to do to get my files copied to the Z10?
I am also wondering what would happen to the memos which I made using the 9900's MemoPad?
Thanks for your swift help!
Marnix KerkhoffHello MarnixKerkhoff,
Welcome to the BlackBerry Support Forums.
Reinstall BlackBerry Desktop Software and try to backup the data from your BlackBerry® Bold™ 9900 smartphone. Does the data backup successfully?
The BlackBerry MemoPad data will be transferred to the Remember application on the BlackBerry® Z10 smartphone.
Please let us know how you make out.
-RoundBrown
Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
Be sure to click Like! for those who have helped you.
Click Accept as Solution for posts that have solved your issue(s)! -
URGENT HELP- opening a file from servlet
I posted this message in other forum by mistake. Please help me. Wish I could award you 1000 duke dollers if had. It would be great help if somebody can help me out.Thanks
http://forum.java.sun.com/thread.jsp?forum=12&thread=383418&tstart=0&trange=15Thanks.
When I do that, it is disabling the radio button which allows the user to open it from the browser anyway I could solve the problem using the following code. Thanks for your response. I appreciate it.
res.reset();
res.resetBuffer();
res.setContentType("text/plain");
// res.setHeader("Content-Disposition","inline; filename=" +urlPdf );
res.setHeader("Content-disposition","attachment; filename" +urlPdf );
res.setHeader("Cache-Control","no-cache"); //HTTP 1.1
res.setHeader("Pragma","no-cache"); //HTTP 1.0
res.setDateHeader ("Expires", 0); //prevents caching at the proxy server
res.setHeader("Cache-Control","no-store"); //HTTP 1.1Thanks
-Sreekanth Varidhireddy
Maybe you are looking for
-
Can no longer play individual tracks within a Podcast on iTunes 11
I have a good amount of podcasts that I subscribe to where there are tracks within the podcast. On my iPhone I can skip from track to track, and before upgrading to iTunes 11, I could do it in iTunes as well - basically would click the album artwork,
-
Change the PYP's statistical WBS element
Hello; We use the SAP PS module. I create the PYP and PYP's statistical WBS element (XSTAT) set the true. I need the change PYP's statistical WBS element and set the false. But PYP's statistical WBS element read only on the screen. How is change PYP
-
DISTINCT operator performance issue
Hi Guyz, I am facing a performance issue in a query which contains DISTINCT function. Following is my query: SELECT /*+ ORDERED USE_NL_WITH_INDEX(c DIMENSION_KEY_PK) */ DISTINCT f.*,c.client_ids FROM FACT_TAB f, DIM_TAB c WHER
-
Permission to create keywords?
Permission to create keywords? Hi. We're currently on 2006.0.6. I'm trying to give a user access to create and manage keywords without giving them complete administrative access to RC. I tried adding the user to the group "Manage and organize por
-
Can you tell within the form with javascript if the file has reader rights.
Hi I have an issue where I need to know at runtime if the current file has reader rights so that a link will directed them to one place or another. I was hoping with javascript I could check if the form has reader rights or the file name will be diff