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

Similar Messages

  • SQL Statement that will retrieve data from 1 table with 2 conditions

    Hi,
    I have a table "hz_cust_site_uses_all" and I need to retrieve primary_salesrep_id but with the following conditions:
    IF site_use_code = 'SHIP_TO' then
    if primary_salesrep_id is null then
    GET primary_salesrep_id where site_use_code = 'BILL_TO'
    else
    GET primary_salesrep_id;
    Sample Data:
    cust_acct_site_id primary_salesrep site_use_code
    1111 1000 BILL_TO
    1111 1001 SHIP_TO
    How will I convert it in an SELECT SQL statement.
    Thank you.
    Regards,
    Diane

    Starting in Oracle 9i, you can use the case statement within an SQL statement. It has the functionality of an IF-THEN-ELSE statement.
    The syntax for the case statement is:
    CASE [ expression ]
    WHEN condition_1 THEN result_1
    WHEN condition_2 THEN result_2
    WHEN condition_n THEN result_n
    ELSE result
    END
    For example:
    Select case when site_use_code ='SHIP_TO'
    and primary_salesrep_id is null
    then
    (select primary_salesrep_id
    from hz_cust_site_uses_all
    where site_use_code = 'BILL_TO')
    else
    primary_salesrep_id
    end
    from hz_cust_site_uses_all;
    hope this help you

  • Import Chart of Account Data from other system

    Hi FICO Gurus,
    I am a new student in FICO, here i have a question as following, ask for help,
    In my new rollout system, i need a chart of account. these data is existing in the other system, i want to import it from there, other then input one by one manually. can anyone tell me how can i do that?
    can anyone help me to solve it?
    Any responses will be awarded.
    Thanks a lot!
    Samson

    Use T Code FS15 in the old client/company code and give a file  ex 1234.
    Note the file and path generated from the message.
    Advise your basis team to copy the file in the same path of the required client.
    After copying use t code fs16 and generate the GL accounts through Batch input session.
    All the GL accounts will be copied in your new server.

  • Importing data from other system - cvs files

    hi
    What is the best way to import 3 cvs files from other accounting system
    The 3 files contains data about customers and few more custom fields that I need to create in Business one
    (more information about the cusomter)
    I need to import the files every day
    Thank you

    Hi Ofer,
    I read you need to do this import every day. With the DTW you have to do this manually(?).
    Another (however expensive) option is to use iBOLT from <a href="http://www.magicsoftware.com">Magic Software</a>.
    We also have a customer wich get's every day a few .csv files by email. iBOLT does get the .csv from the mailbox, does some preperation and imports the data into SBO. No user interaction required.
    Kind regards,
    Rowdy

  • Save Data from other system

    Hi,
    We  have one dot net system and one java system doing our core business.
    I want to save data(which is updated daily) from these systems and save into SAP. Not flat files. I want live data sync.
    How is this possible.
    Thanks,
    Swetha

    Hi Swethan,
    I don't understand your question. If you want real-time integration then you would more than likely be using webservice communication between these systems.
    Do you have something specific that you want to understand?
    Regards, Trevor

  • EH&S: To import specification, phrase and releated data from other system

    Hi All,
    In our project there are two separate R/3 systems. On one product safety module of EH&S (version 4.6C) is present and on other SAP R/3 (version4.7) is present). Now we want to consolidate the data on 4.7 R/3 instance.
    For this activity, one idea is to replicate all the customizing form the EH&S system to R/3 system and transfer the master data like specification master, phrases and reports to R/3.
    Now, as the volume of specifications, phrases and all is huge wanted to know if some one has any idea on how it can be transferred.
    Can it be done like – sending the data form EH&S system using IDOCS (for example message type SUBMAS for specifications) and then posting this specification data in R/3 using inbound IDOC.
    Please validate / correct the approach which I am thinking of. If approach is good, want to know how to send the data from the EH&S system.
    Request your guidance on this.
    Thanks,
    Vithalprasad

    Hi Ofer,
    I read you need to do this import every day. With the DTW you have to do this manually(?).
    Another (however expensive) option is to use iBOLT from <a href="http://www.magicsoftware.com">Magic Software</a>.
    We also have a customer wich get's every day a few .csv files by email. iBOLT does get the .csv from the mailbox, does some preperation and imports the data into SBO. No user interaction required.
    Kind regards,
    Rowdy

  • App, will not run from other system

    I use G5 10.4.3 with external (system) drive dedicated to xcode developing. Application created here runs perfectly OK, a copy of the app on internal drive runs OK. BUT boot-up on internal drive and niether copy will open ! help!

    no problem,
    I have always found that there was a relatively High level of expectations that ANY dev platform has for the new developer's ability to just understand how things work. The debugging vs. release target thing had me stymied for a few weeks (during which I was in panic mode), before someone in this forum understood what I was trying to say, and took pity on me. it is squirreled away somewhere in the documentation, but knowing where exactly to look when you don't know what is causing your problem... thats tough. well, at least its not as bad as MPW! as much as i loved finding out about MPW, and learning how to interface with it... it was also very scary and VERY un-mac-like. Now its just a menu option, or a Plist entry, or a checkbox in an inspector window.
    Xcode = progress.

  • Accessing data from other SAP system

    Hi experts
    I need to access data from one SAP system from other.  My requirement is , perform applications (programs) in some SAP system, but using/accessing  data from other SAP system .
    For example, when we press F4 we get the match code (search help) for the field ;  that window is alredy created by SAP and it shows the data for that field . Of course the application (ike any other program/application) read the data from the SAP system is being executing ;  well i need execute that match code but show (taking) the data from other SAP system;  i not refer to other MANDT in same system but other SAP system.
    The communication between SAP1 system and SAP2 system is already created from BASIS.
    My doubt is how can i  execute that standard application (search help) but 'invoke' to standard application this take data from other system ?
    I guess i can create Z search help wich call a Z Function (RFC) to get the data required from the other system ;
    or maybe enhance the standar search help to call that Z RFC ;  but standard application search help is already created and this access the data in several ways or places of code , and this has severals sub-windows and search features ; and i just need execute exactly same search help but accesing data from the other SAP system ; so my doubt is, is there some way to indicate to SAP the applications always (wherever) these applications acces the data do it but from other SAP system, 
    like if we 'redirect' the Data Base to other SAP system. 
    SAP1 applications are being executing  -
    >   but all data (records) are taking from SAP2
    Maybe the first suggestion is simply why do not we execute applications in SAP2 instead SAP1 , that's because the version package in SAP2 system (where we have the data) does not support some (non SAP) applications we need to use.
    Excuse the long thread.  Does somebody can help, any idea ?
    Best Regards
    Frank

    Hi Frank,
    Below are my thoughts, these are only conceptual and haven't had an opportunity to try these possibilities, also not sure if this is the right thing.
    1) Create an entry in DBCON using TCode: DBCO for the Database of system SAP2. Now in the application of SAP1 use the "SET CONNECTION" construct as the very first statement, so that consecutive SQL statements will point at the DB of SAP2.
    2) I have read somewhere that the Work Processes are connected to the Default database and i am not sure if you can change this setting, but if you can and provided you have have multiple application servers in your SAP1 landscape, then pick one of the application servers and change the settings on the WP to point at the DB of SAP2, you have the end users login to this particualr app server.
    3) If there are multiple app servers in SAP1 landscape, then choose one of the app servers and change the default database setting to point at DB of SAP2.
    Regards,
    Chen

  • Select data from multiple servers(instances)

    Hi All,
    Is possible that we can login to SQLPLUS of one server and be able
    to select data from other servers. For MSSQL server we can use
    opendatasource but I don't know if in ORACLE we can
    get the data from other servers by login to SQLPLUS of one server.
    Your help is greatly appreciated.
    Thanks in advance for your response.
    JP

    Hi,
    Please try this ...
    DATA: BEGIN OF ITAB1 OCCURS 0.
            INCLUDE STRUCTURE A_TABLE.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB2 OCCURS 0.
            INCLUDE STRUCTURE B_TABLE.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB3 OCCURS 0.
            INCLUDE STRUCTURE C_TABLE.
    DATA: END OF ITAB3.
    SELECT *
    INTO TABLE ITAB1
    FROM A_TABLE
    WHERE A_ID IN S_A_ID.
    SELECT *
    INTO TABLE ITAB2
    FROM B_TABLE
    WHERE A_ID IN S_A_ID.
    SELECT *
    INTO TABLE ITAB3
    FROM C_TABLE
    WHERE A_ID IN S_A_ID.
    To download to PC or application server, please check this sample codes.
    http://www.sapdevelopment.co.uk/file/file_downloadpc.htm
    http://www.sapdevelopment.co.uk/file/file_downloadsap.htm
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • 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.

  • Can a procedure select data from tables on other schemas?

    Can a procedure select data from tables on other schemas?
    If it is posible, which syntax should I use to identify the tables and schemas on the SELECT query?

    Yes , it is possible..unless the current user has the right privileges on others' db objects schema.
    Now , as regards the syntax....
    1) The more descriptive way is to use the format ... <owner_schema>.<obj_name>.
    2) If you have declared public synonyms of other schema's objects then you can refer to them as just <obj.name>.... but the <owner_schema>.<obj_name> is not wrong.
    3) If the db objects reside on another database you must have declared a db link.... then the syntax is <owner_schema>.<obj_name>@<db_link_name>.
    Regards,
    Simon

  • Selecting data from Multiple Partitions in a single select stmt.

    Hi all,
    My Database is very large & my tables are partitioned.
    My question is:
    1) If my data is spread across multiple partitions, is there any way to select data from multiple partitions in a single query?
    If we dont mention partition name also it works fine, but perofmance wise it will be very slow. (Using EXPLAIN PLAN)
    (Note:I dont want to make use of Union concept, i want to do it in a single select statement)
    For ex:
    qry1.sql:
    select empno from emp_trans partition (P012000)
    This above query(qry1.sql) will work fine.
    qry2.sql:
    select empno from emp_trans partition (P012000,P022000)
    The above query(qry2.sql) will return will return the following error:
    ORA-00933: SQL command not properly ended
    If anybody has any solution for this, pls mail me immediately.
    Thanks in advance
    bye
    null

    All my queries are dynamically generated. All my tables are also indexed partition wise based on date field. My question is, if i want to mention multiple partition names at the time of generating my query(select), then with parformance will be good. I have refered some books, inthat what they say is to use UNION concept, i dont want to use that, instead i want in a single select statement.
    Thaks for ur reply
    Bye
    null

  • How to select data from a table by passing document number from another tab

    How to select data from a table by passing document number from another table.
    for eg:-
    I want to display name, adres, region from ADRC table
    by using field delivery document number
    Kind Regards,
    Shanbagavalli.S

    Hi Shanbagavalli,
    There are multiple solutions to this questions a few i will try to answer and then you can take the best required for your requirements.
    **Consider that you have a Internal table having document number from other table..
    SELECT NAME ADRES REGION FROM ADRC
           INTO IT_ADRC
           FOR ALL ENTRIES IN IT_DOC
           WHERE DOCUMENT_NO = IT_DOC-DOCUMENT_NO.
    **Consider that you have 1 document number then
    SELECT NAME ADRES REGION FROM ADRC
         INTO IT_ADRC
         WHERE DOCUMENT_NO = W_DOCUMENT_NO.
    Hope this solves your problem.
    Regards,
    Kunjal

  • How to select data from a PL/SQL table

    Hi,
    I am selecting data from database after doing some screening i want to store it in a PL/SQL table (temporary area) and pass it to oracle reports.
    Is there any way to select the data from a PL/SQL table as a cursor. Or is there any other way of holding the temporary data and then pass it back as a cursor.
    Regards
    Kamal

    A PL/SQL "table" is anything but a table. Whoever came up with this term in PL/SQL to describe what is known as dynamic arrays (the correct programming terminology that existed since the 70's if not earlier and what is used in all other programming languages I'm familiar with)... well, several descriptions come to mind and none of them are complimentary.
    You cannot "select" from a PL/SQL dynamic array as it is not a table within the Oracle context of tables.
    Thus you need to convert (cast) a PL/SQL dynamic array into a temporary Oracle data set/table in order to select from it. This is in general a Bad Idea (tm). Oracle tables and SQL and concurrency controls and all that are especially designed for processing data. PL/SQL arrays is a very simplistic data structure with very limited usage. Why would you want to use that in SQL via a SELECT statement when you can use Oracle tables (or proper temp tables) instead? Besides that, it is also slow to cast a dynamic PL/SQL array into an Oracle SQL data set structure (context switching, copying of memory, etc).
    The proper way to use PL/SQL to generate data sets for use via the SQL engine is pipelined table functions.
    This is not to say that you should never use PL/SQL arrays and casting in SQL.. simply that you need to make sure that this is the correct and scalable way to do it. And that will also always be an exception to the rule when you do.

  • Index used or not for selecting data from ODS in a start routine

    Dear friends,
    In the start routine of the update rules to a cube, I am reading some data of an ODS in to an internal table .
    The ODS is indexed. But, I am not sure if the index is at all used in the Select statement (that gets the data from ODS to the internal table in the start routine) while loading data to the cube.
    Any help is highly appreciated.
    regards,
    atlaj

    Hi Atlaj
    You can findout this is display execution plan for SQL statement in DB02.
    Goto DB02. and under diagnostic, you find explain. Select that and enter your query. Make sure that everything here is in capital format. Below is a sample query which I have entered.
    SELECT "CRM_SALORG" "SALESORG" FROM "/BI0/QORGUNIT"
    WHERE "SALESORG" = ? AND "OBJVERS" = ? AND "DATETO" >= ?
    AND "DATEFROM" <= ?
    The select parameters should be inside qoutes and in caps and even the from table. Once you enter your query in this format, click on explain. It will show the index scan if the index is present. the output for my query will be something like
    0 SELECT STATEMENT ( Estimated Costs =  1,348E+01 [timerons] )
            1 (COOR) RETURN
                2 (    0) TQ
                    3 (    0) FETCH /BI0/QORGUNIT
                        4 (    0) IXSCAN /BI0/QORGUNIT~Z1
    Where my last statement (line 4) is showing index scan and the name of index read is Z1.
    Hope this helps.
    Please let me know if you have any problems entering the query in the specified format and u get any error.
    Regards
    Sriram

Maybe you are looking for