JDBC response requirement

hi
we are triggering a JDBC stored procedure using MsSQL where we select a name based on the location that we get in the source file.
the structure of the response MT is like below:
<MT_response>
  <row>     1..n
     <Name>  0..1
what we require is ..that even if the DB doesn't return any rows from a particular location, the response should have the row field nonetheless with the Name field missing.
for example the source file has 2 cities - london and delhi
the Stored proc resultset has 4 names for london and none for delhi.
so we want that 4 rows with Name field should come in the MT_response corresponding to london
and 1 row with no Name field should come in the response for delhi.
please help.

Hey itisha,
You will have to convert your MI to Outbound sync for file and inbound sync for jdbc.
Now if you see the interface mapping between this two interfaces .. it will have both request and response mapping..
request mapping is the normal that we use...but after you get the response from jdbc...you do not want the ROW node to go away....then you add a response mapping also where you can do all this kind of transformations
and then send the result file to a folder..
Settings given in the below Wiki will also need to be done...only difference is you scenario is Fileasync to Jdbc sync
but the one given here is File async to RFC sync ...concept however of response mapping and sending response to async file system will remain same
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file%2528without+bpm%2529

Similar Messages

  • Ask again, jdbc response

    I designed process to figure out how to get the records count of jdbc response.
    after step send db request with synchronize mode, there is a transformation step to get count.(mapping with count function to rows of DB response). The result is always is 0.
    But when I add a send step, which send db response message to file, I can see all the response content.
    I don't know why.
    How could I get the records count of DB response?
    Thank you very much.

    not understand you.
    DB response is this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:jdbc_req_response xmlns:ns0="http://aaa.com/jdbc_syn">
    <ExecuteStatement1_response>
         <row>
              <LIBID>2001</LIBID>
              <LIBNAME>Zoral</LIBNAME>
              <LIBADDRESS>Shanghai</LIBADDRESS>
         </row>
         <row>
              <LIBID>2001</LIBID>
              <LIBNAME>Zoral</LIBNAME>
              <LIBADDRESS>Shanghai</LIBADDRESS>
         </row>
         <row>
              <LIBID>2001</LIBID>
              <LIBNAME>Zoral</LIBNAME>
              <LIBADDRESS>Shanghai</LIBADDRESS>
         </row>
         <row>
              <LIBID>2001</LIBID>
              <LIBNAME>Zoral</LIBNAME>
              <LIBADDRESS>Shanghai</LIBADDRESS>
         </row>
    </ExecuteStatement1_response>
    </ns0:jdbc_req_response>
    I use count function :
    row->count->size. But got 0.
    It is one message, why I need correlation?

  • Writing to database i want the JDBC response

    i have a file-xi-jdbc scenario.... after writing to database i want the JDBC response also...means no. of records updated/inserted/deleted etc.....means no. of rows returned
    what can i do....
    1. can i do it with a send step using asynchronous interface.
    2. can i do it with send step using Synchronous Message Interface to the database.
    Message was edited by:
            sudeep

    sorry posted in a different forum

  • Is Response Required in Proxy Service and Business Service

    Hi All,
    I have made proxy service that is putting message on the Queue through a Business Service. Now I wanted to know what is the use of "Is Response Required" configuration parameter in Business as well Proxy Service. Also what is the significance of the JMSCorrelationID and JMSMessageID.
    Thanks,
    Anuj

    Hi Anuj,
    You can refer to the documentation for the information on "Is Response Required" in
    Proxy Service @ http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/interopjms/transport.html#wp1096236
    Business Service @ http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/interopjms/transport.html#wp1097863
    And for the significance of JMSCorrelationID and JMSMessageID please refer to link @ http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/interopjms/MsgIDPatternforJMS.html
    Please do reach out to me in case you need specific information.
    Thanks,
    Patrick

  • RFx Response Required for All Items

    Hi Team
    Kindly we use SRM 7 EHP1 with business scenario ( Extend Classic Scenario )
    IN Restricted RFx Item level there are checkbox ( RFx Response Required for All Items )
    We use it but does not work I do not know why ? any help from you ?

    Can you be more specific on behavior of system and why you feel the functionality is not working.

  • RFC to JDBC Sync Scenario and get JDBC response

    Hi All,
    We need to create RFC to JDBC synchronous interface with update_insert action.
    And we need to get the number of records updated or inserted as response and map the response and send it back to ECC as RFC response mesg.
    I have gone through the help document on JDBC and it says :
    The response document has the following format; one of the two values is always 0 because either an UPDATE or an INSERT action is always executed:
    <update_count>count</update_count>
    <insert_count>count</insert_count>
    Now following is the question: Is this this the standard feature? Because in our case Database side they will not be sending any response back.
    So with the synchronous receiver JDBC channel would we get this update and insert count as response  by default?.
    Please help with replies.
    Thanks,
    Jane

    Hi Jane
    No setting needs to be done by the Database team, it is a standard feature.
    Whenever you insert or update records in DB using the JDBC Adapter, you will get the response with the count.
    If insertion fails due to some reason in JDBC Adapter, then there will be no response.
    Regards
    Osman

  • How to make response required when rejecting requisition in i procurement?

    *{color:#ff0000}When aprover rejects a requisition from Iprocument, then response should be required. System should not allow to reject a requisition without any response. How can we achieve this, is this posssible by any change in Req approval workflow?{color}*

    Assume that that the the Attribute name of the comment is 'APPROVER_CMT'
    Then write a pl/sql package as below and use it as post notification function in workflow.
    CREATE OR REPLACE PACKAGE BODY RB_TEST_PKG AS
    PROCEDURE notification_handler (
    itemtype IN VARCHAR2
    , itemkey IN VARCHAR2
    , actid IN NUMBER
    , funcmode IN VARCHAR2
    , resultout OUT NOCOPY VARCHAR2
    AS
    v_nid NUMBER := NVL (wf_engine.context_nid, wf_engine.g_nid);
    v_result VARCHAR2 (30) := wf_notification.getattrtext (v_nid, 'RESULT');
    v_comments VARCHAR2 (240) := wf_notification.getattrtext (v_nid, 'APPROVER_CMT');
    BEGIN
    IF (funcmode = 'VALIDATE' OR funcmode = 'RESPOND' ) THEN
    IF (v_result = 'REJECTED') THEN
    IF (v_comments IS NULL)
    THEN
    raise_application_error (-20001, 'Please enter comments');
    END IF;
    END IF;
    END IF;
    END notification_handler;
    END RB_TEST_PKG;
    Regards,
    Ravi.

  • Need to make response required on rejecting expense claim (Workflow/OIE)

    Hi,
    I have a customer requirement as follows:
    When a manager is rejecting an expense claim (on the Workflow Notifications page - /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG), I need to validate that the Note field is populated. So, basically, I need to stop the user from rejecting a claim if a reason for rejection is not provided in the Note field.
    At this moment, I am at my wits end on how to achieve this - would highly appreciate any pointers on how I might proceed towards achieving this.
    Thanks in advance for your time
    Kiran
    PS:
    1. I have already posted this message in the Workflow forum - so if you come across this twice, please forgive me - just trying to reach a larger audience
    2. I am well versed with OAF extensions. I also know that NotifDetailsPG is just a place holder. However, since the "Response" header region, the Note field and the page buttons are all FND region/code, I am not sure if I can customize it. Thus the question.

    Assume that that the the Attribute name of the comment is 'APPROVER_CMT'
    Then write a pl/sql package as below and use it as post notification function in workflow.
    CREATE OR REPLACE PACKAGE BODY RB_TEST_PKG AS
    PROCEDURE notification_handler (
    itemtype IN VARCHAR2
    , itemkey IN VARCHAR2
    , actid IN NUMBER
    , funcmode IN VARCHAR2
    , resultout OUT NOCOPY VARCHAR2
    AS
    v_nid NUMBER := NVL (wf_engine.context_nid, wf_engine.g_nid);
    v_result VARCHAR2 (30) := wf_notification.getattrtext (v_nid, 'RESULT');
    v_comments VARCHAR2 (240) := wf_notification.getattrtext (v_nid, 'APPROVER_CMT');
    BEGIN
    IF (funcmode = 'VALIDATE' OR funcmode = 'RESPOND' ) THEN
    IF (v_result = 'REJECTED') THEN
    IF (v_comments IS NULL)
    THEN
    raise_application_error (-20001, 'Please enter comments');
    END IF;
    END IF;
    END IF;
    END notification_handler;
    END RB_TEST_PKG;
    Regards,
    Ravi.

  • Don't want JDBC Response.

    Hi,
       I have a RFC -> XI -> JDBC Scenario.
       I don't need the number of inserted rows, but the response of JDBC brings to me. How do I do to ignore it? Because a error appears in <b>Request Message Mapping</b> Step of <b>Response Msg</b>.
       The <b>ProcessingMode</b> is synchronous even if I configurated the Message Interface as asynchronous.
    Thanks in advance.

    Hi Luis,
    you need to send the RFC request asynchrounous:
    CALL FUNCTION 'Z_MY_FUNC'
    IN BACKGROUND TASK
    DESTINATION 'MY_DEST'
    COMMIT WORK.
    Regards,
    Udo

  • RFC to JDBC response

    Hello,
    I have a scenario SAP-> RFC -> XI -> JDBC. Where i'm using data from SAP R/3 to update a table in an Oracle database of a third party system. Is there any way i can find out if the fields have been updated succesfully or not?
    I know that only if i use a synchronous JDBC reciever i will get a response.
    Helpful suggestions will be rewarded.

    Hi,
    The Response sent by your JDBC adapter will be not be a Apllication Level Acknowledgement, but rather a System Level Acknowledgement and so, you will have to configure a BPM, if you want to send the number of rows Updated as a response to your RFC.
    For more info, just take  a look at this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    It contains the info,
    <b>The response documents described below can only be evaluated by the Integration Server/PCK if the call is synchronous because the content of the response document is not accessible if the call is asynchronous. The response is put in a separate element <StatementName_response> for each statement element.</b>
    So, if you want to send the response, then you will have to configure your receiver JDBC adapter sysnchronous, use a BPM to route the response message to whichever system you want.
    Regards,
    Bhavesh

  • Java.lang.StackOverflowError**Urgent Response Required !!!

    All,
    I have included a custom page in iProcurement 11.5.10. The page was created using jdev and XML Import Command was to import the page to JDR tables. A custom menu is defined for the application where in the page was included as a seperate tab. The requirement is to make the application route to that page when iProcurement responsibility is clicked. This is happening but when the page is tried to revisit from anyother tab , there is an exception thrown for the page.
    It looks like below:
    Request URI:/OA_HTML/OA.jsp
    Exception:
    java.lang.StackOverflowError
    Did i miss out something while defining functions and menus. Any pointers will be of great help.
    Thanks.

    Hi,
    I am not able to run the page locally from jDEv. It was not able to open the application. I ran the page directly in the application from the starting of page development. There is no exception thrown as usual. Its actually another HTML file opened which shows the error as mentioned previously. I am not able to give details as I cannot attach a screen shot here.
    Thanks.

  • JDBC response generic message format

    Hello experts
    I have a proxy to JDBC scenario,In the Receiver end , i have to call 3 SQL statements.The Format is as follows
    <Statement1>
    Delete Query
    </<Statement1>
    <Statement2>
    Insert Query
    </Statement2>
    <Statement3>
    Stored Procedure
    </Statement3>
    I want a response in the stored procedure.So i have to make the inbound message type synchronous.Will i be getting the response for all the statements .What would be the exact generic format of the response message.Unless i know the response message type i will not be able to design the exact receiver message type.plz throw some light on this

    <root>
      <StatementName1>
    <dbTableName action=u201DUPDATEu201D | u201CUPDATE_INSERTu201D>
      </StatementName1>
      <StatementName2>
    <dbTableName action=u201DINSERTu201D>
      </StatementName2>
      <StatementName3>
    <dbTableName action=u201DDELETEu201D>
      </StatementName3>
      <StatementName4>
    <dbTableName action=u201DSELECTu201D>
      </StatementName4>
      <StatementName5>
    <storedProcedureName action=u201D EXECUTEu201D>
      </StatementName5>
    </root>
    The response is put in a separate element <StatementName_response> for each statement element.
    like here in this root i am getting response for  <StatementName5>
    So response Structure would be like ....
    <root_response>
                              <StatementName4_response>
                                        <row>
                                         row structure from select query
                                        </row>
                              </StatementName4_response>
                              <StatementName5_response>
                                        <row>
                                         out element of stored procedure.
                                        </row>
                              </StatementName5_response>
    </root_response>
    Hope this Helps.
    Regards
    Dragon.
    Edited by: KOMODO DRAGON on Jun 28, 2010 12:47 PM

  • JDBC  response  mapping

    Hello,
    I have  two sql statements (union ) selecting data from multiple tables and I have the sql XML as follows.   The response structure is also given bellow. Do I need a response  for STEMENT_TWO  also?  How do I map the result to single target ?
    Can I have a generic resultset for both of the statements so that I can map to single target?
    appreciated an urgent reply.
    <xsd:element name="STATEMENT_ONE">
    <xsd:element name="GTSDB">
    <xsd:element name="ACCESS" type="xsd:string">
    <xsd:element name="KEY">
    <xsd:element name="YEAR" type="xsd:string">
    <xsd:element name="MONTH" type="xsd:string">
    <xsd:attribute name="ACTION" type="xsd:string" use="required">
    <xsd:element name="STATEMENT_TWO">
    <xsd:element name="GTSDB">
    <xsd:element name="ACCESS" type="xsd:string">
    <xsd:element name="KEY">
    <xsd:element name="YEAR" type="xsd:string">
    <xsd:element name="MONTH" type="xsd:string">
    <xsd:attribute name="ACTION" type="xsd:string" use="required">
    <xsd:annotation>
    Response type
    xsd:element name="STATEMENT_ONE_response" maxOccurs="unbounded">
    <xsd:element name="row" minOccurs="0" maxOccurs="unbounded">
    <xsd:element name="currency_code" type="xsd:string">
    <xsd:element name="rate_type" type="xsd:string">
    <xsd:element name="weekly_rate" type="xsd:string">
    Thanks
    Sindhu

    Hi Bhavesh,
    Thanks  for your reply. I had already seen your Weblog  and accordingly created two response . Now the target is an RFC structure .The response1 and resoponse2 date should be mapped to a table parameter of RFC . I did duplicate the table structure and mapped both the response . While testing the mapping  I am getting the response  .
    Can I duplicate the table structure of RFC being it is imported form SAP .
    It created an additional node ,so  whether it will transfer the data correctly to RFC .
    While I am doing the actual  integration ,the RFC is not being called ,though there is no error.
    Regards
    Sindhu

  • JDBC Response

    Hi.
    Being a beginner i had a query that
    What is the response structure of JDBC ..
    Normally JDBC have both Sync and Async as mode..
    Thanks & Regards
    guna

    Refer these blogs in which we have the response structure for some of the statements like select, insert,.
    JDBC RECEIVER ADAPTER
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    STORED PROC
    JDBC Stored Procedures
    JDBC Receiver Adapter -- Synchronous Select u2013 Step by Step:
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    sender and Receiver JDBC Adaptor Config using XI
    RDBMS system integration using XI 3.0 JDBC Sender/Receiver adapter
    JDBC to JDBC
    https://wiki.sdn.sap.com/wiki/display/XI/JDBCTOJDBC
    Connecting to MS Access using receiver JDBC Adapter (Without DSN):
    Connecting to MS Access using receiver JDBC Adapter (Without DSN)

  • Creating a response requires a metadata set?

    Perhaps I've mucked this up but for somereason I am now required to specify a metadata set when I try to create a response.  Any required fields of md groups are also required.  The admin guide screen shots do not show this as required.  Any ideas on why my installation is requiring it? and how to get rid of it.
    I'm running FCS 1.5.2 on OS Server.
    I see it under multiple accounts.
    Thanks

    After poking around, found that on several custom metadata groups that were provided by FCSvr in the window, I had for some reason added the Subscription Response() metadata set. 
    Must have done this in testing phase. 
    Does anyone know why this might be useful?
    Thanks

Maybe you are looking for