Dbms_xslprocessor return node copy
Recently I converted my code from sys.xmldom and sys.xslprocessor packages to xdb.dbms_xmldom and xdb.dbms_xslprocessor packages. And what supprised me is that dbms_xslprocessor.selectSingleNode() returns a copy of the selected node not a reference. My code was able to modify the xml tree before now failed. Is there a fix to this bug? I am using 9.2.0.5 patch. Thanks.
Hi,
Even I tried with variable based indexing
But for me its returing all nodes irrespective of index varible value
Similar Messages
-
Method names on "Client Request with Return" nodes
I wasn't sure whether this question would be better here, or in the "integration"
group. The traffic there is somewhat lighter than in here, so perhaps someone
is more likely to read it here :) .
I have two questions about the "method name" in a "Client Request with Return"
node in a Java Process Definition. Apparently the method name is exposed in the
WSDL. I can sort of understand what this method name is used for in the "request"
node, but I fail to understand what the method name corresponds to in the "reply/response"
node of the pair of two nodes. Why does this need to expose a method name in
the WSDL when the point of the node is just to send back a response to the original
request?
Second, in the "Guide to Building Business Processes" document, in the section
titled "Naming the Methods on Client Request with Return Nodes" (page 3-14 in
my copy), the last sentence says "The name must be a valid Java class name".
Is this true? That confuses me.What do you think is happening here? Specifically if a socket is a connected and a new one comes in. What then?
private void listen() {
try {
clientSocket = serverSocket.accept();
} catch (IOException e) {
e.printStackTrace();
} -
When a Method Returns an Object, does it return a copy or a pointer?
When you have a method that returns an Object, is the Object returning a copy of the Object returned inside
of the Method or is it an Actual pointer to the Object inside of the method's coresponding Object?
so say you have an object ...
Class Something {
JLabel myLabel = new JLable("myLabel");
public JLabel getLabel() {
return myLabel;;
Something something = new Something();
JLable theLabel = something.getLabel()
theLable.setString("theLable");
so when I setString on the Object theLabel , am I going to change the value of myLabel inside of the Object something?Yes, it returns a pointer.
-
When creating a return by copying an order tax and charges are not defaulting?
Hi,
I have created a Return by copying sales order. But tax and charges are not defaulted from original sales order. Please note unit selling price is 0 for this item. I am using 11.5.10.2 version.
Sales Order: 143674
Item: UT1
Quantity: 2
unit selling price: $0
Tax: $0
Charges: $0
Calculated price flag: Freeze Price
But Return created as follows by using copy.
Return Order: 6678
Item: UT1
Quantity: -2
unit selling price: $0
Tax: -$5
Charges: -$20
Calculated price flag: Partial Price
Your help will be highly appreciated.Hi
At sales order form, you select Action > Copy
Change the order type to your "Return transaction type"
Go to Line Tab
Change the line type to Return type, enter return reason.
Save
This creates new RMA order.....this way this should copy the original tax amount.
For the Charges part, check in the modifier definition whether "Include on Returns" is checked in the Discount/Charges TAB.
Thanks
-Arif. -
Returning nodes from procedures
What is the safest way to return nodes?
Have a group of packages which combined create an xmlDocument.
Level 1 calls level 2 1+ times.
Level 2 calls any level 3 1+ times (in any order).
Tried (amongst other alternatives) returning Fragments and
cloning them in to the main document, but after several
successful executions oracle fails to create xml objects.
Only by starting a new session will the procedures work again.
Heres a simplified look at the code.
procedure get_level3Node_001(in_id, out_frag)
procedure get_level3Node_010(in_id, out_frag)
procedure get_level2Node(in_id, out_frag)
procedure get_level1Node()
when a node is returned from a procedure it is handled like this:
-- xmlDoc is the local document in the procedure
-- xmlNode is the active/current Node
-- xmlFrag is returned from another procedure
-- xmlFrag was created from a separate xmlDocument
xmlNode1 := xmldom.makeNode(xmlFrag);
xmlNode2 := xmldom.makeNode(xmlDoc);
xmlNode2 := xmldom.cloneNode(xmlNode1, TRUE);
xmlNode := xmldom.appendChild(xmlNode, xmlNode2);
xmlNode := xmldom.getParentNode(xmlNode);
xmldom.freeDocument(xmldom.getOwnerDocument(xmlNode1));
Really need help fast!Not much help, but I couldn't tell you how to do this using PDO. If however, you want to know how to do it without PDO (i.e. via OCI8 PHP functions directly), let me know and I will post some code...
-
Can't get BAPI return node in web dynpro!!
I'm calling BAPI in web dynpro, I already map the <BAPIName>_Input->Output->Return to our custom controller context. I can get the value of some other output parameters in Output node, but can't get the return node.
wdContext->currentOutputElement is Ok, but wdContext->currentBapiReturnElement is null, what is the problem??!!!
Can anybody give me an hint, or give me a example to access the return value of Bapi??
Thank you very much!
Regards,
Xiaoming YangHi Vitaliano,
Thanks for your reply.
yes, I've call the invalidate method, like this:
wdContext.currentBapi_Trip_Create_From_Data_InputElement().modelObject().execute();
//wdContext.nodeBapireturn().invalidate();//do I need this?
wdContext.nodeOutput().invalidate();
But it still can't work!
The return node is a child note of Output, does it ok?
Thank you! -
Does session or servletContext method return a copy of instance?
does the getAttribute method of session or servletContext method return a copy of instance?
or the reference of an instance?
I believed they return a copy of an instance because we set the instance back to session or context again after we update it.
however, I happened to find that every instance return by getAttribute method has same hashcode. why?Java is pass by value. The same instance is returned, but the reference is different.
-
Hi,
Can anyone please explain what does Return column in Webview mean?
The online help says:
Completed Tasks: Return
The number of tasks of the call type that software routed to Return nodes during the half-hour interval.
Derived from: Call_Type_Half_Hour.ReturnBusyToHalf + Call_Type_Half_Hour.ReturnRingToHalf + Call_Type_Half_Hour.ReturnReleaseToHalf
and the table description in the ICM DB schema says:
--ReturnBusy:
Number of calls of this type that were routed to the Busy target during thereporting interval.
--ReturnRing:
Number of calls of this type that were routed to the Ring target during thereporting interval.
--ReturnRelease:
Count of calls that executed a Release node in their routing script in thereporting interval.
But I still cannot figure out when actually a call is considered as Return?
ThanksThank you Gergely for the reply,
No I am not using them in any of my scripts.
Another thing is in most days the value of Return column is zero, but then comes a day where we find some return calls and I cannot justify those calls since the priority of the Skill Group is 1 "Highest" so the calls are return rather than being answered! -
Create Return Order copy from Billing created from DBM Order Processing
Hi SAP Gurus
I have scenario where the user requested to create return order based on Billing created from DBM Order Processing.
I know that, we can create return order from DBM. but the function copy based on order. the user is requested to do return
by billing document ( function as SD )
is this requirement can be done in SD VA01 where the user can copy the billing created from DBM and create return order using SD functionHi,
in DBM you regulary have mulitiple invoices per order (due to split).
You either can cancel an certain invoice and adapt the order or create a returns order based on an given order where you can select certain (e.g. invoiced) items.
BR -
Dynamic Context Node Copying question
I am trying to dynamically copy some context nodes from my component controller to the view controller. In the source context, I have a node whose "Multiple" property is set to true.
I use the function addMappedChild to copy the attribute info, but the copied node always has "Multiple" set to false!! In the definition of addMappedChild there is no paramter for "Multiple". How do I do this?
Thanks
Walter
public IWDNodeInfo addMappedChild(java.lang.String name,
java.lang.Class elementClass,
boolean singleton,
boolean mandatorySelection,
boolean multipleSelection,
java.lang.String mappedPath,
boolean selectionMapped,
boolean initializeLeadSelection)Are you making like dscribed here
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/dynamically creating, building, and mapping a context in web dynpro.pdf
page 14?
Best Regards, Maxim r. -
Dear Auto wizards,
We are using the standard returns sales order in the VMS. The std copy control for the returns doc (sales order) is based on the (forward) sales order and as per the settings in R3 copy control for the sales order to order.
The error we are facing is expplained as follows:
If multiple vehicles say A & B are selected in a forward order and the returns order is made for the vehicle B then the returns order is picking up the value / pricing details for vehicle A. I tried several instances and realise that the returns ordr is NOT checking the 'item' or its "batch no" at the sr nos in the fwd order but simply copying the pricing values of the fwd order in the SAME sequence and not of relating to the sequence as per the returns order or in other words not picking up the pricing of B which was actually at sr no 2 in the fwd order.
When the vehicles and / or the prices are different, the returns order gives errors.
Any advise on ways to eliminate this would be highly rewarded!!!
Thanks and Regards,
TariqHi S Navaneetha K,
I do agree and understand that there is a possible flaw in the copy control. But I beg to differ that my process could be incorrect. Do review the same, as I elaborate it further.
I would choose 2 units...i.e. 2 batch nos (int veh nos), hence 2 VINs, hence "could be" 2 different vehicles for the SAME customer..OF the SAME sales area. As the order would be one, hence the sales areas would be required to be same. From all this, I am intending to make a sales order of two units / Batch nos to one customer. What could be wrong in this process. the customer CAN buy more than one vehicle at one time and could insist for one single document. So in my opinion the process is not wrong.
The handling of this by SAP is wrong and if you give me a moment to elaborate further, I would say it in this manner:
If we had a similar case in R3 where we would have made an order for the similar vehicles and invoiced. We would be doing a rversal based on the billing document. And the basic difference starts here: in R3 when we initiate a reversal, we choose the DOCUMENT..the reversal / return sales order to be created...copied from?...the forward billing doc..ALL the items get copied into the return sales order based on the copy control..correct? then IF we have partial have reversals, we go fwd and 'delete those line items' which are NOT required to be reversed. By this time the item values, sequencing everything has been copied..and after deletion we are (consciously) keeping only those required, hence the sequencing doesnt change and all is ok.
Whereas inVMS we start from the WHICH vehicle?...meaning which batch no. to be reversed..and THEN we choose the return sales order creation action.....so we have 'already' chosen the item(s) to be reversed THEN we make the document and THEN the copy control works...unlike the R3 scenario.
Based on this how can the functional process be wronged.? Hence the system has to be corrected rather than the process. Please do enlighten if you think otherwise.
Regards,
Edited by: Tariq Aziz on Jan 13, 2009 1:26 PM -
Structure Mapping Question Selected node copying
Dear experts,
I would like to know the following. I have an Idoc to xml-file scenario. The xml is provided. There are for each row in the idoc a number of similar segments (1..unbounded). I want to copy only those segments if they have a particular value, this is always one segment from this header, can never be more with the same value in VAL. Like this:
Source:
<HEADER>
<SEGMENT>
<XAL>555</XAL>
<VAL>name one</VAL>
</SEGMENT>
<SEGMENT>
<XAL>666</XAL>
</SEGMENT>
<SEGMENT>
<XAL>777</XAL>
<VAL>name three</VAL>
</SEGMENT>
</HEADER>
As a result I want to map only the value from VAL where in that same segment XAL=777
So:
<TARGETHEADER>
<VAL>name three</VAL>
</TARGETHEADER>
How do I accomplish this?
Kind regards.Auke,
As said by patrick use IF Without ELSE.
Do the logic,
XAL & Constant(777) -
>equals----->IF Without else -
>Target
Choose equals function under Text category.
raj. -
Solar01 - Solar02 : Structure nodes copy
Hi All,
Our current system landscape is :
FD1 100 : Sandbox & Evaluation Systems
FD1 200 : Golden Client
FD1 300 : ABAP Development & Unit testing
We have assigned the following in Solution manager in transaction "smsy" under logical groupings:
Developement System : FD1 200
Evaluation System : FD1 100
Golden client : FD1 200
Sandbox : FD1 100
Dev & Unit Test : FD1 300.
Scenario:
We have done all the Scenarios, Processes, process steps, transactions in SOLAR01 with System Role as 'Evaluation System'
When we enter into Config phase(SOLAR02), the Scenarios and process are NOT getting reflected here which we have already done in SOLAR01.
Question is: Do we need to do anything extra so that the work done in SOLAR01 is reflected in SOLAR02?
I have also tried by Changing the System Role to 'Developement System' in SOLAR01 and tried to execute a transaction but still in vain.
Regards
SyamSolved....
-
Hi
I have a requirement to copy the values of an element in a node to another element in the same node.
The only method I know is to use getter - setter method for the two elements.However , it is a cumbersome task , given my node has 60 attributes.
Is there any other method to achieve this.
Note: I am not talking about WDCopyService for node to node copy.
Thanks in advance,
Sudeep.IWDNodeElement original = ...;
IWDNodeElement copy = wdContext.node<YourNode>().createAndAdd<YourNode>Element();
WDCopyService.copyCorresponding(original, copy);
Armin -
XPath - Return current node without child nodes
Good day.
I hv the following XML for example and I tried to write a XPath query to return just the <AAA> and omit all the other child nodes (BBB and CCC and BBBBB) .
<AAA Name='aaa' ID='aaa'>
<BBB>bbbbbbbbbb</BBB>
<BBBBB>bbbbbbbbbbbbbbb</BBBBB>
<CCC>cccccccccc</CCC>
</AAA>I tried //AAA/self::* but it still return the whole childnodes to me. I searched in internet as well but I didn't found any solution for that. May be I was using the wrong keywords to search.
Any idea how to accomplish this ?
Thanks.
SonicWaveXPath will only return nodes that already exist in the document. What you are asking for is another node that is constructed from that AAA node by removing all its children. I don't know how you would do that, because I don't know anything about the structures you are using (DOM? XSLT? What?). But XPath can't do it.
Maybe you are looking for
-
Macbook Pro 15 inch: Late 2011 or 2012? Please help
Hi Fellow Mac Enthusiasts, I am in need of your suggestions and comments. I plan on upgrading to a 15 Inch Macbook Pro with in 2 weeks. I can't decide between the Late 2011 Macbook Pro and the Mid 2012 Macbook Pro. I am basically interested in hearin
-
QuickTime 7.5.5, Cannot Play Embedded Video on this Update
I recently updated te the latest version of QuickTime Update (7.5.5), and for some reason, I cannot view emedded or streaming video...for example the new promos and TV commercials on Apple.com, etc...I see the QuickTime logo, with a large question ma
-
Hi, everybody I miss that in SAP B1 have a hot key order to change the name of items when i am creating a sale order or sale quotation,... I for get this key, could you help me! Thank you!
-
100% Freight in First Installment
Hi Experts Our client receive payment in installments they charge 100% taxs and 100% freight in first installment.For tax we can define it in payments terms but how to include 100% freight in first installment. looking forward for help.. Warm regar
-
Problem with BP. Assignment: Business partner person to user not unique
I have a problem with a user. They have no BP assigned in PPOSA_BBP. We have found a BP in transaction BP. When we try the BBP_BP_OM_INTEGRATE the message BBP_UM_UI048 appear" Assignment: Business partner person to user not unique" . Any idea about h