0PM _ PRM_PLCS_1 Datasource returns 0 Records

Gurus,
I have a problem with this datasource (0PM _ PRM_PLCS_1).  I am trying to map it to cube 0PM_C05, but the datasource is returning 0 records and I cannot go further than that.  I have followed the steps I found in the following thread: (datasource 0PM _ PRM_PLCS_1 retrieves null records).  I also found the same steps in OSS Note: 788120 by going to SE54 before SM30 to fill in all the parameters and saved.  I did not do anything more than that.
When I returned to check the ectractor, I still have 0 records.  This datasource cannot be edit in RSA6, I guess because it's Function Module.  I also noticed that none of the fields were selected to be displayed because it's greyed out.  What step am I missing?  Please help!
Regards,
Recca

Here is some additional info on this topic from OSS Note:
Settings:
Before you can use the extractor for the first time, you must maintain the TMP_C05 Customizing table. To do this, carry out the following steps:
Call transaction SE54. Specify TPM_C05 as the table to be edited. Select the 'Test' button. The 'Maintain Table Views' screen now appears (transaction SM30).
Enter TPM_C05 in the 'Table/view' text field. Select the 'Maintain' button. You can now fill the table:
In the Date: Task List field, enter the date when you want the routing costs to be calculated.
In the Order Type field, define the order type that you want to use to simulate the routings.
Enter the time period when you want the maintenance plan costs to be calculated in the Date:Maint.Plan fields. Enter the start date in the upper field and the end date of the time period in the lower field.
In the Package Size: TL field, you define the size of the packages used internally when the routing execution costs are calculated (see Performance below).
In the PckSize:MainPln field, you define the size of the packages used internally when the maintenance plan execution costs are calculated (see Performance below).
When you select the Add.GK-Zuschl. checkbox, you define whether overhead costs are taken into account in the calculation.
Save the changes.
Regards,
Recca

