How to extract historical data from  business objects datamarts to Sap BW.

Hi Guys,
I had a scenario,where i need to extract or convert historical data which is resided in datamarts of businesobjects into SAP BI Infocubes.
Can anyone have experienced or idea on this type of scenario.
If you experience or idea plz guide me. If you know any documentation or Docs where i can follow to workout this task.please refer
Thanks,
Vikram B

Hello Vikram,
I recommend to post this query to the [Integration Kits - SAP|BusinessObjects Integration Kits; forum.
This forum is dedicated to topics related to the BusinessObjects Integration Kit for SAP.
It is monitored by qualified technicians and you will get a faster response there.
Also, all SAP Kit queries remain in one place and thus can be easily searched in one place.
Thanks a lot,
Falk

Similar Messages

  • How to extract Cognos Data into Business Objects?

    Hi All,
    I would like to know whether anyway to pull Cognos data into Business Objects?
    1. Pull data thru Universe from Cognos Cubes?
    2. Pull data using Crystal reports from Cognos Cubes?
    3. Or any otehr method of pulling data from Cognos Cubes?
    If nothing is possible I would have to explore using the RDBMS Tables to build Universe, WebI and then present in Xcelsius. Anybody is aware of getting data from Cognos?
    Thanks in advance.
    Alex.

    Cognos Reporting on SAP BI data
    We need to create a new project to import the structure of the SAP BI cube or Multiprovider.
    Enter User ID and password.
    Click on OK
    It will ask you to enter the User ID and password again. After enter the User ID and password it will ask you to select the language.
    Then it will ask you to select the metadata source, select the Data source as shown in below fig. and click next.
    Select the data Source as shown in below.
    Here we are planning to import SAP BW cube so we have to select SAP BW and click on next.
    Select sign on and Click on OK.
    Here we have to select our desired cube or multiprovider and click next.
    Now we have to select the language again.
    Here Cognos is giving the flexibility to use different options when importing cube structures.
    Here I am selecting to use the technical name of the objects and to bring same model as it is in SAP BI.
    Finally it will show list of all objects which are imported from SAP BI.
    When you click on finish it will take to the frame work manager. There you will see the SAP BI Cube Structure.
    Now it is exactly imported like SAP BW extended star schema model.
    Here you can compare the technical names of the dimensions in both in Cognos and SAP BI is same.
             COGNOS    Model                                         SAP BI Cube model         
    Here I am comparing the values of the info Objects with in one dimension.
                   Cognos Model                                                   SAP BI Model
    If there are any hierarchies in BI, it will form separately as shown in below fig.
    When you open the main object of Program definition, we will find 3 objects under this.
    It is always recommendable to use Level 01 objects.
    This is how it looks when you open all the above 3 objects. You can use any of those depends on your report requirement.
    When you open the info object if you see number of different items, that means this info object has got attributes in it.
    0COMP_CODE is the technical name of the info object in BI.
    In Cognos if it technical name starts with 1  Short Text of the Info Object.
                                                                       2  Key of the Info Object.
                                                                       4  Long Text of the Info Object.
                                                             5  Medium Text of the Info Object.
    LELEL00  Is Summarized values.
    LEVEL01  Is Item level values of Info Object.
    Once you see this in bw/bi environment, i hope you know how to gather and use it in BOBJ environment !!

  • How to extract Inventory data from SAP R/3  system

    Hi friends How to extract Inventory data from SAP R/3  system? What are report we may expect from the Inventory?

    Hi,
    Inventory management
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20handle%20inventory%20management%20scenarios.pdf
    How to Handle Inventory Management Scenarios in BW (NW2004)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Loading of Cube
    •• ref.to page 18 in "Upgrade and Migration Aspects for BI in SAP NetWeaver 2004s" paper
    http://www.sapfinug.fi/downloads/2007/bi02/BI_upgrade_migration.pdf
    Non-Cumulative Values / Stock Handling
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/93ed1695-0501-0010-b7a9-d4cc4ef26d31
    Non-Cumulatives
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/da1640dc88e769e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a62ebe07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a62f8e07211d2acb80000e829fbfe/frameset.htm
    Here you will find all the Inventory Management BI Contents:
    http://help.sap.com/saphelp_nw70/helpdata/en/fb/64073c52619459e10000000a114084/frameset.htm
    2LIS_03_BX- Initial Stock/Material stock
    2LIS_03_BF - Material movements
    2LIS_03_UM - Revaluations/Find the price of the stock
    The first DataSource (2LIS_03_BX) is used to extract an opening stock balance on a
    detailed level (material, plant, storage location and so on). At this moment, the opening
    stock is the operative stock in the source system. "At this moment" is the point in time at
    which the statistical setup ran for DataSource 2LIS_03_BX. (This is because no
    documents are to be posted during this run and so the stock does not change during this
    run, as we will see below). It is not possible to choose a key date freely.
    The second DataSource (2LIS_03_BF) is used to extract the material movements into
    the BW system. This DataSource provides the data as material documents (MCMSEG
    structure).
    The third of the above DataSources (2LIS_03_UM) contains data from valuated
    revaluations in Financial Accounting (document BSEG). This data is required to update
    valuated stock changes for the calculated stock balance in the BW. This information is
    not required in many situations as it is often only the quantities that are of importance.
    This DataSource only describes financial accounting processes, not logistical ones. In
    other words, only the stock value is changed here, no changes are made to the
    quantities. Everything that is subsequently mentioned here about the upload sequence
    and compression regarding DataSource 2LIS_03_BF also applies to this DataSource.
    This means a detailed description is not required for the revaluation DataSource.
    http://help.sap.com/saphelp_bw32/helpdata/en/05/c69480c357354a8846cc61f7b6e085/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/ed/16c29a27db6e4d81a015be8673eb80/content.htm
    These are the standard data sources used for Inventory extraction.
    Hope this helps.
    Thanks,
    JituK

  • How to extract PS data from sap r/3 to bw

    Hi,
    How to extract PS data from sap r/3 to bw
    PS data like plans,budget,accurals&commitmnets
    can any one help me regarding this..
    Thanks in Advance,
    Shankar.

    HI sankar,
    you can refer the belkow link to find the details on the relevant extractors and infoproviders
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/17/416d030524064cb2b8d58ffb306f3a/frameset.htm
    Regards,
    Sathya

  • HOW TO TRANSFER HISTORICAL DATA FROM ONE ACCOUNT TO ANOTHER

    제품 : FIN_GL
    작성날짜 : 2006-05-29
    HOW TO TRANSFER HISTORICAL DATA FROM ONE ACCOUNT TO ANOTHER
    =============================================================
    PURPOSE
    특정 기간의 Balance 를 Account 별로 Transfer 하는 방법에 대해 알아 보도록 한다.
    Explanation
    GL 의 Mass Maintenance 기능을 이용하면 한 Account 에서 다른 Account 로 혹은 Multiple Account 에서 다른 하나의 Account 로 Balance 를 이동 시킬 수 있다.
    1. GL Responsibility 에서 Other> Mass Maintenance 를 선택한다.
    2. Move/Merge 작업을 위한 Request Name 과 Description을 입력한다.
    3. Request Type 으로 Move 혹은 Merge 를 선택한다.
    4. source-to-target account 를 위해 line number 를 입력한다.
    5. LOV 에서 source Account 를 선택하여 입력한다.
    모든 Account 는 enable 상태여야 한다.
    6. target account 역시 LOV에서 선택하여 입력한다.
    7. 지정한 작업을 수행 하기 전에 먼저 확인 작업을 할 수도 있다.
    8. 작업한 내용을 저장한다.
    9. Move/Merge request 를 수행한다.
    Example
    N/A
    Reference Documents
    Note. 146050.1 - How to Transfer Historical Data from One Account to Another

    Follow the directions here:
    http://support.apple.com/kb/HT2109

  • How to Extract the data from R/3 Genric extractor to BW ?

    How to Extract the data from R/3 Genric extractor to BW ?

    hi,
    step by step procedure for generic extraction delta
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Refer:
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Generic Extraction via Function Module
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Extractions in BI
    https://www.sdn.sap.com/irj/sdn/wiki
    New to Materials Management / Warehouse Management?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
    Ramesh

  • Cant extract historical data from Citadel database

    When using the simplest VI's to extract historical data from the Citadel database, I get error messages :
    using "Get Historical Tag List.vi"
    CIT_OpenDatabase.vi
    error code - 0x8abc0010
    Using "Read Historical Trends.vi"
    CIT_ReadTrace.vi
    error code - 0x8abc0010
    I am using dsc version 6.0, and have already tried to upgrade to ver. 6.0.2. This did not go well, and I had to return to ver. 6.0 (reinstalling NT and everything else) to make my system run again.

    Download and install the latest release of Logos from ftp://ftp.ni.com/lookout/logos. Logos is the backbone drivers for the Citadel database. The most recent releases of Logos addresses issues that are similar to this.

  • How to extract the data from R/3?

    Gurus,
    I need to extract the data from R/3 to BI . Below i am giving Table name followed by field name and field description.
    I am using BI 7.0 and ECC 6.0
    I am having following doubts.
    1. Based on below information which extract method I need to use (Generic data  Extraction?)?
    2. I try to create a one view but I could not find Join between the tables. I found only few joins. how to join other tables?
    3. Without joining these table how can I collect the data ?
    4. Do i need to create multiple tables?
    SAP Table      SAP Field        Field Description
    VBAK->             VBELN->        Sales Document
    VBAP->             WERKS->        Plant
    VBAK->              AUART->            Doc Type
    VBAP->             PSTYV->        Item Category
    VBAP->             MATNR->        Material
    VBAP->             ARKTX->        Description
    MATNR->              GROES->     
    VBAP->             ZIEME->        Target Quantity UOM
    VBAP->             WAVWR->        Cost
    VBAK->             ERNAM->        Name of a person who created the object
    VBAKA->             KUNNR->        Customer Number 1
    VBAP->             BSTNK->                 Customer purchase Order no
    VBEP->             BANFN->        Purchase Requisition Number
    QMFE->             FEGRP->        Cause Code(Code Group Problem)
    QMFE->             FECOD->        Damage Code(Problem or Damage Code)
    QMEL->             QMNUM->        Notification No
    EQUI->             EQUNR->        Equipment Number
    QMEL->             QMART->        Notification Type
    QMELI->             ERDAT->        Date on Which Record Was Created
    ============================================================================================
    Gurus I will assign full points .
    Thanks

    Hi,
    I would use the standard extractor 2lis_11_vaitm and enhance it for the following fields:
    VBEP-> BANFN-> Purchase Requisition Number
    QMFE-> FEGRP-> Cause Code(Code Group Problem)
    QMFE-> FECOD-> Damage Code(Problem or Damage Code)
    QMEL-> QMNUM-> Notification No
    EQUI-> EQUNR-> Equipment Number
    QMEL-> QMART-> Notification Type
    QMELI-> ERDAT-> Date on Which Record Was Created
    regards
    Siggi

  • How to Extract the data from Microsoft BI to SAP BI 7

    Dear All,
    We have a requirement to Extract the data from Microsoft BI to Sap BI 7. How can we achieve this??
    Shall we use the DB connection for this??
    If anyone knows about this please give me some suggestion.
    Thanks in advance
    Sathiya

    Hi All,
    How to include the DBMS name when I give the connection. We are using the Data base as MS-BI.
    Please guide me
    Thanks in advance.
    Regards
    Sathiya

  • How to extract incremental data from SQL server to oracle tables in ODI

    HI All,
    In my ODI sql server is install.My Source is in SQL server and my target is in Oracle.
    I need to create a interface mapping where i need to extract incremental data from sql server to oracle.
    There is a datetime(with Timestamp) field in sql server .I need to pull incremental data based on dateime.
    Example = tablename.DateTime > (select '1-jan-11' from dual) .....i am using this query but its not woking.the error is Invalid object name"dual".
    We are not going to use Incremental in IKM and LKM.
    Request you to please provide any suggestion ASAP.
    Thanks,
    Lony

    You can do that via Variable.
    In the interface mapping create a filter on Tablename.DateTime
    and put the condition like this
    Tablename.DateTime BETWEEN #VAR and in the variable use this query in refreshing tab with oracle schema
    SELECT max(start_time)||' AND '||max(END_TIME)+1 from audit_table where ETL_JOB_CODE = '20'In the package call the above variable in refresh mode and then interface.
    This way you will pass from the query between and condition date and pass to interface so that SQL Server fetches the data between those too range.
    Note:- You might need to tweak the date format so that SQL Server can understand.
    Hope this helps.

  • How to extract Loan Data from HR module

    Hi Experts,
    I want to extract Loan data from HR module.
    Can anyone tell me what are the Data sources I can use,
    The Loan InfoType is 0045, passed on this I have created one generic DS but it is not working correctly, some values are it is missing.
    How can I extract Loan Data from HR module.
    Regards,
    SHAIK.
    need help to solve this issue...
    Edited by: shaik on Jan 23, 2008 10:18 AM

    Hi Experts,
    I want to extract Loan data from HR module.
    Can anyone tell me what are the Data sources I can use,
    The Loan InfoType is 0045, passed on this I have created one generic DS but it is not working correctly, some values are it is missing.
    How can I extract Loan Data from HR module.
    Regards,
    SHAIK.
    need help to solve this issue...
    Edited by: shaik on Jan 23, 2008 10:18 AM

  • How to extract a field from Binary object

    Hi Guys,
    I have a Binary object in custom aggregator and I would like to extract a field from the Binary object without de-serializing the Binary object. I know this can be done but figure out how.. Appreciate your help.
    Have tried this
    PofValue value = PofValueParser.parse(Binary, (PofContext) BinaryEntry.getSerializer());
    PofValue child = value.getChild(1);
    Object value = child1.getValue();
    but no luck.
    Thanks
    D

    Hi JK,
    Thanks..  I have Binary  and tried
    PofValue pofValue = PofValueParser.parse(binary, pofContext);
    PofNavigator path = new SimplePofPath(1);
    PofValue target = path.navigate(pofValue);
    Object value = target != null ? target.getValue() : null;
    but no luck.. I must be missing something.
    Basically, am trying to do cache joins using aggregator and data affinity. Sample code snippet
    @Override
      public Object aggregate(Set values) {
      List extractedValues = new ArrayList();
      for (Map.Entry entry : (Set<Map.Entry>)values) { 
       try {
        //these are BinaryEntries in TESTCACHE1
        BinaryEntry binaryEntry = (BinaryEntry)entry;  
        Long compId = (Long)binaryEntry.extract(new KeyExtractor("getComponentId")); 
        Long contId = (Long)binaryEntry.extract(new KeyExtractor("getPartyId"));
        BackingMapContext backingMapContext = binaryEntry.getContext().getBackingMapContext("TESTCACHE2");  
        ObservableMap backingMap = backingMapContext.getBackingMap();
        MapIndex mapIndex = backingMapContext.getIndexMap().get(new KeyExtractor("getComponentId"));   
        com.tangosol.util.InflatableSet keySet = (com.tangosol.util.InflatableSet) mapIndex.getIndexContents().get(compId);
        Binary object = null;
        for(Object key : keySet ) { 
         object = (Binary)backingMap.get(key);    
        PofNavigator  path  = new SimplePofPath(2);
        PofValue value = PofValueParser.parse(object,  (PofContext) binaryEntry.getSerializer());
        PofValue  target = path.navigate(value);  
        Object extractedValue = target != null ? target.getValue(): null;
        extractedValues.add(extractedValue);
       } catch (Throwable t) {
        log.error("Exception in aggregate method ", t);
        throw new RuntimeException("Exception in aggregate method", t);
      return extractedValues;

  • How to extract the data from the chart. Data were not saved

    Hi everyone. Beginners question, but could not find an answer to it
    How can I get the numerical data from the chart. Chart is already on the screen and data vere not saved into file during VI run. All I have - just chart, but I need numbers       
    Thanks
    Message Edited by olka on 07-18-2007 09:41 AM

    You can still do it, the process just changes a bit...
    Copy the control to a new VI as before, and change it into a control.
    Create the diagram shown in the attached screen shot.
    Run the new VI. You will get two arrays: one of x-axis values and one of y-axis values.
    Mike...
    Message Edited by mikeporter on 07-18-2007 12:21 PM
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    extracting xy data.JPG ‏5 KB

  • How to extract the data from module pool program to Excel Sheet?

    Hi Guys
            I am having a requirement to transfer the data from Module pool screen to excel sheet directly.
            This is an urgent requirement.
            So plz reply me with some coding examples.
            I will give points for that.

    This report extract excel file. From that concept you can easily extract data from module pool program also by coding in PAI of the screen.
    REPORT ztest1 .
    * this report demonstrates how to send some ABAP data to an
    * EXCEL sheet using OLE automation.
    include ole2incl.
    * handles for OLE objects
    data: h_excel type ole2_object,        " Excel object
          h_mapl type ole2_object,         " list of workbooks
          h_map type ole2_object,          " workbook
          h_zl type ole2_object,           " cell
          h_f type ole2_object,            " font
          h_c type ole2_object.            " color
    DATA: FILENAME LIKE RLGRAP-FILENAME.
    tables: spfli.
    data  h type i.
    * table of flights
    data: it_spfli like spfli occurs 10 with header line.
    *&   Event START-OF-SELECTION
    start-of-selection.
    * read flights
      select * from spfli into table it_spfli.
    * display header
      uline (61).
      write: /     sy-vline no-gap,
              (3)  'Flg'(001) color col_heading no-gap, sy-vline no-gap,
              (4)  'Nr'(002) color col_heading no-gap, sy-vline no-gap,
              (20) 'Von'(003) color col_heading no-gap, sy-vline no-gap,
              (20) 'Nach'(004) color col_heading no-gap, sy-vline no-gap,
              (8)  'Zeit'(005) color col_heading no-gap, sy-vline no-gap.
      uline /(61).
    * display flights
      loop at it_spfli.
        write: / sy-vline no-gap,
                 it_spfli-carrid color col_key no-gap, sy-vline no-gap,
                 it_spfli-connid color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityfrom color col_normal no-gap, sy-vline no-gap,
                 it_spfli-cityto color col_normal no-gap, sy-vline no-gap,
                 it_spfli-deptime color col_normal no-gap, sy-vline no-gap.
      endloop.
      uline /(61).
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-007
           exceptions
                others     = 1.
    * start Excel
      create object h_excel 'EXCEL.APPLICATION'.
    *  PERFORM ERR_HDL.
      set property of h_excel  'Visible' = 1.
    *  CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:kis_excel.xls'
    *  PERFORM ERR_HDL.
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-008
           exceptions
                others     = 1.
    * get list of workbooks, initially empty
      call method of h_excel 'Workbooks' = h_mapl.
      perform err_hdl.
    * add a new workbook
      call method of h_mapl 'Add' = h_map.
      perform err_hdl.
    * tell user what is going on
      call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
    *           PERCENTAGE = 0
               text       = text-009
           exceptions
                others     = 1.
    * output column headings to active Excel sheet
      perform fill_cell using 1 1 1 200 'Carrier id'(001).
      perform fill_cell using 1 2 1 200 'Connection id'(002).
      perform fill_cell using 1 3 1 200 'City from'(003).
      perform fill_cell using 1 4 1 200 'City to'(004).
      perform fill_cell using 1 5 1 200 'Dep. Time'(005).
      loop at it_spfli.
    * copy flights to active EXCEL sheet
        h = sy-tabix + 1.
        if it_spfli-carrid cs 'AA'.
          perform fill_cell using h 1 0 000255000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'AZ'.
          perform fill_cell using h 1 0 168000000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'JL'.
          perform fill_cell using h 1 0 168168000 it_spfli-carrid.
        elseif it_spfli-carrid cs 'LH'.
          perform fill_cell using h 1 0 111111111 it_spfli-carrid.
        elseif it_spfli-carrid cs 'SQ'.
          perform fill_cell using h 1 0 100100100 it_spfli-carrid.
        else.
          perform fill_cell using h 1 0 000145000 it_spfli-carrid.
        endif.
        if it_spfli-connid lt 400.
          perform fill_cell using h 2 0 255000255 it_spfli-connid.
        elseif it_spfli-connid lt 800.
          perform fill_cell using h 2 0 077099088 it_spfli-connid.
        else.
          perform fill_cell using h 2 0 246156138 it_spfli-connid.
        endif.
        if it_spfli-cityfrom cp 'S*'.
          perform fill_cell using h 3 0 155155155 it_spfli-cityfrom.
        elseif it_spfli-cityfrom cp 'N*'.
          perform fill_cell using h 3 0 189111222 it_spfli-cityfrom.
        else.
          perform fill_cell using h 3 0 111230222 it_spfli-cityfrom.
        endif.
        if it_spfli-cityto cp 'S*'.
          perform fill_cell using h 4 0 200200200 it_spfli-cityto.
        elseif it_spfli-cityto cp 'N*'.
          perform fill_cell using h 4 0 000111222 it_spfli-cityto.
        else.
          perform fill_cell using h 4 0 130230230 it_spfli-cityto.
        endif.
        if it_spfli-deptime lt '020000'.
          perform fill_cell using h 5 0 145145145 it_spfli-deptime.
        elseif it_spfli-deptime lt '120000' .
          perform fill_cell using h 5 0 015215205 it_spfli-deptime.
        elseif it_spfli-deptime lt '180000' .
          perform fill_cell using h 5 0 000215205 it_spfli-deptime.
        else.
          perform fill_cell using h 5 0 115115105 it_spfli-deptime.
        endif.
      endloop.
    * EXCEL FILENAME
      CONCATENATE SY-REPID '_' SY-DATUM+6(2) '_' SY-DATUM+4(2) '_'
                  SY-DATUM(4) '_' SY-UZEIT '.XLS' INTO FILENAME.
      CALL METHOD OF H_MAP 'SAVEAS' EXPORTING #1 = FILENAME.
      free object h_excel.
      perform err_hdl.
    *       FORM FILL_CELL                                                *
    *       sets cell at coordinates i,j to value val boldtype bold       *
    form fill_cell using i j bold col val.
      call method of h_excel 'Cells' = h_zl
        exporting
          #1 = i
          #2 = j.
      perform err_hdl.
      set property of h_zl 'Value' = val .
      perform err_hdl.
      get property of h_zl 'Font' = h_f.
      perform err_hdl.
      set property of h_f 'Bold' = bold .
      perform err_hdl.
      set property of h_f 'Color' = col.
      perform err_hdl.
    endform.                    "FILL_CELL
    *&      Form  ERR_HDL
    *       outputs OLE error if any                                       *
    *  -->  p1        text
    *  <--  p2        text
    form err_hdl.
      if sy-subrc <> 0.
        write: / 'OLE-Automation Error:'(010), sy-subrc.
        stop.
      endif.
    endform.                    " ERR_HDL

  • How to extract Live data from website

    Dear Java Specialist,
    I am wondering how to write a Java program to regularly extract certain important live data such as share price on a daily basis:
    ( i ) This program will need to step through a few submenus, possibly accept certain condition to proceed to where the stock price of the interested company which will be displayed on a particular pane/window.
    ( ii ) These data can come in the form of Excel/HTML/PDF format.
    Could Web Service or Java script do the job? Obviously the simpler a solution the better. Please provide some direction on which technology to a achieve this objective with the least effort. Note that these websites could use any form of technology and hence our solution needs to be technology independent.
    Any assistance would be much appreicated.
    Thanks,
    George

    I tried the following codes but got a connection refused error:
    import java.io.*;
    import java.net.*;
    public class DnldURL {
       public static void main (String[] args) {
          URL u;
          InputStream is = null;
          DataInputStream dis;
          String s;
          try {
    //         u = new URL("http://www.homepriceguide.com.au/auction_results/index.cfm?action=view&suburbORpostcode=2010&st_locale=Darlinghurst&source=apm");
    //         u = new URL("http://localhost:8080/index.html");
               u = new URL("http://www.yahoo.com.au/index.html");
             is = u.openStream();         // throws an IOException
             dis = new DataInputStream(new BufferedInputStream(is));
             BufferedReader br = new BufferedReader(new InputStreamReader(dis));
          String strLine;
          //Read File Line By Line
          while ((strLine = br.readLine()) != null)      {
          // Print the content on the console
              System.out.println (strLine);
          //Close the input stream
          dis.close();
          } catch (MalformedURLException mue) {
             System.out.println("Ouch - a MalformedURLException happened.");
             mue.printStackTrace();
             System.exit(1);
          } catch (IOException ioe) {
             System.out.println("Oops- an IOException happened.");
             ioe.printStackTrace();
             System.exit(1);
          } finally {
             try {
                is.close();
             } catch (IOException ioe) {
    } // end of class definition
    The output from JDK 1.6.0_03 and Netbeans 6.0 on Windows XP platform is as follows:
    Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.exe' with arguments:
    '-classpath'
    'C:\Documents and Settings\htran\DnldURL\build\classes'
    'DnldURL'
    The ' characters around the executable and arguments are
    not part of the command.
    Oops- an IOException happened.
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
    at sun.net.www.http.HttpClient.New(HttpClient.java:306)
    at sun.net.www.http.HttpClient.New(HttpClient.java:323)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
    at java.net.URL.openStream(URL.java:1009)
    at DnldURL.main(DnldURL.java:45)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 1 second)
    It appears to have partially worked when u = new URL("http://localhost:8080/index.html");. However, my purpose is to be able to extract data from various pane/screen when u = new URL("http://www.homepriceguide.com.au/auction_results/index.cfm? action=view&suburbORpostcode=2010&st_locale=Darlinghurst&source=apm");Likewise, neither http://www.yahoo.com:80/index or http://www.yahoo.com:8080/index worked. Was it because Yahoo was using a different port all together? If so, what port are they or the industry in general are using?
    Many thanks,
    George

Maybe you are looking for

  • Bookmarks and MS Word

    I want to maintain a working document in Word and convert it to PDF anytime there is a change. How do I set it up so that I don't have to set up the bookmarks each time once it's in PDF?

  • DNS and DHCP

    I currently have a AP-1242AG access point that is providing dhcp addresses for a stub network. Is there a way to define the dns server in the dhcp scope?

  • Add button in hierarchical list

    Hi, I would like to ask if I can add a button Excel in Place in ALV hierarchical list? If so, how can I do that? I'm using the CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. Your help is much highly appreciated! Thanks in advance! Edited by: ysera a

  • Does anyone know when the new macbook pro comes out ?

    im wondering if there will be a new macbook pro version sometimes this year  or when was the last uptade or the last macbook pro came out.. thanx

  • Creating iFS content type require more then 4 values to be set for 1st attribute

    We get the following error: exception in thread "main" oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject java.sql.SQLException: ORA-01400: cannot insert NULL into ("IFSSYS"."ODM_ATTRIBUTE"."SETTABLE") at oracle.jdbc.dbacce