Getting Empty Values in Out Parameters of PLSQL procedure after invoking DB
Hi,
I have written one simple procedure which takes item_no and returns its unit price and error message.
After invoking the Data Base Adaptor with the the procedure call, I can see the out parameter values in XML file, but if try to assign the value to the Global Variable it assigns a null value.
Why its giving Null value for Outparameters of Procedure call, and even I can see the values in XML file of DabaseAdaptor call.
Please provide a solution to restore values of Outparameters.
Even values are not populated using File Adaptor through Transformation.
Thanks !!!
Rajesh.
Edited by: user11977156 on May 10, 2010 4:33 PM
Edited by: user11977156 on May 11, 2010 12:12 AM
Required Code:
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Tue May 11 14:55:55 IST 2010
Author: rsavant
Purpose: Asynchronous BPEL Process
-->
<process name="Xx1GetItemPrice"
targetNamespace="http://xmlns.oracle.com/Xx1GetItemPrice"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:client="http://xmlns.oracle.com/Xx1GetItemPrice"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/svcGetItemPrice/"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XXSAVANT_GET_ITEM_PRICE/"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="client" partnerLinkType="client:Xx1GetItemPrice"
myRole="Xx1GetItemPriceProvider"
partnerRole="Xx1GetItemPriceRequester"/>
<partnerLink name="svcGetItemPrice" partnerRole="svcGetItemPrice_role"
partnerLinkType="ns1:svcGetItemPrice_plt"/>
</partnerLinks>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable"
messageType="client:Xx1GetItemPriceRequestMessage"/>
<!-- Reference to the message that will be sent back to the requester during callback -->
<variable name="outputVariable"
messageType="client:Xx1GetItemPriceResponseMessage"/>
<variable name="p_item_no" messageType="ns1:args_in_msg"/>
<variable name="outParameters" messageType="ns1:args_out_msg"/>
<variable name="tempOutParameters"
element="client:Xx1GetItemPriceProcessResponse"/>
</variables>
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<!-- Receive input from requestor. (Note: This maps to operation defined in Xx1GetItemPrice.wsdl) -->
<receive name="receiveInput" partnerLink="client"
portType="client:Xx1GetItemPrice" operation="initiate"
variable="inputVariable" createInstance="yes"/>
<!--
Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
-->
<assign name="Input">
<copy>
<from variable="inputVariable" part="payload"
query="/client:Xx1GetItemPriceProcessRequest/client:input"/>
<to variable="p_item_no" part="InputParameters"
query="/ns2:InputParameters/ns2:P_ITEM_NO"/>
</copy>
</assign>
<invoke name="invkCallGetItemPrice" partnerLink="svcGetItemPrice"
portType="ns1:svcGetItemPrice_ptt" operation="svcGetItemPrice"
inputVariable="p_item_no" outputVariable="outParameters"/>
<assign name="Output">
<copy>
<from expression="string(bpws:getVariableData('outParameters','OutputParameters','/ns2:OutputParameters/ns2:P_UNIT_PRICE'))"/>
<to variable="outputVariable" part="payload"
query="/client:Xx1GetItemPriceProcessResponse/client:result"/>
</copy>
</assign>
<invoke name="callbackClient" partnerLink="client"
portType="client:Xx1GetItemPriceCallback" operation="onResult"
inputVariable="outputVariable"/>
</sequence>
</process>
Similar Messages
-
I am facing a problem in passing multiple values as out parameters from fo
Hi All,
i am facing a problem in passing multiple values as out parameters from for loop.
EX:
i have a select statment inside a loop like.....
PACKAGE SPEC:
create or replace PACKAGE EMP_PKG AS
TYPE TAB_NUM IS TABLE OF SCOTT.EMP.EMPNO%TYPE;
TYPE TAB_NAME IS TABLE OF SCOTT.EMP.ENAME%TYPE;
TYPE TAB_JOB IS TABLE OF SCOTT.EMP.JOB%TYPE;
temp_table TAB_NUM;
procedure test(temp_TAB_e_no OUT TAB_NUM,
temp_TAB_e_name OUT TAB_NAME,
temp_TAB_e_job OUT TAB_JOB);
END EMP_PKG;
PACKAGE BODY:
create or replace PACKAGE BODY EMP_PKG AS
v_e_no NUMBER;
procedure test(temp_TAB_e_no OUT TAB_NUM,
temp_TAB_e_name OUT TAB_NAME,
temp_TAB_e_job OUT TAB_JOB) IS
BEGIN
select EMPNO bulk collect into temp_table from emp;
for i in 1..temp_table.count loop
v_e_no := temp_table(i);
select empno,
ename,
job
into temp_TAB_e_no(i),
temp_TAB_e_name(i),
temp_TAB_e_job(i)
from emp
where empno = v_e_no;
end loop;
end test;
END EMP_PKG;
PROBLEM FACING IS:
I am expecting all rows returning from bellow select statment ...
select empno,
ename,
job
into temp_TAB_e_no(i),
temp_TAB_e_name(i),
temp_TAB_e_job(i)
from emp
where empno = v_e_no;
But,while running the SP , i am getting error like
ORA-06531: Reference to uninitialized collection
ORA-06512: at "SCOTT.EMP_PKG", line 16
why i am not getting all values as out parameters.please provide a solution for me.
Thanks in advance my friend.user9041629 wrote:
Hi All,
i am facing a problem in passing multiple values as out parameters from for loop.
EX:
i have a select statment inside a loop like.....
PACKAGE SPEC:
create or replace PACKAGE EMP_PKG AS
TYPE TAB_NUM IS TABLE OF SCOTT.EMP.EMPNO%TYPE;
TYPE TAB_NAME IS TABLE OF SCOTT.EMP.ENAME%TYPE;
TYPE TAB_JOB IS TABLE OF SCOTT.EMP.JOB%TYPE;
temp_table TAB_NUM;
procedure test(temp_TAB_e_no OUT TAB_NUM,
temp_TAB_e_name OUT TAB_NAME,
temp_TAB_e_job OUT TAB_JOB);
END EMP_PKG;
PACKAGE BODY:
create or replace PACKAGE BODY EMP_PKG AS
v_e_no NUMBER;
procedure test(temp_TAB_e_no OUT TAB_NUM,
temp_TAB_e_name OUT TAB_NAME,
temp_TAB_e_job OUT TAB_JOB) IS
BEGIN
select EMPNO bulk collect into temp_table from emp;
for i in 1..temp_table.count loop
v_e_no := temp_table(i);
select empno,
ename,
job
into temp_TAB_e_no(i),
temp_TAB_e_name(i),
temp_TAB_e_job(i)
from emp
where empno = v_e_no;
end loop;
end test;
END EMP_PKG;
PROBLEM FACING IS:
I am expecting all rows returning from bellow select statment ...
select empno,
ename,
job
into temp_TAB_e_no(i),
temp_TAB_e_name(i),
temp_TAB_e_job(i)
from emp
where empno = v_e_no;
But,while running the SP , i am getting error like
ORA-06531: Reference to uninitialized collection
ORA-06512: at "SCOTT.EMP_PKG", line 16
why i am not getting all values as out parameters.please provide a solution for me.
Thanks in advance my friend.Probably not a bad thing that this isn't working for you.
This is a horrible way to return the contents of a table.
Are you doing this for educational purpose, or ... what is your goal here? If you just want to return a result set to a client you'd want to look in to using a REF CURSOR and not a bunch of arrays combined with horribly procedural (slow) code. -
IN OUT parameters in Stored Procedures
can anybody explain in detail what is in and out parameters in oracle stored procedures.
thanks in advanceIN is used to specify parameters that are input to the stored procedures. OUT is used to specify parameters that can be returned from the stored procedures.
Please don't get confused with procdures returning value.. You don't need to write a return statement.. just assigning the values to OUT parameters is good ebnough to retireve there values outside stored procedures.
Hope it helps. -
Problem with IN OUT parameters whiloe calling procedure from Form 6i
Hi
Could some help please? I have the following scenario.
I am calling a stored procedure from form 6i by pressing a button on the form. Procedure has two IN OUT parameters, and I am passing these two IN OUT parameters and have declared them the way they are declared passed to the procedure. But I get an error when calling that procedure with these IN OUT parameters. the procedure works fine if parameters are IN only. The error says:
PLS:00363: Expression '1' cannot be used as an assigment target.
NO matter I pass some value or leave it blank, I get the same error message persistenetly.
Please help.
Thanksmake sure you are calling your procedure with variables as parameters,
i.e.
l_v1 := 1 ;
l_v2 := 'hello world' ;
your_proc(l_v1, l_v2)
not
your_proc(1,'hello world') -
PLSQL Procedure to invoke WebService
Hi,
We have a requirement to invoke a webservice(ESB\BPEL) using PLSQL Procedure.
we are trying to invoke service by getting details of service from a table like WSDL path, SOA Envelope and operation type.
If anybody has worked on the same requirements, please let us know ASAP.
With Regards,
Thanks
Message was edited by:
SOA Teamwe did some tests last week and we came up with this (I hope it helps) we are 10g so utl_dbws was already installed
function our_calculator(p_operator in varchar2,p_operand_1 in number,p_operand_2 in number)
return number as
the_service sys.utl_dbws.service;
the_call sys.utl_dbws.call;
the_url constant varchar2(256) := 'http://.../demo/soap/calculator_server.wsdl';
service_name constant sys.utl_dbws.qname := sys.utl_dbws.to_qname(null,'calculator_serverService');
operation_name constant sys.utl_dbws.qname := sys.utl_dbws.to_qname(null,'calculator_server');
input_params sys.xmltype;
the_result sys.xmltype;
begin
the_service := sys.utl_dbws.create_service(urifactory.geturi(the_url),service_name);
the_call := sys.utl_dbws.create_call(the_service,null,operation_name);
sys.utl_dbws.set_property(the_call,'OPERATION_STYLE','document');
input_params := sys.xmltype('<calculator xmlns="' || the_url || '">
<op>'||p_operator||'</op>
<p1>'||to_char(p_operand_1,'999999999.99')||'</p1>
<p2>'||to_char(p_operand_2,'999999999.99')||'</p2>
</calculator>');
the_result := sys.utl_dbws.invoke(the_call,input_params);
the_result := the_result.extract('//n:ret/text()','xmlns:n="' || the_url || '"');
sys.utl_dbws.release_call(the_call);
sys.utl_dbws.release_service(the_service);
return to_number(the_result.getstringval(),'999999999.99');
end;
[pre]
Regards
Etbin -
How to get one of specfic out parameters in groovy
hi groups,
jdev 11.1.1.5.0 - adfbc
here i learned from Jabr how to get the two out - parameter values which used in procedure.
How to get two out param which is used in Procedure
ok fine. that part is well enough.
by normally,
if the function/ procedure which is defined in AM. which i want to call in groovy ,means i used the following
adf.object.applicationModule.FuncFindEmployeeDescription(params)above groovy is for
if the function or procedure which will return one parameters means ok.
here my scenario i want call the procedure which is defined in AM. the procedure will return two out params values. i need only first value.
how can i do this.?
reference: in this thread you can the procedure with two out params
How to get two out param which is used in Procedurethis is to subu123.
oh ho. :(
this is to santos
thanks santosh as you said i tried.
public HashMap ProcFindProdQueryDesc( String p_bu,
String p_prod_id,
Number p_prod_rev
CallableStatement st = null;
try{
String sql = "begin proc_find_prod_query_desc" +
"(:p_bu," +
":p_prod_id," +
":p_prod_rev," +
":p_desc1," +
":p_desc2," +
":var_lang)" +
";" +
"end;";
st=getDBTransaction().createCallableStatement(sql,this.getDBTransaction().DEFAULT);
st.setObject("p_bu",p_bu);
st.setObject("p_prod_id",p_prod_id);
st.setObject("p_prod_rev",p_prod_rev);
st.registerOutParameter("p_desc1",Types.VARCHAR);
st.registerOutParameter("p_desc2",Types.VARCHAR);
st.setInt("var_lang",1);
st.execute();
System.out.println("p_desc1" +(String)st.getObject("p_desc1"));
System.out.println("p_desc2" +(String)st.getObject("p_desc2"));
HashMap map = new HashMap();
map.put("p_desc1", (String)st.getObject("p_desc1"));
map.put("p_desc2", (String)st.getObject("p_desc2"));
return map;
catch(SQLException e)
throw new JboException(e);
finally
if(st!=null)
try{
st.close();
catch(SQLException e){
e.printStackTrace();
throw new JboException (e);}
if(PscdProdId != null)
adf.object.applicationModule.ProcFindProdQueryDesc(PscdBu,PscdProdId,PscdProdRev).p_desc1;
[1823] DCBindingContainer.reportException :oracle.jbo.JboException
[1824] oracle.jbo.JboException: JBO-29000: Unexpected exception caught: groovy.lang.MissingMethodException, msg=No signature of method: com.rits.suplr.model.servicesAM.xImpl.ProcFindProdQueryDesc() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.Long) values: [MEL, BU01, 0]
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1226)
at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1261)
at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1083)
at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2141)
at oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1835)
at oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:1897)
at oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:840)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl.getItemDesc(ProdScoreCardDetlVORowImpl.java:519)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl$AttributesEnum$16.get(ProdScoreCardDetlVORowImpl.java:181)
at com.rits.suplr.model.views.ProdScoreCardDetlVORowImpl.getAttrInvokeAccessor(ProdScoreCardDetlVORowImpl.java:555)
at oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:870)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGetAttributeValueFromRow(JUCtrlValueBinding.java:1157)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:751)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:779)
at oracle.jbo.uicli.binding.JUCtrlAttrsBinding.updateValuesFromRow(JUCtrlAttrsBinding.java:145)
at oracle.jbo.uicli.jui.JULabelBinding.updateValuesFromRow(JULabelBinding.java:114)
at oracle.jbo.uicli.binding.JUIteratorBinding.updateValuesFromRows(JUIteratorBinding.java:338)
at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:838)
at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:679)
at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:474)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4437)
at oracle.adf.model.binding.DCBindingContainer.refreshExecutables(DCBindingContainer.java:3507)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3340)
at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:2906)
at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:120)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
at oracle.jbo.jbotester.tree.Tree.processTreeMouseClicked(Tree.java:728)
at oracle.jbo.jbotester.tree.Tree.access$100(Tree.java:96)
at oracle.jbo.jbotester.tree.Tree$TreeMouseListener.mouseClicked(Tree.java:141)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
at java.awt.Component.processMouseEvent(Component.java:6292)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6054)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4652)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4482)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:617)
at java.awt.EventQueue$2.run(EventQueue.java:615)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: groovy.lang.MissingMethodException: No signature of method: com.rits.suplr.model.servicesAM.SupplierAMImpl.ProcFindProdQueryDesc() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.Long) values: [MEL, BU01, 0]
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at bc4j.com_rits_suplr_model_views_ProdScoreCardDetlVO_ItemDesc_null.gs.run(bc4j.com_rits_suplr_model_views_ProdScoreCardDetlVO_ItemDesc_null.gs.groovy:3)
at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:1208)
... 73 more
## Detail 0 ##i didnot know why it's expecting signature of that method defined in AM .
it's already there. Anything special with groovy while accessing. -
Oralce Store Procedure not returning values in out parameters
I am goig to execute an oracle store procedure using C# through through ODP.NET. The store procedure executes succsfully but it does not return any value in the out parameter.
When I execute the same store procedure with the same input parameteres from within SQL*Plus. It does return values.
This is to be clearify here that in the oracle store procedure the data type for the out parameter is number and in the c# the variavle that will hold its value is Integer. I also tried using Long on the C# side but it is still not working. After the successfull execution of the store procedure the C# variable contains nulll value.I am goig to execute an oracle store procedure using C# through through ODP.NET. The store procedure executes succsfully but it does not return any value in the out parameter.
When I execute the same store procedure with the same input parameteres from within SQL*Plus. It does return values.
This is to be clearify here that in the oracle store procedure the data type for the out parameter is number and in the c# the variavle that will hold its value is Integer. I also tried using Long on the C# side but it is still not working. After the successfull execution of the store procedure the C# variable contains nulll value. -
Getting empty values for Quantity and UOM in CCA Retraction from BW to ECC
Hi,
We are retracting the Project data from BW to ECC following the
SAP Network Bolg : BPS Retraction for Cost Center Accounting by Praveen Mayalur.
I am using the following settings:
<u>
<b>Function Modules:</b></u>
UPR_COST_PLAN_EXEC
UPR_COST_PLAN_INIT
<u><b> Parameter Exit Functions:</b></u>
BUSI I_BUSI
CASE I_CASE
DELTA DEL_BOOK
MAPP KCD_REPID
RFC_DEST RFCDEST
TEST TST_X
VERSR3 I_VERS
WAIT I_WAIT
ZARE I_COAR
ZELM I_CELM
ZTYP I_CTYP
<u><b> <b>parameter group</b>.</b></u>
Retr. R/3 Comp. 9
Retractor Control 4
Delta Update 1
Sender str. UPB_SND_COPS
Destination ED1CLNT300
Test mode Is Active 0
R/3 Version
Wait for Update
Controlling Area 01
Cost Element 02
CElem category 03
In the UPBR_Rule we have put 0AMOCC and 0QUANTITY in the Formula.
After successful completion of retraction, we were able to get all the values to ECC except Quantity and Unit Of Measure.
Please let me know if any other settings are to be made.
Thanks you in advance.
Srini.Dear Lokesh,
Sorry for the confusion.
Please note that the retraction is for Project Systems. The Retraction is done to CO Planning table COSP.
Thank you.
Srini. -
Using OUT Parameters from a Procedure in APEX
Dear All,
Is it possible to create a Process where I can execute a database procedure like:
begin
set_details (:P1_ITEM1, :P1_ITEM2, :P1_ITEM3, :P1_ITEM4);
end;The specification of the above function is like
set_details (:P1_IN1 IN NUMBER,
:P1_OUT1 OUT NUMBER.
:P1_OUT2 OUT VARCHAR2,
:P1_OUT3 OUT DATE);Thanks & Regards
Arif KhadasHi,
Ok,
Try
declare
l_p_2 NUMBER;
l_p_3 VARCHAR2;
l_p_4 DATE;
begin
set_details (:P1_ITEM1, l_p_2, l_p_3, l_p_4);
:P1_ITEM2 := l_p_2;
:P1_ITEM3 := l_p_3;
:P1_ITEM4 := l_p_4;
end;And make sure you do not have process or branch that clear cache
Regards,
Jari
Edited by: jarola on Apr 12, 2011 12:19 PM -
How do I get my iPhone 3GS out of the boot loop after updating to 6.1.2?
I've tried to restore my phone with a pre-downloaded ispw file. However, as I try to use the restore file, my iPhone simply restarts its self, cancelling the update completely. What do I do? Please help!!!!
http://support.apple.com/kb/TS3694#error3194
Unable to contact the iOS software update server gs.apple.com
Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
Install the latest version of iTunes.
Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
Try to restore from another known-good computer and network.
If the errors persist on another computer, the device may need service. -
Database procedure with IN/OUT parameters
Hi,
I have a procedure with multiple OUT parameters,
but I do not know how to get the values of these out parameters in the calling procedure.
What I mean is I can simply get the value of a function from a calling procedure as:-
declare
val1 number;
begin
val1 := func_get_num;
end;
How can I get the values of OUT parameters of a procedure in a similar way?like
SQL> var ename_v varchar2(30);
SQL> var empno_v number;
SQL> create or replace procedure get_employee(empno out number, ename out varchar)
2 as
3 begin
4 select empno, ename into empno, ename from emp where rownum <=1;
5 end;
6 /
Procedure created.
Elapsed: 00:00:00.51
SQL> exec get_employee(:empno_v, :ename_v);
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.12
SQL> print empno_v
EMPNO_V
666
SQL> print ename_v;
ENAME_V
fdddfdf1
SQL> -
No value for given parameters error when using command parameters in RDC.
I am trying to create a report using RDC with a parameter in the query, but I keep getting "No value for given parameters" error. Here is the code I use:
Dim creport As CRAXDDRT.Report
Dim appn As CRAXDDRT.Application
Dim datcmd1 As New ADODB.Command
Dim adocn As New ADODB.Connection
Dim sqltext As String
Dim x As CRAXDDRT.ParameterFieldDefinition
Set appn = New CRAXDDRT.Application
Set creport = appn.NewReport
Set x = creport.ParameterFields.Add("test", 2)
x.AddCurrentValue 0
sqltext = "SELECT Name FROM TestTable WHERE ID={?test}"
Set adocn = New ADODB.Connection
adocn.Open "Provider=SQLOLEDB;Data Source=myDB;UID=xxx;PWD=xxx;"
Set datcmd1 = New ADODB.Command
Set datcmd1.ActiveConnection = adocn
datcmd1.CommandText = sqltext
creport.Database.AddADOCommand adocn, datcmd1
creport.SaveAs "test", crDefaultFileFormat
Set datcmd1 = Nothing
Set adocn = Nothing
Set creport = Nothing
Set appn = NothingHello, Paul;
If you add your database connection to the command object and put fields on your report without the parameter, do you get the report you expect?
These are version 8/8.5 samples but the code is the same:
[Note 1|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
[Note 2|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
Once you have added the database connection follow that with the parameter code.
[Note 3|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
[Note 4|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
If you add the parameter and put the field on the report, can you pass the value successfully?
Elaine -
Few Projectproperty and Listproperty fields returning empty values (CrossListQueryInfo)
I am running a CrossListQueryInfo and the ViewFields for the CAML includes
<ProjectProperty Name="Title"/>
<ProjectProperty Name="Url"/>
<ListProperty Name="Title"/>
<ListProperty Name="DefaultViewUrl"/>
I am getting empty values for Url and DefaultViewUrl, although it is returning Titles correctly. Is this some limitation or I am missing something?I Feel I have to say this... Just a thought: have you received legal
advice on whether the "data sent by email is not secure" disclaimer
would hold up? I'd recommand also checking with your merchant account
provider. Your form could be argued as leading the user into
irresponsible use of their card.
Aandi Inston -
Memory leak in "get property value (string)" ?
Hi,
I'm not sure which forum to post this to because it involves a combination of labview and teststand. The error I'm getting is more teststand related so it is here.
In our application, we have a labview queued state machine launched by a teststand step using "launch vi asynchronously". In one of the states of this state machine, we are looping grabbing frames from a camera, querying a teststand using "get property value (string)", to overylay on the video on each frame. This is so when we post process the video, we can tell what step(s) teststand was performing (we are writing a status string to a property from teststand as well). Since this string has to be overlayed on the video for each frame to be visible when played back, this happens many many thousands of times over the multi hour test runs of the platform.
My problem is, after 22 hours or so of running, I get an error generated from the "get property value (string)", saying cannot create any more threads. The only thing wired to this tool in our vi is sequence context, which is passed in when the vi is launched from teststand. When opening the "get property value (string)" vi itself, it is very simple, consisting of a "aspropertyvalue" casting, reading of the string from the proprety, closing the aspropertyvalue reference, and exiting. It does not seem like there should be any "threads" being created here, except for perhaps the vi itself executing. But in that case I would assume the OS itself would clean up after itself.
BTW, the OS I am testing on is win7 x64. I did see this though running on our xp box once as well though, same amount of time. It is very repeatable. My next plan is to disable this get property value using a disable case, and run again, but I"m still wondering why this error is occurring. Any help or insight will be appreciated.
Thanks
David Jenkinson
Hi,I'm not sure which forum to post this to because it involves a combination of labview and teststand. The error I'm getting is more teststand related so it is here.
In our application, we have a labview queued state machine launched by a teststand step using "launch vi asynchronously". In one of the states of this state machine, we are looping grabbing frames from a camera, querying a teststand using "get property value (string)", to overylay on the video on each frame. This is so when we post process the video, we can tell what step(s) teststand was performing (we are writing a status string to a property from teststand as well). Since this string has to be overlayed on the video for each frame to be visible when played back, this happens many many thousands of times over the multi hour test runs of the platform. My problem is, after 22 hours or so of running, I get an error generated from the "get property value (string)", saying cannot create any more threads. The only thing wired to this tool in our vi is sequence context, which is passed in when the vi is launched from teststand. When opening the "get property value (string)" vi itself, it is very simple, consisting of a "aspropertyvalue" casting, reading of the string from the proprety, closing the aspropertyvalue reference, and exiting. It does not seem like there should be any "threads" being created here, except for perhaps the vi itself executing. There seems to be something going on behind the scenes of this get property value tool that isn't cleaning up after itself?
BTW, the OS I am testing on is win7 x64. I did see this though running on our xp box once as well though, same amount of time. It is very repeatable. My next plan is to disable this get property value using a disable case, and run again, but I"m still wondering why this error is occurring. Any help or insight will be appreciated.
Thanks
David JenkinsonHi David,
Have you tried just using property node | Method Nodes instead of using the VI. There should be no difference but I think that VI is polymorphic ie the input with change depending on what's wired to it eg string, double etc.
Regards
Ray Farmer -
Plsql procedure containing select statement to fill page items
I would like to fill items :P200_A and :P200_B and so on
with the result of a SELECT which depends on the different values of many select lists.
E.G. :P200_list_alpha with the list of values
STATIC:less than 10;less,equal than 10;equal,above 10;above,indifferent;indiff
:P200_list_beta with the list of values
STATIC:active;active,passiv;passiv,excluded;excluded
How do I write the select statement ? I think it has to be executed in an anonymous PLSQL Procedure (after submit).
What is a convenient way to write the select statement ?
I could imagine to use lots of IF , ELSIF, ELSE statements and in each branch (here 12 ) the whole/complet SELECT statement is written.
How to solve this problem in an elegant way ?
In my opinion the CASE statement could be helpful, but how to use it in the WHERE clause with this nested conditions ?I think I got it:
SELECT col1, col2, col3, ...
INTO :P200_A , :P200_B , ....
FROM mytable_1, mytable_2
WHERE mytable_1.col1 = mytable_2.col1
AND (
CASE
WHEN :P200_LIST_ALPHA = 'less' AND NVL(TO_COL_WITH_ALPHA, 0) < 10 THEN 1
WHEN :P200_LIST_ALPHA = 'equal' AND NVL(TO_COL_WITH_ALPHA, 0) = 10 THEN 1
WHEN :P200_LIST_ALPHA = 'above' AND NVL(TO_COL_WITH_ALPHA, 0) > 10 THEN 1
WHEN :P200_LIST_ALPHA = 'indiff' THEN 1
ELSE 0
END = 1 )
AND
( CASE
WHEN :P200_LIST_BETA = 'active' AND TO_COL_WITH_BETA IN ( 'a', 'A', 'akt', 'AKT' ) THEN 1
WHEN :P200_LIST_BETA = 'passive' AND TO_COL_WITH_BETA IN ( 'p', 'P' ) THEN 1
WHEN :P200_LIST_BETA = 'excluded' AND TO_COL_WITH_BETA = 'X' THEN 1
ELSE 0
END = 1 )
;Edited by: wucis on Oct 24, 2011 4:09 PM
Maybe you are looking for
-
My Time Machine will no longer find the drive I used to use to backup
For the past few months I have been using a partitioned LaCie 1tb hard drive as a Time Machine back up for my MacBook Air. The drive is plugged into a MacMini that is at my house and whilst at home my MacBook Air is connected via a wifi network and w
-
Ipod Nano not recognized on my computer
My iPod Nano doesn't show up on My Computer or in the ITunes store under devices. A popup recommends reconnecting the device but it does not help. It then says to uninstall and reinstall Itunes. This device used to be recognized on a different pc bu
-
Display xMII Trends and graphs in SAP R/3
Dear all, We have a requirement to see the trends of various production lines from xMII in SAP R/3 itself. Is it possible to have this graph in SAP ? Even if we are able to see the webpage then also it is ok. We are having RFC connection established
-
Adobe Illustrator CS5 crashes upon launch
Hi there, I have just installed the Master Collection and all apps work fine, except for Illustrator that crashes upon launch. I tried cleaning font caches, rebooting, running Onyx, etc. But to no avail. The Master Collection is the Czech version. He
-
Lost connection to mobileme galerie
Today suddenly iphoto lost on one album the connection to mobileme galerie. The content is still on the web, but the ( sync ) folder in iphoto is empty. If i drag a new photo/movie , actually this folder contains movies, to the folder it will upload