Java Services In Business Connector supported by XI ?

I am working with the java services of BC and want to convert it into XI.
My question is -the webMethods defined in the java services of BC are accepted by XI or not?
eg. the code in java services of BC is
IDataCursor pipelineCursor = pipeline.getCursor();
This line will be accepted by the XI  when imported or will show error?
As (IDataCursor) is BC propriety  thing.
From where the meaning of the code written in java services of BC can be obtained.
eg.
String value = configProp.getProperty(configKey, defaultConfigValue);
Here what does getProperty method do?
Thanx.

Hi,
my apologies, don't fully understand your question. Are you asking what is the XML structure that a BC Java service can consume?
If that is the question then the answer is: A BC Java service can not consume XML, it consumes IData / IValues objects.
So your question should probably be: How do we build IValues / IData objects from an InputStream?
Answer: Use a Dom or SAX parser and build the corresponding IValues / IData object maps out of that. This is accurately what we have done (+ implemented our own IValues / IData libraries so that we don't use any built-in BC classes in PI to avoid any licensing issues).
The key is to understand how IValues / IData are implemented and how to deal with XML in input / output streams.
We only use this solution internally with our BC2XI product (when requested by the customer) and unfortunately don't provide the libraries separately.
Good luck.
Cheers
Kalle

Similar Messages

  • Version of Business Connector Supported

    Hi ,
    What version of Business Connector supported in xMII? Is it possible to connect SAP ECC6.0 with the BC 4.7 using xMII?
    Thanks,
    Bala

    My apologies for putting this so BLUNTLY, but why would you want to do this?
    ECC 6 fully supports JCO in which case you would use the xMII JCO blocks that are already in place and have been for some time now.

  • Problem while invoking service in business connector

    Guy's
    when i run my java code ,to invoke service in BC,it
    get compiled successfully ,but when i write call
    my class file using java command it give me following
    exception
    server  http://165.195.30.20:5655/invoke/PIT1:SalesOrderCreation
    Exception in thread "main" java.lang.NoClassDefFoundError: org/pf/util/Base64Con
    verter
            at pitstop.sendRequest(pitstop.java:41)
            at pitstop.main(pitstop.java:141)

    Hi.
    __sJT_st = (oracle.jdbc.OracleCallableStatement) __sJT_cc.prepareCall("BEGIN :1 := \"ABC_CLASS_API\".GET_ABC_PERCENT(:2 ); END;");
    1 - Why are you casting to a concrete Oracle driver class? Won't a standard
    java.sql.CallableStatement work for you?
    2 - I would recommend using the standard JDBC format for prepared SQL:
    prepareCall("{ ? = call( GET_ABC_PERCENT(?) }");

  • Making a call to a Business Connector Flow Service from within an ABAP prog

    Hello,
    I am trying to make a change to one of the flow services within BUsiness COnnector.
    The way the system is currently set up is that the flow service is called from within an ABAP program via an RFC call.
    A remote FM exists in SAP and this is called by the program and there is a corresponding flo service within Business Connector.
    I have basically copied an existing flow service which works fine and made a few minor tweaks. Within SAP, I have copied the remote FM and again made a few minor tweaks.
    However, when I run the program, it short dumps at the point whee my remote FM is called with th following message :-
    "Unknown Partner and Message Type. Sender: xxxx Receiver: xxxx MsgType:  "
    I am not a Business Connector expert and I guess I am missing a ste but I'm not sure what it is.
    Can anyone advise?
    Thanks,
    Ruby

    Hello,
    I am trying to make a change to one of the flow services within BUsiness COnnector.
    The way the system is currently set up is that the flow service is called from within an ABAP program via an RFC call.
    A remote FM exists in SAP and this is called by the program and there is a corresponding flo service within Business Connector.
    I have basically copied an existing flow service which works fine and made a few minor tweaks. Within SAP, I have copied the remote FM and again made a few minor tweaks.
    However, when I run the program, it short dumps at the point whee my remote FM is called with th following message :-
    "Unknown Partner and Message Type. Sender: xxxx Receiver: xxxx MsgType:  "
    I am not a Business Connector expert and I guess I am missing a ste but I'm not sure what it is.
    Can anyone advise?
    Thanks,
    Ruby

  • SAP Business Connector MIME Services to SAP XI Transition

    Today we are using the built in MIME services in Business Connector (pub.mime) to format a MIME message, and are then using https to post it to an external business partner by placing the data into the "mimeStream".
    Is there a way to perform this same functionality in SAP XI?
    Thanks
    Peter

    Hello Prateek,
    Thank you very much for your answer. The AdapterGuide was really helpfull.
    Now the routing rule is associated to the correct Service (that was a the problem). So the rule started to process the XML files from the folder (the XML files disappeared immediately after I corrected the rule).
    But now my problem is that on the SAP side there is no inbound IDOCs so it seems the trasmission may failed.
    Moreover under "Routing"-->"Transactions" I don't see these entries with the the current date.
    Our routing rule is simple: "wildcard" "wildcard" "wildcard" "ALE (R/3 IDOC)"--><OUR SAP SYSTEM>
    The SAP connection is working as I can test under "SAP..." menu.
    Is there any other way to monitor what had happened with these XML files? I'm sure the BC processed as the files are gone, but there is no IDOC in the destination SAP...
    Thanks a lot!

  • Transport business connector service.......Urgent

    Hi Experts,
    The scenario is i am sending IDOC from SAP to SQL and SQL sends data for confirmation of Purchase order in SAP.
    For this i have 2 services in business connector. Things are working fine and i am at the stage of transporting the object to PRD.
    The problem is, I used an existing Package to create these 2 services.and for these services i created a

    HI,
    See the below links
    WAS - Business Connector
    business connector documentation
    SAP Business Connector
    Business connector
    Will Business Connector 4.6 be affected by new  Daylight savings changes
    Business connector
    More info on XI can be found at https://service.sap.com/xi
    and webAS on http://help.sap.com/saphelp_nw04/helpdata/en/f3/e20f3adfd0a706e10000000a114084/frameset.htm
    Check this also-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6f/1bd5c2a85b11d6b28500508b5d5211/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b4f3755a-0401-0010-b6b3-9b65bb7d4503
    Regards
    Chilla

  • Business connector exceptions(java)

    Hi,
    I am getting java exceptions from Business connector server continously.Need to know the root cause of these errors and how they can be eliminated.
    The error i am getting is as below:
    com.sap.mw.jco.JCO$Exception: (108) RFC_ERROR_INTERNAL: internal error
               at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeCreateTID(Native Method)
               at com.sap.mw.jco.rfc.MiddlewareRFC$Client.createTID(MiddlewareRFC.java:1246)
               at com.sap.mw.jco.JCO$Client.createTID(JCO.java:3903)
               at com.wm.pkg.sap.rfc.SAPSession.createTID(SAPSession.java:768)
               at pub.sap.client.createTID(client.java:373)
               at java.lang.reflect.Method.invoke(Native Method)
               at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
               at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
               at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
               at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
               at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
               at com.wm.lang.flow.FlowState.step(FlowState.java:430)
               at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
               at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
               at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
               at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:496)
               at wm.server.net.EmailTransaction$RunService.write(EmailTransaction.java:1375)
               at wm.server.net.EmailTransaction$RunService.run(EmailTransaction.java:1218)
               at com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-terra/module/core/source/com/wm/util/pool/PooledThread.java:103)
               at java.lang.Thread.run(Unknown Source)
    Any help on this regard would be highly appreciated.
    Thanks in advance.
    Regards,
    Priya.

    Hi Astrid,
    thanks for ur reply.
    i will chk that out and by the way the below is the full error log am getting and also there is some data loss in inbound messages to sap due to this error and IDOC exception.can u pls help on this issue
    Error being reported is:
    com.sap.mw.jco.JCO$Exception: (108) RFC_ERROR_INTERNAL: internal error
    at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeCreateTID(Native Method)
    at com.sap.mw.jco.rfc.MiddlewareRFC$Client.createTID(MiddlewareRFC.java:1246)
    at com.sap.mw.jco.JCO$Client.createTID(JCO.java:3903)
    at com.wm.pkg.sap.rfc.SAPSession.createTID(SAPSession.java:768)
    at pub.sap.client.createTID(client.java:373)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
    at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
    at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
    at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
    at com.wm.lang.flow.FlowState.step(FlowState.java:430)
    at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
    at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:496)
    at wm.server.net.EmailTransaction$RunService.write(EmailTransaction.java:1375)
    at wm.server.net.EmailTransaction$RunService.run(EmailTransaction.java:1218)
    at com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-terra/module/core/source/com/wm/util/pool/PooledThread.java:103)
    at java.lang.Thread.run(Unknown Source)
    and
    com.sap.mw.idoc.IDoc$Exception: (3) IDOC_ERROR_ILLEGAL_TYPE: The document does not correspond to the associated repository.
    at com.sap.mw.idoc.jco.JCoIDoc$JCoDocumentList.add(JCoIDoc.java:3095)
    at com.wm.pkg.sap.rfc.SAPSession.sendIDoc(SAPSession.java:671)
    at pub.sap.client.sendIDoc(client.java:356)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
    at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
    at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
    at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
    at com.wm.lang.flow.FlowState.step(FlowState.java:430)
    at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
    at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:496)
    at wm.server.net.EmailTransaction$RunService.write(EmailTransaction.java:1375)
    at wm.server.net.EmailTransaction$RunService.run(EmailTransaction.java:1218)
    at com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-terra/module/core/source/com/wm/util/pool/PooledThread.java:103)
    at java.lang.Thread.run(Unknown Source)
    thanks in advance
    regards,
    priya.

  • Starting Business Connector as a window service

    Hi All,
    I have installed BC server 4.6. I need to run this as a window service. Any idea on this ? Currently i start the server from the command prompt. But if i close the window, the server goes down.
    Your help is much appreciated.
    Thanks,
    sathya

    Hi,
    Normally the steps are:
    1) Install BC Application
    2) Download and implement Core Fix2 and Service Pack 3a (for 4.6)
    3) Install all packages and connections to SAP Production
    4) Set up BC application as Windows service
    have you refer to SAP Notes:
    516504     Business Connector 4.6 as Windows NT Service
    421525     Business Connector as Windows NT Service
    Regards.

  • Business Connector  : get querystring variables in url

    Hi;
    I have a server service in Business Connector .
    a client post a url like this
    http://10.10.10.10:5555/invoke/MM/mm2sms?drug_code=905913&drug_desc=aaaaa
    I have to get these variables drug_code,drung_desc and assing to a recordList..
    Firstly Which methods do i have to use and how?
    stringToDocument , documentToRecord?
    Thanks.

    Just declare these parameter names as input variables of type String in the Business Connector service. Then you will have them in your pipeline automatically.
    CSY

  • 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

  • Service for delete local files in Business Connector

    I have used the "get" service for copy the files in the Business connector, does anybody know if there is any service for delete local files, i have seen the service for delete remote files with ftp, but i don´t know how to delete the copied files in my server.
    Thanks in advance
    regards

    Hi Carlos,
    For this issue the best choice is create your own Java Service. I attach you the Java code:
      Put this code in a new Java Service
             boolean success = (new File("filename")).delete();
             if (!success) {
                 // Deletion failed
       Before, you must to create an input parameter in the new service where you must to save the file path. Change Filename with the input parameter variable.
       It's not difficult.
    Best Regards
    Ivá

  • Business connector java exceptions

    Hi,
    i am getting the below exceptions in BC server :
    java.net.ConnectException: Operation timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at com.wm.net.NetURLConnection.httpConnect(NetURLConnection.java:502)
    at com.wm.net.NetURLConnection.connect(NetURLConnection.java:162)
    at com.wm.net.HttpURLConnection.getOutputStream(HttpURLConnection.java:419)
    at com.wm.net.HttpContext.getOutputStream(HttpContext.java:578)
    at com.wm.net.HttpContext.getOutputStream(HttpContext.java:554)
    at com.wm.net.HttpContext.post(HttpContext.java:338)
    at pub.client.http(client.java:579)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
    at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
    at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
    at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
    at com.wm.lang.flow.FlowState.step(FlowState.java:430)
    at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
    at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
    at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
    at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
    at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
    at com.wm.lang.flow.FlowState.step(FlowState.java:430)
    at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
    at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:466)
    at com.wm.app.b2b.server.Service.doInvoke(Service.java:495)
    at com.wm.app.b2b.server.Service.doInvoke(Service.java:464)
    at com.wm.pkg.sap.rfc.Listener.handleRequest(Listener.java:340)
    at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:7238)
    at com.sap.mw.idoc.jco.JCoIDoc$Server.dispatchRequest(JCoIDoc.java:10268)
    at com.wm.pkg.sap.rfc.Listener.dispatchRequest(Listener.java:227)
    at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method)
    at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(MiddlewareRFC.java:1368)
    at com.sap.mw.jco.JCO$Server.listen(JCO.java:6805)
    at com.sap.mw.jco.JCO$Server.run(JCO.java:6734)
    at com.wm.pkg.sap.rfc.Listener.run(Listener.java:117)
    at java.lang.Thread.run(Unknown Source)
    also,the error recorded in the audit log is a function module name which has been defined in BC as a function map and the sap system is calling business connector to execute a particular service which is pub:client:http.
    inbound mapping has been done and when sap system calls BC to exceute this service,the above exceptions are raised.
    need to know the root cause of these exceptions and how they can be rectified.
    also,please clarify if the exceptions
    at com.wm.net.NetURLConnection.httpConnect(NetURLConnection.java:502)
    at com.wm.net.NetURLConnection.connect(NetURLConnection.java:162)
    at com.wm.net.HttpURLConnection.getOutputStream(HttpURLConnection.java:419)
    are occuring due to incorrect parameters in URL of http service or some other reason.
    any help in this regard would be appreciated
    thanks.

    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

  • Business connector services for PO

    Hi Expeets,
    I have to send Purchase order data to an external application (SQL) using IDOC when PO release. Means when PO release an IDOC send. I am getting IDOC in Business Connector.
    But i have dont no how to create services in BC Developer, I got an idea but i dnt no how to start creating service. 
    After ending an IDOC to BC when i opened BC developer i found a component for my message type(created new) which is havin 1map and a service '<b>Transport Service</b>'
    Do i need to use this anywhere or i need to create new, can anyone tell me a step by stepprocess how to create service and from where i have to start. In the develper document they onlu mentioned what r diffrent components and services, there is nothing from where i have to start
    Please help me as it is very urgent
    Regards
    Nik

    hi,
    with business developer installation you get a DOCs folder where you can find the best BC guides there are - if you're not satisfied however you can always attend BC530 and BC531 from SAP
    but those from docs folder are enough to start doing flows in BC,
    Regards,
    Michal Krawczyk

  • Business connector  and BAPI ,java code

    Guy's
    we are having development project based on <b>Business
    connector and bapi</b> for sales order creation,we are
    going for function module /TECCOM/SALESORDER_SIMULATE
    for Availability request ,i am not aware of using business
    connector and bapi before,they are going for some java code,now i have to create java code and use this particualr BAPI,pls if somebody already worked on such issue,then help me with some material which will guide
    me and help me in finishing this task easily,
    <b>mail me at [email protected]</b>

    This is a very usefull link:
    http://www.henrikfrank.dk/abapexamples/Java/

  • Get Data from SAP over the Business Connector into a Java Programm

    Hallo dear community,
    i would like to receive data from the sap over the application business connector into a java programm. i work with the german book "SAP Business Connector 4.8 - Administration und Entwicklung".
    Now i hand on the routing rule.
    [Screenshot|http://h-2.abload.de/img/routingruleuyt9.png]
    i don't know what i should configure here for receiving data, which i need for an java programm.
    i will be very happy, when somebody got a tip or an source (tutorial) where i can find such a configuration  :wink:

    I think u r writing BDC for Uploading the data from excel flile to sap. for this is the code I am sending u can use then for Uploading data from excel to sap.
    DATA: lv_filename TYPE rlgrap-filename.
    FIELD-SYMBOLS : <fs>.
    DATA : l_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA : l_index TYPE i.
    PARAMETERS : startcol TYPE i ,
          startrow TYPE i ,
          endcol TYPE i ,
          endrow TYPE i .
    PARAMETERS: p_flnam LIKE rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_flnam.
      CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       program_name        = sy-repid
      FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_flnam .
      MOVE p_flnam TO lv_filename.
    Uploading the flat file from the desktop
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                      = lv_filename
          i_begin_col                   = startcol
          i_begin_row                   = startrow
          i_end_col                     = endcol
          i_end_row                     = endrow
        TABLES
          intern                        = l_intern
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 2
      OTHERS                        = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      SORT l_intern BY row col.
      LOOP AT l_intern.
        MOVE l_intern-col TO l_index.
        ASSIGN COMPONENT l_index OF STRUCTURE itab TO <fs>.
        MOVE l_intern-value TO <fs>.
        AT END OF row.
          APPEND itab.
          CLEAR itab.
        ENDAT.
      ENDLOOP.
    I hope it will help u.
    Regards
    Nayan

Maybe you are looking for

  • Export to MOV with embedded Movies -- sound erratic

    Help! I've trying to do too much with Keynote, I'm sure: I need to make a multi-media presentation with bg music, VO narration, standard Keynote transitions AND embedded movie clips -- then exported as a MOV file. When I do export it, and play the MO

  • ERS Vendor Inv posting issue

    Hi Team, I have created a PO and the GR done. Vendor ERS activated and PO line item ERS and GR based Inv Verification also activated. Further how do i need to post the invoice.. To my knowledge ERS means upon GR invoice will be automatiocally created

  • Report Layout Problems - point over a letter - subscript words

    Hi, is there a possibility to get a point over a letter in the report mode? i need that as a description for a heat flow Q. but it didn't found a way to get that point over the Q. is there an easy way to get that? another problem is that i need to su

  • Web Dynpro for editing Change request in SOLMAN

    Hi guys, I am looking for web dynpro applications in SOLMAN for editing or displaying Change request created, i found the one for creation which is "AGS_CHANGE_REQUEST_CREATE" . Do any one have any idea regarding this. Atul

  • Show 'Processing' message during Submit ?

    I have a page that has a number of input fields and a 'submit' button. I want a "Processing" page to be displayed while the servlet is processing the submit data request. How do I do this ? I've tried mapping the submit button to some JavaScript that