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

Similar Messages

  • Getting Data from SAP BW for Dashboard

    Hello,
    we want to create dashboards that are accessing data from a SAP BW 7.0 system without an EhP.
    I know that with BW 7.0 EhP1 we would be able to access queries directly. But for now we have the BOE 4 server and want to access the data over this software. Which possiblities exist to get the data from BW over the BOE 4 server?
    Thanks in advance,
    André

    Without the minimum requirements, you will not be able to use the BICS web service to retrieve data from BW directly.  In this case, you are limited to creating a Universe from the BEx query and then creating a Live Office or QaaWS connection from that Universe which you can then import to Xcelsius.  Unfortunately there are many layers to this along with some limitations due to processing the query via the MDX engine instead of OLAP.
    BEx>Universe>Live Office/QaaWS>Xcelsius

  • Webservice:get data from SAP ECC

    hi,
    i want webservice.that webservice will fetch the data from sap ecc system.
    i need steps for creating webservice.i have some functionality .what can i expose as webservice.
    thanks
    raj

    Hi Raj,
    If we trying to fetch data from SAP ECC system then expsoing as a web service from NWDS (Netweaver Developer studio ) would the best option.First we need to create a Portal Service that invokes the functionalities of the SAP application component( Business solution which uses ECC) using the SAP Java Connector. Then you can create a Web Service from the Portal Service.
    If your SAP application component runs on SAP Web Application Server (WebAS) 6.20 or later, then you can directly enable Web Services on the application component by using the application server's native Web Service capabilities.
    1. To turn on the WebAS 6.20 SOAP Processor, you need to:
    Configure the Internet Communication Framework (ICF) of the WebAS to start the Internet Communication Manager (ICM) and activate the HTTP protocol support
    Use transaction SICF to activate the SOAP Runtime Handler: default_host -> sap -> bc -> soap -> rfc.
    Once the SOAP Processor is turned on, the RFM-implemented Web Services can be invoked at http://<host_name>:<port_number>/sap/bc/soap/rfc
    6.20 also provides a Web Service Browser, which is a BSP web application that can be used to browse all RFM-implemented Web Services in the system, and generate WSDLs for these Web Services.
    2. In a WebAS 6.40-based SAP application component, such as SAP Enterprise Core Component (ECC) 5.0, or a WebAS 7.0-based application component, such as ECC 6.0, by default, few Web Services are pre-delivered by SAP. But it is pretty easy to create Web Services in a WebAS 6.40-based system.
    Inside-Out Approach: if within the SAP application component there already exist one or several RFMs or BAPIs that suit your needs, you can create Web Services based on them without any additional programming. The basic steps include:
    Using the Service Definition Wizard, which can be started from transaction SE80, SE37, or BAPI, to create a (Web) service definition from an RFM, a function group, or a BAPI.
    When creating the service, you have the option to rename or hide operations (methods) and parameters, define default values for parameters, and changing parameter types.
    After the service definition is created, you need to use transaction WSCONFIG to release the service definition for the SOAP runtime.
    Afterwards, by using transaction WSADMIN, you can for any released Web Service, call the Web service homepage which provides utilities for using and testing the Web Service, generate WDSL, configure the logging and tracing settings, and publish the Web Service as a Business Service in an UDDI registry.
    Hope these steps are helful to you.
    Regards,
    Shaila

  • Getting Data from SAP ECC & BI to Crystal Reports and then Broadcasting.

    Hi,
    I need to get the data from SAP ECC & BI to Crystal reports and then after formating data in Crystal reports, my requierment is to send via email (Broadcasting). Is there any option to  Broadcast from Crystal reports?
    I read Ingo Hilgefort blogs, but I need in detail steps such as to verify Integration Kit is installed or not and also how to create connections in between SAP ECC and Crystal. What are the Security setups(User IDs and Authorizations) involved?
    What is best option for email/broadcasting for Crystal Reports?
    Your help is appreciated.
    Thanks.
    SVK.

    Hi,
    I would suggest you then start with the installation and user guide fr the SAP Integration Kit.
    Ingo

  • Upload data from excel (not the excle file) into SAP

    Guys,
    how can we upload data from excel sheet into SAP? I mean just the data not the entire file,
    I have a requirement where user press a button in excel sheet and the data in the sheet will get uploaded into SAP.
    I am sure we have to use BAPI and some VB programming for macros, I will really appriciate if anyone can help how to achive this.
    some sample code exampe will help.
    Cheers!

    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

  • How to get Data from SAP B1 through Journal Entries objects (Excel VBA)

    Hi Genius
    i had try to login SAB B1 thorugh MS Excel VBA code and it worked well. but i need some questions regards getting the data from after login. that means i want the Posting date, Transaction No, account code, debit and credit amount from Journal entries posted in a particular day through MS excel VBA into excel sheets 1 cell A1:E1
    how i get it if any possible ways to do that
    here my code to login
    Public Sub login()
        Sheets("Login").Select  'access the login tab
        Worksheets("Login").Range("B1").Activate 'put focus on cell B1 (manager)
        B1UserID = Trim(ActiveCell.Value2) 'set Businsss One user
        ActiveCell.Offset(1, 0).Activate
        B1Password = Trim(ActiveCell.Value2) 'set Business One password
        ActiveCell.Offset(1, 0).Activate
        sqluser = Trim(ActiveCell.Value2) 'set SQL user
        ActiveCell.Offset(1, 0).Activate
        sqlpass = Trim(ActiveCell.Value2) 'set SQL password
        ActiveCell.Offset(1, 0).Activate
        Db = Trim(ActiveCell.Value2)      'set Database name
        ActiveCell.Offset(1, 0).Activate
        Server = Trim(ActiveCell.Value2)  'set Server name
        Set company1 = New SAPbobsCOM.Company  'initialate DI company object
        company1.DbServerType = dst_MSSQL2005
        company1.Server = Server
        company1.DbUserName = sqluser
        company1.DbPassword = sqlpass
        company1.CompanyDB = Db
        company1.UserName = B1UserID
        company1.Password = B1Password
        'connect to the database
         lRetCode = company1.Connect
            If lRetCode <> 0 Then
                sErrMsg = company1.GetLastErrorDescription
                MsgBox (sErrMsg)
            Else
                MsgBox ("Connected to: " & company1.CompanyName)
            End If
    End Sub
    pls help me
    advance thanks to solvers

    Gordons way is the easiest - just query the OJDT table for journal entry headers and JDT1 for journal entry lines if needed.
    But if you want to work with the business objects:
    'Journal entry
       Dim oJE As SAPbobsCOM.JournalEntries
       Set oJE = company1.GetBusinessObject(oJournalEntries)
       oJE.GetByKey(1234)
       Dim postingDate as String
       postingDate = oJE.DueDate
    'etc etc

  • How to obtain data from SAP in the form of XML

    Hi
    We have a requirement to integrate SAP CRM server with 3rd party utility.
    The 3rd party utility needs SAP Data in the form of XML.
    please guide me in getting the following data in the form of XML;
    XML formats for:
    -     Customer data
    -     Product data
    -     Promotions data
    -     Campaign data
    etc.... if any more data required from SAP server.
    Kind regards,
    Harika

    Hi Harika,
    Webservices is best way to go inorder the fetch the data from CRM system, ofcoz it comes out in XML format.
    http://esworkplace.sap.com
    You will info abt this http://www.sdn.sap.com/irj/bpx/esworkplace
    There must a suitable webservice given for each of the below. Browse through esworkplace.
    -     Customer data
    -     Product data
    -     Promotions data
    -     Campaign data
    webservice can easily be tested in WSNAVIGATOR of ESR in SE80.
    Hope the above hints gives you a way forward.
    Chees, Satish

  • Refresh buffer when rfc gets data from crm and the data was updated from R3

    hi all
    I have a program in r3 for maintenance of partners, so the user can create or update a CRM partner from the R3 system. if you are updating a partner, the program gets the data from CRM via RFC and saves the changes via zBDoc. if the user modify a partner and then try to check if the info were updated, he needs to leave the transaccion and run it again in order to the RFC gets the data updated. how I can avoid to leave the transaccion? i tried with a buffer refresh and commit but it doesn't works.... any idea?
    tnks

    Hi Alan,
    THANK YOU for that hint. That brought me a giant step further, seriously! Many thanks! Now my report is running and hourly creating an instance, reeally nice!
    But of course, the next problem is arising rapidly: Now that I got my report creating instances, the funny thing happening is the following: I created the WebI report with the WebI-Rich Client and then saved it to the server. In InfoView I scheduled the instance creation and the strange thing is now: The values differ. In the original report the values for some percentage ratios (e.g. 50%) show up as they should with four decimals: 0,5000 (German way of displaying numbers with decimals). BUT: In the instances of the same report, exactly these numbers would appear as 0,0000. So the numbers would just not be displayed! But all other numbers (all numbers not having decimals) would show up as they are supposed to even in the instances of the report.
    This is kind of strange to me. Does anybody have a clue what the problem might be?
    Many thanks again! And I hope I am not bothering you guys with these "newbie" questions.
    Thanks and best regards,
    Kai

  • Create a visual web part which get data from excel sheet and import it into sql server database in sharepoint 2010 (development)

    Hi,
    I want to create a visual webpart which will read data from excel sheet and import it in to sql server database.(using sharepoint development)
    I want to do it using visual webpart.
    Please help to solve the issue.
    Thanks in advance!
    Regards
    Rajni

    Hi  Rajni,
    Microsoft.Office.Interop.Excel assembly provides class to read excel file data, in your web part solution, reference the assembly, and following blog contains samples about how to read the excel file data,
    and import it to SQL  database.
    1.Create a Visual Web Part Project:Create
    Visual Web Parts in SharePoint 2010
    2.Read the excel workbook by using SPFile class:
    http://alancejacob.blogspot.in/2012/06/read-data-from-excel-file-and-insert-in.html
    http://stackoverflow.com/questions/14496608/read-excel-file-stored-in-sharepoint-document-library
    3.Export the excel workbook to SQL Server:
    http://www.c-sharpcorner.com/UploadFile/99bb20/import-excel-data-to-sql-server-in-Asp-Net/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to read data from a website based on user inputs through java programmi

    Hi
    I want to get information from a website based on some inputs that I have. The inputs change everytime and based on them, different output is expected. How do I go about with it? Please advice...
    Will data mining help in this? or is it used only for analysis and predictions?

    you can get the webpage you need very simply like this :
    Test.java
    public class Test{
              public static void main(String[] args) {
                   URLClient client = new URLClient();
                            // URL of a webpage
                   String webPage = client.getDocumentAt("http://content-ind.cricinfo.com/slvind/engine/current/match/343730.html?template=desktop;view=main;wrappertype=desktop");
                   System.out.println(webPage);
         }URLClient.java
         import java.net.*;
         import java.io.*;
         public class URLClient {
              protected URLConnection Connection;               
                   public String getDocumentAt(String urlString) {
                             StringBuffer document = new StringBuffer();
                             try {
                                            URL url = new URL(urlString);
                                            URLConnection conn = url.openConnection();
                                            BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                                            String line = null;
                                            while ((line = reader.readLine()) != null)
                                                 document.append(line + "\n");
                                            reader.close();
                                       } catch (MalformedURLException e) {
                                       System.out.println("Unable to connect to URL: " + urlString);
                                       } catch (IOException e) {
                                       System.out.println("IOException when connecting to URL: " + urlString);
                                  return document.toString();
              }

  • PI only received data from SAP on the 2nd or 3rd time sent

    Hi experts,
    We were facing some problem with our RFC connection.
    When I execute it for the first and the second time with the same parameters, PI received it. But its not for the third time. But successfull again on the 4th time, This all happens in more than 60 seconds intervals. The third message is in sm37 with status finished but not in processed messages in PI. Where does the message go then?
    Then when I really wait for 10 minutes and send every data all 3 messages go through to PI. Is there any system parameter is controlling this? Or the error is in the program?
    Thanks.
    Regards,
    Thava

    Hi,
    There is no messages stucked in sm58 of sender system.
    Thanks.
    Regards,
    Thava
    Edited by: Thavachelvi Velautham on Jul 28, 2011 6:01 PM

  • Extraction from SAP R/3 (Business Content ) into SAP BW

    Hi,
    i replicate all data in bw side when i assign infosource iam getting the error "Mapping between datasource 2LIS_02_S011 and source system "ALS800R3" is inconsistent in the status bar and a pop-up window showing error in infoObject Mapping listing down Objects like 0REVERSEDOC, 0VTYPE, 0VERSION, 0PURCH_ORG, 0PUR_GROUP and so on and also these objects are not active
    please help me regarding this error
    thanks.
    ram baskar

    Hi
    Go to the transaction RSA1
    then in RSA1 click on the infoobjects in modelling
    then search for the infoobject
    go to the change mode of infoobject
    there you can find the activate button on the top
    click on that button it will activate your infoobject
    Assign points if it helps
    Regards,
    Sumit

  • Gettin data from SAP R/3 4.7 unicode sys to SAP ERP non-unicode sys via RFC

    We are trying to get data from SAP R/3 4.7 unicode sys to SAP ERP non-unicode sys via RFC. We are reading field from the database via FM and this field got converted by SAP standard Method (CL_ABAP_CONTAINER_UTILITIES=>fill_CONTAINER_C) from structure. When reading this field from ERP sys and converted back to structure using SAP standard Method the value is un-accurate, and different(blank) giving values.
    How, if the data originally was a char or numeric it works fine, but not for decimal.
    best regards,
    Abu-Qaht

    I have a range fields with different type of ranges, am saving these to the database by converting them to a string via the same method. I got the same problem so I tried to convert the string to xstring using function “SCMS_STRING_TO_XSTRING”, before send it to the other system, but the function raised an exception: CX_SY_CONVERSION_CODEPAGE

  • Data from SAP into BPC

    What is the best way to get data from SAP into BPC?What about getting data from BPC (like a template) into back into SAP?

    Hi Sam,
    Please find here the steps you should do
    Step#1: In SAP  With the help of ABAP program update data into a table.
    Step#2: In regular interval pull data from SAP table to BPC staging tables in SQL server.
    Step#3: Run import data manager package to update FACT tables from BPC staging tables on demand.
    This is the best way and best approach to pull data from SAP to BPC.
    Thanks and Regards,
    Rajesh Muppala.

  • Printing the data of SAP in the external system!!

    Hi Friends,
    I have one requirement.
    The user is using some external system for creating PO/SO through BAPI from SAP R/3,the actual requirement is when the user presses the print button in the external system
    then the corresponding PO/SO should get printed in the external system.How can i achieve this?
    Kindly advice...
    Regards,
    Abdul
    Message was edited by: Abdul Hakim
    Message was edited by: Abdul Hakim
    Message was edited by: Abdul Hakim
    Message was edited by: Abdul Hakim
    Message was edited by: Abdul Hakim

    Hi,
    Here some of points which i think
    1. Get PO number from external number
    2. For the some PO write RFC, which will give you
        corresponding PO details from SAP.
    3. So get data from SAP system.
    4. come back to external system extract PO data which
        you have recently got from SAP system
    5. Using print command in external system do can finish
        your work.
    This all is depend upon external system. If external
    system is SAP then things are much simpler than this.
    Regards,
    Amey

Maybe you are looking for

  • HT1751 How do I allow other users on my mac to access my music library?

    Hi I have a macbook and my wife is also a user. I've followed instructions to try and move my iTunes media folder to a public location but basically can't find a public location that's accessible to drag a folder to. It only shows up on Bootcamp and

  • My ipod is not switching on.

    My ipod is not switching on. even if it does it displays "www.apple.com/support/ipod" and i also hear weird sounds from it .

  • Bank Communication Management - Transfer between accounts

    Hi, I am looking at the possiility to implement the BCM, however in a simple transfer between accounts that not have payment request and the file is generated by correspondence, I cannot reflect this in BCM. It is possible? Thanks, Regards

  • What's included in the box?

    I have the AirPort Express Base Station with AirTunes sitting in my shopping cart in the Apple Store, but to my shock, there is no information there about what is actually included with the device. There is at least one text entry which reads "+There

  • Saving received email messages on POP3

    Is anybody who knows how I can keep the received messages from a POP 3 account on the device after deleting them on server? I would appreciate a response, as I think it is an important matter for the ones who want a direct access to the emails receiv