JDBC Sender and Receiver

Hello:
I have an scenario FILE-to-FILE and it's working ok. So now I want to change it into FILE-to-JDBC so I thought just to change the Communication Channel RECEIVER, instead of file, use JDBC adapter.
I've read this blog <a href="/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 to JDBC Adapter using SAP XI 3.0</a> but I don't have clear where tu place the SQL Insert statement, or to know which table to affect. I am using this settings on the RECEIVER communication channel:
Adapter type: JDBC
Transfer Protocol : JDBC 2.0
Message Protocol : XML SQL Format
-- Database Connection --
JDBC Driver : net.sourceforge.jtds.jdbc.Driver
Connection: jdbc:jtds:sybase://alma.mex.sap.corp:2638/demo
I've noticed thta if the Communication channel is SENDER, I do get a parameter called Update SQL Statement, but it's not there when it's  a RECEIVER, why is that?
Greetings!
Alejandro

Thanks for the info
Reading the help site, I find that the xml message must have a certain structure, that will be interpreted by the database. If I want to send an INSERT, I would have an xml message like this:
[code]
<root>
  <stmt>
    <Customers action="SQL_DML">
      <access> UPDATE Customers SET CompanyName=’$NAME$’, Address=’$ADDRESS$' WHERE CustomerID='$KEYFIELD$’
      </access>
      <key>
        <NAME>Company</NAME>
        <ADDRESS>Street 3 </ADDRESS>
        <KEYFIELD>CO</KEYFIELD>
      </key>
    </Customers>
  </stmt>
</root>
[/code]
And as I understand I <b>must define those fields</b> on my data type XSD so the mesagge from the sender arrives with this structure right?
so I created an XSD like this
[code]
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn://alex.com/ftp001" targetNamespace="urn://alex.com/ftp001">
     <xsd:complexType name="JDBC_DATA_TYPE_001">
          <xsd:sequence>
               <xsd:element name="root">
                    <xsd:annotation>
                         <xsd:appinfo source="http://sap.com/xi/TextID">
                         89e2af209ce511dbaf580015587b9f42
                         </xsd:appinfo>
                    </xsd:annotation>
                    <xsd:complexType>
                         <xsd:sequence>
                              <xsd:element name="smtp">
                                   <xsd:annotation>
                                        <xsd:appinfo source="http://sap.com/xi/TextID">
                                        89e520209ce511dbc9230015587b9f42
                                        </xsd:appinfo>
                                   </xsd:annotation>
                                   <xsd:complexType>
                                        <xsd:sequence>
                                             <xsd:element name="Person">
                                                  <xsd:annotation>
                                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                                       89e520219ce511db832b0015587b9f42
                                                       </xsd:appinfo>
                                                  </xsd:annotation>
                                                  <xsd:complexType>
                                                       <xsd:sequence>
                                                            <xsd:element name="access" type="xsd:string">
                                                                 <xsd:annotation>
                                                                      <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                      89e520239ce511db99c60015587b9f42
                                                                      </xsd:appinfo>
                                                                 </xsd:annotation>
                                                            </xsd:element>
                                                            <xsd:element name="key">
                                                                 <xsd:annotation>
                                                                      <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                      89e520249ce511db95d80015587b9f42
                                                                      </xsd:appinfo>
                                                                 </xsd:annotation>
                                                                 <xsd:complexType>
                                                                      <xsd:sequence>
                                                                           <xsd:element name="FirstName" type="xsd:string">
                                                                                <xsd:annotation>
                                                                                     <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                                     89e520259ce511db81520015587b9f42
                                                                                     </xsd:appinfo>
                                                                                </xsd:annotation>
                                                                           </xsd:element>
                                                                           <xsd:element name="LastName" type="xsd:string">
                                                                                <xsd:annotation>
                                                                                     <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                                     89e520269ce511dba6d30015587b9f42
                                                                                     </xsd:appinfo>
                                                                                </xsd:annotation>
                                                                           </xsd:element>
                                                                           <xsd:element name="Age" type="xsd:string">
                                                                                <xsd:annotation>
                                                                                     <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                                     89e520279ce511dbc9070015587b9f42
                                                                                     </xsd:appinfo>
                                                                                </xsd:annotation>
                                                                           </xsd:element>
                                                                      </xsd:sequence>
                                                                 </xsd:complexType>
                                                            </xsd:element>
                                                       </xsd:sequence>
                                                       <xsd:attribute name="action" type="xsd:string">
                                                            <xsd:annotation>
                                                                 <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                 89e520229ce511db82120015587b9f42
                                                                 </xsd:appinfo>
                                                            </xsd:annotation>
                                                       </xsd:attribute>
                                                  </xsd:complexType>
                                             </xsd:element>
                                        </xsd:sequence>
                                   </xsd:complexType>
                              </xsd:element>
                         </xsd:sequence>
                    </xsd:complexType>
               </xsd:element>
          </xsd:sequence>
     </xsd:complexType>
