Using SMTP service in SAP Business Connector

Dear All,
Can any one tell me how to use SMTP service in SAP Business Connectors. My requirement is like I need to send a mail to a particular mail id, if a transaction fails.
Do i need to do some configuration from Administrator side.
What all efforts would be required for the same.
Regards
Siddhesh.

Hi Carlos,
I had escalated the issue to the BASIS/INFRA team. But they say that there is no configuration that can be done on the mail server side ( exchange server ). They told me that some configuration needs to be done from the BC side.
This is what he had to say:
Port 5555 is the non-standard default port used by SAP BC for HTTP connections. For SMTP the default port number is 25.
As far as i understand this port 25 is used when in routing rule we define email transport. But my requirement is like it should first do an http and only in case when http fails it should do SMTP.
So it is not possible to have routing rule with mail transport.
Can you give some inputs from your side.
Regards,
Siddhesh S.Tawate

Similar Messages

  • To run a java service in SAP business connector.

    Hi,
    I have created one java service in SAP business connector.When i run it, i get the error as " Service 'rfctest:validatedata' is not operational. To run this service, first recompile the Java source."
    I have set the "path" variable,still i am getting the same error.
    What should i do to solve this problem?

    Hello,
    when you call a BAPI from an external system via Business Connector, you will send a bXML document to BC (for example via HTTP). Refer to the SapbcSAPAdapterGuide for how to do that in detail, its good explained (see 4-25 and 7-3) there.
    The explanation about sender/receiver is not correct. sender and receiver are the logical system names of the SAP backend system and the external system (check in transaction SALE of the SAP system).
    Just send such document to BC, it will create the routing rule automatically. Then complete the routing rule (see 7-2) and activate it.
    CSY

  • Flat File Transfer from SAP R/3 4.7 to SAP Business Connector 4.8

    Hi Experts,
    I have a requirement of transferring a flat file from my R/3 SAP 4.7 Box Application Server to the Business Connector 4.8 Box. I am new to SAP Business Connector and I am not to sure whether FTP works if I use a shell script in SAP R/3. Also, is there any way Business Connector Box can pull the file from R/3 Application Server and store the file in the Business Connector Server.
    Any help will be appreciated!!!
    Regards,
    Subhhrangsu

    Hi,
    There are many ways thru which you can pass document to SAP BC:
    You can HTTP, FTP, Email document to SAP BC.
    SAP BC has predefined services for all of them.
    For FTP document to SAP BC:
    1 Initiate an FTP session on SAP BC Serveru2019s FTP listening port ( this can be found out from SAP BC administrator or from SAP BC homepage).
    2 Point to the directory that contains the service to which you want to pass the XML
    document.
    Example cd \ns\Purchasing\SubmitOrder
    3 Copy the XML document to this directory using the following command:
    put XMLDoc.xml
    Where XMLDoc.xml is the name of the file that you want to pass to SAP BC Server.
    Example put PurchaseOrder.xml
    Above code can be written in a batch file and you can schedule it to run at interval of minutes.
    You can write java client program as well to upload file and map it to String variable of Flow service of SAP BC.
    As Micheal said, you can look at sapbc/Developer/doc folder to look for more options.
    Best Regards,
    Divyesh

  • JCO Timeout for SAP Business Connector 4.7

    Environment :
      Windows 2000, SAP Business Connector (BC) 4.7
    General Description :
      SAP BC is used to invoke BAPI's in the SAP R/3 system.
    Issue :
      Some BAPI's are taking some time to return response depending on user load. Need to provide a timeout for RFC calls invoked by SAP BC using JCO.
      Following is the entry in the rfc trace log file when BC starts up ...
    000000  -
      2005-05-12 11:07:20 EDT
    000001  [B2B-SAP.0011.0001] [JNI-LAYER] RFC.nativeSetTraceLevel()                with rc = RFC_OK   leave, [SUCCESS]
    000002  [B2B-SAP.0002.0022] Log level set to 10
    000003  [B2B-SAP.0002.0025] Registered SAP package trace with core trace
    000004  [B2B-SAP.0002.0014] Starting SAP services
    000005  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.setProperty(jco.jdsr.comp_name, SAP BC server0023 5555)
    000006  [B2B-SAP.0003.0001] Loading native libraries
    000007  [B2B-SAP.0003.0002] JCO version: 2.1.4 (2004-10-20) sapjcorfc 2.1.4 (2004-10-20)
    000008  [B2B-SAP.0003.0004] jRFCLibrary info: 2.1.4 (2004-10-20)(C:\sapbc47\Server\packages\SAP\code\libs\sapjcorfc.dll)
    000009  [B2B-SAP.0003.0003] RfcLibrary version:
    This RFC library belongs to the SAP R/3 Release *** 640,0,41  *** MT-SL
    Versions of SAP internal libraries:
      dptr:    2
      ni  :   37
      cpic:    3
      rfc :    3
    00000A  [B2B-SAP.0011.0001] MiddlewareRFC.setProperty(jco.middleware.wait_for_request_time, 1)
    00000B  [B2B-SAP.0002.0016] Loaded SAP server configurations
    00000C  [B2B-SAP.0002.0015] SAP services started
    00000D  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setAbapDebug(false), current state false
    00000E  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setTrace(true), current state false
    00000F  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.setAbapDebug(false), current state false
    000010  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setMaxWaitTime(30000)
    000011  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setConnectionTimeout(600000)
    000012  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Pool.setTimeoutCheckPeriod(30000) on pool SERVER-300&USER_RFC&300&EN
    000013  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.PoolManager.addPool:
          name = SERVER-300&USER_RFC&300&EN,
          connection = USER_RFC|300|EN|AS=[11.12.7.296|00|]G0|,
          pool_size = 10,
          max_wait_time = 30000,
          pooled_connection_timeout = 600000,
          timeout_check_period = 30000
    000014  [B2B-SAP.0005.0003] Pool changed: SERVER-300&USER_RFC&300&EN containing 0 connection(s)
    007E72  [B2B-SAP.0006.0001] Executing invoke for ZBAPI_TEST_Service on SERVER-300
    007E73  [B2B-SAP.0011.0001] [JAV-LAYER] JCO.Client.execute (ZBAPI_TEST_Service) on handle [2]
    Questions :
       1) Is there a SAP BC configuration parameter for RFC execution timeout ??
       2) Any other way of enforcing the RFC time out ??
       3) If there is a way to set timeout on JCO.Client.execute method ??
    I really appreciate your help !!

    I have tried changes the connection timeout value but if doesnot affect the time RFC. Following is from SAP BC adapter  guide ..
    Delay (minutes) until an unused connection to a SAP
    System is timed out (default: 5)
    I think I need similar setting as that for RFC connection !!

  • Problem processing IDOC on SAP business connector

    Dear all,
    Using the SAP Business Connector I try to convert and IDOC which is in plain text to a record representing this IDOC.
    Note: The record is generated using a DTD and the plain text is 'inserted' to the service using a MAP statement.
    Which flowservice can I use and how should it be used?
    Currently I'm experimenting with the FlatToHierarchy service.
    Your help is appreciated!
    Best Regards, Harald

    Hi,
    I wonder that no one replied until now!
    You are on the right way: you must use the service pub.sap.idoc:transformFlatToHierarchy. Then you must create a record in the PipelineOut-Section, referring to your IDoc-Record (that you have created form the DTD), and then connect/map it to the Service-Out-Parameter boundNode of the transformFlatToHierarchy-service. The connection between boundNode in Service Out and boundNode Pipeline Out must be deleted and the last must be dropped (red arrow down).
    That's all! You don't need no other Mapping-Step.
    I hope that would help you!?
    Pöease excuse my bad english: I'm not pratizing it very often and my native langugae is german.
    Best regards, Dagmar

  • SAP Business Connector on Windows XP

    I've been trying to get the SAP Business Connector 4.7 to work on Windows XP professional but haven't been very successful. The business connector seems to install okay, but when I try to start the business connector through the server.bat file it generates the following errors:
    (loglevel = 4) 
    Loading WmPartners package
    00000E  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.EmailTransport:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.EmailTransport
    00000F  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:saveMessage: [B2BSERV.0026.9106] No method saveMessage in class wm.PartnerMgr.xtn.admin
    000010  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:view: [B2BSERV.0026.9106] No method view in class wm.PartnerMgr.xtn.admin
    000011  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.admin:saveRoutingRule: [B2BSERV.0026.9106] No method saveRoutingRule in class wm.PartnerMgr.gateway.admin
    000012  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.admin:convertWildCards: [B2BSERV.0026.9106] No method convertWildCards in class wm.PartnerMgr.gateway.admin
    000013  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.B2B:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.B2B
    000014  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:editStore: [B2BSERV.0026.9106] No method editStore in class wm.PartnerMgr.xtn.admin
    000015  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.FTPTransport:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.FTPTransport
    000016  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:invokeViewService: [B2BSERV.0026.9106] No method invokeViewService in class wm.PartnerMgr.xtn.admin
    000017  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:viewMsgContent: [B2BSERV.0026.9106] No method viewMsgContent in class wm.PartnerMgr.xtn.admin
    000018  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.admin:updateTransports: [B2BSERV.0026.9106] No method updateTransports in class wm.PartnerMgr.gateway.admin
    000019  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.admin:invokeService: [B2BSERV.0026.9106] No method invokeService in class wm.PartnerMgr.gateway.admin
    00001A  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.xtn.admin:log: [B2BSERV.0026.9106] No method log in class wm.PartnerMgr.xtn.admin
    00001B  [B2BSERV.0028.0005] Loading SAP package
    00001C  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.RFC:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.RFC
    00001D  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.BAPI:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.BAPI
    00001E  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.XML:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.XML
    00001F  [B2BSERV.0026.0002] Failure while loading service sap.bapi:encodeToFile: [B2BSERV.0026.9106] No method encodeToFile in class com.wm.pkg.sap.bapi.BusinessDocumentCoder
    000020  [B2BSERV.0026.0002] Failure while loading service sap.bapi.Mapper:bapi2rfc: [B2BSERV.0026.9104] Missing class sap.bapi.Mapper
    000021  [B2BSERV.0026.0002] Failure while loading service sap.bapi.Mapper:rfc2bapi: [B2BSERV.0026.9104] Missing class sap.bapi.Mapper
    000022  [B2BSERV.0026.0002] Failure while loading service sap.bapi.Mapper:bapi2ale: [B2BSERV.0026.9104] Missing class sap.bapi.Mapper
    000023  [B2BSERV.0026.0002] Failure while loading service sap.admin:listGatewayServices: [B2BSERV.0026.9106] No method listGatewayServices in class sap.admin
    000024  [B2BSERV.0026.0002] Failure while loading service sap.bapi.Mapper:ale2bapi: [B2BSERV.0026.9104] Missing class sap.bapi.Mapper
    000025  [B2BSERV.0026.0002] Failure while loading service wm.PartnerMgr.gateway.transport.ALE:startup: [B2BSERV.0026.9106] No method startup in class wm.PartnerMgr.gateway.transport.ALE
    000026  [B2BSERV.0028.0005] Loading WmSamples package
    000027  [B2BSERV.0028.0026] Warning: Deprecated service type (webtap) in service sample.webtap:logApp in package WmSamples
    000028  [B2BSERV.0028.0005] Loading WmDB package
    These errors don't stop the business connector from starting up, but the errors are not normal behaviour. When I try to start the business connector through a Windows service then I get the message "Could not start the SAP Business Connector Service on Local Computer. Error 126: The specified module could not be found".
    I have a working business connector installation on a Windows 2000 server, and when I checked the error log of that installation I noticed that it had logged the same errors about the 'WmPartners' package. It on the other hand didn't have any problems loading the 'SAP' package.
    I tried installing the business connector on two different systems with identical results. Has anybody been able to get the business connector to work on Windows XP?

    HI,
    I have no idea clearly about BC.. but ..
    See the following links.. may be helpfull..
    Business connector
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a8609b90-0201-0010-c6bc-a41b611c6dac
    SAP Business Connector on Windows XP
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92e5bd90-0201-0010-b799-dfdc27f3100a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a8424011-0d01-0010-e19d-e5bd8ca52244
    If usefull .. points rewarded..
    Regards
    Chilla..

  • HTTP POST /  SAP Business Connector 4.6

    I'have written my message in forum XI which is better location for this subject.
    Message was edited by: Vincent BLOHORN

    Hi Ganimede,
    I'm not sure if 4.6 is (should be) but 4.8 is definitely UC compatible.
    Please follow these links:
    [Connectors @ SAP overview page|http://service.sap.com/connectors]
    [SAP Business Connector (SAP BC) Documentation|http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000719330]
    Regards,
    Martin Fuchs
    SAP AG

  • SAP Business Connector certificate problem

    We are trying trying to send data from SAP to bank via SAP business connector using bank URL. We have configured the certificates in SAP BC which are authenticated by bank on the basis of private key generated from our server. Now when we trying to post data to bank it is giving below error.
    java.lang.RuntimeException: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by TrustDecider
    Any idea? Please give me some suggestions to resole this problem.
    Thanks and Regards

    Normally I do not like to give documentation references, but in this case I think it makes sense. Certificate handling is an ugly and complicated topic, so many things can go wrong. Please check the SAP BC 4.7 Administration Guide, page 103 onwards ("Securing communications with the server"). It explains very well what needs to be done. Make sure you configured everything correctly.
    CSY

  • Finding message in SAP Business Connector with IDoc number

    Hi Experts,
    Since there is no separate forum for Business Connector, posing my question here.
    Does anyone have idea how we can find a message in SAP Business Connector if we know the source IDoc number, the same way we use IDX5 in PI.
    Thanks,
    Dhawal

    AFAIK there is no simple way.  What I usually do is compare timestamps. The Idoc is usually processed on the B.C. within the same minute.
    We only have up to 10 Idocs within one minute and I do not have to search every day. So it works for me.

  • Download of SAP Business Connector 4.7 or 4.8

    Hi!
    I would like to know how to download the SAP BC 4.8 besides the link bellow:
    http://www.service.sap.com/sbc-download
    Thank you very much!
    regards
    Thom

    Try the following:
    http://service.sap.com/connectors
    -->  SAP Business Connector
    --> Tools & Services
    --> Download SAP BC Release 4.7
    Is that what you were searching for?
    Markus

  • Is SAP Business connector required for faxing of scripts....

    Hi,
    Do we need to have SAP Business connector if we want to fax the script or form ?
    Regards,
    Rajesh

    No, it is not required.  At my company we use a third party software to handle all faxes.  Really it is setup SAP as an output device, so it is just like printing to a printer.  THe only differences is we need to have a header page in the sapscript which gives all of the details of the fax to the third party software.  This software then strips off this first page and faxes the rest of the pages.
    It is called RightFax and it runs on a separate server.
    Regards,
    Rich Heilman

  • Old version of SAP Business Connector (4.6)

    Hi,
    where can I download old versions of SAP Business Connector?
    in BC section ([http://service.sap.com/sbc-download|http://service.sap.com/sbc-download]) there are only 4.7 and 4.8 installation package and upload.
    thanks
    Damiano

    What is the reason for staying on 4.6 ?
    Did you develop many complicated packages and are afraid they wont work anymore in 4.7. That should not be the case.
    By the way, if someone answers your question, you are encouraged to give the points to that person and not just mark the question as answered but I will answer your questions about BC anyway, if needed.
    CSY

  • WebMethods Integration Server Vs.  SAP Business Connector 4.7 (BC)

    Hi All
           We have to integrate non SAP systems and SAP systems for that we have 2 options
    1)   SAP Business Connector 4.7 (BC)
    2)   webMethods Integration Server
           which one will be better option for this kind of POC by considering all the issues like interaction with SAP RFC or IDocs, performance, load balancing, salability, maintenance, etc.
         please tell us pro's and cons of both to decide upon which is better option.
         Thanks in Advance
    Thanks
    Ninad

    It is the same product, with different branding.
    The only thing is that SAP consider the SAP BC end-of-maintenance, and suggest to use XI.
    Regards,
    Sandro

  • Corefix 7 in SAP Business Connector 4.7

    Hi,
    We are currently using sap business connector version 4.7.we have 2 systems production and test,where in our production system is at Corefix 5 and test system is at Corefix 6.
    I need to know what are the patches and fixes provided by Corefix 7 in business connector,also a comparison with other corefixes.
    Thanks in advance!!
    Regards,
    Ramya

    Hi Ramaya,
    I am currently working on BC 4.7.
    I have established one HTTP to IDoc scenario.
    I want to know more about XSLT mappings in BC.
    What is it's structure?
    How we can use it in this scenario?
    Can you please help me?
    Waiting for your reply.

  • How to HTTP POST data to SAP Business Connector

    Hello,
    I would like to transfer data from a client with HTTP POST to SAP Business Connector. SAP BC acts as server. In SAP BC I created a Java service containing the code:
    IDataCursor idatacursor = pipeline.getCursor();
    idatacursor.first("node");
    Object obj1 = idatacursor.getValue();
    System.out.println(obj1.toString()); //for test
    But how can I access the data that was sent with HTTP POST in my service?
    Thank you
    Piotr Dudzik

    Hi,
    quite easy:
    StringBuffer buffer = new StringBuffer();
    String resultString = null;
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+
            "<biztalk_1 xmlns=\"urn:biztalk-org:biztalk:biztalk_1\">"+
            "<header>"+
            "<delivery>"+
            "<to>"+
    "<address>urn:sap-com:logical-system:XXX</address>"+
            "</to>"+
            "<from>"+
    "<address>urn:sap-com:logical-system:YYY</address>"+
            "</from>"+
            "</delivery>"+
            "</header>"+
            "<body>"+
            "<doc:Z_RFC_CALL_NAME> xmlns:doc=\"urn:sap-com:document:sap:rfc:functions\" xmlns=\"\">"+
            ... [PARAMETERS]
            "</doc:Z_RFC_CALL_NAME>"+
            "</body>"+
            "</biztalk_1>";
            try {
                URL url = new URL(SCHEMA, this.host, Integer.parseInt(PORT), FILE);
                HttpURLConnection connection = (HttpURLConnection)url.openConnection();
                initConnection(connection);
                OutputStream out = connection.getOutputStream();
                out.write(xmlString.getBytes());
                out.close();
                InputStream reader = connection.getInputStream();
                char ch;
                while((ch = (char)reader.read()) != -1 && ch != 0xFFFF)
                    buffer.append(ch);
                resultString = buffer.toString();
                if (this.getXMLEntry(resultString, "E_STATUS").equals("E")) { // ERROR
                    System.out.println("errormessage: "+this.getXMLEntry(resultString, "E_EMSG"));
                } else {
                    // ok, is supose this is an S (success), parse the stuff
                reader.close();
            catch (Exception e){
                e.printStackTrace();
                System.out.println(e);

Maybe you are looking for