Http to jdbc sync scenario needed
hi all,
Can any one give me certain example of http to jdbc sync scenario
Thanks in advance.
Hi,
Refer this link.
For JDBC receiver side settings
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
JDBC Receiver Adapter -- Synchronous Select Step by Step
For HTTP
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/b1/f29e7a56e18a439984a3c6630951d2/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
JDBC Receiver Adapter -- Synchronous Select Step by Step
HTTP Queue
error in HTTP to file scenario
Regards,
Sharanya.
Edited by: sharanya devaraj on Aug 5, 2008 8:09 AM
Similar Messages
-
HTTP-JDBC sync scenario - detailed error message
Hi all,
We have a sync HTTP-JDBC (DB2) scenario.
The sender is expecting a meaningful error message.
HTTP is on ABAP and JDBC is on the Java engine.
So how can I get the error message on the JDBC adapter to be passed to the user.
Say I would like to pass the sql-codes that I find at the Communication Channel monitoring for the comm Channel.
regHi,
One suggestion is to configure alerts at adapter engine level..
to get the error messages to concerned user.
Regards,
Sreenivas. -
Sender ABAP Synchronous proxy -- PI -- JDBC sync scenario pls!!
Hi Guys,
Can any one help to find one sample scenario like ABAP Proxy --> PI --> JDBC Sync call ? Sync ABAP proxy sample code any 2 or more filelds going from ABAP proxy and maps on JDBC sync request, up date target side SQL server database tables, in case if any error happens error/success message must go back to SAP one Z table with response.
Any help would be really great!!
Many thanks in advance
Sanup date target side SQL server database tables, in case if any error happens error/success message must go back to SAP
one Z table with response.
When you do an update you can get back the number of rows updated in the JDBC response....you can find this in the help page showing JDBC structure. If you are looking for any other response then probably the message needs to be genarated by PI itself after checking the response from JDBC.
Regards,
Abhishek. -
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,
JaneHi 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 -
Message Interface for HTTP to JDBC synchronous scenario
Hi Experts,
Could you please explain the Message Interface from the below blog. Actually, I am confused with the Outbound Interface. Is it correct?
/people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
1. LoginData_Sync_OUT_MI
Input Message : Role_MT
Output Message : LoginData_MT
2. LoginData_DB_Sync_IN_MI
Input Message : LoginData_DB_DT
Output Message : Dummy_DT
Regards
SaraHi All,
Here is my Interface mapping's problem details.
Scenario : I have to pass EmpId as a request from webservice to JDBC, If we have the EmpId address in the JDBC then we have to return the address of the employee as a response to Webservice.
Please find the below datatype, message type and etc., which I have used it for the scenario.
1. Data Types:
a) DT_REQUEST ( Webservice to XI request)
1. EmpId
b) DT_JDBC_REQUEST ( XI to JDBC request)
1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
5. AddressLine2,6. City,7. State
c) DT_JDBC_RESPONSE (JDBC to XI response)
1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
5. AddressLine2,6. City,7. State
d) DT_RESPONSE (XI to Webservice response)
1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
5. AddressLine2,6. City,7. State
2. Message Type created according to the Data Type.
3. Message Interface:
a) MI_Outbound
<b>Output Message :</b> MT_REQUEST
<b>Input Message :</b> MT_JDBC_RESPONSE
b) MI_Inbound
Input Message : MT_JDBC_REQUEST
Output Message : MT_RESPONSE
4. Message Mapping:
a) MM_REQUEST[EmpId mapping]
Source Message : MT_ REQUEST
Target Message : MT_JDBC_REQUEST
b) MM_RESPONSE [Mapping for all the fields]
<b>Source Message : MT_JDBC_RESPONSE
Target Message : MT_RESPONSE</b>
5. Interface Mapping
IM_WEB_DB
Source Interface : MI_Outbound
Target Interface : MI_Inbound
Request :
Source Message : MT_REQUEST
Target Message : MT_JDBC_REQUEST
Response :
<b>Source Message : MT_RESPONSE
Target Message : MT_JDBC_RESPONSE</b>
Here the source Message should be MT_JDBC_RESPONSE and the Target Message should be MT_RESPONSE. But when I tried to create the Interface Mapping I am getting the above bolded Response Messages automatically populated by XI.
Actually, I have followed Siva's blog to do this scenario. Finally confused with the Interface Mapping's response messages. So, please help me out with this scenario steps.
Regards
Sara -
Can you explain steps in the Async and Sync scenarios JDBC to RFC.
Hi,
Can you explain some basic steps in the Async and Sync scenarios for sending data from JDBC to RFC.
Like,
The data is picked up from the database table through JDBC adapter.
It is passed on to SAP by calling the RFC. RFC gets executed
successfully. The status is returned by the RFC. The status needs to be
updated back into the SQL database table.
Is this a sync case or async case.
What si the diffrences in the sync and async scenarios in the above JDBC to RFC scenarios.
Sooryahi check the below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
JDBC Synchronous call using BPM
Data Types -
1) File Input
2) JDBC Req
3) JDBC Response
4) File Response of similar type of JDBC Response.. ( This you can avoid also..let it be for first time)
Message Types
4 for each data type
Message Interfaces
1) Async, Outbound, Interface, to receieve the file
2) Async, Inbound , Interface to send the file from XI
3) Async, Absract , Interface of type File message type to recieve the message in the BPM
4) Sync, Abstract Interface with Req message type as File Request, and Response Message type as a file Response
5) Sync , Inbound interface for JDBC with Input message type as a JDBC Request and Output Message type as a JDBC Response
Message Mapping:
1)Mapping between File Req to the JDBC req
2) JDBC Response to File Response
Interface mapping:
1) Sender Interface as a Sync,Abstract Interface created for the file type and target interface as Synchrnous JDBC interface.
Use corresponding mapping for Req and Resp..
note:reward points if solution found helpfull.....
regards
chandrakanth.k -
Hi all,
I am trying to execute a synchronous Http to Jdbc Scenario using MS Access table as my back end.
In design part ,I have followed the steps like
1. Created a http req ,jdbc req, jdbc response ,and then http response in Data types and the in Message types.
2.Created Outbound MI with http req and http response as input and output messages respectively,then Inbound message interface with jdbc req and jdbc response as input and output messages respectively.
3.In Message mapping with Http req and jdbc req as request mappings and jdbc response and http response as Response mappings following the Action and access Steps.
Thats Fine with design part
IN Configuration Part, Since it is a Http Sender ,i didnt create any sender agreement and sender communicatin channel.
Then Configured Jdbc adapter properly and i am able to access my table with that.
While Executing ,I can find that my message is sent in Runtime workbench and can find that Jdbc adapter is Running by showing green flag.
I was trying to send an empid of a table as key and expecting to retrieve the complete row of the corresponding key.
But I could not find the response even though everything is fine with XI.
Where Could be the problem ,where can I see the response from jdbc adapter .
Please help me out in solving this .
Thanks and Regards,
KalpanaHi Kalpana,
Can you check this weblog
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
This should help you...
Check the Response Mapping,also you have one IM with Reqest and Response mapping...
Also if you have SP16 then you can have sender CC for HTTP also ...
Regards,
sridhar -
Http--- Xi-- JDBC scenario?
can the forum provide me a blog for doing http--->XI-->jdbc scenario......
Dhar,
Get the data into XI using the HTTP adapter. Check this blog on how to get data into XI:
/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
Once you get the data into XI use this blogs to send data into the database:
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
/people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1725 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/william.li/blog/2007/03/30/using-jdbc-connection-pool-in-xi-message-mapping
---Satish -
Can any one tel me how to implement Http to Jdbc scenario.
Thanks in advanceRefer this link also while designing the JDBC MT.
http://help.sap.com/saphelp_nw04/helpdata/en/22/b4d13b633f7748b4d34f3191529946/content.htm
Thanks
Farooq. -
No response message in Proxy to JDBC synchronous scenario
Dear Team,
I am working on synchronous scenario Sender ABAP proxy <===> SAP PI 7.31 <===> Oracle Database.All the necessary proxy configuration has been successfully tested.
Business Scenario:
ABAP proxy will send a single Vendor Id to Oracle DB as request and in return , it has to retrieve all the columns related to Vendor as response.Oracle Database stores all the Vendor information.There are 11 columns including the vendor Id in the view for the Vendor records.
Design :
For Request structure:
a-->Created MT for Sender ABAP Proxy with only 1 field for Vendor Id.
b-->Created MT for Receiver JDBC with Action as SELECT , Table with "View Name" , Access with Constant Blank for all 11 column and Key as Vendor Id.
I have been following the link and Bhavesh Kantilal document.
http://help.sap.com/saphelp_nw73/helpdata/en/44/7b7171fde93673e10000000a114a6b/content.htm?frameset=/en/44/7b7855fde93673e10000000a114a6b/f
rameset.htm¤t_toc=/en/ca/b977f1c7814201954f20bb87ad7aab/plain.htm&node_id=71
For Response structure:
Created MT for Receiver JDBC with All the column names.
Created MT for target ABAP ECC with the same 11 column name of JDBC response.
Note :
1.Database team shared a excel file as a sample payload which has all the column names of a vendor and I created my DT with the same naming conventions as they are maintaining in their database i.e. Column names are in CAPs, in the same order and even the special characters in the column name.
2. The PING test connection for Cc works fine to database.
Please read out my queries as the I am not receiving any response from Oracle DB and gives error as timeout exception:
1.Since I am trying to retrieve all the column of the view , am I doing the correct procedure of putting all the column name in the JDBC request structure and making a Select statement. Can I add < * > to fetch all the column name and if so where can I add it.
2. Whats the difference between SELECT and SQL_QUERY and on what circumstances I can add it?
3. How can I test ICO in ID?
4. Can I use any SOAP tool to test the messages? Is there any functionality in NWA to test the messages directly to JDBC .
Hope all your inputs can improve my design part.
Regards
RebeccaHi Rebecca,
Did you go through all of these links below?
PROXY to JDBC- SYNC
Proxy to JDBC Sync, with Idoc Receiver
JDBC to PROXY Sync Scenario | SCN
JBDC Receiver Insert Statement Response
Re: Synchronous JDBC select
receiver JDBC structure
Regards,
Jannus Botha -
Hi All,
I am doing File to JDBC sync mode. I have configured the scenario while trying to execute i am getting error in JDBC communication chennal.
I have create the stucture with help of this link
http://help.sap.com/saphelp_nw04/Helpdata/EN/2e/96fd3f2d14e869e10000000a155106/content.htm
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. '<STATEMENT> <FND_VALUES_VLaction="SQL_QUERY"> <table>FND_VALUES_VL</table> <access>SELECT BOOKS_ID FROM FND_VALUES_VL</access><Key> <BOOKS_ID>6</BOOKS_ID><KEYFIELD>6</KEYFIELD></Key></FND_FLEX_VALUES_VL></STATEMENT> ' (structure 'STATMENT'): java.sql.SQLException: SQL statement to execute cannot be empty or null
This statement i am passing in Table and also in action attribute.
I have created the MT_JDBC_req like this:
<Statment>
<TABLENAME>
<ACTION> attribute JUST I AM PASSING like this "SQL_QUERY" not XML for this
<TABLE> i am passing the above query
<ACCESS> i am passing the same query
<FILED1>
<FILELD2>
<KEY>
<FILED1>
Thanks,
Venkat.Hi,
I have done the same thing. my response i have created like MT_JDBC_REQ_response
i can see in sxmb_moni from file to JDBC request its going jdbc response i am not getting.
Error: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException
Error: com.sap.aii.af.service.util.transaction.api.TxManagerException: Unable to roll back transaction: com.sap.engine.services.ts.exceptions.BaseIllegalStateException
again now in JDBC reciever also i am getting error.
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc.
in moni response msg its showing like this
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
could you pls help me where i am doing wrong.
Thanks,
Venkat -
Webserice to JDBC BPM scenario
Hi Experts,
I have created the below webservice to JDBC BPM scenario.
IR
Data Type
1. DT_SOAPRequest
2. DT_SOAPResponse
3. DT_JDBCRequest
4. DT_JDBCRequest_response
Message Type
1. MT_SOAPRequest
2. MT_SOAPResponse
3. MT_JDBCRequest
4. MT_JDBCRequest_response
Message Interface
1. SOAP_Out_Sync_ReqResp
2. SOAP_Abs_Sync_ReqResp
3. SOAP_Abs_Async_Req
4. SOAP_Abs_Async_Resp
5. JDBC_In_Sync_ReqResp
Message Mapping
1. MM_Request ( MT_SOAPRequest to MT_JDBCRequest)
2. MM_Response (MT_JDBCRequest_response to MT_SOAPResponse)
Interface Mapping
IM_SOAP_TO_JDBC (SOAP_Abs_Sync_ReqResp to JDBC_In_Sync_ReqResp)
Integration Process
IP_SOAP_TO_JDBC
Container Variable
1. ReceiveMsg - SOAP_Abs_Async_Req
2. SendMsg - SOAP_Abs_Async_Resp
Process
1. Receive Step:
Message : ReceiveMsg
Mode : Opens S/A bridge
Sync Interface : SOAP_Abs_Sync_ReqResp
2. Send Step:
Mode : Sync
Sync Interface : SOAP_Abs_Sync_ReqResp
Request Message : ReceiveMsg
Response Message : SendMsg
3. Send Step:
Mode : Closes S/A bridge
Opend by : Receive step
ID
Business Service & communication channel
1. BS_SOAP ( For Sender Interface, I have mentioned SOAP_Out_Sync_ReqResp -->Is this correct)
a) CC_SOAP - Default Interface Name : What we have to give here ?SOAP_Out_Sync_ReqResp or SOAP_Out_Sync_ReqResp
2. BS_JDBC ( Receiver Interface : JDBC_In_Sync_ReqResp)
One more question, while creating webserive which interface name we have to give Abs_Sync or Outbound_Sync? Not comfortabel with Configuration part, please share your inputs.
Regards
SaraHi Sekhar,
I need info on only Message Interface in SOAP Service, SOAP CC and while creating webserivce from Integration Directory -> Tools -> Define webservice -> 3rd step. I have done with the remaining Sender Agreement, Receiver Agreement, Receiver Determination, Interface Determination..
Confusion is, I have to use whether SOAP_Abs_synch or SOAP_Outbound_synch interface...
Regards
Sara -
Dynamic receiver Determination for Sync Scenario??
Hello Experts,
I have a SOAP -> Xi -> R3 sync scenario i,e, R3 to send back response to SOAP client.
Also I need the Dynamic receiver determination.
When I try to create the Interface Mapping, I get the error:
"Interface modi are different. "
Source interface MI_My_sync_iface is synchronous.
Target interface ReceiverDetermination | http://sap.com/xi/XI/System is asynchronous
I coud find few threads on forum related to this but i think there is no clear solution provided.
I do not wanna use BPM.
Please suggest.
Thanks in Advance!
Appropriate point will be awarded.> So when I try to define a interface Mapping using a Sync interface as Source and Async interface as target, XI does not allow me to do so.
You are getting this error because in Interface mapping when you use sync source then it generates request and response tab so if at target side if you put anync interface then definetly it will go into error. You have to make both the interfaces as sync.
BTW, after getting the message in R3, how are processing the message? Are you using sync proxy??
You can solve the problem by creating one additional message interface of type inbound-asyn. Use this additional Message interfce in your Interface Determination. And create additional Receiver Agreement to deliver the message to it's destination.
Note: When you careate additional Interface Determination then you have to chose the response message interface (Sync message interface which returns the response from R3) as a source.
Regards,
Sarvesh -
Problem with Stored procedure in JDBC Synch scenario
Hello Experts,
I am working on the scenario which is from HTTP <-> to <-> JDBC. It is a synchronouse scenario. We are using Stored procedure in this scenario.
1) Please send the response structure for it.
2) here when i am sending request to the Database it is giving me below error :
Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'TCS.PKG_BMF_MANAGE_SERVICE_DATA.PROC_GET_ACTIVE_MF_ESIIDS' (structure 'statement'): java.sql.SQLException: Oracle CLOB Helper: java.lang.AbstractMethodError: java/sql/Clob.setString(JLjava/lang/String;)I. Setting message to status failed.
One of the field in Database stored procedure is of type CLOB. So can you ppl guide me that what might be the solution for this.
Any help appriciated.
Thanks,
HetalI am using Stored procedure and that is working fine in Oracle
This is my XI Request structure :
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:read_PROC_GET_ACTIVE_ESIIDS xmlns:ns0="http://reliant.com/xi/BMFR2">
- <statement>
- <PROC_GET_ACTIVE_ESIIDS action="EXECUTE">
<table>TCS.PKG_BMF_MANAGE_SERVICE_DATA.PROC_GET_ACTIVE_MF_ESIIDS</table>
<in_bmf_partner_id isInput="true" type="VARCHAR">994</in_bmf_partner_id>
<in_esids isInput="true" type="CLOB">1008901001155950587100:1008901001155950545100:1008901001155950671100:1008901001155950114100</in_esids>
</PROC_GET_ACTIVE_ESIIDS>
</statement>
</ns0:read_PROC_GET_ACTIVE_ESIIDS>
This is oracle Stored procedure signature :
PROCEDURE PROC_GET_ACTIVE_ESIIDS
in_bmf_partner_id IN kss_activity_stg_curr_stat.BMF_PARTNER_ID%TYPE,
in_esids IN CLOB,
out_recordset OUT sys_refcursor
Let me know if you need any further information.
Thanks,
Hetal -
Proxy to JDBC Sync, with Idoc Receiver
Hello all,
I have to set up following synchronous scenario.
PROXY -> PI -> JDBC | JDBC -> PI -> PROXY
JDBC -> PI -> IDOC
In other words, I need that the response from the JDBC Receiver adapter is sent back to R3 to an IDOC and the originating PROXY.
How can I achive this? I mean how can I send the synchronuos response back to the originating PROXY, and in the other hand send an asynchronous message to the IDOC.
This is a message with a large quantity of info, so I'm not sure what to use or how to use it.
Thanks for your help.
FelipeHi Felipe
PROXY -> PI -> JDBC | JDBC -> PI -> PROXY
JDBC -> PI -> IDOC
The message to the IDOC need to be sent from response ?
Is your proxy SYNC?
Use a BPM for this
1. receive the message from Proxy.(SYNC)
2. Send it to JDBC (SYNC)
3. Map the proxy request to JDBC request and JDBC response to Proxy response.
4. Send the JDBC response to IDOC
Thanks
Gaurav
Maybe you are looking for
-
Is it normal for my computer to turn on then off then on again?
Sometimes when I turn my computer on it turns off then it turns on. I have not had any other problems with this and there is no error in the debug. My friends Maximus 775 board used to do this a lot to. Is this an intel thing? Specs gd-80 i5 750 a
-
Stopping QuickTime video on Apple's homepage
How do you stop the Quicktime video on Apple's homepage from running? I can't seem to find any Quicktime controls in Safari or by ctrl-clicking.
-
Excise data in material master (India)
We are upgrading from 4.6C to ECC6.0 I have added the 'Excise data' subscreen in Material master 'Foreign trade IMport' and 'Foreign Trade Export' tab. But facing the following problem. please help. There are two buttons called 'More' and 'PreVals' i
-
Hp photosmart C6150 invalid WPA passphrase with new airport base station
Okay, I had the old flying saucer type base station that worked great wirelessly with my HP all in one C6150 printer. I upgraded to the new square base station and printer still worked fine. Then about a week ago, my printer can no longer find the ne
-
How can I sync iPod 3rd generation to iPad air
How can I sync my iPod 3rd generation to my ipad air? I have a cable to connect the two devices but, unlike my PC (which I am hoping to put away in the loft forever!) there does not seem to be a sync option in iTunes