SAP Business Connector with Java (material master data)

Hey,
I have a question about the SAP BC. What are the steps I have to do, to use the BC with a Java program?
My task is to create a program which downloads material master datas from SAP.
I just installed the BC, and hope, that I did it correctly
Many thanks in advance!!
Kind regards,
Alex
German Version:
Hey,
wie ich oben schon geschrieben habe, habe ich ein paar Fragen zum SAP BC. Ich habe ein Hochschul-Projekt und muss hierfür Materialstammdaten aus SAP herunterladen und mit einem Java Programm ausgeben lassen.
Kann mir vielleicht jemand weiterhelfen, wie die Schritte hierfür aussehen?! Wie verbinde ich den BC mit meinem SAP System? und wie bekomme ich anschließen die Daten mit einem Java Programm ausgelesen?
Ich habe bereits den BC installiert und konnte mich meines Wissens auch richtig anmelden;-)
Ich hoffe, dass mir jemand weiterhelfen kann und bedanke mich schon im Voraus für eventuelle Antworten!!!
Viele Grüße
Alex
Edited by: Rolf Gersbacher on May 19, 2010 10:34 PM

Hi,
I work with SAP BC some time ago... I remember that you configure the connection in SM59 / SICF and the server open a port to "listen" (connect external).
So, your external program can execute functions inside SAP and exchange data.
See some links:
http://en.wikipedia.org/wiki/SAP_Business_Connector
http://help.sap.com/saphelp_nw04/helpdata/en/6a/3f93404f673028e10000000a1550b0/frameset.htm
http://www.thespot4sap.com/articles/SAP_XML_Business_Integration.asp
Best regards,
Leandro Mengue

