Query and retrieval of SAP table data

Hi,
Within PI Is it possible to use a select query on an ECC table and retrieve the relevant data. The data will then need to be mapped to the output.
Can this be achieved through an RFC call?
Thanks

Hi,
You can use RFC lookup and map the output to target field.
view this article for step by step process...
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/40b64ca6-b1e3-2b10-4c9b-c48234ccea35
Hope this helps....

Similar Messages

  • Web Analysis Error -- Error while executing query and retrieving data

    Regarding Web Analysis:
    We have a number of reports that we created. yesterday they were all working fine. today we try to open them and most are generating an error.
    The error is:
    Error while executing query and retrieving data.; nested exception is:
    com.hyperion.ap.APException: [1033] Native:
    1013033[Thu Oct 22 09:08:17
    2009]server name/application name/database name/user name/Error91013033)
    ReportWriter exit abnormally
    Does anyone have any insight into what is going on?
    My version information is:
    Hyperion System 9 BI+ Analytic Administration Services 9.3.0.1.1 Build 2
    Web Analysis 9.3.0.0.0.286
    Thanks in advance for your help.
    DaveW

    Hi,
    And also click on check option by opening the query in Query designer,as Mr . Arun suggested.
    And if you get any error in checking, see the long message(detail).
    With rgds,
    Anil Kumar Sharma .P

  • Accessing sap tables data and display in webi

    Hi all,
    i installed business objects edge series.
    i want to access SAP tables data and display in webi for adhoc reporting.
    Is there any process to achieve this.

    Hi
    currently (April 2010) you have the following options:
    1. You load your R/3 data into an SAP BW and use universes based on BEx queries to create WebI reports
    2. You can use SAP rapid marts. They contain Data integrator mappings (you need an installation of the DI for this) to extract and load your SAP R/3 data into a relational database. Additionally they provide universes (based on a relational schema) hich ill allo you to build WebI reports.
    3. You can use the R/3 connector for the Data Federator (You need a DF installation for this). Please note that the R/3 connector is not yet a product rather just a PROTOTYPE. Take a look here: SAP BusinessObjects Web Intelligence Reporting for SAP ERP [original link is broken]
    4. You can try to access the underlying database directly using the appropriate DB drivers. Please note that this is NOT RECOMMENDED. This way you cannot leverage security defined on the R/3 side in your WebI reports and you will not be able to access all data as available in R/3 since some of them are stored encoded/compressed in the underlying tables.
    5. Instead of WebI you can use Crystal Reports and the R/3 drivers (eg. SAP Tables, Functions, Cluster) provided when installing the integration kit for SAP.
    Regards,
    Stratos

  • Downloaded data in Excel from SAP table data to have the macro and control?

    We know that in SE16 screen to display SAP table data, there is a menu item or button to download the table data to excel sheet, but in the excel sheet, the data is for display only and some calculation functions (e.g. sum) are not be able to be downloaded to the excel sheet as macro.
    Our customers would like us to see if there is a way that in the excel sheet with the download SAP table data, only some certain rows/columns of data are allowed to be changed by customers or in other words, other areas in the excel sheet should be frozen and users can not even insert a column and do the copy/paste rows/columns.  And also the original calculated column in SAP table (e.g., sum) would be in the corresponding column in the excel sheet, but with macro to do the same function (e.g., sum).  After the customers perform some changes in some allowed certain rows/columns in the excel file, then the changed data can be uploaded back to SAP.
    Wonder if there are such ABAP program to fullfill the above task to download SAP table data to an excel file and to make the downloaded data in the excel with only some certain row/columns to be changeable and all other areas frozen?
    Thanks and we will give you reward points for valuable answers!

    Hi,
    This scenario can be met with the FM : RH_START_EXCEL_WITH_DATA
    This is available in Older versions. Starts Excel with a macro.
    I have never tried using this FM.
    However, I came across : http://www.jt77.com/development1/programming-23850.html
    Showing the use of it.
    To get useful hints, also refer :
    1) Transaction : DWDM
    2) MS EXCEL as OLE Client : 
    http://help.sap.com/saphelp_nw04/helpdata/en/40/b297f3c32711d194ac00a0c94260a5/frameset.htm
    3) Read the content at any table + Defined Macros used to call Function Modules
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c043d836-166c-2910-b99e-ae3633dec547
    Once you get a solution, would appreciate a mail to me @ <REMOVED BY MODERATOR>
    Cheers,
    Remi
    Edited by: Alvaro Tejada Galindo on Feb 29, 2008 5:41 PM

  • Scenario: SAP  Tables Data to XML File

    Hi ,
    I need to create a Xml file at inbound  by taking input as SAP Tables Data at outbound. What are adapters to be used at outbound and inbound interfaces. Please correct me if iam wrong. At outbound side iam taking jdbc adapter and at inbound side iam taking file adapter. Can anybody guide me how to do this scenario with screen shots. Is it possible to use proxies for this scenario.
    Thanks in advance.
    Regards,
    Prem.S

    <i>What are adapters to be used at outbound and inbound interfaces.</i>
    JDBC and File
    <i>At outbound side iam taking jdbc adapter and at inbound side iam taking file adapter. </i>
    Will do
    <i>Can anybody guide me how to do this scenario with screen shots</i>
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    <i>Is it possible to use proxies for this scenario.</i>
    Yes, but it would be easier to use JDBC
    Regards,
    Prateek

  • Read SAP table data outside of SAP, without a SAP license

    Hello all,
    I have been asked to allow people within my company to directly access vendor information, but of course they don't want to purchase a SAP license.
    Yes, yes, I know that directly reading from SAP tables at the Oracle database level is generally frowned upon.
    I can envision creating an external application that presents the user with a screen of searchable fields, uses these fields to create SQL for the oracle tables LFA1, LFB1, ADRC, and ADR6, and returns a report of vendors that match the selection criteria.  The report could have drill down capability to give additional detail per vendor  This application would be executed with a user that has read only table access to the aforementioned tables.
    I just started to use the Oracle tool SQL Developer for a project that has nothing to do with SAP and that gave me the idea I described in the previous paragraph.
    Is anyone doing something like this?  Or what other methods are being used to allow on demand access to SAP tables, without a SAP license . 
    We are using SAP Enterprise Edition  version 4.7and Basis 620.
    Thanks
    Bruce

    Hello,
    You can use an RFC to extract data from SAP.
    Depending on the language you can extract data, for example if it is on .NET, you can use the .Net SAP conector, and create a RFC function on SAP, that returns the data you need.
    To extract the data you will need a valid SAP user and password.
    Hope this helps
    Gabriel P.

  • To export and import oracle 11g table data only

    Hi Gurus,
    Just not sure of the procedure to follow in the export just the table data and then truncate the table do some changes(not table structure changes ) and then import the same table data in to the relevent table .
    Could some please help me in the setps involved in it .
    Thanks a Lot in advance

    If you can use Data Pump, here are your commands:
    expdp table_owner/password directory=<your_directory> dumpfile=table_name.dmp tables=table_name content=data_only
    impdp table_owner/password directory=<your_directory> dumpfile=table_name.dmp tables=table_name table_exists_action=append
    Data Pump requires version 10.1 or later.
    Dean

  • Parsing query and getting list of tables used

    Hi All,
       I require to parse sql query (simple & complex as well) and to get the list of tables used in the query.
       And need to validate that, the list of tables against a whitelist to maintained in the file.
      I tried to write my own parser, since there are lots possible ways to write complex queries, i am unable to cover all the scenarios.
      I require a help, Is there any other ways to get the list of tables used in a query?
    Thanks,
    Mahendran..

    user10279893 wrote:
    Hi All,
       I require to parse sql query (simple & complex as well) and to get the list of tables used in the query.
       And need to validate that, the list of tables against a whitelist to maintained in the file.
      I tried to write my own parser, since there are lots possible ways to write complex queries, i am unable to cover all the scenarios.
      I require a help, Is there any other ways to get the list of tables used in a query?
    Thanks,
    Mahendran..
    You'll never cover all scenarios by trying to parse a query.
    For example, what about a query that queries views and those views query pipelined functions, and those pipelined functions query other views or tables or pipelined functions etc.
    And what about a query that dynamically obtains the table names, such as...
    SQL> select
      2    table_name,
      3    to_number(
      4      extractvalue(
      5        xmltype(
      6 dbms_xmlgen.getxml('select count(*) c from '||table_name))
      7        ,'/ROWSET/ROW/C')) count
      8  from user_tables
      9 where iot_type != 'IOT_OVERFLOW'
    10 or    iot_type is null;
    TABLE_NAME                      COUNT
    DEPT                                4
    EMP                                14
    BONUS                               0
    SALGRADE                            5
    .. in this case the tables being accessed (to count their rows) are not even known within the code, they are dynamically generated queries at run-time, so the only way to know what tables are accessed is to actually run the query.
    Of course, a well designed system, with proper documentation and version control would allow you to take any database object and know where and what is using it, and whether it's even being used.

  • Query to retrieve past 1 hour data

    Hi,
    Pls tell me how to retrieve past 1 hour data from a table?
    Thanks.

    Maybe this will do ?
    SQL> insert into emp (empno, ename, sal) values (6789,'ROB',1000)
      2  /
    1 rij is aangemaakt.
    SQL> select * from emp minus select * from emp as of timestamp sysdate - 1/24
      2  /
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          6789 ROB                                                       1000
    1 rij is geselecteerd.Regards,
    Rob.

  • Select point on chart and retrieve more than just data

    var ShiftChart = document.FR_Runtime_ShiftHistory.getChartObject();
    var selDate = ShiftChart.getYDataValueAt(1,ShiftChart.getLastSelectedPoint());
    alert(selDate);
    When dealing with a grid I can find the select cell value of column 1 or whatever column.  How can I do the same thing by using a chart?  In this example, I select the pen at a point on the chart and it gives me the data for it.  I would like extract other values that identify that point like Date and Line.  How can I do this?

    I used your suggestion and "nLINE" is the 2nd column.  So I replaced it with the number 2.  I did the alert and I got no data in the pop up window.  Now according to you, this means the data is not an integer.  I know that nLINE in my database is an INT.  So what could be the problem and what is the next step. 
    In my applet this is my param
    <param name="ChartSelectionEvent" value="DrillDown">
    Here is the function
    function DrillDown()
         //set up aliases for easy reference
         var ShiftChart = document.FR_Runtime_ShiftHistory.getChartObject();
         var selPoint = ShiftChart.getLastSelectedPoint();
         var test = ShiftChart.getDatalinkValue(1,selPoint,1);
         alert(test);

  • Cmd for exp and importing all the table data's in a specified schema

    i need to export table data without exporting the defenition how can i do this

    Why do you have such a requirement?
    Are you worried about import failures if the object already exists on the database?

  • Command the execute sql query and does not clean up data in Table

    Hi Team
    I have an SP, which writes source and target data to Temp Tables and runs except query to get mismatch details
    I am using Exec command to execute source query that writes data to Temp Table, once I execute query using Exec, data is written and immediately #temp table is cleaned, now I cannot use #temp table for comparition.
    Is there any way to execute sql query in SP without using EXEC and will hold the data in temp table.

    You need to create temp table before EXEC statement and rewrite your dynamic query also as below
    declare @source_Sql nvarchar(1000)
    ,@target_Sql nvarchar(1000)
    create table #TempTable1 (name nvarchar(10))
    create table #TempTable2 (name nvarchar(10))
    set @source_Sql = 'INSERT INTO #TempTable1 SELECT [Name] from Employee'
    set @target_Sql = 'INSERT INTO #TempTable2 SELECT [Name] from Employee2'
    EXEC (@source_Sql)   
    EXEC (@target_Sql)             
    select * from #TempTable1 
     Except 
    select * from #TempTable2

  • Querying wide (multi-record case) table data in oracle 10g

    I've got a set of "wide" (multi-record case data format) tables similar to the format described in Oracle's "Oracle Data Mining Concepts" book in chapter 2 (http://download-west.oracle.com/docs/cd/B14117_01/datamine.101/b10698/2data.htm#1010394).
    I like the flexibility of this format, especially since it can handle thousands of attributes. But the main problem I have with this format is in determining how to write efficient, complex queries against the data.
    I've included some sample data below to demonstrate my problem. I've got two tables, one with people and the other with the attributes and values of age, income, height and weight. If I try to generate a complex query against this data, I seem to either have to rely on multisets and functions, or on a large number of self joins. Neither of which seems to scale well or perform well for large amounts of data. I know I could also add a pipelined TABLE function to filter the data more, but none of these options seem like great solutions. Does anyone have any ideas for a better way to form complex well performing queries against this type of data layout?
    For example, with my sample data below I'd like to select everyone whose (income = 2000) or (income = 50000 and weight = 210), but the only way I see of doing this is with a query like the following (which won't take advantage of any indexes on the data):
    select * from people_attributes_view
    where find_eq_attr(AttributeValue('income',2000),attribute_values) is not null
    or (find_eq_attr(AttributeValue('income',50000),attribute_values) is not null
    and
    find_eq_attr(AttributeValue('weight',210),attribute_values) is not null);
    Any help is greatly appreciated.
    Thanks.
    -- My full example starts here ----------------
    -- Create the sample tables and data
    create table people (id int, name varchar(30));
    create table attributes (id int, attribute varchar(10), value NUMBER);
    insert into people values (1,'tom');
    insert into people values (2,'jerry');
    insert into people values (3,'spike');
    commit;
    insert into attributes values (1,'age',23);
    insert into attributes values (1,'income',1000);
    insert into attributes values (1,'height',5);
    insert into attributes values (1,'weight',120);
    insert into attributes values (2,'age',20);
    insert into attributes values (2,'income',2000);
    insert into attributes values (3,'age',30);
    insert into attributes values (3,'income',50000);
    insert into attributes values (3,'weight',210);
    commit;
    -- Create some types, functions and views for the search
    CREATE OR REPLACE TYPE AttributeValue AS OBJECT
    (attribute varchar(30),
    value NUMBER);
    CREATE OR REPLACE TYPE AttributeValues AS TABLE OF AttributeValue;
    create or replace function find_eq_attr (val AttributeValue, vals AttributeValues) RETURN AttributeValue IS
    begin
    for i in vals.FIRST .. vals.LAST
    LOOP
    if ((val.attribute = vals(i).attribute) and
    (val.value = vals(i).value)) then
    return vals(i);
    end if;
    END LOOP;
    return null;
    end;
    create or replace view people_attributes_view as
    select p.name, p.id,
    cast(multiset(select attribute,value from attributes a where a.id = p.id)
    as AttributeValues) attribute_values
    from people p;
    -- Search for everyone whose (income = 2000) or (income = 50000 and weight = 210)
    select * from people_attributes_view
    where find_eq_attr(AttributeValue('income',2000),attribute_values) is not null
    or (find_eq_attr(AttributeValue('income',50000),attribute_values) is not null
    and
    find_eq_attr(AttributeValue('weight',210),attribute_values) is not null);

    I like the flexibility of this format, especially
    since it can handle thousands of attributes. But the
    main problem I have with this format is in
    determining how to write efficient, complex queries
    against the data. Can't be done. The flexibility is achieved at the cost of simplicity and performance, it is a trade off.
    See this thread for a full discussion on the subject.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:10678084117056

  • Retrieve deleted standard table data

    HI,
    I was debugging the transaction F110 for analysing a certain requirement and changed some data in debugging mode. Somehow program SAPF110R was triggered which deleted the table content of the following tables:
    reguv
    reguh
    regup
    regus
    reguc
    reguhh
    regupo
    regua
    rfdt
    If  anybody has encountered such a situation before, please help me in retrieving the data.

    Your only hope is for a system backup.
    You could have the system backed up to another bit of hardware, and checkout the difference between the tables in the backup and the current status.

  • Query to retrieve from partitioned table

    i have a table called xyz which is having 5 columns
    (client,datmonth,productid,productname,productdesc)
    and it is partitioned as
    column client is the primary partition
    column datamonth is subpartitioned based on client
    if i have to select both client and datamonth how to do it by select query
    i arrived till
    select * from xyz partition <clientid-partition>
    but unable to proceed further
    any help?

    Like that ?
    DROP TABLE XYZ ;
    CREATE TABLE XYZ
    ( client_No NUMBER(10) Not Null check (CLIENT_NO > 0)
    , datmonth DATE Not Null
    PARTITION BY RANGE( client_No )
    SUBPARTITION BY LIST (datmonth)
    SUBPARTITION TEMPLATE
    ( SUBPARTITION SP_2005 VALUES (To_Date('20050101','YYYYMMDD'))
    , SUBPARTITION SP_2006 VALUES (To_Date('20060101','YYYYMMDD'))
    , SUBPARTITION SP_2007 VALUES (To_Date('20070101','YYYYMMDD'))
    , SUBPARTITION SP_DEFAULT VALUES (DEFAULT)
    ( PARTITION P_0001 VALUES LESS THAN (2)
    , PARTITION P_0002 VALUES LESS THAN (3)
    , PARTITION P_0003 VALUES LESS THAN (4)
    , PARTITION P_0004 VALUES LESS THAN (5)
    , PARTITION P_Others VALUES LESS THAN (MAXVALUE)
    INSERT INTO XYZ
    SELECT Mod( RowNum,6)+1 Client_No
    , Add_Months( Trunc( SysDate, 'YYYY') , Mod( DBMS_RANDOM.random, 24)) DateMOnth
    FROM DUAL CONNECT BY ROWNUM <= 100
    SELECT * FROM XYZ PARTITION (P_0001) A;
    SELECT * FROM XYZ SUBPARTITION (P_0001_SP_2006) A;
    SELECT * FROM XYZ SUBPARTITION (P_0002_SP_2006) A;
    mi

Maybe you are looking for

  • Rectangle Tool Issues

    Im probably overlooking something simple, but when I try to draw a rectangle Flash is automatically applying a corner radius.  I've tried resetting the options in the Properties Inspector, which resets to the default, but soon as a draw a shape it go

  • Is there a blog entry limit?

    I've been searching the forums for an answer, but haven't been able to find one. Before moving from Rapid Weaver to iWeb 2.0 (my blog), I am interested in knowing whether there is a limit to the number of individual blog entries you can have in iWeb?

  • Safari Alert?!

    Hi all, a few days ago when I was using my imac,there seems to be an alert that pops up for a second or two then disappears.  It's been happening every time I use my computer for the past few times.  I'm not sure if it has to do with my system or in

  • IMac Awakes Unscheduled - Time Machine Updates - Reverts to Full Off

    My iMac is manually placed in sleep mode at night. This morning it would not awake normally. However, startup achieved only through on/off button. Follows are the first 5 entries from All Messages (console): 8/26/08 2:45:48 AM kernel System Wake 8/26

  • HP recovery drive "D" nearing full.

    I recently installed a 500mb SSD drive in place of my old hard drive.  I did a system restore to factory oringinal.  After doing this I noticed the recovery drive "D" partition was almost full and in red. I deleted the restore points and that took th