Sending of iDoc to Business Connector

Hi Folks,
I am new to business connector and know very little about the same.
I have sent an idoc(MATMAS05) to the business connector. The idoc status is set to 03, which means the idoc is successfully sent to the BC. But how to find in BC whether any idoc has been received or not.
Thank you in anticipation.

We have made an "wrap-arround" to the FM IDOC_STATUS_WRITE_TO_DATABASE and made it RFC enabled.
On the BC we have created an service to update the status of an IDoc to status 18. This service is placed as an "pre-proccesing service" of all routing-rules receiving IDoc's from R/3.
If the IDoc is converted and send to the Receiver status of the IDoc is set to 39, if not status is set to 30.
If an IDoc "only" has status 03 we look in SM59 and se why thy IDoc counld not be send to the BC.
FUNCTION Z_IDOC_STATUS_WRITE_TO_DB.
*"*"Local interface:
*"       TABLES
*"              IDOC_STATUS STRUCTURE  BDIDOCSTAT
*"       EXCEPTIONS
*"              IDOC_FOREIGN_LOCK
*"              IDOC_NOT_FOUND
*"              IDOC_STATUS_RECORDS_EMPTY
*"              IDOC_STATUS_INVALID
*"              DB_ERROR
  DATA: L_IDOC_STATUS LIKE BDIDOCSTAT OCCURS 0 WITH HEADER LINE.
  LOOP AT IDOC_STATUS.
    REFRESH L_IDOC_STATUS.
    L_IDOC_STATUS = IDOC_STATUS.
    APPEND L_IDOC_STATUS.
    CALL FUNCTION 'IDOC_STATUS_WRITE_TO_DATABASE'
         EXPORTING
              IDOC_NUMBER               = IDOC_STATUS-DOCNUM
*             IDOC_OPENED_FLAG          = ' '
*             NO_DEQUEUE_FLAG           = 'X'
*        importing
*             idoc_control              = idoc_control
         TABLES
              IDOC_STATUS               = L_IDOC_STATUS
         EXCEPTIONS
              IDOC_FOREIGN_LOCK         = 1
              IDOC_NOT_FOUND            = 2
              IDOC_STATUS_RECORDS_EMPTY = 3
              IDOC_STATUS_INVALID       = 4
              DB_ERROR                  = 5
              OTHERS                    = 6.
  ENDLOOP.
ENDFUNCTION.
Message was edited by: Kim Ternstrøm

