Mapping Mapwthdefault at tiem level -Values Missing in Queue context
Here is the logic
If (E1EDP19-IDTNR_EXTR is not empty and (E1EDP19-QULF)=001
map IDT_EXTR to target Buyerpart
else
if E1EDP19-IDTNR is empty and E1EDP19-QULF=002
if E1EDP01-MENEE IS NOT EQAUL TO AU
map const (SEE_DESCRIPTION) to target
All context set to EDP01
Target is mandatroy field
1) data : If the 1st item level has the value IDTNR_EXTR and 2nd item level is not .
In the else condition also QUALF is not matching to 002 so not getting the value for else condition in second item level .
So getting the error ItemDetail[2]/ns0:BuyerPartNumber. Values missing in queue context
How can we add mapwithdefault to not to fail for mandatory field
2 data I added mapwithdefault befoe else it worked for this data but failed for other test with 3 line items IDTNR_EXTR values. 2nd line item was getting in target which is not
Thanks for your help
Here is udf i tried but not working as expected
String output = new String();
for (int i=0; i< qualf.length;i++)
if(qualf[i].equals("001")&&(idntex[i]!=("")))
output = idntex[i];
else
if((qualf[i].equals("002"))&&(idtnr[i]==(""))&&(manee[i]!=("AU")))
output = ("Notes") ;
result.addValue(output);
if item has only one value of idtnext and 2nd line item also it is displaying same value it should be blank
Thanks for your help
Similar Messages
-
Cannot create target element /Invoice. Values missing in queue context.
Hi Experts,
I am working on Idoc to File scenario using SAP PI 7.1. In this scenario I am mapping Invoic02 Idoc with Invoice xsd. I am able to test the mapping in ESR with status as success.
In ID Tools --> Test Configuration I used the same payload and tried testing the configuration step by step. while executing I am getting an error at Operation Mapping saying "Runtime exception occurred during application mapping com/sap/xi/tf/_MM_SRM_Hubwoo_Invoice_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /Invoice. Valuesmissing in queue context. Target XSD requires a v~"
Even though the mapping is getting executed successfully in ESR, I am not able to fix this issue. Need your inputs in resolving the same.
Regards,
Saurabh
Edited by: saurabh mathure on Oct 16, 2010 8:14 AMHi ,
issue"Can not create the target element value missing the queue context'.
reason for this issue:
Target field expecting some value from sender field. so in testing your not getting any data from source field for this reason your getting that issue.
Solution:
In mapping use node function:Mapwith deafault between source and taget fileds.
Then activate mapping . now excute the scenario it will properly without that issue.
Cheers,
Meera -
UDF required !! Cannot create target element Values missing in queue context
Dear Experts,
I am getting the cannot create target element error with acknowledgement payload in response message mapping in synchronous interface. I have shared the response payload2. Please suggest do I need write any UDF.
Message mapping successful with below payload1:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:updateOppResponse xmlns:ns0="http://soap.sforce.com/schemas/class/clientUpdateInqWebService">
<ns0:result>
<ns0:Description>Record Updated</ns0:Description>
<ns0:SFDCId>006M0000007xjTrIAI</ns0:SFDCId>
<ns0:Status>true</ns0:Status>
</ns0:result>
</ns0:updateOppResponse>
With the below target system response message, Mapping failing with Cannot create target element /ns1:MT_InquiryUpdate_ECC_Ack. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD com.sap.aii.mappingtool.tf7.IllegalInstanceException:
Actual acknowledgement reply from target system payload2:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns="http://soap.sforce.com/schemas/class/clientUpdateInqWebService" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<updateOppResponse>
<result>
<Description>Record Updated</Description>
<SFDCId>006M0000007xjTrIAI</SFDCId>
<Status>true</Status>
</result>
</updateOppResponse>
</soapenv:Body>
</soapenv:Envelope>
Regards
RKNHi
The easiest solution will be , write an simple java map for your response mapping.
Please provide your target structure , if you need any help on the java mapping.
Sample code:
Response message from web service
target msg:
java code:
package com.sap;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.sap.aii.mapping.api.AbstractTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;
import com.sap.aii.mapping.api.TransformationInput;
import com.sap.aii.mapping.api.TransformationOutput;
public class populateResponseMessage extends AbstractTransformation {
public void transform(TransformationInput arg0, TransformationOutput arg1)
throws StreamTransformationException {
try {
DocumentBuilderFactory tfactory = DocumentBuilderFactory
.newInstance();
DocumentBuilder tbuilder = tfactory.newDocumentBuilder();
Document doc = tbuilder.parse(arg0.getInputPayload()
.getInputStream());
Document newdoc = tbuilder.newDocument();
Element root = (Element) newdoc.createElementNS(
"urn:sap-com:document:sap:rfc:functions",
"ns1:ZTEST_FAULT_MESSAGE_DATA.Response");
newdoc.appendChild(root);
NodeList nlList = doc.getElementsByTagName("ConversionRateResult");
if (nlList.getLength() != 0 && nlList != null) {
Node data = nlList.item(0);
String sourceval = data.getTextContent();
Element rate = (Element) newdoc.createElement("RATE");
rate.setTextContent(sourceval);
root.appendChild(rate);
Transformer transformer = TransformerFactory.newInstance()
.newTransformer();
Source source = new DOMSource(newdoc);
Result output = new StreamResult(arg1.getOutputPayload().getOutputStream());
transformer.transform(source, output);
} catch (Exception e) {
e.printStackTrace();
}// end of transform -
Cannot create target element /ns0 Values missing in queue context
Hi Sdn,
When I am testing the Message mapping in PI i am getting the below error message .
Cannot create target element /ns0:TechObjChange. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD See error logs for details
Could you please tel me what would be the wrong.
below is the XML file data .
<?xml version="1.0" encoding="UTF-8"?>
<ns0:TechObjChange xmlns:ns0="http://schemas.xxxxx.com/iiiii/xxxxxx">
<TechObjChangeFLEQ>
<FormType/>
<FunctionalLocation/>
<Descoffunctionalloc/>
<Equipment/>
<DescofEquipment/>
<StartupDateofTechObj/>
<Manufacturer/>
<Manufacturermodelnumber/>
<Manufacturerpartnumber/>
<Manufacturerserialnumbe/>
<Countryofmanufacture/>
<Yearofconstruction/>
<Monthofconstruction/>
<TypeofTechObject/>
<PlannerGroup/>
<MainWorkCenter/>
<CatalogProfile/>
<NameofUserchangingtheobject/>
<Characteristic>
<CharacteristicName/>
<Characteristicvalue/>
</Characteristic>
<MeasuringPoint>
<MeasurementPosition/>
<Characteristic/>
<MeasurementPoint/>
<MeasuringPointAsIs/>
<MeasuringPointAsLeft/>
<PCTCodeGroupMP/>
<PCTCodeMP/>
</MeasuringPoint>
</TechObjChangeFLEQ>
</ns0:TechObjChange>WSDL structure
WSDL structure
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://schemas.xxxxxxxx">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:p0="http://schemas.xxxxxxxxx" targetNamespace="http://schemas.xxxxxxxxxx">
<xsd:element name="TechObjChange">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="TechObjChangeFLEQ">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="FormType" type="xsd:string" minOccurs="0" />
<xsd:element name="FunctionalLocation" type="xsd:string" minOccurs="0" />
<xsd:element name="Descoffunctionalloc" type="xsd:string" minOccurs="0" />
<xsd:element name="Equipment" type="xsd:string" minOccurs="0" />
<xsd:element name="DescofEquipment" type="xsd:string" minOccurs="0" />
<xsd:element name="StartupDateofTechObj" type="xsd:string" minOccurs="0" />
<xsd:element name="Manufacturer" type="xsd:string" minOccurs="0" />
<xsd:element name="Manufacturermodelnumber" type="xsd:string" minOccurs="0" />
<xsd:element name="Manufacturerpartnumber" type="xsd:string" minOccurs="0" />
<xsd:element name="Manufacturerserialnumbe" type="xsd:string" minOccurs="0" />
<xsd:element name="Countryofmanufacture" type="xsd:string" minOccurs="0" />
<xsd:element name="Yearofconstruction" type="xsd:string" minOccurs="0" />
<xsd:element name="Monthofconstruction" type="xsd:string" minOccurs="0" />
<xsd:element name="TypeofTechObject" type="xsd:string" minOccurs="0" />
<xsd:element name="PlannerGroup" type="xsd:string" minOccurs="0" />
<xsd:element name="MainWorkCenter" type="xsd:string" minOccurs="0" />
<xsd:element name="CatalogProfile" type="xsd:string" minOccurs="0" />
<xsd:element name="NameofUserchangingtheobject" type="xsd:string" minOccurs="0" />
<xsd:element name="Characteristic" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="CharacteristicName" type="xsd:string" minOccurs="0" />
<xsd:element name="Characteristicvalue" type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="MeasuringPoint" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MeasurementPosition" type="xsd:string" minOccurs="0" />
<xsd:element name="Characteristic" type="xsd:string" minOccurs="0" />
<xsd:element name="MeasurementPoint" type="xsd:string" minOccurs="0" />
<xsd:element name="MeasuringPointAsIs" type="xsd:string" minOccurs="0" />
<xsd:element name="MeasuringPointAsLeft" type="xsd:string" minOccurs="0" />
<xsd:element name="PCTCodeGroupMP" type="xsd:string" minOccurs="0" />
<xsd:element name="PCTCodeMP" type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="TechObjChange">
<wsdl:part xmlns:p4="http://schemas.xxxxxxx" name="TechObjChange" element="p4:TechObjChange" />
</wsdl:message>
</wsdl:definitions> -
Cannot create target element/ns1:MT_CONTRACT.Value missing in queue context
Hi Friends,
AgrmntID,Company_Code,Vendor_No,PurDoc_Type,ValidPeriod_Start,ValidPeriod_End,Pur_Group,Currency,Incoterms,Item_Cat,Tax_Code,Part_No,Document_Desc,Net_Price,Tgt_Qty,Price_Unit,Plant,Price_Revision
002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N
002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N
002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,6000005,CARD-Twiglets Original 45g x 12,0,125.00,145,AN03,N
002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N
002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,6000005,CARD-Twiglets Original 45g x 12,0,125.00,145,AN03,N
that is csv file am trying to convert to xml. but am getting error "Cannot create target element /ns1:MT_CONTRACT. Value missing in queue context."
my data types is: MT_CONTRACT_SNDR MT_CONTRACT
SUB_ELEMENT: Recordset Recordset
SUB_ELEMENT: Item Item
SUB_ELEMENTS: AgrmntID AgrmntID
Company_Code Company_Code
Vendor_No Vendor_No
like this all the 18 elements under Item node. I kept Recordset occurance 0-1 and Item 0-Unbound and all 18subelements as 0-1 in both sender and receiver. And in content conversion:
Document Name: MT_CONTRACT_SNDR
Document Offset: 1
Recordset Structure: Item,*
Record Sequence: Asending
Recordsets per Massage: 1
Key Field Type: String (Case-Sensitive)
Item.fieldSeperator : ,
Item.endSeperator: 'nl'
Item.fieldNames: AgrmntID,Company_Code,Vendor_No,PurDoc_Type,ValidPeriod_Start,ValidPeriod_End,Pur_Group,Currency,Incoterms,Item_Cat,Tax_Code,Part_No,Document_Desc,Net_Price,Tgt_Qty,Price_Unit,Plant,Price_Revision
KINDLY SUGGEST ME WHAT MISTAKE AM DOING. AM NEW TO SAP PII have this error in audit log. On searching I read that the error is connectivity problem between abap stack and java stack. but I made restart the server but error not cleared. can anyone of you suggest me to solve?
Audit Log for Message: 7c06ee0d-d70b-406f-07bc-f56228cc1d6a
Time Stamp Type Description
10.08.2011 18:05:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for ZFM_SRM_CONTRACT_CREATE with TID XIV0Rk3TSBG6y7lFLYACmTQW.
10.08.2011 18:05:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for J2EE_GUEST with TID XIV0Rk3TSBG6y7lFLYACmTQW.
10.08.2011 18:05:07 Error Adapter Framework caught exception: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.
10.08.2011 18:05:07 Error Delivering the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught..
10.08.2011 18:05:07 Information The message status was set to WAIT.
10.08.2011 18:05:07 Information The asynchronous message was successfully scheduled to be delivered at Wed Aug 10 18:10:07 IST 2011.
10.08.2011 18:10:07 Information The message status was set to TBDL.
10.08.2011 18:10:07 Information Retrying to deliver message to the application. Retry: 1
10.08.2011 18:10:07 Information The message was successfully retrieved from the receive queue.
10.08.2011 18:10:07 Information The message status was set to DLNG.
Time Stamp Type Description
10.08.2011 18:10:07 Information Delivering to channel: CC_Contrct_Recivr
10.08.2011 18:10:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for ZFM_SRM_CONTRACT_CREATE with TID XIV0Rk3TSBG6y7lFLYACmTQW.
10.08.2011 18:10:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for J2EE_GUEST with TID XIV0Rk3TSBG6y7lFLYACmTQW.
10.08.2011 18:10:08 Error Adapter Framework caught exception: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.
10.08.2011 18:10:08 Error Delivering the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught..
10.08.2011 18:10:08 Information The message status was set to WAIT.
10.08.2011 18:10:08 Information The asynchronous message was successfully scheduled to be delivered at Wed Aug 10 18:15:08 IST 2011. -
Message Mapping - Node's sub-levels navigation
Hi all,
How should I code in order to navigate between different levels of a given node of the source structure?
example:
Main
Struct_11
Struct1101
Field_1101_A
Field_1101_B
Struct1102
Field_1102_A
Field_1102_B
Struct_22
Struct2201
Field_2201_A
Field_2201_B
Struct2202
Field_2202_A
Field_2202_B
In the sample above, how should I do to map the node Struct_11 and, within a UDF (or some other way, but I only imagine through a Java UDF), access and validate Struct1101-Field_1101_A, or Struct1102-Field_1102_B, etc?
If someone could provide me with a sample code, it'd help me.
Thank you!Mark, tks. It helped.
I could do all that I needed withing the XML working as a text.
The only problem now is that, the target structure must be built according to the source cardinality (N..N).
In the sample bellow, see that in the source structure, the Struct_11 repeat 3 times. In the 1st and 3rd, it contains the substructure Struct1101. I have to check if Struct1101 exists, if so, I have to take the Field_1101_A and validate if it's equal to WE. If yes, then the correspondent Field_1101_B has to be sent to target <row> field.
In the 2nd occurrence, there NO Struct1101, so the UDF returns #void#.
UDF to map Struct_11:
int v_pos1, v_pos2, v_start = 0;
String v_Struct1101 = "Struct1101";
String v_WE = "WE";
String v_FieldA = "<Field_1101_A>WE</Field_1101_A>";
String v_FieldB = "";
v_pos1 = Item.indexOf(v_Struct1101);
if(v_pos1 >= 0){
v_pos2 = Item.indexOf(v_FieldA);
v_start = v_pos2 + 32;
v_FieldB = Item.substring(v_start, v_start+10);
}else{
v_FieldB = "#void#";
return v_FieldB;
Source
<Main>
<Struct_11>
<Struct1101>
<Field_1101_A>WE</Field_1101_A>
<Field_1101_B>110</Field_1101_B>
</Struct1101>
<Struct1102>
<Field_1102_A>ZS</Field_1102_A>
<Field_1102_B>222</Field_1102_B>
</Struct1102>
</Struct_11>
<Struct_11>
<Struct1102>
<Field_1102_A>ZS</Field_1102_A>
<Field_1102_B>222</Field_1102_B>
</Struct1102>
</Struct_11>
<Struct_11>
<Struct1101>
<Field_1101_A>WE</Field_1101_A>
<Field_1101_B>112</Field_1101_B>
</Struct1101>
<Struct1102>
<Field_1102_A>ZS</Field_1102_A>
<Field_1102_B>222</Field_1102_B>
</Struct1102>
</Struct_11>
<Struct_22>
<Struct2201>
</Field_2201_A>
</Field_2201_B>
<Struct2202>
</Field_2202_A>
</Field_2202_B>
</Main>
Target
<result>
<row>110</row></result>
<result>
<row>#void#</row></result>
<result> <row>112</row></result>
<result> is mapped to <Struct_11>, so that for each <Struct_11>, one <result> is created.
I've insert this sample payload and in the Definition tab, Display Queue option shows me the right result:
110
#void#
112
However, during the MM test, it throws error:
Cannot create target element /ns0:MT_TARGET/result[2]/row. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
Any clue?
Thank you !
Edited by: rvsilvax on Sep 14, 2011 9:00 PM -
OSB Transformation Mapping values missing
Hi,
I'm new to OSB.We have a requirement where it structured in 3 layered architecture consists of BPEL(1),OSB(2),OSB(3).
So i have created a Business service of my client WSDL from OSB(3) then proxy of type created bussiness service which is having local transport which inturn called by proxy service of http protocol in OSB(2) of type OSB(3) Proxy service.
My Question is when i call transformations (xsl) in last OSB(3) Mapping is done properly(GETING VALUES MAPPED TO TARGET ONE) .But as per requirement we have to call mapping and transformations in OSB(2) ,wen i called in this way only set text valued paramters is displayed in target.... rest mapped values(like source to target mapping) are coming NULL....
Please help us to resolve the issue soon since its very urgent requiremnt for our project developement..
Adavance thanks......System hardly proposes rules after migration, you have to manually map them and migrate routines if any basing on ABAP OO.
As it is a newer version it may not be consistent for all objects.
What SP are you running ? -
Populating level values in Demantra.
Hi Guru's,
We have a requirement to create a new level on top of item level in item hierarchy. I took one of the exisiting level (t_ep_p2) and changed the its level title. The thing got reflected in the configure levels. I upgraded the data model and used level value and level value association dat file to populate the level member. The request went through without any errors but I could not see the same in staging tables. The level members are also getting reflected in the worksheets.
Does any one faced this issue. Am I missing anything here?
Thanks
RamRam,
Why are you using level value and level value association dat file in Demantra? As far as I know, they were meant for ODP, not for Demantra.
I recommend to use custom_hook procedure (if you are using EBS-Demantra integration) OR direclty populate staging table (standalone Demantra).
Follow the steps mentioned in implementation guide for Adding a new level.
Thanks,
Amit -
Sorting the level value in dimension
After mapping the dimension table to a dimension, the level value is not in order when quering the data in OWB. How can I sort the data in dimension to a specific order ie, year and month?
Thanks for your help
EdwinHi Edwin
Do you mean using the dimensional data viewers? No sort metadata information is captured on the dimension itself in OWB (but is for the business defs if deploying to Discoverer), so you will have to do this in the query tool or in AWM (if AW). Which implementation (AW/ROLAP) are you using and what is your planned report tool?
Cheers
David -
Error in SRM: a user with enough authorisation level is miss
Hello,
We are on SRM 5.0 and our users get the following error in SRM when creating a shopping cart:
No user assigned to object a user with enough authorisation level is missing.
Anybody any idea ?
Thanks as everHello Can anybody helpe me please ?
-
Is there a way to fix particular percent of slice area to each level value
Is there a way to fix particular percent of slice area to each level value in a flash pie Chart?
I need a pie chart for Distribution of Escalations by Status; here I have following status Record in my table
5 record for Status: Reopen
2 record for Status: Escalated
2015 record for Status: Closed
12 record for Status: Open
1000 record for Status: WIP
So I am not able to see data in pie chart for Status Reopen, Escalated, and Open, bcz all levels are overlapping each other
So I want to fix particular percent of slice area to each level value(Reopen, Escalated, Closed , WIP and Open)
For e.g. I want to show 15% slice area of chart for Escalated, 10% for Reopen, 20% for Open
25% for WIP and 30% for Closed. So i can see record for all status while that have less data as compare to other
status.
I am using following query for pie Chart….
SELECT
''javascript:dhtml_GetReport_r2(0,0,0,0,0,''''''||''''||STATUS||''''||'''''',0)'' link,
nvl(STATUS,''Unknown'') label,
COUNT(ISSUE_ID) Escalations
FROM XYZ_ITR_MAIN
WHERE 1=1 GROUP BY STATUS;
Thanks
Rathore
Edited by: Rathore on 01-Apr-2010 02:37Your requirement makes sense from the point of visibility but doesn't make sense having the facts in mind that 2 out of 3034 is always 0,000659195% no matter how you look at it. And a pie chart is always going to give you exactly that. The only thing you can do is to manipulate your data but then what a user will see is not going to match with the reality. So, the only solution I see is to make a bigger chart. Exploding a pie chart is also an alternative but I don't think you can do that currently with the flash charts.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
When displaying a Google map I get about four vertical strips that alternately display good and in gray bands. The gray area displays the message "we are sorry, but we don't have maps at this zoom level for this region." Zooming out doesn't get rid of the gray areas.
I've had this problem for over a year and get around it by using either MS Internet Explorer or Google Chrome which work Ok. Otherwise Firefox works fine and I use it for everything else except Google Maps.
I've tried an uninstall of FireFox and then reinstall but it didn't help. I don't remember what I was doing when this problem first showed up.You're welcome
-
N:1 mapping problem with incoming NULL value
Dear experts,
i have a problem mapping an incoming Idoc to XML file. Here's the situation:
1) Structure of inbound Idoc
ZTST00
ZTST01 Structure: FIELDNAME, FIELDVALUE. Values: FIELDNAME = "Z1", FIELDVALUE = "4";
ZTST01 Structure: FIELDNAME, FIELDVALUE. Values: FIELDNAME = "Z2", FIELDVALUE = null;
ZTST01 Structure: FIELDNAME, FIELDVALUE, Values: FIELDNAME = "ZABC", FIELDVALUE = "5";
ZTST01 Structure: FIELDNAME, FIELDVALUE. Values: FIELDNAME = "Z4", FIELDVALUE = "6";
ZTST02
2) Resulting XML:
LINEHEADER (1 line)
LINEDETAIL (1 line, Structure: VALUE)
LINEFOOTER (1 line)
3) I need to map ZTST01-FIELDVALUE to LINEDETAIL-VALUE, but only if the FIELDNAME equals "ZABC".
In my message mapping, i put an IF FIELDNAME = 'ZABC' THEN FIELDVALUE->VALUE, on context ZTST00. But because of the null value in line 2 of the Idoc, the value that is returned to the XML is "6", as the null value is disregarded and not in the queue of FIELDVALUE.
How can I put the correct value ("5") to LINEDETAIL-VALUE?
Regards
WilliamHi William,
Simply go back to the default context ZTST01 (for both: FIELDNAME and FIELDVALUE fields) and it should be fine.
Hope this helps,
Greg -
Mapping Help for replacing source value
Mapping Help for replacing source value
Posted: Mar 14, 2006 1:06 AM Reply
Hi all,
I am unable to do transform the source value to required target value,
From Source ADDRESS_TYPE = 'HOME' should be replaced with 03 to target field ANSSA, and 'MAIL' to be replaced with 05, I am trying to do it but i am unable to handle it, please give u r valuable suggestions,
The source structure is like this,
- <Event ID="239" TRANS_TYPE="ADR">
<PersAddr GEO_LOC_CD="US" EMPLID="29" ADDRESS_TYPE="HOME" EFFDT="02/15/2006" ADDRESS1="92nd Floor" ADDRESS2="812backstreet" ADDRESS3="" ADDRESS4="" CITY="London" COUNTY="" STATE="AN" POSTAL="EC2N 4AG1" COUNTRY="GBR" KEY1="29" KEY2="HOME" KEY3="02/10/2006" />
<PersAddr GEO_LOC_CD="US" EMPLID="29" ADDRESS_TYPE="MAIL" EFFDT="02/15/2006" ADDRESS1="92nd Floor" ADDRESS2="812backstreet" ADDRESS3="" ADDRESS4="" CITY="London" COUNTY="" STATE="AN" POSTAL="EC2N 4AG1" COUNTRY="GBR" KEY1="29" KEY2="MAIL" KEY3="02/10/2006" />
</Event>
REGARDS,
sridharHi,
This can be done using user-defined function as well.
Code the function as...
if(Addr_Type.equals("HOME"))
return "03";
else if(Addr_Type.equals("MAIL"))
return "05";
else
return "Invalid Address Type";
Here, Addr_Type is Input String Argument for this function.
Map this function between ADDRESS_TYPE and ANSSA.
Regards,
Uma -
Mapping - Split string separated by value ;
Hi,
I have a mapping where 4 source values makes the key for 1 target value.
In the target string (result after value mapping) i want to get the last value in the string "TargetValue1.
<i>SourceValue1;SourceValue2;SourceValue3;SourceValue4;TargetValue1</i>
Can this be done without UDF? If not how should the UDF look like?
Best Regards
/Claes
Message was edited by:
Claes WidestadhHi,
Yes I have concatenated 4 source values into one string to use them as key in a value mapping to get the target value. The result from the value mapping is a string with the 4 source value + the target value. What I want to do now after the value mapping is to spit this string to get only the target value.
The string looks like this
Source sting
example 1) CC;-;ADJ;fre;
example 2) CR;+;ADJH;TD;
Target string:
example 1) CC;-;ADJ;fre;<b>985</b>
example 2) CR;+;ADJH;TD;<b>553</b>
It is the value 985 or 553 that i want to map into the target field. The position for the target value (985, 553) is not a fixed position because of that the length of the source values can vary (see example obove). That means that I cant use the substring right?
/Claes
Message was edited by:
Claes Widestadh
null
null
Maybe you are looking for
-
Struggling with Send XML to client
Hi, I am using WL Process Integrator 2.1 with WL 6.1. I am trying to do do an example of the "Client Call Addin Response DTD" i.e. pass an XML document to an external java program. As given in docs : http://e-docs.bea.com/wli/docs70/devclient/appa.ht
-
.pdf files do not open in Safari
Hi... I'm using a iMac (intel) OS 10.6.8 w/ Safari 5.1.7. I have Adobe Reader 10.1.3 and Adobe Prof 7.x.x.When ever I open a .pdf file in Safari. I get a black window. When I open the same file in Firefox, it works great! I'd much rather use Safari.
-
Number of characters in a string
Hi, I need to find the number of characters in a string. For instance, i have a string type variable with the value "ABAP". How can i know how many letters "A" there are in that string? Is there any FM that does this? Cheers, Roberto
-
SQL Server 2012 SP2 support for installation of OM 2012 R2
Hello everyone, according to http://technet.microsoft.com/en-us/library/dn281933.aspx SQL Server 2012 SP2 is a supported configuration for SCOM 2012 R2. Now I've just happily set up an SQL 2012 R2 Instance with SP1 on Windows Server 2012 R2, applied
-
Any CRUD example starting with Hibernate+MySQL +Tomcat with JSF ??
Hi, I am eager to learn Hibernate integrated with JSF and work on it. Kindly let me have any CREATE - REMOVE - UPDATE - DELETE example. ex. employee , users etc etc... If any good material or link to start with this. USING DAO pattern please let me k