Display queue context doesn't corresponde to elements in output

Hi people,
just a suggestion from you because I don't know any more where to see.
I realized a mapping in which I have to manipulate the contextes for an element.
It's happen that watching the context by the Display Queue the number of contextes in output is correct;
running the mapping in Test mode the elements created is different.
Why the two behaviours could be so differents?
Please, I need a suggestion to continue.
Ciao
Nicola
Edited by: Nicola Martella on Jan 21, 2011 9:09 PM

Ok, it follows my need.
I have in inbound this structure:
<item> (1..*)
  <rec> (1..1)
    <typerec>1</typerec>
  <rec> (1..*)
    <typerec>2</typerec>
    <text>
    <lang>
  <rec> (1..*)
    <typerec>3</typerec>
In outbound I have this structure
<master> (1..*)
  <rk1> (1..1)
  <rk2> (1..*)
    <recty>
    <text>
    <lang>
  <rk3> (1..*)
The field-to-field relation is:
<rec><typerec>1</typerec> --> <rk1> same cardinality
<rec><typerec>2</typerec> --> <rk2> different cardinality
<rec><typerec>3</typerec> --> <rk3> same cardinality
The context change is between rec(typerec(2)) and rk2.
Each rec(typerec(2)) contains text and language and rec(typerec(2)) are sorted for language.
rk2 has to concatenate the text for the same language; so, for all rec(typerec(2)) with same <lang> I have to obtain just a rk2 with all rec(typerec(2))-text concatenated.
An example is follow:
INBOUND
<item>
  <rec>
    <typerec>1</typerec>
  </rec>
  <rec>
    <typerec>2</typerec>
    <text>AAA</text>
    <lang>E</lang>
  </rec>
  <rec>
    <typerec>2</typerec>
    <text>BBB</text>
    <lang>E</lang>
  </rec>
  <rec>
    <typerec>2</typerec>
    <text>CCC</text>
    <lang>I</lang>
  </rec>
  <rec>
    <typerec>2</typerec>
    <text>DDD</text>
    <lang>I</lang>
  </rec>
  <rec>
    <typerec>2</typerec>
    <text>EEE</text>
    <lang>S</lang>
  </rec> 
  <rec>
    <typerec>3</typerec>
  </rec>
OUTBOUND
<master>
  <rk1>
  </rk1>
  <rk2>
    <text>AAABBB</text>
    <lang>E</lang>
  </rk2>
  <rk2>
    <text>CCCDDD</text>
    <lang>I</lang>
  </rk2>
  <rk2>
    <text>EEE</text>
    <lang>S</lang>
  </rk2> 
  <rk3>
  </rk3>
In this case, the display queue shows me 3 rk2 context (one for language) but in the test mode I have just the first two rk2 context and missing the last
  <rk2>
    <text>AAABBB</text>
    <lang>E</lang>
  </rk2>
  <rk2>
    <text>CCCDDD</text>
    <lang>I</lang>
  </rk2>
I hope to be been syntetic and clear in the exposition.