Similar Messages

  • EDI file to IDOC using Business connector 4.6

    Hi Gurus,
                       We have a requirement of converting the EDI file to IDOC using Business connector 4.6 (943 & 944 ) one Inbound and other is outbound ..
    Can any one of you share the document on developing the scensrio ... we have searched couldnt get the same.
    Thanks in advance .
    Ramamurthy

    Hi Raj,
                     Thanks for the reply , Yes currently we also having the project using PI as rightly said we are using the seeburger and then converting the EDI format to XML and then mapped in IR to the IDOC .
    also using Item field conversion we developed some projects , similarly we have developed using modules too .
    Since the Business connector is new to us we didnt able to catch hold on where to import the Java program that we write in the Business connector ... from  Jothi reply understood the server side configuration.
    In case of BC where is that we need to implement the java code if you can share some thing on this would be good .
    Could you please share on how to transform and then implement the code in the BC ....
    Thanks,
    Ramamurthy

  • Send IDOC from Business Connector to SAP faster

    Hi Developer!
    I need to send a very lot of IDOC converted from XML files from the Business Connector to SAP. The XML files are in different directories pro business partner, but they have a same type (ISU_MSCONS).
    My problem, that the import take a lot of time. Only in every 3 seconds (IDOC creation time) gets (or works up?) the SAP one IDOC. I start diferent services pro partner at the same time to import the IDOCs, but I couldnt short the 3 second work time in the SAP. So you can count it easy, that in 1 minute I can import 20, in 1 hour 1200, in 1 day 28800 IDOCs instead of 100.000.
    It is really parallel import? Have anybody any idea to make the import more faster. I know (asked the SAP Administrator) so, one BC - SAP connection (Program_ID) has more pools (= threads) in the SAP at the same time.
    Thanks any help,
    Charlie

    Hi Satish,
    You can achieve this requirement
    1)If your external system going to support web service cals then send IDoc from External system as a web service, in PI use sender side SOAP and receiver side IDoc receiver channel  to  send IDoc.
    or
    2)Use proxy program ,implement the same ALE logic in PI.
      or
    3)Copy the Extenal IDoc message in to file folder as XML,then use file adapter to pick up this message and send it SAP using IDoc.
    Regards,
    raj

  • IDoc Inbound Business Connector

    Hello
    I am trying to send an inbound IDoc to SAP via Business Connector. This is shortly to be replaced by XI.
    The flow in Business Connector creates a routing rule which is blank because it is not finding the control information from the IDoc I believe.
    I think I am missing a step in my flow.
    Currently the flow is
    document to record
    Transform hierarchy to Flat.
    Map ( mapping the fields into the IDoc)
    Record to Idoc
    Inbound process
    The inbound process always fails because it doesnt recognise the message type, sender etc.
    This is all the idoc and in record to Idoc this is an input with an output of Idoc list which is passed to the inbound process.
    However Idoclist I believe doesn't seem to contain any data.
    I think a step is missing can anyone help??
    Thanks

    Hi,
    Please see this.
    Hi,
    BC adapter can be used when you want to communicate to a existing interface on Business Connector. If you are talking to SAP, you use RFC / IDOC adapters.
    The SAP Business Connector (BC) is used in a large number of SAP production environments. SAP Business Connector will probably be gradually phased out and replaced by SAP XI technology. For the short term SAP Business connector and SAP XI will inevitably continue to coexist in companies IT landscapes.
    See Below links
    Integrating your SAP Business Connector with SAP XI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/96ed2129-0b01-0010-2e91-c45e1fad0d03
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4f27ad80-0c01-0010-f8b8-c5e153a16ca1
    Before XI
    Before XI
    webMethods Integration Server Vs.  SAP Business Connector 4.7 (BC)
    Choose the Right Adapter to integrate with SAP systems
    /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems
    Thanks
    akshay

  • JCo IDoc: SAP Business Connector required?

    On my searching for the error IDOC_ERROR_METADATA_UNAVAILABLE i have found this thread:
    BC 4.7 -IDOC_ERROR_METADATA_UNAVAILABLE
    "As of SAP BC 4.7 the SAP Adapter (the piece dealing with the SAP system(s)) uses the new SAP IDoc Java API which uses other function modules to retrieve the definition data of the IDocs.
    You need new permissions in the SAP system, especially
    S_IDOCDEFT:EDI_TCD=WE30,ACTVT=03,EDI_CIM=,EDI_DOC=
    S_CTS_ADMI:CTS_ADMFCT=TABL"
    Does JCo Idoc require the Business Connector installed to execute the JCoIDoc.createDocument() method? I guess not, but i can not see other reasons for the error message. If i read it correctly, the BC needs the permissions in SAP, but the JCoIdoc library does not depend on the BC.
    Mike

    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

  • How to send XML files through Business Connector to client URL

    Dear ALL
    I am new to SAP BC. We have setup BC 4.8 and would like to send out a XML file from BC to Client URL. Could someone please guide me.
    Please suggest solutions.
    Thanks
    Ahmed

    Hello Mickael
    Thanks for your reply. No, we do not have PI. This BC will be used for point to point communication with client.
    Scenario:
    R/3 server to send XML files to BC. BC will load these files ( using pub.getfile service), this file is to be parsed using pub.loaddocument service and then sent to client in XML format wrapped with digital signature. As i am new to BC i am unable to parse this file and wrap it with the digital signaature to send it.
    Kindly advise on how best can we perform this action.
    Thanks
    Ahmed

  • IDOC: Message type:Business connector

    Hi
    I'm sending purchase order idocs to Business connector but it gets rolled back. Because i'm using VN as a partner function and a vendor number as partner, the sender are the purchase org and receiver is the Vendor.
    How can i ensure that the sender name is my Logical system and the receiver are the business connector?

    check the partner RFC confoguration and logical system is assigned to the RFC destination .business connector means
    EDI subsystem related.
    please give the details about business connector

  • Idoc outbound from business connector

    Hi,
    I'm  trying to map values to idoc from business connector(4.6). The flow is
    map
    transformhierarchytoflat
    ale outbound process.
    When I test the application, it's showing a null pointer exception . I have doubt in what all values should i give for control records ??
    Shall i create a new routing rule for this ?
    Any help or suggestion will be of great help .
    Thanks in advance.

    HI,
    You are getting the Null Pointer Exception due to missing of Values in any of the context variables or the fields from mapping on target side.
    Please check the data that you are passing may have any null values and whcih are not acceptable. Test the message mapping with test Tab.
    The Mandatory control records, such as Sender/ receiver Ports, Partner Profiles etc, you need to pass.
    Thanks
    Swarup

  • 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

  • RFC Error while trying to access function module from business connector

    Hi,
    I am getting the following RFc exceptions in BC server when we invoke the service pub.sap.client:invoke fail as a flow step in Idoc_Status_Add(this service is calling a function module in sap namely ZYBC_IDOC_STATUS_ADD_FROM_BC which Adds status to Idoc (from Business Connector).But no trace of failures are recorded in sap side
    except 1: rfc_failure in BC trace files under monitoring.I need to know the root cause of these errors as the same services have run finely later and IDOCs were also processed successfully without any problem.
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: See RFC trace file or SAP system log for more details
    at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
    at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1217)
    at com.sap.mw.jco.JCO$Client.execute(JCO.java:3684)
    at com.sap.mw.jco.JCO$Client.execute(JCO.java:3129)
    at com.wm.pkg.sap.rfc.SAPSession.invoke(SAPSession.java:437)
    at pub.sap.client.invoke(client.java:297)
    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: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)
    could anyone throw light on how this kind of error can be resolved and why it occured?
    Thanks.

    What does the RFC trace file and log say? Has there been any dump on the SAP server? Check the logs and transaction st22 in your SAP system to see if the RFC-module has dumped.
    My guess is the problem is in the RFC-module, I think you should start looking there.
    regards,
    Dionisios

  • Business connector http error

    Hi XI'ers,
    For those who know about business connector and java errors.
    We are sending bapi (BAPI_POEC_XML_SEND) to business connector. Everything is ok until the HTTP request to our client which is failing.
    The error is :
    "java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
         at com.wm.util.List.elementAt(List.java:101)
         at com.wm.lang.xml.token.BlockInputBuffer.getChar(BlockInputBuffer.java:59)..."
    The http request is used with method post.
    Thanks for any support.
    Best regards,
    Laurent.

    Hello Aamir,
    I'm talking about business connector not xi.
    I know this not the place but before xi there was business connector and there's no forum for this tool anymore.
    If someone knows what i'm talking about thanks for your help.
    Regards,
    Laurent

  • Business connector developer-Error message 'No IDOC found in input'

    Hi,
    Please note that this query is related to business connector developer not to XI.
    I have created a flow service based on an IDOC. When I tried to test the service from the business connector developer it gives me an error 'No idoc found in input'. I have done the setting based on the business connector configuration guide. The idoc also send to the port successfully.
    Can anyone guide me how to trigger the test from business connector developer for an idoc.
    Thanks
    Jim.
    Edited by: Jim Jose on Jul 13, 2011 5:58 PM

    Hi,
    Probably you would have created the routing today, with valid from todays date. But the order you are creating may be with start date in past and system is not able to find and valid routing for the day.
    I would suggest you to remove both the Basic "Start" and "End" and change the scheduling type to "Current date Scheduling", now enter. If system still not finding the routing, use the function "Read PP Master data".
    Regards,
    Prasobh

  • IDOC Mapping in Business Connector

    Hello,
    we use SAP Business Connector 4.7 and would like to send IDOC DELVRY03 from SAP R/3 4.6 to an external.
    We had to map the IDOC an an XML structure. I created a record for DELVRY03, a record reference in Pipeline Out and an empty flow service. In this i use the service "pub.sap.idoc:iDocToRecord". Than i want use the "Map" function in the Developer. I created the target record for the XML file and map the requires fields, but the mapping does not work.
    What did i forget in this flow service?
    Thanks, Daniel.

    is there 2 systems involved in this?
    kiran

  • Receive XML with Business Connector, convert to IDoc

    Hi all,
    I am trying to receive XML files with SAP Business Connector (4.7) and convert them to IDOC and then forward the IDoc file to SAP System.
    At the moment, I have to do the testing for this.
    I don't know how to send the XML file to the special port (5555) of the server. I read that there are serveral possibilities like http, mail, ftp. Can anybody give me an advice how this works?
    Next problem is to get the created IDoc file to the SAP system. The SAP server is added in the SAP Business Connector and the connection works.
    I would be very pleased if anybody could help me.
    Thanks in advance!
    Kai

    hi,
    What i understand from your scenario is XI> BC> SAP system.
    1)XI-->BC
    U need to configure XI's-BCAdapeter(as receiver).
    in URL specify teh follwoing :
    http://<hostname>:5555/invoke/folder1.folder2./<service-to-be invoked>
    together with the username and password.
    2) BC--> SAP
    To invoke an IDoc, go to Routing rules and specify the sender, receiver, and the Message Type(IDoc name). In the next page, specify the name of the flow service to be created. and the Flowservice to be invoked whenever a message comes in.
    Hope this gives you some input.
    Regards,
    Siva Maranani

  • SAP Business Connector send XML to SAP

    Hello,
    There is a BC which should read XML files from a specified folder and send them to SAP via RFC (in IDOC format).
    The conection works between BC and SAP fine, gateways are registered and RFC destination has been maintained and tested in SAP.
    How/where can I assign the "package" (which contains the folder with XMLs) with the SAP system (it is configured under "Adapters"-->"SAP ..." with correct listeners).
    Is the assignment the "Routing rules" or the "Map"?
    When should Business Connector start to read the specified folder? Does it start according to "scheduling tasks"?
    Where can I monitor the procedures?
    Thanks in advance!
    Terence

    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!

