Request map

on first request of the page getRequestParameterMap() returns empty map. on the following requests map is ok. what is the problem? i use bean scope as session.
http://localhost:8080/test.jsf?productID=3
on the first request o is null. then String "3"
Object o = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("productID");

Use RequestParameterMap instead. Or, more clean, set this param as managed property.
Also see http://balusc.blogspot.com/2006/06/communication-in-jsf.html

Similar Messages

  • Request Map not getting value

    Hi,
    I have a jsp page in which for a button click I am calling javascript function. In this javascript method I am opening a new jsp page as a pop-up using window.open('URL','optional parameters').
    I am appending some information in this url as query string...such that
    URL -> /myApplication/mypage.jsf?testId=22
    This opens the *'mypage.jsf'*...and it calls the constructor of the backing bean associated with it.
    This backing bean is in session scope. In this pop-up I do some action and when i click submit button, in the action method i do DB update and then I remove this bean from session scope. I return null from this action method which return to same page and using AddResource and AddResourceFactory (I am using MyFaces 1.1.4) I write a javascript in the same action method which is added to the header of the page which closes this window.
    Now the problem is when I click the button in the parent page to open the pop-up for the first time...it works fine...i mean to say the information i pass as query string goes to the RequestMap and i fetch that value from RequestMap in the backing bean's constructor of the pop-up window.
    After doing all the action in pop-up and after submitting it, when it closes the pop-up window, if I again click the button in parent page to open the pop-up the value in the request Map is empty for that particular query string.... even though if i check the url it shows the proper query string with the value....
    Also it goes to the constructor of the pop-up's backing bean....
    BUT THE REQUESTMAP DOESNT HAVE THE QUERY STRING VALUE....+
    It is so puzzling...
    Please let me know where I am wrong...
    Thanks
    Avner

    Use RequestParameterMap instead. Or, more clean, set this param as managed property.
    Also see http://balusc.blogspot.com/2006/06/communication-in-jsf.html

  • GetClientID not the same with request map in a dataTable

    Hi,
    I have a dataTable with multiple rows of same input text box (which has a required="true" validation attribute), the generated id in request map is something like (because it's repeating in a dataTable)
    formname:_id0:0:firstname
    formname:_id0:0:lastname
    but the .getClientId() method of UIComponet is NOT the same! When I try to getClientID, for the same componet (recusively gong the tree), I get
    formname:_id0:firsntame
    formname:_id0:lastname
    how do I retreive the correct id? or why is it not getting the right client ID?
    The reason I'm manually going through the tree is because I need to do some custom logic of checking each componet in the page, see if it's required, if it is, I'm going to do add custom required messge for them (all this is implemented in a phaseListener)
    thanks.

    Hi,
    thanks for replying.
    Basically, I have need to customize error message for validation, so I adopted the code here by implmenting a phaseListener.
    http://www.jroller.com/comments/ksevindik/Weblog/customizing_jsf_required_field_messages
    which in turn derived from
    http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html
    If take a look at the code above, in the validateValue() method, it's checking for component .submittedValue properties. This normally works for forms by itself.... but when the form field are repeated inside a dataTable, the
    inputComponent.getSubmittedValue() becomes null.
    I was confused, so I tried to output the clientID of the inputComponent by
    inputComponent.getClientID(),
    Only then, i noticed that the ID is not the same as the ID in requestMap, mabye that's why inputComponent.getSubmittedValue() is null.
    Let me rephrase the question, how do I access the text box value in any row of a dataTable? (Note, the value has NOT been updated into the model yet because I'm trying to get the value in validation phase)
    Thanks again. REALLY appreicate it.

  • Request mapping is struck in ICO

    Hi Experts,
       I am working on a XML file to SAP PROXY scenario in SAP PI 7.4 single stack.
    SAP PI is picking a XML file from a location and fetches to SAP proxy. I am getting a weird error while testing.
    The message is in delivering status. I mean message got stuck in the ICO with status description as
    4/23/2015 8:53:32.501 AM
    Information
    Message status set to DLNG
    4/23/2015 8:53:32.503 AM
    Information
    Executing Request Mapping "http://****.com*************** (SWCV 616254a0f09e11e3bdecee85ac189116
    I also tested the XML in TEST TAB of PI mapping. It's working fine. Could anyone please help me out here?
    Regards
    Veer

    What is the file size? How about the messages for other interfaces? are they flowing fine?
    Can you check the availability of threads?
    Handling and preventing messages stuck in To Be Delivered status
    Most of the times we endup restarting the system so that the delivering message would fail so that it can be cancelled.
    If the status remains unchanged, you might want to consider it.

  • X Y Mouse Click Coordinates in the Request Map?

    I have a mapping application that layers several images with a clickable top layer. When I wrap the top image in a command link I don't get the x and y coordinates of the mouse click in the request map. So I've had to use a regular command button with an image property. This works fine but doesn't allow me to use partial page rendering to limit the refresh of particular images in the stack. Can the x,y coordinate of the mouse click be returned with straight ADF?
    (I"ve included the code for retreiving the x and y coordinates under the jspx code)
    <af:panelGroup type="vertical">
    <af:objectImage source="#{backing_collect2.activeSource}"/>
    <af:objectImage source="#{backing_collect2.baseSource}"
    inlineStyle="position:absolute;left:0px;top:0px"
    binding="#{backing_collect2.baseImage}"/>
    <af:objectImage source="#{backing_collect2.allPointSource}"
    inlineStyle="position:absolute;left:0px;top:0px"
    binding="#{backing_collect2.allPointImage}"/>
    <af:objectImage source="#{backing_collect2.userPointSource}"
    inlineStyle="position:absolute;left:0px;top:0px"
    binding="#{backing_collect2.userPointImage}"/>
    <af:objectImage source="#{backing_collect2.activePointSource}"
    inlineStyle="position:absolute;left:0px;top:0px"
    binding="#{backing_collect2.activePointImage}"/>
    This following fails to return x and y in the request Map, imageMapType="server"
    attr on objectImage does not help
    <af:commandLink actionListener="#{backing_collect2.processClick}"
    action="#{backing_collect2.collectAction}"
    inlineStyle="position:absolute;left:0px;top:0px">
    <af:objectImage source="#{backing_collect2.activeSource}"
    inlineStyle="position:absolute;left:0px;top:0px"/>
    </af:commandLink>
    I have to use the following regular command button to get x, y click coordinates in the request map. But using this component makes its impossible to use partial page rendering to limit refreshes of the images above.
    <h:commandButton image="#{backing_collect2.activeSource}"
    binding="#{backing_collect2.activeLayer}"
    actionListener="#{backing_collect2.processClick}"
    action="#{backing_collect2.collectAction}"
    style="position:absolute;left:0px;top:0px"/>
    </af:panelGroup>
    // Code to get x and y from the request map
    visit.setLastClickPoint(visit.getClickPoint());
    FacesContext fc = FacesContext.getCurrentInstance();
    String clientId = actionEvent.getComponent().getClientId(fc);
    java.util.Map requestParams = fc.getExternalContext().getRequestParameterMap();
    String xString =(String) requestParams.get((String)clientId + ".x");
    String yString =(String) requestParams.get((String)clientId + ".y");
    int xMouse = (new Integer(xString)).intValue();
    int yMouse = (new Integer(yString)).intValue();

    Should have added that I'm using EA14

  • Sending Request Mapping errors back to a consumer for a sync scenario

    Hello Experts,
    I have a sync scenario (JAVA Application <-> PI <-> CRM (service)) where i want to send back any mapping exception that occurs in PI on the request side of the call, back to the consumer.
    I also want to communicated back to the consumer, if there are any connection failures between PI and CRM.
    I have implemented Fault Mapping in my scenario. Will this take care of any connection failures between PI and CRM also? 
    Your suggestions are highly appreciated.
    Warm Regards,
    Anshul

    Hello,
    I have a sync scenario (JAVA Application <-> PI <-> CRM (service)) where i want to send back any mapping exception that occurs in PI on the request side of the call, back to the consumer.
    You can use the XI alerting framework for that, here are some references:
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/content.htm
    XI: Alerts - Step by step (Step-by-Step blog by Michal)
    I have implemented Fault Mapping in my scenario. Will this take care of any connection failures between PI and CRM also?
    Fault Mapping is for application errors only, it will not handle system errors.
    Hope this helps,
    Mark

  • Request: Maps and Books but no Maps *in* Books?

    OK, I'm loving LR4 so far. Maybe I'm just easy to please or it's that Geolocation data and Bookmaking are exactly the things I've been missing in my enthusiast workflow focused a lot around travel and nature photography, but the headliners instantly appealed to me.
    But one minor thing with the bookmaking module that I'm really missing, the ability to easily incorporate map pages/panes into the book layouts. You know, to show where the pics in the other panes/pages/whatever were taken. Its seems like it would be a basic thing to incorporate, the map data and geolocation data is obviously already in LR4 now, and it's such a nice feature in iPhotos bookmaking module.
    Please try to squeeze this in before release!

    1) The map belongs to Google. It's their terms. I'm in the middle of a book that I'd love to have maps in, so appreciate your request.
    2) You can only ask!
    3) There will be a way of making custom stuff. Not to mention that you could use Custom Package to create a layout you prefer, print to JPEG and import it for use in Book.

  • Requesting map viewer from client

    Hi guys..
    I'd like to ask some big problem here...
    I am developing a website under the JDev and using mapviewer to show the spatial data that I have inserted.
    The website works fine in the server, but when I tried on another computer (trying to be a client) it doesn't even show my map..
    for example:
    I compiled my website server using JDev with IP address: 192.168.1.4
    so the URL comes out to be : http://192.168.1.4:8991/app_TA-ViewController-context-root/wisata.jsp
    When I tried the URL on the other computer, it works fine with the database and all, except for the input type image that shows my spatial maps
    Can anyone here tell me whats going on? or perhaps some solutions to my problem?
    I will appreciate your very solutions..
    thanx b4

    Hi,
    Check below configuration in your mapViewerConfig.xml.
    <save_images_at file_prefix="oraimg"
              url="http://192.168.1.4:8991/mapviewer/images/temp"
              path="../../images/temp"
    />
    You might have configure url=http://localhost:8991/mapviewer/images/temp. This will work in only application deployed system
    Sujnan

  • How to store the value of request message and use it in Response mapping

    Hi All,
    We have an requirement where we need to store the data coming in Request Mapping and use the stored value in Response Mapping. Can anybody help us in how to proceed?
    Thanks
    Sujata

    Hi!
    In Mapping you may use the RFC Lookup function to store values in database table during request mapping and to read values from database table during response mapping.
    You can also use an ABAP or Java Mapping "in front of your" message mapping to store/read the values.
    You can also use an Adapter Module (if applicable for the adapter type you use) and/or a UDF to store the data e.g. in Dynmaic Configuration Header of Request Message and to read these data from Dynamic Configuration Header of Response Message. But this works only for synchronous scenarios (and it means overhead in your message traffic).
    Hope these thinkings help you o find the most suitable way for your concrete scenario!
    Regards,
    Volker
    Note:
    These techniques help you to avoid using BPM.
    Edited by: Volker Kolberg on Aug 27, 2009 11:18 AM

  • Synchronous message mapping - access to originating request message?

    Say you have a synchronous message - like a SOAP web service request - and you map it to an RFC call, is there any way for the message mapping from the RFC response message to the SOAP response message to access fields from the original SOAP request message?  Or even just a temporary storage area that I could store values from the originating request message?

    Hi Jonathon!
    First of all, why not access the original soap request message inside the RFC..you will be receiving this data in your RFC...is the RFC is standard, maybe you can make a wrapper with a Z RFC of your own to store the original data and use it later to build the RFC response.
    Another idea: you could call a RFC via JCO inside a UDF in mapping.. this RFC could write  some data in XI business system during the request mapping and another call to a "reading" RFC could read that data in the response mapping.
    Other idea: use BPM, you can use containers to store the request SOAP message, call synchronously the RFC and then use a transform step (mapping) to use the original request SOAP message and the RFC response message to "merge"/build the response for the SOAP.
    Regards,
    Matias.
    PD: please give points if useful.

  • Error in Mapping of external RFC reponse

    Hi experts,
    I have big problems with my current scenario. I tried to call a C-program by using RFC connection.
    <u><b>synchronous RFC scenario:</b></u>
    <b>request:</b>
    <u>Sender SAP-System RFC-Adapter> XI RFC-Adapter> receiver C-program</u>
    on both sides I use RFC-Adapter and the flags of unicode is also set,
    on sender side I have created a simple RFC adapter, this side works without problems.
    On receiver side I have create an external RFC call. Here a RFC destination which is created on my SAP XI sap Gateway is invoked by the RFC Adapter. My C-program registers the program id of this RFC at receiver side. So by testing the RFC connection (transaction SM59) the RFC works fine.
    The request mapping includes on both side the same RFC-structure.
    <b>response</b>
    <u>Sender SAP-System <RFC XI <RFC receiver C-program</u>
    The response mapping includes on both side the same RFC response structure.
    When I execute my scenario by calling the ABAP-Program in my SAP system, it seems that request works fine, but during the response in the integration engine following error occurs:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser : #0 not allowed in Character data sections(:main:, row:1, col:377) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:187) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:151) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor264.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy189.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor931.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:275) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:217) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequest(RFCJCOServer.java:156) at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:7803) at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java:2405) at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java:1728) at com.sap.mw.jco.JCO$Server.listen(JCO.java:8164) at com.sap.mw.jco.JCO$Server.work(JCO.java:8284) at com.sap.mw.jco.JCO$Server.loop(JCO.java:8231) at com.sap.mw.jco.JCO$Server.run(JCO.java:8147) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:124) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser : #0 not allowed in Character data sections(:main:, row:1, col:377) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) Root Cause: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser : #0 not allowed in Character data sections(:main:, row:1, col:377)(:main:, row=1, col=377) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser : #0 not allowed in Character data sections(:main:, row:1, col:377) at com.sap.engine.lib.xml.parser.XMLParser.handleContentReference(XMLParser.java:2327) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2458) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1841) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2440) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1841) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2440) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1841) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2440) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1841) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2843) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) -
    at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) Caused by: com.sap.engine.lib.xml.parser.ParserException: XMLParser : #0 not allowed in Character data sections(:main:, row:1, col:377) at com.sap.engine.lib.xml.parser.XMLParser.handleContentReference(XMLParser.java:2327) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2458) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1841) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2440) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1841) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2440) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1841) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2440) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1841) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2843) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) ... 4 more</Trace>
      <Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_KQ3_TOMATOS_RESPONSE_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser : #0 not allowed in Character data sections(:main:, row:1, col:377)
    So could anybody help me.
    Thanks a lot.
    Best regards
    Mario

    Hi Jai,
    thanks for your fast reply.
    I have checked my payload but there is no col. 377. When I copy the following response payload into the mapping test tool it works fine.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:_-MSG_-4_PM_TOMATOS.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <ET_DIMMARKS_FLOAT />
      <ET_DIMMARKS_INTEGER />
      <ET_DIMMARKS_STRING />
    - <ET_ERRORS>
    - <item>
      <SEQ_NO>-1</SEQ_NO>
      <ERROR_NR>16777216</ERROR_NR>
      <RC>-1518068224</RC>
      <ERROR_TYPE>E</ERROR_TYPE>
      <DESCRIPTION>The data context cannot be found </DESCRIPTION>
      <ERROR_CLASS>PM.TOMATOSX error </ERROR_CLASS>
      <MODULE_NAME>PM.TOMATOSX </MODULE_NAME>
      <MESSAGE>No standard data context is defined. </MESSAGE>
      <INSTANCE_NAME> </INSTANCE_NAME>
      <PM_MARKNAME> </PM_MARKNAME>
      <CALLPOS> </CALLPOS>
      </item>
      </ET_ERRORS>
      <ET_INFOS />
      <ET_MARKS_DIMSIZE />
      <ET_MARKS_FLOAT />
      <ET_MARKS_INTEGER />
      <ET_MARKS_STRING />
      <ET_OBJECTS />
      <ET_PLAUSIS />
      <ET_PROFILES />
      <ET_PROFILE_MODS />
      <ET_RELATIONS />
      <ET_STATISTICS />
      <IT_DIMMARKS_FLOAT />
      <IT_DIMMARKS_INTEGER />
      <IT_DIMMARKS_STRING />
      <IT_MARKS_DIMSIZE />
      <IT_MARKS_FLOAT />
      <IT_MARKS_INTEGER />
      <IT_MARKS_STRING />
      <IT_METHODS />
      <IT_METHOD_PARAMS />
      <IT_OBJECTS />
      <IT_OPTIONS />
      <IT_RELATIONS />
      <IT_SEQUENCES />
      </rfc:_-MSG_-4_PM_TOMATOS.Response>
    So have you any idea, what the problem could be.
    Best regards
    Mario

  • Keep variable values in an operation mapping

    Hi experts,
    I have a synchronous interface and I need to recover information from the request message mapping to be used in the response message mapping both in the same operation mapping (I have a PI 7.1).
    Perhaps using OM parameters?
    Regards
    Gonzalo

    This is not possible.
    Why do you want to send back information to a system, where the data is already known?
    You are probably right, but I thought that if I set a parameter via UDF in my request mapping I will recover it in the response mapping.
    About  why would I need this data, I don't need to send it to the first system, I need it to perform some operations in the response mapping. The given web service returns several tables and I have to filter the response and choose one of the tables among the rest and send it as response. The parameter is the name of the given table.
    In case I don't find an "easy" way of doing it I probably sent all the info to my system and filter it there, but if I can find a way of avoiding doing so...
    Regards
    Gonzalo

  • Reg: Runtime exception occurred during application mapping

    Dear SAP Gurus,
    This is Amar Srinivas Eli working currently on SOAP to SOAP Scenario on PI 7.1 Server.
    I Would like to inform you that I have done all steps regarding DESIGN and CONFIG and also regarding SERVICE REGISTRY part successfully.
    While Testing the data in the WS Navigator by giving the input parameters I am getting an error that
    *<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>*
    *- <!--  Request Message Mapping*
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_HRS_LISTReferral_Response_MM_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
      <SAP:P3>on: Cannot create target element /ns1:PI_ListRefer</SAP:P3>
      <SAP:P4>ral_Response_MT. Values missing in queue context.~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_HRS_LISTReferral_Response_MM_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns1:PI_ListReferral_Response_MT. Values missing in queue context.~</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    These are the steps I did while implementing..
    1. Importing the XSD's successfully
    2. Developed the design and config part and also checked nearly 3-4 times regarding both REQ and
        RESPONSE Mappings.
    3. I already checked the link of WSDL once again...
    4. Even I found REsponse Interface once again...
    Still I am not getting where the error was ? Please guide me in detail in a right way in this issue.
    Regards:
    Amar Srinivas Eli
    Edited by: Amar Srinivas Eli on Jan 13, 2009 7:53 AM

    Hello,
    I already checked all those queues and context fields////
    Based on my Observation I found
    1) As I am unable to view the SOAP BODY I increased the RUN TIME Trace Level to 3 and LOG_VAlue to 3
    2) ANother most Important that I found later doing these settings are....
        I found Receiver Pay LOAD and I copied that entire pay load and pasted it in
        REceiver Message Mapping> Test Tab and Code->PASTED...and compared all those parameters
        in the TEST TAB and DEFINITION TAB in Tree View whether all the mandatory receiver mapped
        elements are  coming I mean passing from source or not...
    OBSERVATION::
    I found that for nearly 3 fields there is a difference when I compared on Tree View in DEFINITION TAB and also parallely in the TEST TAB Tree View which I got by copied from MONI,,,,
    see for example ::
    CENTRE <----
    > DISCHARGE DATE..
    For going to CENTRE..here I found that in DEfiniition TAB...
    Control Act Event-->Subject->document-->Component>Structured body> component> Section>Component>PatientCareProvisionEvent->EffectiveTime-->CENTRE
    But immediately I have gone to TEST TAB and TREE VIEW and I found that respective field CENTRE is posting I mean passing any value or parameter to Discharged Date or not...
    But I found that...
    Control Act Event-->Subject->document-->Component>Structured body> component> Section>Component-->_PatientCareProvisionEvent_
    This Implies that Effective Time and Centre are missing in the XML and I mean no values are passing to receiver right..
    In PI XSD 's it is there but in I think after Compiling REQUEST MAPPING and while in returning to RESPONSE MAPPING I mean whenever the Response is posting to SOAP WEBSERVICE it is unable to found those target elements and I think due to this...
    Am I Correct ?
    If that is the case...Let me know where the issue is whether in the data present in the WEBSERVICE created on target side or in PI Side..any issue...
    Regards:
    Amar Srinivas Eli
    Edited by: Amar Srinivas Eli on Jan 13, 2009 10:00 AM

  • Mapping issue in planned Order

    Hi Experts,
    I am working on a planned order interface(File -> RFC -> File). There is a mapping provided like below in the request,
    In the request mapping, i am mapping the source structure to the BAPI request. based on the creation/change/cancel request from the source structure for planned order, i need to populate the corresponding target structure in BAPI Request.
    i need to do the mapping based on the creation/change/cancel like below,
    Source Field                            Target Field
    action(add,change,cancel)         Add strcuture
       Work Id----
    >EXTAUFNR(0..1)
                                                           Field(0..1)
      SupplierProductCode----
    >Value(0..1)
      Quantity----
    > "
      PlannedStartDate----
    > "
      PlannedEnddate----
    >"
                                                       Change structure
                                                                                    Cancel structure
    The above structure is given for 'add' planned order.
    based on the source, target 'field' need to map as constant as below at runtime,
    for 'value'  in target 'SupplierProductCode' the 'Field' need to given as 'MATNR'
    for 'value' in target 'Quantity' the 'Field' need to be given as 'BDMNG'
    for 'value' in target 'PlannedStartDate' the 'Field' need to be given as GSTRP'
    for 'value' in target 'PlannedEnddate' the 'Field' need to be given as 'GLTRP'
    Kindly help me to get the values to 'value' and insert manually to the 'field' at runtime.
    Regards,
    Maha.

    Hi,
    Please check below link it may helps you
    Re: Why the basic finish date is not adjusted in planned orders
    Regards,
    Ram

  • Non BPM process - no mapping object found in interface determination

    I'm working on a non BPM synchronous process of kind HTTP=>XI=>RFC
    I completed my design and onto config now. I created receiver determination for HTTP (no sender agreement) and receiver determination for RFC. In my interface determination I cannot find mapping objects.
    I included in HTTP service, the request, sync and response message and RFC shows up naturally with RFC objects.
    Any ideas. I've been struggling with this for over a day now.
    Thanks.

    Hi Parimala -
    Just to clarify, for this scenario, here's what you need:
    <b>Design</b>
    1. One Message Interface (outbound/synchronous) corresponding to your HTTP request/response.  You don't need a Message Interface nor Message Type for your inbound/synchronous RFC.
    2. Request Mapping corresponding to request
    - HTTP request Message Type to imported RFC (request)
    3. Response Mapping corresponding to response
    - RFC.response to some Message Type for the response
    4. Interface Mapping
    - interfaces: your outbound/sync Message Interface corresponding to HTTP request to imported RFC
    - at bottom request tab, select your Request mapping (#2 above)
    - at bottom response tab, select your Response mapping (#3 above)
    <b>Config</b>
    When you say the following:
    >>><i>I completed my design and onto config now. I created receiver determination for HTTP (no sender agreement) and receiver determination for RFC.</i>
    Don't know if that's a typo, but there should only be one receiver determination based on your sending system/service, sending interface (HTTP one), and interface namespace.
    Confirm the above steps and see if that helps.
    Regards,
    Jin

Maybe you are looking for