Intermitent return of data from HR_PERSON_READ_WORK_SCHEDULE

Hi All,
I'm using HR_PERSON_READ_WORK_SCHEDULE to return the working hours and shift start/end times for an employee.
This function module is only working intermittently for the same employee.
I'm passing in the dates and a table with the pernr, is there a reason why this would return me the data, then 5 mins later return nothing?
Regards,
Rob

the fm reads bufferd data. may be that's the reason.
try to call  HR_PERSON_BUFFER_REFRESH before reading the work schedule.

Similar Messages

  • Discoverer report returns no data from a certain time

    Using Discoverer 10g,a discoverer report which returned data normally last month gets to return no data now.
    We have four same environments, and two of them has this problem, two is OK.
    And the SQL of the discoverer of the four environments are the same.
    We have no any changment of this discoverer and related EUL for more than one year....
    How should we investigate into this issue.
    For example ,a point we should notice or something...
    Could somebody give us a suggestion?
    Thank you.

    Thanks for your qiuck reply.
    1.empty table that is joined in the query.The four environments has almost the same data,it is not the cause.
    2.security issue with the data, maybe the security definitions are different from one environment to another.we are now invesgate into this cause.
    and there is a sql of the discoverer's EUL which shows no data in a enviroment(in this enviroment discoverer report gets no data), but in another enviroment data can show.
    the sql is as following.
    =============
    SELECT loc_bu.org_id
    ,loc_bu.location_id building_id
    ,loc_bu.building building_name
    ,loc_bu.location_code building_number
    ,loc_fl.location_id floor_id
    ,loc_fl.location_code floor_number
    ,loc_fl.floor floor_name
    ,loc_of.location_id office_id
    ,loc_of.location_code office_number
    ,loc_of.office office_name
    ,loc_of.suite office_suite
    ,loc_of.location_alias office_alias
    ,loc_of.assignable_area office_assignable_area
    ,loc_of.space_type_lookup_code office_space_type_code
    ,lst.meaning office_space_type
    ,loc_of.function_type_lookup_code office_function_type_code
    ,fun.meaning office_function_type
    ,(SELECT ffv.description
    FROM fnd_flex_values_vl ffv
    ,fnd_flex_value_sets ffvs
    WHERE ffv.flex_value = loc_of.attribute1
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'MB_PN_ON') occupancy_exception_flag
    ,loc_of.active_start_date
    ,loc_of.active_end_date
    --ADD BY KEVIN 2008/6/26 START
    ,loc_of.attribute7 division_code_office
    ,(SELECT ffv.description
    FROM fnd_flex_values_vl ffv
    ,fnd_flex_value_sets ffvs
    WHERE ffv.flex_value = loc_of.attribute7
    AND ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'MB_PN_DIVISION') division_description_office --ヌヨ-ホ・ヒオテ・
    --ADD BY KEVIN 2008/6/26 END 
    FROM pn_locations loc_bu
    ,pn_locations loc_fl
    ,pn_locations loc_of
    ,fnd_lookups fun
    ,fnd_lookups lst
    WHERE loc_bu.location_id = loc_fl.parent_location_id
    AND loc_bu.location_type_lookup_code IN ('LAND', 'BUILDING')
    AND nvl(loc_bu.attribute6, '99') <> '01'
    AND loc_fl.location_id = loc_of.parent_location_id
    AND loc_fl.location_type_lookup_code IN ('FLOOR', 'PARCEL')
    AND nvl(loc_fl.attribute6, '99') <> '01'
    AND loc_of.location_type_lookup_code IN ('OFFICE', 'SECTION')
    AND nvl(loc_of.attribute6, '99') <> '01'
    AND loc_of.function_type_lookup_code = fun.lookup_code(+)
    AND fun.lookup_type(+) = 'PN_FUNCTION_TYPE'
    AND loc_of.space_type_lookup_code = lst.lookup_code(+)
    AND lst.lookup_type(+) = decode(loc_of.location_type_lookup_code,
    'OFFICE',
    'PN_SPACE_TYPE',
    'SECTION',
    'PN_PARCEL_TYPE')
    AND nvl(loc_of.space_type_lookup_code,'99') <> '07';
    ====================
    Ps.before excute this sql, we always first excute following command.
    ====
    begin
    fnd_client_info.set_org_context(117);
    end;
    ====
    The analyst of our team is not very good at the security problem, could you help us?
    Thanks a lot.

  • Returning XML Data from a database

    Ok, just got the new DW CS3 and really want to begin using
    the built in Spry capabilitites. All of the examples I've seen for
    populating the datasets with XML data are based on referencing a
    static XML file. I want to query my database and return XML data to
    a Spry Table. How do I accomplish this? I know how to perform the
    query and retrun the data in an XML format (ColdFusion) but I can't
    tell the spry dataset to use this. HELP!!

    Well, that's the trick... I can't point to a testing server
    (i.e. Application interface) because we aren't permitted to have
    the RDS login where I work. (They haven't bothered to configure the
    CF server for restricting access) I have to manually create all
    connections and queries. I'm currenlty using the exact format in
    the example page you provided to return the data in an XML format
    but when I point to that file as my datasource I get nothing
    displayed on the page. The file that performs the query and returns
    the data is in a separate file from the one I'm trying to use the
    Spry table in. When I use this same query file for an Ajax call to,
    say, populate a listbox or pulldown menu it works fine, but I can't
    get it to work with the Spry dataset.

  • Returning a Date from a method

    in class we have a lab that uses a method to return a Date.
    The Date is printed out to the console when the driver class calls it. I tried using dateCreated.getDate() but it says it cannot convert from int to Date.
    here is some snippets from my code
    private Date dateCreated;
    protected Date getDateCreated()
                  return dateCreated;
    }//this method does nothing yet (returns Null)any suggestions?
    thanks!

    I want the date to be displayed upon the driver class calling it.
    Currently, when the driver class calls the method getDateCreated()
    it returns a null to System.out.println
    I don't want a null I want the date
    if this is still unclear please let me know I awill post more code in hopes that it will be more clear on what I am trying to do.
    Thanks!

  • What is the best approach to return Large data from Stored Procedure ?

    no answers to my original post, maybe better luck this time, thanks!
    We have a stored proc (Oracle 8i) that:
    1) receives some parameters.
    2)performs computations which create a large block of data
    3) return this data to caller.
    compatible with both ASP (using MSDAORA.Oracle), and ColdFusion (using Oracle ODBC driver). This procedure is critical in terms of performance.
    I have written this procedure as having an OUT param which is a REF CURSOR to a record containing a LONG. In order to make this work, at the end of the procedure I have to store the working buffer (an internal LONG variable) into a temp table, and then open the cursor as a SELECT from the temp table.
    I have tried to open the cursor as a SELECT of the working buffer (from dual) but I get the error "ORA-01460: unimplemented or unreasonable conversion requested"
    I suspect this is taking too much time; any tips about the best approach here? is there a resource with REAL examples on returning large data?
    If I switch to CLOB, will it speed the process, be compatible with callers, etc ? all references to CLOB I saw use trivial examples.
    Thanks for any help,
    Yoram Ayalon

    Create a new farm in the secondary Data Center at the same patch level with the desired configuration. Replicate the databases using the method of choice (Mirroring, AlwaysOn, etc.). Create a downtime window where you can then attach the databases to the
    new farm's Web Application(s)/Service Application(s).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • URGENT : Return Bulk data from Stored Procedure

    Hi,
    Tell me, how do I return a bulk of data which
    does not exist in the data base
    but is concluded while the Stored Procedure is executed
    from the Stored procedure
    to the C++ program.
    For Example:
    Table ABC
    Field1 Field2 Field3
    A 1 3
    B 1 5
    C 2 10
    Table DEF
    Field1 Field2 Field3
    D 10 24
    E 3 16
    F 8 19
    SP_TESTING
    Depending on the values in both the tables
    for some range of conditions,
    a conclusion X is derived for each range value of the
    condition range.
    Now I need to return this bulk of data X with the
    condition they belong to
    back to the C++ code calling it....
    NOTE : A stored procedure is requited as there is a lot
    of processing
    required before we conclude the result X for each value
    in the condition range.
    If I execute this code from C++ instead of Stored
    procedure
    it is very slow and speed is a prime requirement of my
    system.
    Also i'm not using any MFC class to access database.
    I'm using ConnectionPtr, RecordsetPtr and _CommandPtr
    from msado15.dll for database access...
    One solution to this could be use of Temp tables.
    As this process is used by a lot of different stored
    procedures having a common
    temp table to all will need something like 50 NUMERIC
    fields, 50 VARCHAR fields
    and so on, which doesn't seem like a very good solution
    to this problem.
    Sounds like something I would have done while in school,
    implement a dumb solution.
    So, please suggest me a solution as to how do I return
    bulk data in the form
    of recordsets from stored procedure.
    Regards
    Shruti

    Use Out parameter mode
    SQL> CREATE OR REPLACE procedure a1 (x  OUT NUMBER, y  OUT NUMBER) AS
      2  BEGIN
      3        x:= 1;
      4        y:= 2;
      5  END;
      6  .
    SQL> /
    Procedure created.
    SQL> SET SERVEROUTPUT ON
    SQL> DECLARE
      2   a NUMBER :=3;
      3   b NUMBER :=4;
      4  BEGIN
      5   a1 (a,b);
      6      DBMS_OUTPUT.PUT_LINE( 'a = ' || a );
      7      dbms_output.put_line( 'b = ' || b );
      8  END;
      9  .
    SQL> /
    a = 1
    b = 2
    PL/SQL procedure successfully completed.By default parameters are copied to the OUT parameter mode .
    COPY hint in PLSQL don’t send a pointer to calling program unit but NOCOPY
    does.
    Khurram

  • EJB 3.0 - EntityManager.find() not returning latest data from DB

    I have to restart the app server (using 10g embedded server) to get an EntityManager find to work propoerly. Basically if I update the DB directly (using dbvisualiser) and do a find using an entiy bean in JDev with embedded container the find return old data.
    Very new to this.
    any ideas ?

    The persistence provider for our EJB 3.0 implementation is TopLink and uses TopLink's object cache for the retrieved entities. By default it is configured to aggresively cache. You can customize the caching by using TopLink configuration files. I briefly described the process in this EJB3: Mapping a Boolean.
    I would recommend using entityManager.refresh(entity) or use the vendor hint on the query:
    Customer customer = (Customer)entityMgr.
                                        createNamedQuery("findCustomerBySSN").
                                        setParameter("SSN", "123-12-1234").
                                        setHint("refresh", Booelan.TRUE).
                                        getSingleResult();Doug

  • How to return course  data  from different tables from a procedure

    I have a procedure which must return information from two tables:
    The sturcture of tables is as below:
    Table 1:
    id,
    name,
    property,
    type
    Table 2:
    id1
    id2 ,
    property.
    id1 of table2 refers to id attribute of table1. ie id is the foreign key for table2.
    the tables are defined such that for corresponding to each id in table1 there would
    be two or more rows in table2.
    Now in the procedure given the id, i need to retrieve information from table1 and also all the rows in table2 which refers to id2.I want to return a cursor.How can i do this.
    eg:
    if table 1 has an entry with id 2
    and table 2 has three entries with id1 referring to id(i.e id1=2)..I need to return the table1 entry with id=2 and three entires from table2 with id1=2.
    If cursors are not appropriate, what other alternative methods can be used.
    Any suggestions would be of great help.

    thanks for the reply,
    The result set would be returned to the client .....which would do further processing.The client does not even know that the data is organized in two tables..Therefore given an id, client would expect to have all the information...i.e the info from table 1 and info from table 2 where the relation ship between id and other ids are stored.
    i.e say client has id=6.This id has property,name,etc stored in table1.
    This id can further be related to any number other of ids.It can be related 2,5,100,or may be even 10000s of other ids.This mapping between the original id and other ids..are stored in table2.
    So given the id by the client , i would want to return property of the ids itself along with all the ids that it is related to .
    I want to achieve this.....

  • JCO not returning Table Data from RFC

    Hi,
    I have written a RFC in ABAP having ..
    1) One Import parameter.
    2) NO EXPORT Parameter.
    3) One Table. (Returning 'n' rows of data field 'WA').
    I am calling the RFC using JCO.
    No output is displayed. The ABAP functions is working fine
    when tested using SE37.
    How call function with this combination?
    Regards.

    Milind,
    This is how I have done.
    I pass the parameter to import parameter list. The abap code looks if any import parameter is added. Then it fills one of the tables with data values. Then I call the table and display the results and set the import parameter to something else.
    JCO.Field import = function.getImportParameterList().getField("<Field Name>");
    import.setValue("<Field Value1>");
    Table1=function.getTableParameterList().getTable("<Table Name>");
    Table2=function.getTableParameterList().getTable("<Table Name>");
    mConnection.execute(function);
    Then I get the table values from the required table1 and table2. Then Finnaly before exiting from the connection
    I reset the value of Import parameter
    JCO.Field import = function.getImportParameterList().getField("<Field Name>");
    Con2.setValue("<FieldValue2>");
    mConnection.execute(function);
    mConnection.disconnect();
    Hope this helps to understand from J2ee perspective what is happening. So accordingly you can write the ABAP code to change the table values based on the values that you get in the import Parameters.
    Ravi

  • Returning the data from Time Capsule to the laptop

    Dear Sir,
    Kindly be informed that we have four Macbook laptops and a time capsule machine at our office in order to have back up o our data which are really important to us.
    Now we have some problem with returning one of laptops data after installing Mac OS.
    The software department has informed me that the data is available on the time capsule but they were unable to return it to the laptop. They tried it during the installment, after that and also with migration assistant.
    We would be thankful to receive your kind advise regarding our problem via my e-mail: [email protected]
    For further information, please do not hesitate to contact us.
    Thanks and best regards,
    Mahshid Darabi
    Commercial Manager
    Tooska Khorasan
    Trading & Engineering Group
    No.1005, Lufthansa Tower,
    Dr. Beheshti Ave.
    Tehran-Iran
    Tel: +9821 8874 9370-3
    +9821 8851 5706-13
    Mobile: +98912 633 9114
    e-mail: [email protected]
    website: www.tooskaco.com

    found this:
    "The process to restore backups is unbelievably easy, and takes few clicks to start. When booted from the OS X DVD, (put the install disk in the drive, and restart the computer - holding down the "c" key) click the Utilities menu, and choose “Restore from Time Machine backup”. Select the hard drive on which your backups are located, choose the destination drive, and choose which backup you wish to restore. Hit “Start”, and walk away. The restore process can take anywhere between 1 and 2 hours, so it’s best you walk away from your Mac for a bit. Your Mac will reboot, and depending on what backup you chose to restore, you’ll be right back where you left off."

  • How to return binary data from a servlet?

    This is my problem:
    I have a table (generated from a database), and I would like the user to be able to select a one of the items in the table. When the user clicks the link I would like to transfer a piece of binary data stored in my database.
    I am quite new to Creator and web apps, so I don't really know the best solution to implement this. I have one requirement: I must log the file transfer in the database (the web-servers log is not good enough...)
    Any help would really be appreciated...
    Trond

    Hi Trond,
    Please have a look at the following thread.
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=46410
    It discusses how to display an image stored in the database table. This discussion may provide you with useful information.
    Hope this helps
    Cheers
    Giri :-)
    Creator Team

  • How to return more data from function

    Following is the scenario:
    CREATE OR REPLACE TYPE OBJ IS OBJECT
    TEST_ID NUMBER(9),
    TEST_DESC VARCHAR(30)
    CREATE OR REPLACE FUNCTION FN_MY_DATA
    RETURN OBJ
    AS
    OBJ1 OBJ;
    BEGIN
    OBJ1.TEST_ID := 444;
    OBJ1.TEST_DESC := 'FFF';
    RETURN OBJ;
    END;
    I WANT USED VALUE TEST_ID AND TEST_DESC THE EXISTING IN FUNCTION FN_MY_DATA WITH A VARIABLES :
    DECLARE
    X NUMBER(9);
    Y VARCHAR(30);
    BEGIN
    X := -- VALUE TEST_ID EXISTING IN FN_MY_DATA;
    Y := -- VALUE TEST_DESC EXISTING IN FN_MY_DATA;
    END;

    see can oracle  function return more than one value
    SQL> CREATE OR REPLACE TYPE OBJ IS OBJECT
      2  (
      3  TEST_ID NUMBER(9),
      4  TEST_DESC VARCHAR(30)
      5  )
      6  /
    Type created.
    SQL> create or replace
      2  FUNCTION FN_MY_DATA
      3  RETURN OBJ
      4  as
      5  --obj1 obj;
      6  begin
      7  --OBJ1.TEST_ID := 444;
      8  --obj1.test_desc := 'FFF';
      9  return obj(444,'FFF');
    10  end;
    11  /
    Function created.
    SQL> set serveroutput on
    SQL> DECLARE
      2  X NUMBER(9);
      3  y varchar(30);
      4  l OBJ;
      5  begin
      6  l := fn_my_data();
      7  dbms_output.put_line(l.test_id || ' ' || l.test_desc);
      8  END;
      9  /
    444 FFF
    PL/SQL procedure successfully completed.
    SQL>

  • Return Data from Oracle using a web service in AXIS - please help

    Hi Forum,
    I am very new to web services and Java tech. and recently I have been assigned to work with technology and I am struggling to learn it and need your help and assistance.
    I am trying to return some data from a an oracle database but I have to do that using a web service and I am using AXIS. For example below is a simple program that returns two columns for the demo EMP table
    import java.sql.*;
    class emp {
    public static void main(String args[])
    throws ClassNotFoundException, SQLException {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // or you can use:
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott", "tiger");
    Statement stmt = conn.createStatement( );
    ResultSet rset = stmt.executeQuery("select * from emp");
    while(rset.next( )) {
    System.out.println(rset.getString(1));
    System.out.println(rset.getString(2));
    rset.close( );
    stmt.close( );
    conn.close( );
    } but I do not know how to convert this into a web service.
    Please help.
    Thanks in advance.
    Regards,
    Ravi

    The following code returns Document. I will be calling the below function to convert my Resultset to document. In my JWS file i simply call a method with parameters. can a web service method in .jws file return Document type. It shows error will doing so. Please help me.
    public static Document toDocument(ResultSet rs) throws ParserConfigurationException, SQLException
              Document res_doc = null;
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              Document doc = builder.newDocument();
              Element results = doc.createElement("Results");
              doc.appendChild(results);
              ResultSetMetaData rsmd = rs.getMetaData();
              int colCount = rsmd.getColumnCount();
              while (rs.next())
              Element row = doc.createElement("Row");
              results.appendChild(row);
              for (int i = 1; i <= colCount; i++)
              String columnName = rsmd.getColumnName(i);
              Object value = rs.getObject(i);
              Element node = doc.createElement(columnName);
              node.appendChild(doc.createTextNode(value.toString()));
              row.appendChild(node);
              return res_doc;
         }

  • How to return data from message bean ? ? ?

    Hi ... I have developed one simple application in JMS ...
    I have created one jsp page, one message bean and one remote EJB ...
    Now i m sending message to message bean .... i m also receiving message in message bean and i m calling one simple EJB method on that message called ...
    This all things are working well. But i wanted to return some data from that EJB to my JSP page .
    for example ...
    there is one sayHello() method in EJB which i m calling from message bean as i got message from JSP page .
    if i m printing that string in server log than its working well .
    now i wanted to return that string from that EJB method to JSP page.
    How can i achieve this ? can any one help me please ...
    actually i wanted to return whole XML file but recently as a newbie i m trying to just return hello world string .
    please help me for this problem ....
    thnks ...

    if you want to return a result, then you probably shouldn't be using a message bean. message beans for for asynchronous tasks. session beans for for synchronous tasks. thus it would make much more sense to have your jsp call the session bean directly.

  • Get partial dates from period of dates

    Hi,
    I would like to know if there is a FM that returns partial dates from 2 or more periods.
    Example:
    Period 1 : 2015.01.01 - 2015.03.01
    Period 2:  2015.01.05  - 2015.04.01
    Result  :       2015.03.02 - 2015.04.01
                       2015.01.05 - 2015.03.01
                       2015.01.01 - 2015.01.04
    What I am looking for is a something similar to what 'provide' statement do when joining 2 infotypes.
    PROVIDE * FROM Pmmmm
    * FROM Pnnnn
    BETWEEN PN-BEGDA AND PN-ENDDA.
    Thanks in advance.

    You can setup an iCloud account. You get 5GB free space for storage.
    Apple - iCloud - Learn how to set up iCloud on all your devices

Maybe you are looking for

  • How can I remove Bing from the navagation toolbar?

    I have a Bing search box on the navigation toolbar and I want it removed. Please inform me as to the process to do the Bing removal.

  • Please help! My new widescreen isn't working!

    So I bought a 22inch widescreen monitor for my 933mhz Quicksilver G4. The monitor has a resolution of 1680x1050. I used a DVI convertor and connected it to the ADC port. The problem is the picture doesn't look all that great, and worse, it looks real

  • Password protection - options in OS 10.5

    Good afternoon. With the recent spate of UN and PW theft, what are my good options for protecting these in OS 10.5? Thanks for your time.

  • Cannot remove attributes in HTMLDocument

    With a JTextPane, HTMLDocument and two JButtons I can select a piece of text and format it (bold for example). Then I want to select it again and clear the format (non bold for example). I do this with the code below. The editor shows the text correc

  • Configuring WebLogic Apache plug-in

    I think the answer to this question is no but I'm going to ask anyway... Is it possible to configure Apache to proxy requests to managed weblogic servers on one physical machine only? we have a cluster containing 4 managed weblogics spanning 2 physic