</xsd:schema>
and I must send the SQL Query statement in the ACCESS node.
Right?
Thanks
Alejandro
[/code]

Similar Messages

  • Problem with Stored Procedure exection in Sender and Receiver side of JDBC

    Hi All,
    I am facing problem while executing Stored Procedures using sender and receiver sides of JDBC adapter.
    Here is my SP in Oracle DB :
    PROCEDURE EMP                           
    ( ID IN VARCHAR2,NAME IN VARCHAR2,PROCESSED IN VARCHAR2  ) AS                                                          
    BEGIN                                                         
       INSERT INTO EMPLOYEE VALUES (ID, NAME, PROCESSED);COMMIT;END EMP;
    Now I want to execute this SP using sender JDBC channel and receiver JDBC channel.
    Can anyone please help me executing this SP?
    Regards,
    Soorya

    Hi Soorya,
    The receiver Data type should be like this:
    <StatementName>
    <storedProcedureName action=u201D EXECUTEu201D>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName >
      </StatementName>
    Check the link http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/frameset.htm
    Which DB  are you using?? The sender structure will be like
    <resultset>
    <row>
    <field1></field1>
    <field2></field2>
    <field3></ field3>
    </row>
    </resultset>
    Search SDN you will get lot of examples
    Regards
    Suraj

  • Question about Sender and Receiver Structure for JDBC

    Dear All,
    I want to know why there is a fixed format for sender and receiver structure for JDBC. why cant we use the structure like what we want? explain me in detail.
    Thanks

    Good Question:
    We have to create our data structure based on the existing database table structure. While reading or writing , JDBC adapter convert our data type structure in to SQL Query Statements that matches Table structure.

  • Will XI system acts as both sender and receiver?

    Hi,
    My scenario is JDBC>XI>XI.
    I'am getting data from database and I need to send it to XI system(Receiver) and I need response.I've done this scenario.In that I've used my XI-Dev system as sender and receiver.And I'am getting error in sxmb_moni
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    What can be the solution for this.
    Will it be possible if one XI system will acts as a sender and receiver?
    please help me.
    Regards,

    Hi Asmith,
            Check it out your Sender agreement, which business system you ahve used as a Sender and make sure that in receiver agreement the source system should be the same as in Sender Agreement.
    Will it be possible if one XI system will acts as a sender and receiver?
    You can use XI system as a Sender and Receiver.However as per u r scenario Source is JDBC and Receiver is XI.
    Once check it out your Configuration Sceanrio.
    Hope it will helps ...
    Cheers
    Veera

  • Cannot send or receive email from the cloud. all updates are competed and everything else is working fine on MAC. iPad sends and receives fine. any ideas.

    On Imac I am not able to send or receive messages. All software is updated. My iPad that uses the same email address and the Cloud, sends and receives just fine. It is not "the colored" thing that is spinning but the little black and white circular icn that is spinning away. My other email address is functioning fine. It is merely the ICLOUD based email that is acting up. Any ideas?

    First try deleting the account and reinstall it.

  • Trouble send and receiving messages and trouble calling people or receiving phone calls

    Hello everyone, I bought a Blackberry Q5 one year ago and has worked perfectly since but on christmas day I had was struggling to send message to people I thought nothing of it since it was christmas and people would be wishing there families and friends a merry christmas. So i just carried on as usual not aware that the problem was much worse then i thought, since then I have tried time and time again to try text people and call them but nothing would happen.
    The Problems I am experiencing,
    Everytime I try sending a message it fails and times out after a while doesn't matter whom they are being sent to it's the same story no matter who I send them to, and then of course when i try calling someone the phone goes to the calling screen but doesn't make a sound for atleast 10 seconds then a message pops up saying "Call Failure, The call could not be connected. Please try again later". This message appears even when I ring '789' which is the number to find out what my balance is on my contract.
    At first I thought it was the Sim what was cauing the problems but when i swapped it into another Virgin phone i received quite an alarming amount of messages what would not come through on my phone, this is when i realised I am not just struggling to send messages but to receive them as well. I have scoured the internet for possible answers but nothing has worked, so far I have tried manually scanning for available networks and selecting the correct one which did not change the problem this didn't make things better nor did it make things worse.
    I have also tried changing the data services while roaming settings which again did not make any differences, I have tried changing network mode no changes again, turning the mobile network off all together and then turning it back on after 5 minutes no success there either. I have even reset the phone back to factory setting to try and fix the problem, but no, the problem still will not go away.
    Please if there is anyone out there who has any ideas on how to fix what is happening to my phone please do give me your advice, at this moment I really need a miracle to come around at the next corner.

    Hi rhupa!
    Here is an article that will help you troubleshoot this issue:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Mail Connection Doctor shows one or more red dots in the account Status column
    Check your Incoming IMAP or POP and Outgoing SMTP email account settings
    Use Apple's online Mail Setup Assistant to discover what the correct settings should be for both your Incoming (IMAP or POP) and Outgoing SMTP email servers. If your email service provider is not listed in the Mail Setup Assistant, visit your email service provider's website or contact their support staff to get the correct settings. You can use this "cheat sheet" when asking your email service provider about the settings you need.
    After you have the correct email service provider settings, make sure Mail is configured properly.
    Click here if your Incoming and Outgoing email account settings are correct, but the issue persists
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Not receiving texts from iPhone contacts when I'm not connected to wifi or cell data. I can't send and receive regular SMS texts with non iMessage users but iMessage users message are not being converted to text when I don't have internet connect

    I can send and receive to any non iPhone user. I can send a message as a text to an iPhone user but if I'm not connected to cellular data or wifi I do not receive messages from iPhone contacts. From what I understand these message should automatically send to me as texts instead of iMessages but since the update it's not functioning properly. Please help. I've tried turning iMessage off and I still don't receive the messages until after I reconnect to wifi.

    I have the same problem! Before the upgrade, if I wasn't connected to the internet, any messages sent to me from an iphone would convert automatically to a text message. I have payg tarriff, so I turn cell data off, as it costs too much to use it. I have wifi at home and work, but if I'm out and about, I don't receive texts from iphone users until I'm on wifi. I get them ok from non iphone users. There was never any problem until ios7

  • TS2755 I have 3 phones on one Icloud account. It has been this way for over a year with no issues. After and update on of the lines started getting text messages from all 3 phones. We fixed the send and receive and it was fixed. It is doing it again.

    I have 3 phones on one Icloud account. They have been this way for over a year. After an update last week one of the phones started getting messages for all of the other lines. We fixed this under the send and receive under settings. It was fine for a few days. Suddenly it started happening again. Yesterday after two hours on the phone I changed my apple id and it is still happening. Before that Verizon had told me to turn off my imessage when that happened I could not get any texts at all from other Iphone users.

    Make 3 different iCloud accounts and use ONLY for iMessage.   That will permanently fix your issue.

  • Problem with Send and Receive Emal In SAP System

    Hi gurus!
    I have a following quote:
    Dear !
    I have a problem with send and receive email in SAP system following :
    I want to test send and receive email in local network at my company. I
    had two server
    Server 1 : I setup Exchange Mail Server 2007 with domain controller is
    fes.com
    Server 2 : I setup SAP ERP ECC 6.0
    On Server 1 : I created 2 account ( u1Afes.com and u2Afes.com ) and then I tested send and receive email between u1 and u2 in local network through Microsoft Outlook 2007 -> OK
    and then
    On Server 2: I had configured send and receive email on SAP system
    through tcode SBWP, SCOT and SOST as Note 455140 - "Configuration of
    e-mail, fax, paging or SMS using SMTP"
    for example :
    I logged in SAP system with user Basis01 (with email u1Afes.com ) -> then,using tcode SBWP -> new message -> send to u2Afes.com with Internet Mail type and then status message with green light -> sending ok
    and then I have used Microsoft Outlook 2007, I logged with account u2 ->check email -> Ok. I saw message which send from u1
    Finally, My problem is how can receive mail in SAP system without using Microsoft Outlook
    For example:
    Login system SAP with Basis01 account (with  u1Afes.com ) -> tcode SBWP ->New Message -> send to u2Afes.com
    and then
    Login system SAP with Basis02 account (with u2Afes.com ) -> tcode ??? ->
    To receive email from Basis01 (with u1Afes.com )
    Please help me now
    Thanks
    I replace "@" with "A" because of banning email of this forum.
    This quote is about sending email in local network. And we can't receive any email from the outside email address. Addition if I wanna send email to internal email in Internet (we've just tried with email address in local network) What should I config in SAP and Exchange ?
    By the way, Is SAP Server IP added to Relay Agent for sending or receiving mail ?
    Regards
    An NLP
    Edited by: An NLP on Apr 6, 2010 7:03 PM

    Hi,
    This problem is a classic problem of mail routing via Exchange. Exchange like most mail servers use the domain part of the email address as a means to route mails. So I will make an assumption that your main company mail addrss is "User @ fes.com".
    So when you send a mail to the "User @ fes.com mail" address the mail is delivered to your Outlook mail address as this is the default route for company.
    (Q) So how do you get your Exchange server to relay the mail into the sending SAP system?
    (A) The easiest way would be to setup and unique mail domain for your SAP system. I always recommend "user @ client.sid.company.com" which in your case would be "u1 @ 100.PRD.fes.com". You can then instruct Exchange to send any emails addressed to 100.PRD.fes.com domain to your SAP system. Also using this format of address you can configure multiple mail connections into multiple SAP systems.
    (A) Another answer would be to enter the "Full" email address (LOcal and Domain part of address) into the routing rule for Exchange e.g. "U1 @ fes.com" so that all emails addressed to this user will be delivered into SAP. However this method requires a lot of Admin as you will have to update Exchange with ALL email address that need to receive emails. Also if your corporate mail address is "U1 @ fes.com" then all mails will be forwarded to SAP.
    I would definitely NOT recommend this method but the decision is up to you.
    P.S. The IP address of the SAP system is entered into the mail header of the email. This is standard practice in SMTP relay. You can suppress this header in Exchange
    Hope this helps
    Michael

  • Problem with sending and receiving e-mail through exchange [GMail]

    Hello I have problem with sending and receiving e-mail.
    all is well set, username and password are correct, the server set m.google.com. verification of data is about like stepping into a post and want to check the post office gives me an error message: Can not Get Mail. The connection to the server has failed
    I have this problem on my two iPhone

    http://www.zdnet.com/google-drops-exchange-activesync-support-for-free-email-acc ounts-7000008836/

  • Is there a software in which I can hook up my iPhone 4s to my computer and send and receive text messages and calls (via headset) through my computer?

    Is there a software in which I can hook up my iPhone 4s to my computer and send and receive text messages and calls (via headset) through my computer? Whether it's free or cost money, can someone please give me a name of a program or software that allows me to do this? I can't seem to find anything like this for the iPhone.

    No.

  • I am having trouble with iMessage being activated. It has worked up until yesterday and now won't activate and is saying no address in the send and receive section. My number is there but not ticked. Any suggestions on how to fix this?

    I am having trouble with iMessage being activated. It has worked up until yesterday and now won't activate and is saying no address in the send and receive section. My number is there but not ticked. Any suggestions on how to fix this? I have shut down my phone, but still no luck!

    iMessage and FaceTime went down yesterday for some people. Mine is still down. My iMessage is saying the same thing about being activated. Sounds like you are still down too. Ignore the status page that says everything is fine - it lies.

  • Need to use only one sender and receiver communication channel.

    Hello Experts.
    I have a scenario where in I have to use only one sender and receiver communication channel to push files from different source directories to different receiver directories.
    For Eg;
    Sender                              
    D://dir1/file1 --->                  E://dir1/File1
    F://dir2/file2 ---->                 G://dir2/file2
    H://dir3/file3----->                 I://dir3/file3.
    Can this be achieved by using pass through scenario?
    Please let me know if the requirement is not clear.     
    Thanks in advance.
    Advit Ramesh

    Hi Advit,
    I think it is possible. You have to use the Advanced Selection for Source file in the sender channel to define multiple files to be picked up. Also, the Dynamic configuration must also be enabled and used in the mapping so you can manipulate the target directory and target file name based on your source files.
    For Polling from multiple directories:
    http://wiki.scn.sap.com/wiki/display/XI/File+Sender+Adapter+-+Polling+Multiple+Directories
    Dynamic Configuration:
    Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki

  • HT4628 I am able to download updates and send and receive email so I know I have connection to my wireless router. However, when I click on Safari, I get the message "Safari quit unexpectedly." What is my problem and how do I solve?

    When I click on Safari, I get the message "Safari quit unexpectedly." I know I have access to my wireless net work because I just found and downloaded updates and can send and receive mail. What is my problem and hoe is it solved?

    As Outlook is not an Apple product, you will find more helpers familiar with Outlook here:
    Office for Mac forums

  • Can 2 people in different locations at the same time import, access, send, and receive the same messages from the same email account

    I import messages into Thunderbird. I send and receive emails. One of the things I like about Thunderbird is that I can insert (image, link, etc) right where I want to, and I can Attach. But not just a simple attach file. No, I can also click Attach and choose Webpage. A lot of web-based emails are plain, simple, no frills - Attach file and that's it.
    So I need to have my client be able to do the same thing I do when sending out emails, Namely sending out emails with an Electronic Press Kit (EPK) attached - which is to say, a webpage (not a pdf in our case). So, I need her to download, install, and use Thunderbird.
    Here's the problem and my question. She needs to access, send, and receive from my email account. That would be easy if it was simple attach files - she could just login on the web, go to squirrel mail and bang it out.. Here it is: She needs to be able to import the messages to be able to reply to some messages - she needs access to what I have access to. She needs to use Thunderbird so she can take advantage of the features like insert image with link or attaching a webpage. My question is how will this affect my use? Can 2 people simultaneously and from different locations access and use the same email account or is it a case where her importing the emails would cut me off..Is it an either or thing? Basically, can her and I both import the emails or can they only be imported to one location at a time. Because every time someone sends me an email i get it right there on my Thunderbird application..it's imported to my Thunderbird..I want her and I to be able to do that without affecting each other. I don't want her to start importing to her desktop and then I can no longer import. If she says "point those messages to my computer what will happen to my ability to access them on my computer in the same manner I am currently?

    I think there is a contradiction in your requirements. You want two people to share an account and you don't want either to interfere with the other.
    The short and simple answer is to use IMAP to connect to the mail server. If your current email provider doesn't offer IMAP, find another that does. This is old technology already and it's disgraceful that some email providers haven't yet put it in place.
    IMAP means that your messages are stored on the server and both of you will see exactly the same set of messages. And therein lies the contradiction; you will both see changes made by the other so you are inherently interfering with one another.
    Caveats: some providers may not permit you both to access the account concurrently, and even if they do, things may become interesting if you both choose to work on the same message simultaneously.
    Note that all of this is about email servers and protocols; your choice of Thunderbird as your email client has little bearing on the situation.

Maybe you are looking for

  • Widget browser and Adobe Help not opening in dw cs6

    I am trying to insert a widget in dw, but I cannot get the widget browser to open. I have dw cs6 installed in my applications folder along with Adobe>Widget Browser and Adobe help.  How can I get this to work?

  • Clarification - CRM

    Hi I have the below requirement : System is Stand alone CRM (Assume) Like in CS (R/3) - Service Order , We have Service Order in CRM also . My doubt is like in CS we put the components that are required in the components tab in service order and also

  • See my code for geting the datasource that give me error

    sir i use under blow code for geting datasource no error in datasource but when use datasource object that give me errr Connection conn = null ; // the following should be in a try-catch... javax.naming.Context ctx = new javax.naming.InitialContext()

  • Time Evaluation (Time management)

    hi everyone...... i just want someone to explain me with some little examples the difference between time recording with clock time & without clock time, i really have some confusion in it, also if there is any useful document or link that can help i

  • Reliable IOS Updates

    I have bought Iphone 5 in december 2012 and enjoyed for few months. After some time due to crazy updates and incompetent hardware to handle software updates my phone is screwed up in multiple ways 1. Battery get drained so fast 2. Phone get hot when