Using BAPI_DOCOUMENT_CREATE2 func. in Business Connector without SAPGUI.

We're using "BAPI_DOCUMENT_CREATE2" function to upload XML data to SAP system in Business Connector 4.7
We use SAPGUI in Business Connector to call the BAPI function.
But we found that there's a performance problem when using SAPGUI.
So, we want to use BAPI_DOCOUMENT_CREATE2 function in Business Connector without SAPGUI.
If you know how to do this, please let US know.
Thank you.

Hi,
You can also try:
1. pub.sap.client:createTID and assign created tid to variable $tid
2. INVOKE sap.map:outbound for your BAPI and assign created tid in step 1 to parameter $tid
3. pub.sap.client:confirmTID and assign created tid in step 1 to parameter $tid
It should work.
Krzys

Similar Messages

  • How do we Integratet SAP to Non-SAP Using Business Connector

    Hi Experts,
    I am new to SAP Business Connector !!
    and what are the Forms ? for SAP Business Connector Related Postings ??
    !! I have a requirement to integrate sap to non-sap with Business Connector !!
    We need to Generate the SAP Data In xml Format ? and the Non-sap System can Understand Only XML Formated data.
    Is there any way Business Connector Box can Pull the XML file from R/3 Application Server and store the file in the Business Connector Server. from  that How do we Sent XML file to Non-sap. How do we Integrate ??
    what transaction code will trigger this event ? I mean is ther any SAP Transaction Code to Integrate Business Connector?
    For Eg. like in R/3  SD to FICO and MM Integration.
    Please Give your Valuable Suggests..
    Thanks .
    Upender.

    Hi,
    It is not an issue, It will be a separate project :-).
    The right forums for this,
    Expert Forums » SAP NetWeaver » Process Integration
    www.wmusers.com
    Also go through the following links:
    http://www.sapgenie.com/interfaces/businessconnector.htm
    http://www.sapgenie.com/mysap/bus_connector.htm
    /people/bla.suranyi/blog/2006/07/10/xi--sap-business-connector-integration-using-the-http-adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/3f93404f673028e10000000a1550b0/frameset.htm
    http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b4f3755a-0401-0010-b6b3-9b65bb7d4503
    https://websmp104.sap-ag.de/connectors
    Thanks and Regards,
    Chandra Madapati

  • Using Business Connector to convert a file to XML

    Hi, I have been asked to see if a flat file created by an abap program can be converted to XML format using Business Connector (4.7). I have looked in the tutorial and the pdf documents but can not see how this is done. Please could someone give me some advice?
    - Is this possible using built-in Business Connector services - or is it more complicated?
    - Should I even bother to try to do this when it it easy for me to create an XML format file from ABAP?
    - Is there a good course, book, documentation that would help me?
    Thanks, Andy

    Hi Andy!
    Our customers have this requirement to convert some "flat-file" into some XML format via Business Connector quite often. The best way (as the last post sugessted) is indeed to use the "EDI-Adapter" which is free of charge (service.sap.com/connectors).
    With that module you can convert all flat-files (delimiter based, offset based, mixed, even classical EDI formats, ...) based on some definition ( = template). Be careful the EDI-Adapter Module download page states that it is supported for BC version 4.6 . However it is absolutely no problem to use it in BC 4.7 versions as well. Remember that you will NOT get any official support by SAP when using the EDI-Adapter module.
    Simply import the EDI-Module as general BC package (server/replicate/inbound directory).
    Generally it is very powerful, stable and well documented ...
    Best regards, Andy

  • 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

  • Business Connector - XML to SAP using BC

    Hi,
          This is regarding business connector(BC).
        The IDOC details are successfully converted to xml file to send third party system using BC..
              But also I need the process for vice-versa ..
                  The data will be coming as xml data from third party system and these data need to be updated into the corresponding SAP fields.
           Can you plz tell me whether any RFC's or other methods to be used?

    HI
    please can u provide me the steps how to convert idoc to XML and send as HTTP

  • 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

  • ABAP Query output to XML file using Business connector

    Hi All,
    I would request your help on to know, how can I read the output of ABAP query executed in SAP system via Business connector and then generate a XML file.
    Also the existing business connector system, generates the XML file in encoding iso-8859-1. Where as customer wants the output XML file in encoding windows-1252.
    Please help with your valuable ideas.
    Thanks,

    Hello,
    possible solution:
    1. create a remote function module (FM) in SAP which returns your needed data
    2. create outbound map in BC for this FM
    3. call this FM from BC in a flow
    3. extract the result to XML (e.g. with service recordToDocument)
    CSY

  • Problems with variant configuration using BAPI on Business connector

    Hi every body I need help.
    Steps.
    1.- I created an RFC with BAPI_SALESORDER_CREATEFROMDAT2 and then  a commit function,
    I call this RFC via SAp business connector
    Im triying to create a Configure order(With characteristics) I fill all configuration structures exactly  like note 567348.
    I created a sales order but when i checked ti in VA01 transaction  the order quantys are diferents at  configuration tables, if the function is executed on directly on SAP this work fine the error is only in a SAP Business Connector
    Is necesary to send another parameter when i Execute Bapis on SAPBC?
    \[removed by moderator\]
    Edited by: Jan Stallkamp on Jun 27, 2008 4:21 PM

    Hi,
    Just debug your SAP BC service in which you are calling the RFC and check if proper values are getting mappend to your input variables of RFC.
    If that is correct than there wont be much chances of problem in BC.
    \[removed by moderator\]
    Regards,
    Siddhesh S.Tawate
    Edited by: Jan Stallkamp on Jul 1, 2008 4:32 PM

  • Business connector installation error

    Dear community,
    I am trying to install bc 4.8 x64 on win2008 R2 x64 std ed.server (in vmware).
    When I run the installer (BCServer48_x64.exe or BCServerXpt48_x64) I get an error:
    >business connector install could not find a java virtual machine to load
    >you may need to reinstall a supported java virtual machine
    As I understand it there is a sap jvm integrated, so separate jre install is not needed.
    In any case I have also installed separate java :
    >java -version
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
    but this does not change the error.
    Win2008 R2 is supported according to pam and note 1094412.
    I have tried using compatibility settings for win server 2003 but no change.
    Any advice ?
    Rgds, Eirikur.

    It would have been helpful if you shared how to execute this fix.
    Here by the way I fixed it:
    First:
    Make sure you have a JDK installed!
    I used: JDK 6: sapjvm-6.1.043-ntamd64.zip
    You can find it here: https://tools.netweaver.ondemand.com/  Press the Additional software tab.
    Second:
    Go to: http://java.com/en/download/help/path.xml
    Here they will explain you how to edit the PATH for different OS. The Windows 7 fix works on Windows Server 2008 R2.
    Third:
    For windows Users:
    When you have the Edit PATH screen open add the correct path that leads to your JDK.
    For me it was: ";C:\Program Files\Java\sapjvm_6\bin" (Paste without the quotes but add a ; in front of your path)
    Kind regards
    Jérémy

  • BAPI_TRANSACTION_COMMIT in Business Connector

    Hi,
    I am moving business partner master data into CRM via the business connector, using BAPI_BUPA_CREATE_FROM_DATA. This BAPI requires a 2nd BAPI: BAPI_TRANSACTION_COMMIT as a closing step. However, the BuPa is not saved in the database.
    The 1st BAPI returns without errors and a business partner number. The 2nd BAPI is called with WAIT = X.
    I think the problem is that the second BAPI is called in another LUW or session. I also tried using a sequence, but still the error occurs.
    Can someone help me?

    Hi,
    You can also try:
    1. pub.sap.client:createTID and assign created tid to variable $tid
    2. INVOKE sap.map:outbound for your BAPI and assign created tid in step 1 to parameter $tid
    3. pub.sap.client:confirmTID and assign created tid in step 1 to parameter $tid
    It should work.
    Krzys

  • Business Connector 4.7 and EDI Module

    Hi all,
    I want to use the EDI Module offered by SAP for the Business Connector. Unfortunately the SAP offered the zip file only for release 4.6 of Business Connector.
    Does anyone know if it's even so possible to import the EDI module in Business Connector 4.7?
    Furthermore I need a schema for EANCOM 2002 D.01B which is not included in the available download packages. Can I use standard schema files and import them in the Business Connector?
    Thanks,
    Christina

    Hi Jiri!
    We are using the EDI-Module together with SAP BC 4.7 without any problems in various productive customer projects. Installation of the package does not cause any problems - functionality is the same.
    By the way - as far as I know there is NO official "end-of-life" for the BC stated so far. In many cases a "migration" to XI is currently NOT necessary / wanted by our customers.
    Regards, Andy

  • Business connector server on Virtual Server

    Hi,
    Currently our 4.6 release Business Connector servers running on Windows NT Operating system. We would like to upgrade them to BC release 4.7 on Windows 2000 operating system on Virtual servers.
    Are there any known issues/disadvantages if we install Business connector servers on Virtual Server rather than a Physical server?
    These virtual servers will be in the same domain as that of SAP systems. Host names of the upgraded Virtual servers will be same as the current production BC hosts.
    Thanks,
    Srini

    Technical Data
    These functions are:
    Changed, new, deleted
    For Release
       Software Component
    ·        Component: SAP Business Connector (external)
    ·        Release: 4.7
    Assignment to Application Component
    BC-MID-BUS (SAP Business Connector)
    Country Setting
    Valid for all countries
    Use
    The following information provides you with an overview of the new features in SAP BC Release 4.7: It also tells you about incompatible changes that you need to know about before performing an upgrade.
    SAP BC 4.7 is based on Integration Server 4.6 from webMethods. However, the SAP BC elements in Integration Server 4.6 have been redeveloped (see below for details).
    Features
    Additional Functions in SAP BC Developer
    As well as SAP BC Administrator GUI, you can now use SAP BC Developer to perform typical development tasks.  You do not need administrator authorizations in SAP BC Developer to do this. For example, with SAP BC 4.7 you can use SAP Lookup to generate elements for the Developer.  This enables you to gather information about function modules, structures (tables), BAPIs and IDocs in an SAP system, and then generate outbound maps or records for these objects directly.
    SAP BC Developer contains a new menu, SAP, which contains the following functions:
    ·        Look up a function module and generate an outbound map
    ·        Look up a structure definition and generate a record.
    ·        Lookup a business object.
    ·        Look up an IDoc and creating a Record.
    ·        Browser for Function Maps.
    In addition, the Developer now also supports the following actions:
    ·        Generate an SAP inbound map if you want an SAP system to run a service in SAP BC.
    ·        Generate an SAP outbound map to execute a function module in an SAP system.
    ·        Generate a record based on an SAP ABAP Dictionary structure.
    ·        Generate a record based on an SAP IDoc.
    SAP BC Developer now also supports a proxy bypass list. This means that you no longer need to define whether a connection runs through a proxy; instead, the bypass list performs this task.
    New Public Services on SAP BC Server
    pub.string:gzip
    Compresses the specified input string and generates a check total (optional). For measurements or for statistical purposes, the lengths of the zipped and unzipped strings are provided as output.
    ·        pub.string:ungzip
    Decompresses a specified input string, which was compressed with pub.string:gzip, and verifies the check total (optional).
    ·        pub.string:numericParse
    Analyzes a number in accordance with a given number pattern.
    ·        pub.math:randomLong
    Generates a pseudo random number and sends its string representation in a pipeline variable. You can use this number as a universal identifier with an acceptable level of security, as long as it is used in non-distributed scenarios and for a small number of variables.
    ·        pub.file:head
    Shows the start of a given file.
    ·        pub.file:tail
    Shows the end of a given file.
    ·        pub.flow:sleep
    Puts the current service into sleep mode for the specified period (in seconds).
    Restructuring of the WmPartners Package
    The WmPartners package in SAP BC Server has been completely restructured and now offers the following enhancements:
    ·        Improved status information in the messages displayed in the Transaction Store and the Audit Log. This solves a range of problems, such as incorrect status information being displayed by IDocs.
    ·        Improved search and sort options for transactions in the file system of the Message Store. In the Transactions menu, SAP BC Administrator GUI offers you a new option, Message Store Query Settings, which enables you to select and delete transactions. In Release 4.7, the Message Store can also be displayed on separate pages, which makes it easier to edit large numbers of transactions.
    ·        Improved search and sort options for Routing Rules. In the Routing Rules menu, SAP BC Administrator GUI offers you a new option, Routing Rule Filter Settings, which enables you to restrict the number of routing rules that are displayed, and to sort the display. The filter accepts all combinations of characters, and the placeholders '*' (string of characters) and  '?' (one character). This makes it easier to sort and search for routing rules, especially if you need to process a large number of communication partners and message types.
    ·        Forwarding the "Confirm Event" tRFC (triggered by an SAP system) to the next receiver (for the following transports: B2B Service, ALE (R/3 IDoc), and XML (only if another SAP BC is the receiver)) and triggering "Confirm Event" from an external client. Both of these cases can be significant if the final receiver is an SAP system. In this case, "Confirm Event" removes the transaction ID from the ARFCRSTATE table, which can improve system performance significantly when a large number of tRFCs are being processed.
    Support for Distributed Statistic Records (DSRs)
    SAP BC has supported the generation of DSRs since Release 4.7  DSRs enable you to monitor the performance of each SAP system and its components. In this way, you can check how much system load is produced by each individual component, and how many resources are being used. This enables you to identify "performance leaks" and optimize system performance.
    The DSR support integrated in SAP BC also allows you to measure the total retention period of a process in SAP BC. To evaluate the DSRs, you require additional SAP software, including specific versions of the SAP Solution Manager, and the RFC Library. The exact requirements are still being defined.
    The details will be published in SAP Note 620418. You can find a link to this SAP Note on the SAP BC download page at http://service.sap.com/sbc-download.
    SAP BC Server Core Enhancements
    ·        Reverse Invoke
    The reverse invoke protocol has been enhanced and now allows you to forward more information, such as IP addresses.
    If, for example, an application fails because a connection is broken, and other working connections exist, the connection is checked using a ping.
    From now on, the internal server can open or reopen a defined number of connections, if necessary.
    A document is generated for any exceptions on the internal server.
    ·        Email Listener
    New Features in the Email Listener
    ¡        Reprocessing of invalid mails for IMAP Server
    ¡        Processed mails selected as "unread" if they have not been deleted.
    You can also specify whether mails with exceptions are deleted or not.
    ·        Update Manager
    The Update Manager manages fixes and patches for the upgrade of an SAP BC Server. Previously , the Update Manager allowed a fix to set other fixes as obsolete, using the updateVoidList field in the update.cnf file of the fix. An obsolete fix is not shown in classpath, but up to now the Update Manager has not been able to give a fix in classpath priority ahead of this other fix. The Update Manager has now been enhanced to support these fix priorities:  The update.cnf file in the fix now contains an updatePrecedeList field.
    Incompatible Changes
    SAP BC Delivery Without JVM
    The Windows Version of SAP BC 4.7 is no longer delivered with a Java Virtual Machine (JVM). The SAP BC 4.7 Installation Guide describes the JVMs that are supported.
    See also
    For more information, see the documentation on the SAP Business Connector, under
    ·        http://service.sap.com/connectors (SAP Business Connector  ® SAP Business Connector in Detail  ® Documentation).

  • Sapccmsr register on Business Connector

    Hi,
    we want to monitor Business Connector 4.7 running on windows. so I download the OScol and sapccms agent and used the SAPNote 704349 used INSTALL WIN.SAR to install OScol and sapccmsr and then when I tried to register sapccmsr
    I am having following error
    C:\usr\sap\prfclog>sapccmsr.exe -R
    Could not open the ICU common library.
       The following files must be in the path described by
       the environment variable "PATH":
       icuuc26.dll, icudt26l.dll, icuin26.dll [nlsui0.c 1405] pid = 1700
    Terminating.
       You may set the environment variable NLSUI_7BIT_FALLBACK to run the program
       without the ICU libraries in an emergency mode. [nlsui0.c 1153] pid = 1700
    thanks,
    chander

    Hi Chander,
    I found this errror is relatived to Unicode sapccmsr agent.
    Try to download the Non-Unicode sapccmsr agent which doesn't need additional
    DLL files and setting any system variables.
    SAP Note 914721 - CCMS agents and kernels: Patches 2006
    Hope this helps,
    Dolores

  • Business Connector 4.8: predefined users "SAPUser" and "Default" ?

    When installing SAP Business connector 4.8., besides user "Administrator", "Developer", "Replicator" there are also predefined users "SAPUser" and "Default".
    Are these  2 users needed, when the BC is used for Elster ?  If not, should the users be locked or at least get a new password after fresh installation ?
    Kind regards,
    Uta

    Hello Marco,
    as I have used the transferpackage (see migrationguide BC) to transfer all settings from an old BC (Rel. 4.7) to new BC 4.8, all BC-users including the passswords are now like on the old BC. But what would be, if a fresh BC is installed without migration ?
    I have already looked into the adminguide  but the information could be more detailed.
    User=Default
    Groups=Everybody, Anonymous
    Description= The server uses the information defined for the Default user when the client does not supply a user name and password
    User=SAPUser
    Groups= SAPUsers
    Description= Used instead of the Default user, if the SAP BC is called by an SAP user that does not exist within SAP BC. The system then switches automatically to the user SAPUser as default user.
    Should users Default and SAPUser get a password due to security reasons (Haven't found, if they have any password after install, because only the administrator, Developer and Replicator are mentioned for giving a new PW DIRECTLY  after installation).
    Regards,
    Uta

  • Access Denied with Business Connector 4.7

    Dear SAPiens,
    I am trying to call a RFC-FM via a webservice from outside the SAP system via Business Connector 4.7. I always get a "Access Denied" Error message within the XML answer-envelope.
    For testing I use the soapUI. I downloaded the WSDL from the Business Connector Developer and imported it to soapUI.
    In soapUI I used the following coding for execution in a testcase:
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mob="http://172.16.34.33/MobileDataEntry" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
       <soapenv:Header/>
       <soapenv:Body>
          <mob:CustomerOrderCreate soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <DISTR_CHAN xsi:type="xsd:string">01</DISTR_CHAN>
             <DIVISION xsi:type="xsd:string">00</DIVISION>
             <DOC_TYPE xsi:type="xsd:string">ZMDE</DOC_TYPE>
             <PARTN_NUMB xsi:type="xsd:string">0000102642</PARTN_NUMB>
             <PARTN_ROLE xsi:type="xsd:string">AG</PARTN_ROLE>
             <REQ_DATE_H xsi:type="xsd:string">20080420</REQ_DATE_H>
             <SALES_ORG xsi:type="xsd:string">4920</SALES_ORG>
             <MATERIAL xsi:type="non:MATERIAL" soapenc:arrayType="non:MATERIALArrayItem[]" xmlns:non="http://www.webMethods.com/noNamespace/"/>
             <RETURN xsi:type="non:RETURN" soapenc:arrayType="non:RETURNArrayItem[]" xmlns:non="http://www.webMethods.com/noNamespace/"/>
          </mob:CustomerOrderCreate>
       </soapenv:Body>
    </soapenv:Envelope>
    The given answer is:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
       <SOAP-ENV:Body>
          <SOAP-ENV:Fault>
             <faultcode>SOAP-ENV:Client</faultcode>
             <faultstring>[B2BSERV.0088.9134] Exception occurred while processing the body of the message</faultstring>
             <faultactor>http://172.16.34.33:5555/soap/rpc</faultactor>
             <detail xmlns:webM="http://www.webMethods.com/2001/10/soap/encoding">
                <webM:exception>
                   <webM:className>com.wm.app.b2b.server.AccessException</webM:className>
                   <webM:message xml:lang="en">[B2BSERV.0084.9004] Access Denied</webM:message>
                </webM:exception>
             </detail>
          </SOAP-ENV:Fault>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I can call the function module without any problem from the Busines Connector Developer IDE.
    I also can call the function without any problems in this way (by passing my credentials manually):
    http://172.16.34.33:5555/invoke/MobileDataEntry/CustomerOrderCreate?DISTR_CHAN=01&DIVISION=00&DOC_TYPE=ZMDE&PARTN_NUMB=0000102642&PARTN_ROLE=AG&REQ_DATE_H=20080420&SALES_ORG=4920
    Do you have any idea what is going wrong? Why do I get "Access Denied"? What causes this?
    Best regards
    Torsten

    Hi Christian,
    this solved my problem two weeks ago.
    I actually run the solution with 'Anonymous' access, as I don't know how to submit the Username with soapUI (header entry does not work). soapUI is a generic SOAP testing frontend (see soapui.com).
    Everything of our solution is under development at this time. I guess, that the final client service will not deal with those problems.
    Nevertheless, you get the points...
    Best regards
    Torsten

Maybe you are looking for