Using DBLINK in ABAP to retreive data from externam system

Hi All,
Please help me, if anyone knows the answer.
The basis team has created a dblink 'DBL_TEST.YY.XXX.COM'.
Now I have to fetch data from another non-sap external system using this dblink only. Cannot have any entry in DBCON.
I know the procedure of retreiving data using DBCON entry. But since DBCON will not be used here, so I have to use the DBLINK to get data from an external oracle table (say, ZTEST).
I need the procedure to implement the logic in abap program.
Thanks in advance,
Ipsita

My problem is now solved. We created views @the database level, and fetched data using the database view in Native SQL.
In case anybody needs to do, I am giving a short code dump;
    TRY.
        EXEC SQL PERFORMING f_loop_output.
          select alias_type_id,
                 name,
                 molecule_id
          into   :w_tab
          from   ext.V_XXXX
          where molecule_id in
           (Select mh.MOLECULE_ID
            from  ext.V_YYYY mh, ext.V_XXXX al
            where  mh.molecule_id   = al.molecule_id
            and    mh.IS_CURRENT    = 'Y'
            and    al.ALIAS_TYPE_ID = :c_type_id
            and    al.NAME                  = :l_number
          and ALIAS_TYPE_ID in ('AAA','B','CCCC')
        ENDEXEC.
      CATCH cx_sy_native_sql_error INTO l_check_rs.
        l_text  = l_check_rs->get_text( ).
        MESSAGE i005 WITH l_text.
        LEAVE LIST-PROCESSING.
    ENDTRY.

Similar Messages

  • BO DI for extracting data from legacy system to SAP BW 7.0

    Hi,
    Has anyone worked on scenario where BO Data Integrator is being used as ETL tool for extracting data from legacy systems to SAP BW 7.0 ?
    Please share your experience on such a landscpae or related documents any of you had come across.
    Regards,
    Pritesh

    There are couple of them - Lawson ERP, Kalido, AS/400.  ECC 5.0 might be there as well.
    Regards,
    Pritesh.
    Edited by: pritesh prakash on Jun 14, 2010 2:00 PM

  • Error while retreiving data from oracle using EJB.

    HII All,
    I m getting this error while trying to retreive data from oracle DB using EJB.
    An error has occurred. Maybe the request is not accepted by the server:
    Exception in method empName.
    HTTP/1.1 500 Internal Server Error
    Connection: close
    Server: SAP J2EE Engine/6.40
    Content-Type: text/xml; charset=UTF-8
    Set-Cookie: <value is hidden>
    Date: Mon, 24 Jul 2006 10:50:11 GMT
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Exception in method empName.</faultstring><detail><ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException xmlns:ns1='http://sap-j2ee-engine/client-runtime-error'>Exception in method empName.</ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Thanks in advance
    Devendra Phate.

    Hi Devendra,
    this error message does not tell me much. Pleas either start debugging or watch your logs for more detailed messages.
    Regards,
    Benny

  • How to retreive data from a maintainence view?

    Hi all,
    I have used select query to retreive data from a maintainence view. But it gave me a syntactical error that XYZ is not in abap dictionary , it's a database / projection view?
    So can't we get data from a view using select query?
    Please share if u have answers.
    Thanks & regards,
    Chandru

    Hi,
    Maintenance view will be created for database tables only.
    Just display the maintainence from SE11 and click Tables tab in the screen
    Here you can find the list of tables used to created for Maintainence view.
    YOu can use these tables to write SELECT.
    If you give us the maintainence table, we will help you.
    Thanks,
    Ramakrishna

  • Multiple select queries used in Excel BI report ,fetching data from Sharepoint DB(SP2010_Prod_ProjectServer) causing blockage on DB ,when more than one workbook(same copy of Excel BI Report) refreshed using Refresh All option.

    I am using mutiple select queries to fetch data from Project Server 2010 DB(its sharepoint DB) and these queries fetch data in Excel BI report by establishing connection with DB using instance name and all. I have enhance all these select queries and data
    is being fetched in secs. but when more than one copy of same Excel BI report is refreshed using 'Refresh All' option, then these select queries cause blockage on DB.
    Please let me know mitigation for this blockage issue.
    Should I use begin transaction and commit transaction statements/ shared lock statements.
    please reply

    Hi,
    run same query at the same time?

  • Verizon is using the Elipsis tablets to steal data from their customers.  The only way to stop data from registering as cellular data is to pull the SIM card.  This occurs with wifi enabled and cellular,dara disabled.  If,you take your tablet to a Verizon

    Verizon is using the Elipsis tablets to steal data from their customers.  The only way to stop data from registering as cellular data is to pull the SIM card.  This occurs with wifi enabled and cellular,dara disabled.  If,you take your tablet to a Verizonstore they will upgrade your data plan to cover the overage and credit the upgrade.  You will then have to remember to downgrade your plan or continue to pay for more data.  Verizon, how would you feel if I walked into one of your stores and started filling my pockets with merchandise?  If cought can I just give the product back and say "oops, sorry"

    Today, my FCC complaint hit the same person working on the BBB complaint.  Jimmie has been very nice and seems willing to work with this problem.  We have been able to come to an agreement.  I paid the purchase price for the phone and he returned my upgrade and unlimited data plan.  This is what would have occurred if Verizon had given me correct information to begin with.  I am happy with this result.  He also brought quite a few instances concerning the handling of my transfer and upgrade that did not follow proper procedure.  I am also confident that I would not have resolved this without complaining to BBB and or FCC.  Verizon had no interest in solving the problem nor did they show any propensity to keeping a 20 year client.  Even though this last CSR was very polite and helpful, his sole job is to respond to formal Federal and State complaints.  He is required by law to address every complaint and report the reporting agency the agreed upon results - good or bad.  Again, I suggest - If you are not getting the proper customer service, complain to someone outside of Verizon.  Jimmie had not received any complaints registered with Verizon directly and I still have not had any contact with any other management representative that I was told would call.

  • Use labview to collect AE streaming data from pacpci2

    Hello everyone,
    I'm using labview to collect AE streaming data from pacpci2.I have the dll from PAC,and I have  written some VIs for streaming data. Now I don't know how to read data to my program from the pci.Can the "getMessage" function do this?
    Hope somebody has this experience can help me.Thanks a lot.
    henry

    No idea because you are leaving all the details out of your message.
    What does "AE" mean in the way you use it?
    What is "pacpci2"?
    What PAC are you using?
    What "Get Message" function are you talking about?

  • I used the Migration Assistant to move data from my Time Machine to my new Mac.   Most data has been moved successfully but none of my iPhoto pictures have been moved.   Looking at my Time Machine now I find that the earliest back-up is dated after the Mi

    I used the Migration Assistant to move data from my Time Machine to my new Mac.   Most data seems to have been transferred successfully but none of my iPhoto pictures have been transferred.
    My Time Machine now shows the earliest available Back-up to be after the Migration Date.   My iPhoto pictures seem to have either been lost in the migration process or are locked in my Time Machine prior to the earliest back-up date now accessible.  
    Any advice on recovering my old iPhoto pictures would be greatly appreciated.

    First go to iPhoto Preferences, look in both General and Advanced tabs to make sure that things are set to import from camera into iPhoto.
    Then if that doesn't help, connect the camera and open Image Capture in your Applications > Utilities folder and see if you can use Image Capture to reset the import path from the camera to iPhoto.
    Image Capture: Free import tool on Mac OS X - Macgasm
    Message was edited by: den.thed
    Sorry John, I didn't see your post when I clicked the reply button. Dennis

  • How to send data from HR system to PI system

    Hi All,
    I need to write a program that pulls the data from HR system and pushes it to PI system.I pretty much have the logic to pull the HR data but I would like to know the steps involved in pusing the data to PI system and how much time does it take approximately
    Thanks
    Bala Duvvuri

    Hi Bala,
    Proxies are used to send data to the PI system.
    Hence you will have to create ABAP Proxies which will extract the data and send it to the PI System.
    Regards,
    Samreen.

  • RFC FM that will select data from other system

    Hi ABAP Gurus,
    Good day.
    Do you have any documentation  on how to develop RFC FM that will be able select data from tables in other SAP system that you can share with me?  How about sample FMs?  Thanks in advance!
    Best regards.
    Brando Braganza

    HI Brando,
    see the below Function modules which help to fetch data from another system ..
    RFC_READ_TABLE                " External access to R/3 tables via RFC
                                                  "this function module is used for table which is having max 40 fields and unlimited records..
    RFC_GET_TABLE_ENTRIES      "Read table entries unlimited fields and data
    * call the FM like this
    *     Calling RFC to get Table entries from Destination 'AVP'
          CALL FUNCTION 'RFC_GET_TABLE_ENTRIES'  DESTINATION 'AVP'
    Regards,
    Prabhudas
    Edited by: Prabhu Das on May 12, 2009 10:52 PM

  • Reg:when i was uploading data from legacy system

    Hi All,
    it is any Include  program
    for tcode mpr1
    when i was upload the data for forecast values from
    legacy system to sap system .
    only one record is geting updated
    other records are not updateding
    i have retun logic like this
    code,,,,,,,,
    TYPES: BEGIN OF TY_FILE,
            WERKS LIKE MAPR-WERKS,
            MATNR LIKE MAPR-MATNR,
            PRWRT LIKE PROW-PRWRT,
           END OF TY_FILE.
    DATA: IT_FILE TYPE STANDARD TABLE OF TY_FILE,
          WA_FILE TYPE TY_FILE.
    DATA : IT_MARA LIKE MARA OCCURS 0 WITH HEADER LINE,
           IT_MARC LIKE MARC OCCURS 0 WITH HEADER LINE.
    DATA : LV_FILE TYPE STRING.
    LV_FILE = I_MPR1USERPAR.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
      EXPORTING
        FILENAME                = LV_FILE
        FILETYPE                = 'DAT'
        HAS_FIELD_SEPARATOR     = 'X'
      CHANGING
        DATA_TAB                = IT_FILE
      EXCEPTIONS
        FILE_OPEN_ERROR         = 1
        FILE_READ_ERROR         = 2
        NO_BATCH                = 3
        GUI_REFUSE_FILETRANSFER = 4
        INVALID_TYPE            = 5
        NO_AUTHORITY            = 6
        UNKNOWN_ERROR           = 7
        BAD_DATA_FORMAT         = 8
        HEADER_NOT_ALLOWED      = 9
        SEPARATOR_NOT_ALLOWED   = 10
        HEADER_TOO_LONG         = 11
        UNKNOWN_DP_ERROR        = 12
        ACCESS_DENIED           = 13
        DP_OUT_OF_MEMORY        = 14
        DISK_FULL               = 15
        DP_TIMEOUT              = 16
        NOT_SUPPORTED_BY_GUI    = 17
        ERROR_NO_GUI            = 18
        OTHERS                  = 19
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT T_ARTICLES.
        CLEAR : IT_MARA,IT_MARC.
        SELECT SINGLE * FROM MARA INTO IT_MARA  WHERE MATNR = T_ARTICLES-MATNR.
        SELECT SINGLE * FROM MARC INTO IT_MARC  WHERE MATNR = T_ARTICLES-MATNR
                                                 AND  WERKS = T_ARTICLES-WERKS.
      ENDLOOP.
    LOOP AT IT_FILE INTO WA_FILE .
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          INPUT  = WA_FILE-MATNR
        IMPORTING
          OUTPUT = WA_FILE-MATNR.
      T_FORECAST_VALUES-WERKS = WA_FILE-WERKS.
      T_FORECAST_VALUES-MATNR = WA_FILE-MATNR.
      T_FORECAST_VALUES-PERKZ = IT_MARC-PERKZ.
      T_FORECAST_VALUES-ERTAG = T_ARTICLES-PRDAT_NEW.
      T_FORECAST_VALUES-KOPRW = WA_FILE-PRWRT.
      T_FORECAST_VALUES-MEINS = IT_MARA-MEINS.
      APPEND T_FORECAST_VALUES.
      CLEAR : T_FORECAST_VALUES.
    ENDLOOP.
    thanks
    mars

    For creating/uploading the master data from legacy system to SAP we either use below options
    1. BDC (recording)
    2. BAPI
    3. ALE iDoc.
    I would sugguest you to use BAPI and there's already this post which explains few details about the BAPI:
    Problems with BAPI_PROJECT_MAINTAIN
    Regards
    Sreenivas

  • Upload data from legacy system to SAP through ALE IDOC

    Hello All,
    I have a requirement where i need to upload the data from legacy system to SAP. So i am using ALE IDOC.
    In my requirement i need to extend the Standard IDOC. I have extended the IDOC and even found the exit for the updation of the extended fields to SAP. My data would be be placed in the application server.
    Can anybody tell me how to retrieve the data and update in the tables for the extended fields.
    Could you please provide a sample program for retrieving data for IDOC.
    Thanks

    Hi,
    You can find the sample code in the following link.
    Re: calling idoc_input_creditor
    Regards
    Sajid

  • How to upload the data from legacy system database to SAP data base

    Hi.
    We are doing analysis of Legacy system and which needs to be converted to SAP system i.e. SAP implementation.
    I just want to know , how we migrate the existing whole data( from legacy system) into SAP system.
    and which method is the best method to use data migration from legacy to SAP system if data legacy data amount is huge.
    Please suggest me.
    Thanks.

    Hi
    We can either use the BDC or BAPI or LSMW  or Direct Input techiniques for the data transfers.
    The combination of both Session and Call transaction can be used to achieve this that includes the error handling also. This invloves the screen interaction.
    These days, BAPIs are used to overvome some upgrade problems. For easy upgradation, we cna go for BAPIs. Here ther is no screen intercation.
    LSMW mainly used for master data transfers using some standrad programs.
    As per your client or company desicions  we can choose any of them.
    Please refer to these links for more understanding -
    BDC Vs LSMW -
    BDC VS LSMW
    BDC Vs BAPI -
    BDC VS LSMW
    Thanks & Regards,
    Chandralekha.

  • Uploading data from Legacy System to SAP (In PS Module)

    While Implementing Project system Module, Whether LSMW is applicable for uploading data from Legacy sytem. If not, then what is the method used for uploading the data from Legacy sytsem to SAP

    For creating/uploading the master data from legacy system to SAP we either use below options
    1. BDC (recording)
    2. BAPI
    3. ALE iDoc.
    I would sugguest you to use BAPI and there's already this post which explains few details about the BAPI:
    Problems with BAPI_PROJECT_MAINTAIN
    Regards
    Sreenivas

  • Upload vendor master data from legacy system to internal table tcode xk01

    through batch input program how to upload vendor master data from legacy system to internal table and then to SAP R/3 database(transaction XK01) by using recording method.

    By learning the basics of BDC recording and the use of GUI_UPLOAD

Maybe you are looking for