Similar Messages

  • Error while using Display queue

    Hi,
    I have a strange problem here.I have a ifwithoutelse condition,the output of which is given to removecontext.Now while seeing the output using display queue on "ifwithoutelse" im able to see the output as "GB" which is my desired ouput.Now the output of this "ifwithoutelse" is given to "removecontext".But while seeing the Display Queue on this it is showing SUPRESS as the input.Can anyone help me in this regard.
    Thanks,
    Bhargav

    Hi,
    The input for if is the output of an and condition The output of the and condition is given to remove context which is again given to this if condition.
    The input for the then condition is the output of an UDF whose output is given to removecontext and it is than given to the then condition
    Thanks,
    Bhargav

  • 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 AM

    Hi ,
    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

  • 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 PI

    I 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.

  • 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
    RKN

    Hi
    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>

  • Diff btw queue,context and xpath

    plzzz provide me the links for diff btw queue,context and xpath....i have searched the sdn but didnt find find any information...!!!
    and also please provide me u r usefull ideas
    thnx SDNers

    Hi ,
    Have a look at these links for queue and context  -
    1. /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
    2. http://wiki.sdn.sap.com/wiki/display/XI/Detailedlookintothesuppressed+nodes
    3. /people/venkat.donela/blog/2005/06/09/introduction-to-queues-in-message-mapping
    XPath is used to navigate through elements and attributes in an XML document. It can be used in content based Receiver determination. For details refer to these links -
    1. http://www.w3schools.com/xpath/default.asp
    2. http://en.wikipedia.org/wiki/XPath
    3. /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
    Regards,
    Sunil Chandra

  • Smartforms,How to display different standard Text in a Text element.

    In smartform,if I want to according to the different conditions,display one of the serveral different standard Text objects which all  maintained in SO10 in a same text element,how to do it?
    if i put them in serval text elements, each condition only display the corresponding text element,but the text content can not display in the same position.
    Is there anyone can tell me?
    thanks.

    use Alternative to control it no problem
    for example you want to display the different SO10 to same position TEMPLATE's row 1 col2
    TEMPLATE1
    Alternative case1
    YES
    INCLUDE TEXT1(display SO10) [set output option line1 column2]
    NO
    Alternative case2
    YES
    INCLUDE TEXT2(display SO10) [set output option line1 column2]
    NO
    Alternative case3
    every case your SO10's text is always display at line2 column2
    just try to test it ,you can know

  • How to display the context of a Jbutton to a JTextField

    Hi,
    There is a key pad (1-9) on a GUI where each key is represented by a JButton. There is also a data entry filed, implemented using JTextField.
    However, when the user enters the ID using the key pad buttons each number should be displayed in the data entry field correspondingly (similar to calculator). I have already written the handlers for each button just don't know how to display the contexts in the text field, e.g. if the button 1 is pressed the 1 should be appeared in the text filed immediately. Anyone can help me to get this done?
    Thanks in advance,
    RMP

    Reza_mp wrote:
    .. Anyone can help me to get this done?In the actioPerformed method, call textField.setText( textField.getText() + "new data" )

  • Message Mapping(Display queue and Suppress Value)

    Hi Experts,
    In Message Mapping(graphical mapping), upon checking the properties of the nodes,there's one property display queue, in which suppress is there??
    What does it mean?? Which queue it points and what value is suppressed??
    Thanks & Regards,
    Sushama

    Hi Sushama,
    SUPPRESS means no value.
    suppose we are checking one condition (tdid = "RE" then pass tdline) based on the condition we will send one output. if the condition fails then suppress value goes to the target.
    > What does it mean?? Which queue it points and what value is suppressed??
    es:  if(tdid.equals("WE") ifwithoutelse pass tdline value as output.    [tdid is in E1EDKA1 segment and this segment occurance is multiple]
    In this case if the condition is satisfied once and failed once (means E1EDKT1 segment comes 2 times) then first time it sends the corresponding tdline value and second time it sends the SUPPRESS value.
    Regards
    Ramesh

  • Display  queue in message mapping

    Hi ,
    I need to know the function of ' display queue ' in message mapping . How do i go about it.
    Please help.
    Thanx nd regards ,
    Srestha

    Hi,
    Whenever you do a graphical mapping you can see the intermediate result in the display queue. When you test your input using the test tab of Message Mapping, you can get only the end result (if it is successfull) or an error. You can debug the error by seeing the display queue of each and every elements involved in that specific mapping. Display quue will consists of :
    1) Input (in) to the function
    2) Output (out) from the function
    3) Conext change
    4) SNo. (optional)
    Hope you got an idea
    Regards
    Suraj

  • Clarification needed in Mapping Display Queue

    I am trying out a simple message mapping explained in one of
    the blog.
    My issue is when testing the Mapping , the display queue window displays the the values on the Context Change  line also.That is, the grey color also carrys the previous value .
    I believe the CC's should shold be a empty value .Any reason why I am seeing the values.
    Thanks

    Hi,
    Technically speaking, the XML instance is imported into the queues before the target field mappings are processed. The contexts are separated in the queue by a context change.
    Thus The Context change will contain the previous value of the field in supressed format.
    It will inform about the previous position of the context change.
    The Context change is can be used in Advanced User Defined Functions
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    /people/harrison.holland5/blog/2006/12/08/mapping-context-changes-in-xi
    Thanks
    Swarup
    Edited by: Swarup Sawant on Feb 25, 2008 10:53 AM

  • Display queue in th emessage mapping

    Hi SapAll.
    i just want to know about the proper reason on why the pi developers do the display queue in the message mapping programs of every interface that they develope.if so how we can do the proper display queue,as it is displaying in irregular format  when i click on display queue especially after testing with the sample xsd under test tab.
    will be waiitng for a proper answer .
    regards.
    Varma.

    HI verma,
    With display Queue u can actually check for:
    1) the values present for the source fileds
    2) If any functions used in the mapping, then u can display what r the inputs to that function and what is the output of that function.
    Ex: If u use remove context function to map the fileds, then by displaying the Queue of target filed, u can easilly see the context changes.
    Display the Queues of sorce and target fileds. u can easilly find the difference.
    If u use split by value, then u can see the extra context changes for the target field.
    3) Where exactky the mapping is throwing exception (at what field) i.e., if u right click on any field and if u click display Queue,: if the queue is displayed then at that point the mapping is working fine, but if it has error  then by selecting display queue it throws the exception there itself. Hence we can make sure that the mapping is failing at that particular fleld.
    Thanks,
    shabbir.

  • Display queue shows values but not in test tab

    Hi,
    We have a mapping scenario where we need to duplicate nodes and create the second node based on the coditions. The second node is a duplicate of the first node. The second node has the same mapping as the the node it was duplicated from. While testing the mapping in Display queue the values are coming in correctly for the duplicate node but during the testing in the test tab, the duplicate node values are missing. Context seems right but not sure why the duplicate node mapping does not work during testing?
    Teresa

    Hi,
    you should map the source node of the duplicated node with the required condition . it means when the conditions is true the duplicate node (source node) should get generated at the output.
    If <condition> True -
    > creatIf --- > source node of duplicated node
    Thanks
    Jyoti

  • 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

Maybe you are looking for

  • Odd web browser behavior

    after a decent amount of time using my web browser (have used safari, firefox, and camino all with same result) clicks on hyperlinks and bookmarks yield no response from the browser. usually there will be a second or so of activity in the status bar,

  • Hard Drive Access Delay

    I have a T410s i5 at 2.4 GHz running Win 7 64bit purchased last year.  The HD is a 250 GB Toshiba MK2529GSG running NTFS.  My computer has been suffering lately from sluggish response especially when typing input in email or Word, etc.  I see the HD

  • Best way to do a 4:3 pan & scan in terms of resolution?

    Brethren, I need to deliver a broadcast quality version of my project in 4:3 pan-and-scan. The project is made up of five 20 minute long pieces, usually holding about 1 or 2 layers of video, sometimes 3 or 4. I've read a few other threads on this top

  • Please send the algorithm and project code for temperature sensing using daq usbdux fast if possible code also for general text gui icon programming.

    I have a daq card usb dux fast and I'm using linux zenwalk, so please if any one has done a program on daq using comedi language or any language or any other related to it. please send me the code and algorithm for it. if possible a algorithm and cod

  • Code hint javascript api

    I am extending dreamweaver to add code hinting and color coding to my proprietary scripting language. I am fine with the Javascript but I am not sure where I actually place the code so that is executed. Any help?