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

Similar Messages

  • 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

  • Running a java service on linux (Redhat)

    I can create a basic script to run my java service, I can stop, and restart it from the command line when logged in. I have installed the script as a service. However, when I reboot, the service will not start. I have set it to be the very last thing to start on boot-up. I'm thinking it may have something to do with the fact that when I run a java program, it does not bring me back to the command line, it just 'hangs' until it is completed, and this particular java program will obviously hang indefinitely as it is a service.
    Any help would be GREATLY appreciated.
    Thanks,
    PAUL.

    Why not start it in the background? (a trailing ampersand)
    kind regards,
    Jos

  • How to integrate with java connnector in sap business one 2005

    hai,
    i have small doubt,
    how to integrate with java connnector in sap business one 2005
    thankig
    anand

    Anand,
    I am not sure of your exact question, but the SAP Business One SDK Help Center documentation contains all the information that you should need with respect to using the SAP Business One JCO connector.  You should read this documentation.
    Eddy

  • Cannot start widget - Ensure that SAP Business One Integration Service and SAP Business One Event Sender Service have been started

    Dear Experts .
    I'm trying to enable widget for my company db but getting the following error :
    Ensure that SAP Business One Integration Service and SAP Business One Event Sender Service have been started; then wait 1 minute and try again
    I can connect to the B1iF locally and remotely .
    I have the db configured in the SLD and connects successfully .
    I have the event sender service and proxy started and configured for the company db.
    I can access the Dashboard web portal and login with database sap credentials (but I see nothing there)
    I've checked that there are no duplicate entries in the SSLD table for SBO common (note : 1619422)
    I've also tried to re-activate the xelcious from the B1iF->control.
    My Setup :
    I'm runing SBO server, B1iF installed locally and B1iSN installed on a 3rd party server.
    I'm using B1iF as even forwarder for B1iSN.
    I know this has been discussed many times through out the forum and I've tried most of the stuff other than clean install.
    I would appreciate any input before removing B1iF completely and re-installing.
    Thanks in advance ,
    Nadav.

    Hi,
    The problem is SAP 8.81 PL04, with PL05 or PL06, it is solutioned.
    Thanks,

  • 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

  • RFC function callls a SAP Business Connector Flow - only upper case

    Hi everybody,
    I wrote a function in SE37 which is calling a Flow in SAP Business Connector.
    R/3 and SAP BC, both are Non Unicode systems.
    The export parameter is TYPE makt-maktx.
    The call to SAP BC works fine. Only all the text I can see in the pipeline of SAP BC is upper case.
    I checked wether the domain of the makt-maktx allows case sensitive texts.
    This is OK.
    I have no idea how I can tell SAP BC to receive case sensitive texts.
    I checked the forums. Seems nobody had such a problem.
    Can somebyody help?
    Best regards
    Jochen
    Hi to all,
    it was not the JAVA Version, or a bug or whatelse.
    I just ingnored while testing in SE37 that there is
    a Flag [X] case sensitive - That's all!
    Shame on me!
    Greetings Joe
    Message was edited by:
            Jochen Seeliger

    Hi Priya
    Seeing the messages, it appears that server is down.
    "java.net.ConnectException" occurs whenever you try to connect to a system which is not up and running.
    cheers
    Sameer
    PS: Please award points if you find the answer useful

  • 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 !!

  • 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);

  • 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

  • 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

Maybe you are looking for

  • ITUNES WON'T DOWNLOAD PROPERLY!

    Download appears to work until I try and open ITunes on the desk top... it just stalls. Have re-installed/uninstalled now five times same thing happens. Any suggestions? Thanks!

  • Help Document on Query View's (Global & Local)

    Hi, I thied to search SDN for previous posts on this topic but none of them are useful. Is there any SAP Help Doc or any other Help Doc that will explain me difference between Local View & grobal View on a Query and How to Generate Local View and Glo

  • ADOBE PDF form to JMS message posting

    I am using ADOBE PDF interactive Form as client. When I submit the form, Can ADOBE put the message to JMS queue. Is there any APIs to create connection for the Queues. Thanks, Saravanan G

  • TS4006 How to multiple devices to find in find my iPhone

    I have an iPad 2 and iPhone 4 in find my iPhone I only see one device.

  • Deleting user SAP* in SQL

    Hi well i am having some difficulties, i need to delete the user sap*  from an SQL Database, i know that i must execute the following command delete from usr02 where bname='sap*' and mandt='xxx' my question to you is where to i execute this query? do