Similar Messages

  • SAP standards for retriving the Material Master Data

    Can someone provide me list of all SAP standards for retriving the Material Master Data with respect to views.
    Standard Reports
    Function Modules
    RFC's
    BAPI's.
    T.codes
    Sample code's
    useful answers will surely be awarded.
    Regards
    Vinayak

    Hi,
    These are the standard BAPI's for Material master.
    BAPI_MATERIAL_DELETE Flag Material for Deletion
    BAPI_MATERIAL_DISPLAY Display Material
    BAPI_MATERIAL_EDIT Change Material
    BAPI_RETAILMATERIAL_CREATE Create Material
    BAPI_RETAILMATERIAL_DELETE Discontinue Material
    BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
    BAPI_MATERIAL_SAVEREPLICA BAPI for Mass Maintenance of Material Data
    BAPI_MATERIAL_SAVEDATA Create and Change Material Master Data
    BAPI_MATERIAL_EXISTENCECHECK Check Existence of Material
    BAPI_MATERIAL_GETBATCHCERT Create Quality Certificate for Batch in Portable Document Format (PDF)
    BAPI_MATERIAL_GETBATCHES Create Batch List for a Material
    BAPI_MATERIAL_GETCHARMERCHHIER Supply Characteristics of Retail Material for Material Group Hierarchy
    BAPI_MATERIAL_GETINTNUMBER Assign New Internal Numbers for a Material Type
    BAPI_MATERIAL_GETINTNUMBERRET Assign New Internal Numbers for a Material Type for Retail Materials
    BAPI_MATERIAL_GETLIST Supply List of Materials for Search Criteria Transferred
    Thanks.,

  • Can we recieve goods for purchase order with out material master data in PO

    I have service PR for doing the services. I will  give the material which is not accounted ( no material in the PO)and raise PO with reference to production order. but once the service is done,that product will become a  material ( master data available) I have to receive the  final product.Can we do the GR for this product. If so ,could you please explain the scenario

    Hi Sankarkumar
    When you are issuing the material for servicing your existing inventory for the material  will be affected how you are plannignto handle that? You are receiving a different material once the serviceing is done then again yoour inventory will be affected for the new material.  If you do not intend to issue material in SAP then why are you worried when you are bringing the new material into SAP after servicing is over?  It is a subcontract scenario in a normal situation. But since you do not want then you can do a Service PO from the reqn and later use receipt without PO for bringing material in. Just speak to your finance guys how to set right the debit/credit amount resulted due to this transaction.
    Regards
    Sam

  • Finding message in SAP Business Connector with IDoc number

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

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

  • Material Master Data Reporting with SAP BW?

    Hello,
    I have a question regarding the use of a SAP BW System. Do you guys think SAP BW is a appropriate System for modelling and analysing Queries for the Material master data of the R/3 System.
    Focus:          
    Material master data
    Bill of Material
    Material Classification System
    Iu2019m not sure if Infocubes are the right way to report such kind of requirement. I mean Infocubes always requires key figures and dates but the material master data are mainly characteristics. Can someone give me some advice?
    Thanks & Greetings

    Hi,
    I'd say yes. You can aalo use InfoObejct and DSO (like Tables) as well as InfoSets (Join ability).
    Masteer Data and BoM shouldn't be a problem.
    Material Classification System is always a bit tricky. Standard Class extractors are not able to extract multiple classifcations. There will be need of some Programming due to the poor standard solution.
    I suppose some 10 - 15 days till it's finished an productive.
    hth
    cheers
    Sven

  • 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 sending XML data

    Dear all,
    I am using an RFC to transfer the data from SAP R/3 to web server. I have to send the data to web server URl via SAP Business Connector in the below format.
    I am getting data in RFC sttructure, Now I need to change the above data into XMl and hence need to compress.
    The requirement is as below:
    The XML message is signed, encoded in base64.
    Signed and encoded XML message is compressed in GZIP format.
    Can u please share your ideas to achieve this.
    Thanks and regards,

    Dear Michal and Prateek,
    Thank you very much for your ideas.
    This is my flow:
    clear XML data -> SIgning with detached signature  -> Base 64 encode -> send the data via HTTP port.
    I am signing the message using pub.security.pkcs7:sign.
    But here problem is I am not able to get the detached signature.
    If I select the option Detached signature it is giving only signature.
    How can I manage the Detached signature and Message at HTTP port.
    Please help me.
    Thanks and regards,

  • Problems with invoke call in browser (SAP Business Connector)

    Hallo,
    I have a problem with the invoke call in a browser to test a build flow in the SAP Business Connector:
    I build a flow which receives a XML file, converts it into a record, then adds some mandatory data to the segment "EDI_DC40", then reconverts it into XML. After that, the XML gets converted into SAP IDOC format. Then I send it via ALE service to the connected SAP System.
    The flow works so far if I test it with the "send XML file" function in "Test" menu. But when I test it via a call in the browser, it doesn´t work. The mandatory data in "EDI_DC40" is there, but the Business connector does not recognize the data which comes with the XML for this segment ("MESTYP" and "SNDPRN") - so it can not be transfered to the SAP system. It causes a routing rule error, because sender and message type is unknown.
    Does anybody has experiences with that? Is there a difference between browser call and the test function "send xml file"?
    Thanks in advance for your help!
    Kai

    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

  • Program to update info record with material master data

    I am trying to determine if there is a standard SAP program that can be run as a batch file  to update the fields in the info record with the same fields that are in the material master?  ie:  Planned delivery time, Tolerance, purchasing group etc.

    Hi,
    There is no standard report or transaction that can do this.
    The data from these fields in the material master is brought in as a default to the info record when it is created. beyond this point the Info record is treated as being the correct data regardless of what happens to the material master data and so no updates occur in the standard system.
    It would not be difficult to build an LSMW job to copy the data from the material master to the info records and this would be the recommendation if you want to do this.
    Steve B

  • Create Material Master Data with BAPI

    Hi,
    I don't know using of BAPI. I want using BAPI_MATERIAL_SAVEDATA bapi for creating material master data for Basic Data1, Basic Data2, Purchasing and MRP views. Does anybody can help me ?
    Thank you
    Good night

    Hi,
    Please refer to the documentation below:
    BAPI_MATERIAL_SAVEDATA
    Short Text
    Create and Change Article Master Data
    Functionality
    You use this method to create new material master data or to change existing material master data. The data on a material can be transferred for each call.
    When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.
    When changing material master data, you need enter only the material number.
    In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first be supplied with data by the calling program. An indicator must also be set for each of these fields so that the data is written to the database by the method. This requires the calling program to supply the corresponding field with the indicator in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain any language-dependent texts (MAKT, MLTX), International Article Numbers (MEAN), or tax classifications (MLAN). Several data records for a material can be created in these tables.
    If a structure contains fields for units of measurement (such as structure CLIENTDATA, field BASE_UOM), language indicators (such as structure MATERIALDESCRIPTION, field LANGU), or country indicators (such as structure TAXCLASSIFICATIONS, field DEPCOUNTRY), there is always a field of the same name with the ending _ISO. This makes it possible to transfer either the internally used SAP code or a standardized ISO code for the units of measurement, language indicators, or country indicators. ISO codes are converted to an SAP code internally for further processing. The ISO code is used only if the SAP code is not transferred. If you use ISO codes, there must be a unique assignment of the ISO code to the SAP code in the following activities in Customizing for Global Parameters:
    Check Units of Measurement
    Define Countries
    If you want to maintain long texts (basic data texts, internal comments, purchase order texts, material memos, or sales texts) or customer-defined fields for a material, some special conditions have to be observed. They are described in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.
    Parameters
    HEADDATA
    CLIENTDATA
    CLIENTDATAX
    PLANTDATA
    PLANTDATAX
    FORECASTPARAMETERS
    FORECASTPARAMETERSX
    PLANNINGDATA
    PLANNINGDATAX
    STORAGELOCATIONDATA
    STORAGELOCATIONDATAX
    VALUATIONDATA
    VALUATIONDATAX
    WAREHOUSENUMBERDATA
    WAREHOUSENUMBERDATAX
    SALESDATA
    SALESDATAX
    STORAGETYPEDATA
    STORAGETYPEDATAX
    FLAG_ONLINE
    FLAG_CAD_CALL
    NO_DEQUEUE
    NO_ROLLBACK_WORK
    RETURN
    MATERIALDESCRIPTION
    UNITSOFMEASURE
    UNITSOFMEASUREX
    INTERNATIONALARTNOS
    MATERIALLONGTEXT
    TAXCLASSIFICATIONS
    RETURNMESSAGES
    PRTDATA
    PRTDATAX
    EXTENSIONIN
    EXTENSIONINX
    Exceptions
    Function Group
    1001UEB
    Thanks,
    Sandeep.

  • Non-SAP to SAP Material Master Data Transfer

    Hi Experts,
    Please indicate any standard tools in SAP and how to use it wherein we can migrate non-SAP material master data to SAP.
    Points will be awarded.
    Regards,
    LM

    Hello Leo,
    There are a number of options to do this. You can use the standard SAP tool named LSMW - Legacy System Migration Workbench (transaction LSMW) as a starting point.
    Also please read this [Documentation|http://help.sap.com/saphelp_47x200/helpdata/en/0d/414538bc0fe927e10000009b38f8cf/frameset.htm] before undertaking the data migration activity via LSMW.
    Additionally, there is also a Direct Input program available named RMDATIND - please go through the program documentation before you use it. You can use this program to transfer material master data to SAP but
    make sure you assign this program through LSMW for mapping structures etc. The internet link above will give
    more details and step-by-step instructions to follow.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. It is sad to see useful answers remain unrewarded such as this one!
    Edited by: Sougata Chatterjee on May 9, 2008 10:13 PM

  • Customer & Material Master data is not saved in SAP 4.7

    Hi All,
    We created a customer in T code XD01 and saved it. system threw a message that "customer 500001 has been saved" but when I tried to check the customer ID 500001 in XD02 and XD03, it says custoemr 500001 has not been created.
    I have checked in table KNA1, KNB1 & KNVV. No data is available in these tables.
    Same case with material master data even.
    Can anyone please tell me what could be the reason for this problem & how to fix it.
    Thanks in advance.
    JM

    Dear JM,
    Goto SNRO- Enter the number range object & click on "Change " icon.
    NR Object: DEBITOR
    Check whether any value maintained in "No. of numbers in buffer",  make it blank & re-create customer.
    It may not be exact route cause of the problem, but could be the reason .
    Test & update the forum.
    Regards,
    Reazuddin MD

  • Transfer of material master data with Classification view

    Dear Experts
    I want to transfer material master data between R/3 using ALE. We are able to send master data using BD10 without classification view.
    Please let me know in detail the configuration, steps invloved in sending materail master along with classification view.
    Regards
    Samal

    HAI FRIENDS,
    CHANGING CLASSIFICATION VIEW FOR MATERIAL USING BAPI
    ->CREATE CHARACTERISTIC USING TCODE CT04
    ->CREATE CLASS USING TCODE CL01 .
    -> RUN THIS PROGRAM TO CHANGE THE CLASSIFICATION VIEW
    PARAMETERS: P_MATNR TYPE MARA-MATNR. "MATERIAL
    DATA: OBJECTKEY TYPE BAPI1003_KEY-OBJECT,
    OBJECTTABLE TYPE BAPI1003_KEY-OBJECTTABLE,
    CLASSNUM TYPE BAPI1003_KEY-CLASSNUM,
    CLASSTYPE TYPE BAPI1003_KEY-CLASSTYPE,
    ALLOCVALUESNUMNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_NUM WITH HEADER LINE,
    ALLOCVALUESCHARNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CHAR WITH HEADER LINE,
    ALLOCVALUESCURRNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CURR WITH HEADER LINE,
    RETURN TYPE TABLE OF BAPIRET2 WITH HEADER LINE.
    OBJECTKEY = P_MATNR.
    OBJECTTABLE = 'MARA'.
    CLASSNUM = 'MTS_CABLE_BIN1'. "CLASS(CREATED USING CL01)
    CLASSTYPE = '023'. "CLASS TYPE (023 FOR BATCH)
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
    OBJECTKEY = OBJECTKEY
    OBJECTTABLE = OBJECTTABLE
    CLASSNUM = CLASSNUM
    CLASSTYPE = CLASSTYPE
    STATUS = '1'
    STANDARDCLASS =
    CHANGENUMBER =
    KEYDATE = SY-DATUM
    NO_DEFAULT_VALUES = ' '
    IMPORTING
    CLASSIF_STATUS =
    TABLES
    ALLOCVALUESNUMNEW = ALLOCVALUESNUMNEW
    ALLOCVALUESCHARNEW = ALLOCVALUESCHARNEW
    ALLOCVALUESCURRNEW = ALLOCVALUESCURRNEW
    RETURN = RETURN
    LOOP AT RETURN.
    WRITE: / RETURN-TYPE ,RETURN-MESSAGE.
    ENDLOOP.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT =
    IMPORTING
    RETURN =
    BY VENKATESWARAREDDY D
         MYTEC SOFT LTD

  • 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

  • SAP Business connector  4.6 with a ECC 6.0 Unicode

    Hi,
    a SAP Business connector  4.6 is compatible with a SAP ECC 6.0 Unicode ?
    Regards.

    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

Maybe you are looking for

  • IPhone mail app is not pushing Office 365 emails to show in my lock screen

    Hello, I transferred from one college to another last semester and set up my iPhone to receive school emails as I had at my previous school. Both colleges use the same email system, Microsoft Office 365. At my first college, my email functions worked

  • Import error during PVC call

    hi while i am trying to import content for integration repository(mentioned in NW2004s Demo Config guide) i get the following error : Internal Error during PVC Call: java.lang.nullpointer exception. I have SAP Basis 7 with patch level 6 and i have do

  • Cost of replacing a cracked macbook pro screen?

    I sadly knocked my lappy on to a audio sampler and the whole screen wigged out like I'd sat on it or something. Lots of coloured lines and cracks in the middle... So, how much am I looking at to replace this including labour? I know it's very pricey

  • Help!! How to install and use Sun ONE Directory Server Resource Kit 5.2

    Hi ! Friend: I have some problem on install and use Sun ONE Directory Server Resource Kit 5.2, when I execute "java DSRK", afterwards something like this : com.iplanet.install.until.wbResource::gerstring:resource bundle"locale.resources.S1DSRKResourc

  • Daily sequence number

    Hi, I need a clean solution for a daily sequence number (starts from 1 everyday). Clean in the sense that upon initial setup, I do not have to do anything and I can get my number everyday by just one jdbc call/query. Thank you in advance.