Similar Messages

  • Export Datasource Returning 0 Records

    Hi,
    I have an export datasource on a COPA cube. This data source returns zero records when the infopackage is run. However, in RSA3 and LISTCUBE it returns records correctly.
    I set a breakpoint in Function Module RSDRC_CUBE_DATA_GET. This worked fine in RSA3 but on running the InfoPackage the breakpoint was not reached so I guess the problem is before this.
    I tried deactivating the V fact table view but this has no effect.
    Any ideas why this may be happening? Or any ideas how I can debug this further? What Function Modules are called when an Infopackage is executed?
    Regards, Lea

    Do you have any restriction on your infopackage? Ar eyou making a full load?
    if you do not have any restriction, try to regenerate again the Export Datsource and restart the loading.
    Which is your release?
    Mike

  • Datasource return nothing

    Hi experts!
    If a datasource return no record how I can check this ?? using if condition
    And display an error message

    Hi.
    Try this. It works for me.
    Use a counter to see how many records the datasource have.
    example.
    <jbo:DataSource id="dsClients" appid="LoginModule" viewobject="RctClientesView1" />
    <jbo:SetWhereClauseParam index="0" value="<%=strTip%>" datasource="dsClients" />
    <!--use this LINE BELOW if you have the data source after a post operation. VERY IMPORTANT-->
    <jbo:RefreshDataSource datasource="dsClients" />
    <jbo:RowsetNavigate datasource="dsClients" action="first" />
    <% int i;
    i=0;
    %>
    <jbo:RowsetIterate datasource="dsClients" >
         <%i+=1;%>
    </jbo:RowsetIterate>
    <%
    if (i>=1){%>
         <!-- when hare more than one record, put your code here.-->
         <!-- You can change the if statement to what ever you like-->
    <%}else{%>
         <!-- when the datasource has no records, put your code here.-->
    <%}%>

  • Return records from Stored Procedure to Callable Statement

    Hi All,
    I am createing a web application to display a students score card.
    I have written a stored procedure in oracle that accepts the student roll number as input and returns a set of records as output containing the students scoring back to the JSP page where it has to be put into a table format.
    how do i register the output type of "records" from the stored function in oracle in the "registerOutParameter" method of the "callable" statement in the JSP page.
    if not by this way is there any method using which a "stored function/procedure" returning "record(s)" to the jsp page called using "callable" statement be retrieved to be used in the page. let me know any method other that writing a query for the database in the JSP page itself.

    I have a question for you:
    If the stored procedure is doing nothing more than generating a set of results why are you even using one?
    You could create a view or write a simple query like you mentioned.
    If you're intent on going the stored procedure route, then I have a suggestion. Part of the JDBC 2.0 spec allows you to basically return an object from a CallableStatement. Its a little involved but can be done. An article that I ran across a while back really helped me to figure out how to do this. There URL to it is as follows:
    http://www.fawcette.com/archives/premier/mgznarch/javapro/2000/03mar00/bs0003/bs0003.asp
    Pay close attention to the last section of the article: Persistence of Structured Types.
    Here's some important snippets of code:
    String UDT_NAME = "SCHEMA_NAME.PRODUCT_TYPE_OBJ";
    cstmt.setLong(1, value1);
    cstmt.setLong(2, value2);
    cstmt.setLong(3, value3);
    // By updating the type map in the connection object
    // the Driver will be able to convert the array being returned
    // into an array of LikeProductsInfo[] objects.
    java.util.Map map = cstmt.getConnection().getTypeMap();
    map.put(UDT_NAME, ProductTypeObject.class);
    super.cstmt.registerOutParameter(4, java.sql.Types.STRUCT, UDT_NAME);
    * This is the class that is being mapped to the oracle object. 
    * There are two methods in the SQLData interface.
    public class ProductTypeObject implements java.sql.SQLData, java.io.Serializable
        * Implementation of method declared in the SQLData interface.  This method
        * is called by the JDBC driver when mapping the UDT, SCHEMA_NAME.Product_Type_Obj,
        * to this class.
        * The object being returned contains a slew of objects defined as tables,
        * these are retrieved as java.sql.Array objects.
         public void readSQL(SQLInput stream, String typeName) throws SQLException
            String[] value1 = (String[])stream.readArray().getArray();
            String[] value2 = (String[])stream.readArray().getArray();
         public void writeSQL(SQLOutput stream) throws SQLException
    }You'll also need to create Oracles Object. The specification for mine follows:
    TYPE Detail_Type IS TABLE OF VARCHAR2(1024);
    TYPE Product_Type_Obj AS OBJECT (
      value1  Detail_Type,
      value2 Detail_Type,
      value3 Detail_Type,
      value4 Detail_Type,
      value5 Detail_Type,
      value6 Detail_Type,
      value7 Detail_Type,
      value8 Detail_Type);Hope this helps,
    Zac

  • Creation of Data Control for custom java method  which will return records

    Hi Guys,
    I have a requirement of creating a a custom java method in App module which will return a record set taking an id as input.In case of single return type it works fine but in case of returning record set it is not working.In my case i have to combine two tables and return it as a single entity as a view in Data Control.
    Warm Regards,
    Srinivas.

    Why don't you just create a custom view object? There's even an example or 2 in the docs:
    http://docs.oracle.com/cd/E16162_01/web.1112/e16182/intro_tour.htm#CHDGDIEC (check out "View object on refcursor" example)
    Edit: you are aware that you can create a View Object based on more than one table?
    John

  • Query returns record in SQL Developer but not in iSQLPlus

    ... back in a minute, I may not have done a commit at the end of the insert.
    The problem I was having was I hadnt commited the record in SQL Developer but the queries where returning records in this environment but not in iSQLPlus or Apex and it was confusing me.
    Message was edited by:
    Benton
    Message was edited by:
    Benton

    Finally got to know the reason why Timezone Abbr woudn't show up in SQL Plus.
    I ran below query in SQL PLUS
    SELECT SESSIONTIMEZONE, CURRENT_TIMESTAMP, systimestamp, LOCALTIMESTAMP FROM DUAL;
    SESSIONTIMEZONE CURRENT_TIMESTAMP SYSTIMESTAMP LOCALTIMESTAMP
    -05:00 08-SEP-12 12.00.31.575228 AM -05:00 08-SEP-12 12.00.31.575223 AM -05:00 08-SEP-12 12.00.31.575228 AM
    Now executed the same query in SQL Developer:
    SESSIONTIMEZONE CURRENT_TIMESTAMP SYSTIMESTAMP LOCALTIMESTAMP
    America/Chicago     08-SEP-12 12.08.32.072424000 AM AMERICA/CHICAGO     08-SEP-12 12.08.32.072420000 AM -05:00     08-SEP-12 12.08.32.072424000 AM
    The difference between the 2 outputs is the way in which time_zones were respresented. In SQL PLUS, it is shown as an offset whereas in SQL Developer as a time zone region name. Now there are many "time sone regions" that follow an offset of -5:00. This confuses Oracle and a "UNK"(Unknown) for a query like the one below when trying to execute in SQL PLUS:
    select extract(timezone_abbr from from_tz(cast(sysdate as timestamp),SESSIONTIMEZONE)) from dual;
    EXTRACT(TI
    UNK
    Therefore we need to specify the exact Time Zone Region(TZR) in order to obtain the corresponding TZD(Daylight Savings Format i.e. CDT or CST). This we do by altering the session environment vaiable time_zone
    alter session set time_zone='America/Chicago';
    Now executing the queries to find the abbreviated time zone( in TZD format) will finally work to return a non-null char value.
    select extract(timezone_abbr from from_tz(cast(sysdate as timestamp),SESSIONTIMEZONE)) from dual;
    EXTRACT(TI
    CDT
    select to_char(CURRENT_TIMESTAMP, 'TZD') from dual;
    TO_CHA
    CDT

  • Does a table/view still return records if the underlying VPD policy fails ?

    Hi All,
    I have one following question -
    Does a table or view still return records if the underlying VPD policy fails?
    I am adding one more thing here. Let us say security is being implemented using the application context and VPD.
    What would happen when application context is not set ? Would the application apply any default privilege as VPD?
    Thanks,
    Ashi

    AshiKD wrote:
    Hi All,
    I have one following question -
    Does a table or view still return records if the underlying VPD policy fails?No, you get a standard error message if the VPD function is wrong and if you won't pass the conditions of the VPD, you get nothing. That's what in general happens and should happen as well.
    >
    I am adding one more thing here. Let us say security is being implemented using the application context and VPD.
    What would happen when application context is not set ? Would the application apply any default privilege as VPD?This would be a wrong approach then. If you are truly setting a VPD, you have to make sure that the context is set and the condition variable are passed through it. This is normally done through a logon trigger so again, generically , its not possible that it would not be set. I didn't get at all what ever you said in the last line? What is "default priv for VPD" ?
    HTH
    Aman....

  • Join 3 tables, return records which no match found in table 1 as null

    Hi Gurus,
    I really need your expert advice. I am stuck in below query.
    I have joined 3 tables,
    table 2 is an information reference (to get the process code and process name)
    table 1 have and table 3 have daily data (which will have the process code and its values/qty)
    all values return from table 1 and 3(rtrwip00 and prdyld01) should refer to code in table 1.
    There can be a scenario where on a day, a process was stop, so it dont have values/qty in table 1/3,
    The problem is my query will return only rows which have records in table 1/3.
    While I want all the records in table 2 to be returned no matter have data or not in table 1/3, in case no data in table 1/3, return qty as '0'.
    Please advice me..thanks in advance :)
    Select lot.rw_oper,
    lot.rw_area_grp,
    lot.rw_oper_name,
    proc_out.proc_out,
    lot.rw_qty
    from
    ( SELECT UNIQUE a.rw_oper,a.rw_area_grp,a.rw_oper_name,SUM(CASE WHEN a.rw_qty_unit = 'CM' THEN a.rw_qty*10 ELSE rw_qty END )as rw_qty
    From rtrwip00 a, oprinf99 b
    WHERE a.rw_facility='MIPOPRD'
    AND b.oi_facility = a.rw_facility AND b.oi_oper = a.rw_oper
    GROUP BY a.rw_area_grp,a.rw_oper,a.rw_oper_name
    ORDER BY a.rw_oper,a.rw_area_grp) lot,
    ( SELECT py_oper, SUM(CASE WHEN py_out_unit1 = 'CM' THEN py_proc_out1*10 ELSE py_proc_out1 END) proc_out
    FROM prdyld01
    WHERE py_facility = 'MIPOPRD'
    AND py_trs_time between TO_CHAR(SYSDATE-1,'YYYYMMDD')||'070000' AND TO_CHAR(SYSDATE,'YYYYMMDD')||'070000'
    group by py_oper
    )proc_out
    where lot.rw_oper NOT IN ('2900','6700' ,'9100' ,'9920' ,'9921','9940','9941','9300','9500','6700','8910', 'REJT')
    and lot.rw_oper = proc_out.py_oper
    order by lot.rw_oper

    CREATE TABLE PRDYLD01
    PY_FACILITY VARCHAR2(12 BYTE) NOT NULL,
    PY_TRS_TIME VARCHAR2(14 BYTE) NOT NULL,
    PY_LOT VARCHAR2(11 BYTE) NOT NULL,
    PY_OPER VARCHAR2(4 BYTE) NOT NULL,
    PY_PO VARCHAR2(12 BYTE) NOT NULL,
    PY_PROC_IN1 NUMBER(10,2) DEFAULT 0 NOT NULL,
    PY_PROC_IN2 NUMBER(10,2) DEFAULT 0 NOT NULL,
    PY_PROC_OUT1 NUMBER(10,2) DEFAULT 0 NOT NULL,
    PY_PROC_OUT2 NUMBER(10,2) DEFAULT 0 NOT NULL,
    sample data 1
    PY_OPER     PROC_OUT
    3000     481
    3100     214
    3200     642
    3250     291
    5250     519
    5300     439
    5350     476
    CREATE TABLE RTRWIP00
    RW_FACILITY VARCHAR2(12 BYTE) NOT NULL,
    RW_LOT VARCHAR2(11 BYTE) NOT NULL,
    RW_OPER VARCHAR2(4 BYTE) NOT NULL,
    RW_OPER_NAME VARCHAR2(35 BYTE) NOT NULL,
    RW_PO VARCHAR2(12 BYTE) NOT NULL,
    RW_AREA_GRP VARCHAR2(12 BYTE) NOT NULL,
    RW_QTY NUMBER(10,2) DEFAULT 0 NOT NULL,
    RW_QTY_UNIT VARCHAR2(6 BYTE) NOT NULL,
    sample data 2     
    RW_OPER     RW_QTY
    3000     1248
    3100     324
    3200     133
    3250     357
    4400     424
    4500     821
    4600     909
    5050     689
    5250     2472
    5300     53
    5350     166
    CREATE TABLE OPRINF99
    OI_FACILITY VARCHAR2(12 BYTE) NOT NULL,
    OI_OPER VARCHAR2(4 BYTE) NOT NULL,
    OI_OPER_SEQ NUMBER(5) NOT NULL,
    OI_AREA_GRP VARCHAR2(12 BYTE),
    OI_SHORT_DESC VARCHAR2(10 BYTE) NOT NULL,
    OI_LONG_DESC VARCHAR2(35 BYTE),
    sample data 3          
    RW_OPER     RW_AREA_GRP     RW_OPER_NAME
    3000     MOD     ROD MOUNT
    3100     MOD     WIRE SAW
    3200     MOD     AS-CUT CLEANER
    3250     MOD     BEAM REMOVAL
    4400     POL     ESE-II
    4500     POL     EDGE OXIDE STRIP
    4600     POL     LTO INSPECTION
    5050     POL     DOUBLE SIDE BUFFER
    5250     POL     ACCUMULATION
    5300     POL     FINAL POLISHER
    5350     CLN     POST POLISH CLEANER
    ABove is the DLL for the table and its mock data.
    Sample output should be like below; where when no data found in sample data 1, it will return '0'
    RW_OPER     RW_AREA_GRP RW_OPER_NAME     PROC_OUT     RW_QTY
    3000     MOD     ROD MOUNT     481     1248
    3100     MOD     WIRE SAW     214     324
    3200     MOD     AS-CUT CLEANER     642     133
    3250     MOD     BEAM REMOVAL     291     357
    4400     POL     ESE-II          0 424
    4500     POL     EDGE OXIDE STRIP     0     821
    4600     POL     LTO INSPECTION     0     909
    5050     POL     DOUBLE SIDE BUFFER     0     689
    5250     POL     ACCUMULATION     519     2472
    5300     POL     FINAL POLISHER     439     53
    5350     CLN     POST POLISH CLEANER     476     166
    mY current output is below; only return record that have match to all table.
    RW_OPER     RW_AREA_GRP     RW_OPER_NAME     PROC_OUT     RW_QTY
    3000     MOD     ROD MOUNT     481     1248
    3100     MOD     WIRE SAW     214     324
    3200     MOD     AS-CUT CLEANER     642     133
    3250     MOD     BEAM REMOVAL     291     357
    5250     POL     ACCUMULATION     519     2472
    5300     POL     FINAL POLISHER     439     53
    5350     CLN     POST POLISH CLEANER     476     166
    Really appreciate your response, sorry for taking time to reply.
    Thanks in advance :)

  • [HELP] Procedure return records

    Hi All,
    I want to create a procedure that will return records (not only single record) base on some parameters. Is it possible?
    While i used MS SQL Server, it is just a simple way. In the body of procedure i just need to call select query with some parameters in where clause. For example:
    Create procedure GetEmployee
    @grade char(1)
    As
    Select * From Employee Where EMP_Grade=@grade
    Please help me!

    First off, what are you going to do with the records that are returned here?
    Second, you can return a REF CURSOR
    CREATE OR REPLACE PACKAGE refcursor_demo
    AS
      TYPE emp_refcursor_strong IS REF CURSOR RETURN emp%rowtype;
      TYPE emp_refcursor_weak   IS REF CURSOR;
      -- You can define either procedures that have the strongly typed
      -- REF CURSOR as an OUT parameter or you can define a function that
      -- returns the REF CURSOR.
      PROCEDURE refCursorProc( employees OUT emp_refcursor_strong );
      FUNCTION  refCursorFunc RETURN emp_refcursor_weak;
    END;
    CREATE OR REPLACE PACKAGE BODY refcursor_demo
    AS
      PROCEDURE refCursorProc( employees OUT emp_refcursor_strong )
      AS
      BEGIN
        OPEN employees FOR
          SELECT * FROM emp;
      END;
      FUNCTION refCursorFunc RETURN emp_refcursor_weak
      IS
        out_cursor emp_refcursor_weak;
      BEGIN
        OPEN out_cursor FOR
          SELECT * FROM emp;
        RETURN out_cursor;
      END;
    END;Alternately, you could return a collection, potentially in a pipelined table function.
    Justin

  • Returning Records

    Is there a way to return records from a stored procedure or function? If so, how?
    null

    please follow this link to the answer:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:246014735810
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by yanos:
    Is there a way to return records from a stored procedure or function? If so, how?<HR></BLOCKQUOTE>
    null

  • Reports not returning records utilizing different currency type.

    Good morning,
    My company has numerous subsidiaries utlizing CRM On Demand. Although our defauct currency is USD, one of our operations enters opportuntiy data in Canadian dollars. Both currency types are active in the system but for some reason, the custom reports I have created are not returning records created by our Canadian company entering in CAD.
    There is probably a quick solution, but so far I have yet to find it! Thanks in advance for your feedback!
    Ryan

    yes...your report won't show data for canadian currency. even the admins won't be able to see it.
    try this fix instead:
    you will have to create a new field for currency in the opty page layout and change it to canadian dollar otherwise the currency would still appear as USD in the database.
    Then use this field in your reports.
    This should help. please let us know your feedback.

  • Returning Records Only for the Current Month

    Hello,
    I have a query that returns records for the current week and I would like to extend it to return records for the current month.
    where TRUNC (START_DATE) < NEXT_DAY (TRUNC (CURRENT_TIMESTAMP) - 1, 'Sat') + 1
    AND TRUNC (END_DATE) > NEXT_DAY (TRUNC (CURRENT_TIMESTAMP) - 1, 'Sat') - 7
    I have two date fields, the first is called 'Start_Date', the second is called 'End_Date'. I would like the query to return all records for the current month including those that may begin prior to or finish post the month as events can begin in one month and end in another. Does anyone know how this is done in a 'Where Clause'?
    Kind Regards,
    Steve Welch

    Actually LAST_DAY(ADD_MONTHS(TRUNC(sysdate),-1))+1 gives you the starting day of the current month, and LAST_DAY(TRUNC(sysdate)) gives you the last day of the current month.
    So the where be
    WHERE TRUNC(START_DATE) >= LAST_DAY(ADD_MONTHS(TRUNC(sysdate),-1))+1 OR TRUNC(END_DATE) <= LAST_DAY(TRUNC(sysdate))
    Start Date >= 1st Day of Month OR End Date <= Last Day of Month, meaning either date is within the current month.

  • Returning records based on the max timestamp

    I am writing a query to return records for each dat with max timestamp. so the query must return 1 record for each day with the latest timestamp. I am doing a partition over the timestamp column and wondering which analytic func gives the fastest result. This is in a data warehouse environment where there may be millions of recs.
    thanks

    My sample table has 3 columns - deptno, deptdesc, and eff_ts. There may be multiple rows for each day but I want to pick only the first (or last) record for each day.
    This is one query I am thinking about using analytic functions.
    SELECT deptno, deptdesc, eff_ts from test_dates where eff_ts in (
    select FIRST_VALUE(eff_ts)
    OVER (PARTITION BY trunc(eff_ts) ORDER BY eff_ts) eff_ts FROM test_dates)
    I can also use max (or min) timestamp and do a group by.
    SELECT deptno, deptdesc, eff_ts from test_dates where eff_ts in (
    select min(eff_ts) FROM test_dates group by trunc(eff_ts))
    Which is better (or is there any other better way) to use in a data warehousing env?

  • CUBE Export DataSource - No Records Returned

    Hey guys,
        I`m having a strange problem in the system.
        (1) I Righ-Click on the InfoCube and Generate Export DataSource
         (2) I am able to find the 8DataSource in the InfoSource area
         (3) When I RSA3 on this DataSource it returns NO data at all.
        I have repeatedly tried this for many Cubes in my system but same issue remains.
        However, when I do the same for DSO, I don`t have any problems as in the Export DataSource for DSO's returns data in RSA3.
        Please help

    Hi,
    Make sure Source cube has data,
    is it Active the target cube/source cube.
    log off and login in to the system so that system will get refreash,
    try to delete req without data and repeat the load.
    i think one of the above should work in any case....
    are you using BW 3.5, if so check it in one of the root in datamart...you should find the EDS....
    Kiran

  • DB Connect DataSource PSA records and DSO records are not matching...

    Dear All,
    I'm working with SAP NetWeaver BW 7.3 and for the first time, I have loaded from Source System DB Connect. I have created a DataSource and pulled all records and found 8,136,559 records in PSA. When I designed and created DSO with Key Fields 0CALDAY, Item No and Company Code, it has transferred records about 8,136,559 and added records about 12,534 only. Similarly following InfoCube has about 12,534 records into its Fact table. When I tried to reconcile the data/records with source DBMS for a month, the records/data could not matched?
    1. What could be the reason behind the issue? why I am unable to load the records/data correctly?
    2. Have I not mentioned the Key Fields of DSO in a correct manner?
    3. Is it possible to load the records/data into DSO without giving any field as Key Fields?
    4. How should I resolve this issue?
    5. Is it could be of DSO Overwrite and summation function utilization if yes, then how to utilize it?
    Many thanks,
    Tariq Ashraf

    Dear Tariq,
    1. What could be the reason behind the issue? why I am unable to load the records/data correctly?
    Ans:  Check transformation once. Is there any start routine you have used or direct assignments. What kind of DTP settings you have done.
    Check the messages at the DTP monitor. You will surely find some clue. Any duplicate records are being detected or not check once if you are using semantic keys in your DTP.
    2. Have I not mentioned the Key Fields of DSO in a correct manner?
    Ans:  The transformation key and the DSo key are they same in your case?
    What kind of DSO is it? Like for sales order DSO you take Order number as a key field., So you have to define the key fields according to business semantics I suppose. Do you agree?
    3. Is it possible to load the records/data into DSO without giving any field as Key Fields?
    Ans:  I dont think so as the keys you defined will help in having unique data records isnot it?
    4. How should I resolve this issue?
    Ans: Please check the above as in Ans:1 please share your observation.
    5. Is it could be of DSO Overwrite and summation function utilization if yes, then how to utilize it?
    Ans: DSO overwriting of key figures is useful when you have full loads in picture. Are you always going to perform full loads ?
    For reference would you like to check this thread:  Data fileds and key fields in DSO
    Lets see what experts give their inputs.
    Thank You...

Maybe you are looking for