Maybe you are looking for

  • Hi All,I have an iMac 24'' 2007 and my HDD has gone bad.

    Hi everybody ... I am in desperate need of help,concerning the replacement drive! All I find on Amazon,for example,are SATA III drives,and my iMac,being quite old,has SATA I,I suppose?! My question is ... will my machine recognize the SATA III drive,

  • My formatted with videora video will not transfer from itunes to ipod??????

    PLEASE HELP ME I HAVE BEEN THROUGH HOURS OF FRUSTRATION GOING THRU THE INTERNET TRYING TO FIGURE THIS OUT. i DOWNLOADED VIDEORA FROM THE INTERNET, THEN I TOOK THE VIDEO I DOWNLOADED FROM LIMEWIRE AND FROMATTED IT WITH VIDEORA THEN I PUT IT ON ITUNES

  • 5508 wlc with 1140 APs and NPS cant connect

    Hi.. let me go off with the equipment setup that I have first.. I have 3 sites each site has  2x 5508 WLC and a few 1140 AP's per site. I also have 3 NPS running on those 3 sites.. I have NPS and dhcp running on the same server... I have a seperate C

  • I think it's my classpath?

    Hi Ive got java up and running and have been happily compiling, everything going smoothly. My classpath points to c:\jdk1_3\_work where I keep all my code and I usually have a couple sub directories under that where I keep specific projects ie. c:\jd

  • Webdynpro vs scif problem

    Dear All, Let me know followings:- 1. How to suppress warning messages on logon window of webdynpro program?? 2. How do I set single logon for webdynpro program? So that programmer could not face repeatedly logon screen for each programs. 3. When I r