Replacing an employee in Activities

Hi all,
I have the following requirement: when creating a new activity, the system should check if the person responsible ("sales representative") is out of office (e.g. vacations, leave of absence, etc.) and it should designate a new sales representative for the activity.
I've been trying to use BP relationship "is replaced by" in order to do this, but when I generate the activity, sales representative is always the "original". Should this be done in partner determination procedures? Or do we have to implement a BADI?
Additionally, can anyone explain for what this relationship ("is replaced by") is intended for in standard CRM?
Thanks,
Joã

Hi Eddhie,
We created a new access sequence, which determines sales representative only through relationship with sold-to party.
Thanks,
Joã

Similar Messages

  • Do you monitor your employee PC activities?

    We don't monitor anything here. But the reason for that is we are a start-up company full of Engineers and like-minded people with best practices in mind. 
    Other companies though we would use a combination of live monitoring (VNC) and we would keep track of user browsing history with various free utilities. 
    Really though, if you have your securities and things configured properly network side, you really don't have to worry about monitoring.  Restrict what you don't want people using/surfing and then you don't need to really worry about actively monitoring individual end users so much as just making sure your configuration is still good from time to time. 

    This was spurred from another discussion concerning monitoring software (http://community.spiceworks.com/topic/1042244-employee-monitoring-software) which dovetailed into monitoring employees and how you do it.
    I'm of the camp that sometimes you need a break beyond the standard lunch to refocus on a project or your workload, and that taking to social media, reading blogs, checking personal e-mail can be a way to do that. I mean, people take smoke breaks or grab coffee, why can't I check Reddit?
    How do you feel about this? Do you monitor your employees online activities? Are your more lax or more strict when it comes to those behaviors?
    This topic first appeared in the Spiceworks Community

  • Error in self service for my employee - Related Activities in MSS

    Hi,
    NW2004s SP9  EP7.0 ECC 6.0
    we are trying to implement the self service for my employee in related activites functinality from the general information of team workset ( Team --> General informatio --> Related activities --> Self service for my employee ) in MSS which is a replicaiton of ESS in MSS functionality from the previous versions.
    When
    I click on any of the options like Personal data or Addresses it gives me a blank page with no information on it. (It does give a DONE message with error/warning message on the status bar of Internet explorer. The error message says getactivetrackingEntryValue() is null)
    Do I need to do anything to get this page working. I do not see any config related to this.
    Appreciate any inputs.
    regards
    sam

    James,
    I think the note refers to note been able to display the general infromation iView itself. I have implemented the note and am able to see the genral information iView. My issue is I am not able to perform "Self service for my employees" in "related activities" iView.
    Thank for you reply and correct me if I am wrong.
    Sanjay, I have raised the issue with SAP, in the mean while if you can please let me know the patches or a list of them that are requried thyat would be awesome. Sorry for asking you this, but the basis team here asks to tell them what is requried even though I do not have sufficient authorizations to check them.
    Appreciate you help on the same.
    regards
    Sam

  • Find and Replace - projects and / or activities

    Our users really like the template maintenance find / replace functionality. Is there a way to do something similar with Projects / Activities within those elements that are currently active projects? Thx

    Thanks for giving us feedback on NPD template mantenance functionality. Unfortunately, we haven't got the similar functionality around projects/ activities. However, You can use temporary signature authority (TSA) in NPD to grant someone the privilege to act on your behalf for a period of time. This means that a designated user (authority grantee) can approve or disapprove signature requests and manage activity workflow on behalf of you (authority grantor). please refer to 'Agile Product Lifecycle Management for Process New Product Development User Guide' for more details.
    If this functionality can't meet your requirement, Please submit an enhancement request so we can notify you when this feature is available in future release. Thank you!

  • Assignment of employee to activity

    hello every one in PS we assign employee to activities thru workforce planning. can any body tell me when we assign employee to some activity in which table this data is stored.i mean network, activity no, and employee.

    http://help.sap.com/saphelp_erp60_sp/helpdata/en/4c/22790746e611d189470000e829fbbd/content.htm

  • Leave of absence replaced by lov

    Hi everyone, for the SSHR absence management form, I am trying to limit the replaced by LOV to only people in my business group. It is picking everyone across the company which isn't what I was hoping for. Does anyone have a workaround for this?
    Many Thanks,
    Igwe

    Hi Asif, this doesn't seem to be working. could you look at my setup dump and tell me where I've gone wrong. The LOVs for absence replacement and employee directory still return data for everyone.
    View Grant: XXKSA Employee Self Service Replaced By LOV
    Delete Update
    Name XXKSA Employee Self Service Replaced By LOV
    Description
    Effective From 15-Mar-2013
    Effective To
    Security Context
    Grantee Type All Users
    Grantee Everyone
    Operating Unit
    Responsibility KSA Employee Self Service
    Data Security
    Object Workflow Role LOV
    Data Context
    Type Instance Set
    Name XXKSA Employee Directory Instance Set
    Description Limits Employee Directory to KSA Employees
    Predicate
    &TABLE_ALIAS.USER_NAME IN (SELECT USER_NAME FROM FND_USER FU, PER_ALL_PEOPLE_F PAPF WHERE FU.EMPLOYEE_ID = PAPF.PERSON_ID AND PAPF.BUSINESS_GROUP_ID = 721 AND (PAPF.CURRENT_EMPLOYEE_FLAG = 'Y' or PAPF.CURRENT_NPW_FLAG = 'Y') AND SYSDATE BETWEEN PAPF.EFFECTIVE_START_DATE AND PAPF.EFFECTIVE_END_DATE )
    Instance Set Details
    Parameter 1
    Parameter 2
    Parameter 3
    Parameter 4
    Parameter 5
    Parameter 6
    Parameter 7
    Parameter 8
    Parameter 9
    Parameter 10
    Set
    Name Workflow Role LOV Permission Set
    Code WF_ROLE_LOV_PSET
    Description Permission Set to Restrict the Visibility of Roles

  • Activities visibility

    Hi All,
    This is regarding the visibility of activities in Mobile sales.
    Earlier we had a problem of "Activities not visible to user in calendar". i found that user was not assigned properly in Org model. After assigning the user to employee in Org model, user can able to see current activities.
    My question is "is it possible to see the previous activities as well. please clarify me.
    Thanks in advance,
    Vijay
    Edited by: vijay kumar on Sep 10, 2008 2:44 PM

    Hi Robert,
    To brief the problem,
    An employee created some activities earlier. The manager of the employee has no visibility of the activities in the transaction SO01. i found user is missing for the employee in org model and assigned the user.Now the current activities are visible to manager.
    I can see all the previous activities in the table smokvbez11.
    Could you please guide me how to make all these activities visible to the Manager in the transaction SO01. can it be done by extracting the subscriptions Activities (By employee) and Activities (By customers & Prospects).
    Please let me know if this still not clear.
    Thanks in advance.
    Vijay.

  • Help needed in Regular Expression

    I have been give a task to replace all table_name (Emp) in Procedure p1 to Table_name(Employee).
    Can anyone help me ?
    Regards,
    Prathamesh

    Hi, Prathamesh,
    REGEXP_REPLACE ( txt
                , '(^|\W)emp(\W|$)'
                , \1employee\2'
                )will return a copy of txt with the full word 'emp' replaced by 'employee'.
    For example, if txt is:
    emp foo a=emp  temp emp_name emp.bthe expression above will return
    employee foo a=employee  temp emp_name employee.b 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statments) and the results you want from that data.

  • Payroll Issue

    Dear Gurus,
    Please provide me with your knowledgeable input....
    1st/ My question here is what is the significance & importance of Allowance Grouping in  payroll-India scenario.....i have gone through the other posts but could get a clear understanding.....
    2nd/ Importance of Generate Payroll period and its relationship with control record.
    Can you all please put forward your views on this, i will be really thankful to you all.

    Hi,
    1) Answer:  You can get below answer by clicking the documentation of " Define Pay Scale Groupings for Allowances"
    you define pay scale groupings for allowances to differentiate between employee groups. These groupings determine which benefits apply to a particular group of employees.
    Example
    Consider a company Thumbtacks Pvt Ltd., with two levels of managers and three levels of regular employees. We will define allowance groupings, such that each level of managers or employees get the benefits entitled to them as per the employers policies.
    To enable this :
    1. Identify the different benefits each person is entitled to
    2. Create groupings for each category, and assign the privileges
    We can now proceed to create employee groupings starting with the top management. Working down the corporate ladder we have:
    o  MN01 for senior managers who receive the benefit of a company provided House, Computer,  Medical Allowance, Car with a driver and an additional 5% Provident Fund (PF) contribution from the employer.
    o  MN02 for junior managers who receive the benefit of a company provided Medical Allowance, Car and an additional 5% PF contribution from the employer.
    o  EE01 for senior employees who receive the benefit of a company provided Car and Cellular
    Phone.
    o  EE02 for junior employees who receive the benefit of a company provided Cellular Phone only.
    o  EE03 for office boys who receive the benefit of a lunch allowance
    In a similar manner, you can create any number of 'Pay Scale Groupings for Allowance' based on the different benefits you wish to provide for your employees.
    Activities
    3. Enter a four digit alphanumeric value for each pay scale grouping for allowances in the AlGrp field.
    4. Enter a description for the grouping in the Allowance grp desc field and save your entries.
    2) Answer: You can get below answer by clicking the documentation of "Generate Payroll Periods"
    you use the report RPUCTP00 (Generate Payroll Periods) to generate the date specifications for a selected period for the payroll periods that are to be valid in your system. For each period parameter that is assigned to a payroll area, the system requires the following date  specifications:
    o  Start date and end date of each payroll period
    o  Payment date of each payroll period
    When you execute the report RPUCTP00, the system creates these dates according to the data that you  enter in the report's selection screen.
    Example
    You generate the payroll periods for the period parameters monthly for the years 1999 to 2004. The start and end dates of the periods should be the same as the start and end dates of the calendar months. The periods' payment dates should be three days before the end of the period.
    Requirements -
    In the step Check Payroll Area, which is in this section of the Implementation Guide (IMG), you have assigned a period parameter to all the payroll areas.
    Standard settings -
    There are no entries in the standard system.
    Recommendation
    Generate the payroll periods for several years in advance.
    Activities -
    1. In the selection screen of the report, enter the required data and run the report.
    2. Check the date specifications that the system has generated for the payroll periods and the payment dates.
    Further notes -
    You must run the report separately for each combination of period parameter and date modifier that is assigned to a payroll period.
    Bhairavareddy

  • Need to return data from a query in different ways - Please help

    We are using 10g R2
    I have a proc as follows that has a query with over 100 values in the select clause:
    proc one( input param1, input_param2,.... output_cursor )
    as
    begin
    open cursor for
    select ...about 100 values with most of them being calculated
    from table1, view 1, table2, table 3, view 2 ...
    where ....
    and table1.col1 = input param1
    and table1.col2 = input param 2
    and view1.col5 = input param5...
    end;
    I need to return the data that comes from the above query in different formats, columns for a report would be different from columns for screen A and different for screen B. I need only certain columns for a report and different set of columns for another screen. I have wrapper procs that get different input params. From the wrapper procs I intend to call the above proc but would like only selected values.
    How can I accomplish this? Since my main goal is to select different columns for each wrapper I was thinking of insert the data from the above proc into global temp table and selecting whatever columns and order I want from the wrappers.
    What do you think? Any other solutions?
    Thanks
    Edited by: user565033 on Jan 21, 2013 7:50 PM

    You need to clearly separate roles and responsibilities. The PL/SQL code that creates and supplies a cursor handle is server code tasked to supply data. The code that makes the call for server data, is responsible for formatting and rendering that data.
    Thus moving data formatting into the server code needs to be question. Simple example. Cursor does not return invoice date as a date - but formats it into a string using TO_CHAR().
    This works for client1 - as that is the date format expected. However, client2 has different International settings and specifies a different date format. Invoice date, formatted into a string by the server, now renders in the wrong format on client2.
    Server code should not be concerned with rendering and formatting of data send to a client.
    As for the idea to use a global temp table is ..., well to put it nicely, it smells. Badly.
    The single most expensive operation on a database platform is I/O. And now you want to read server data and write it to temporary storage, and the read data from temporary storage to return to the client? What on earth for!? Why purposefully increase the size of the I/O workload? Why decrease performance and undermine scalability?
    Provide a proper abstraction interface to the client. Enable it to specify (as simplistically as possible) what it wants ito data. There are a number of ways to design and implement this in PL/SQL. Simplistic example:
    SQL> create or replace package Employees as
      2 
      3          EMP_FULL_DETAILS        constant integer := 1;
      4          EMP_BASIC_DETAILS       constant integer := 2;
      5 
      6          procedure GetEmpByID(
      7                  cur out sys_refcursor,
      8                  empID in emp.empno%type,
      9                  template in integer default EMP_BASIC_DETAILS
    10          );
    11 
    12          procedure GetEmpByName(
    13                  cur out sys_refcursor,
    14                  empName in emp.ename%type,
    15                  template in integer default EMP_BASIC_DETAILS
    16          );
    17  end;
    18  /
    Package created.
    SQL>
    SQL> create or replace package body Employees as
      2 
      3  type TArray is table of varchar2(32767);
      4 
      5  TemplateList       constant TArray :=
      6          new TArray(
      7                  'EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO ',
      8                  'EMPNO, ENAME, JOB '
      9          );
    10 
    11  procedure GetEmpByID(
    12          cur out sys_refcursor,
    13          empID in emp.empno%type,
    14          template in integer default EMP_BASIC_DETAILS
    15  ) is
    16          sqlSelect       varchar2(32767);
    17  begin
    18          sqlSelect :=
    19                  'select '||TemplateList(template)||
    20                  'from emp where empno = :empID';
    21 
    22          open cur for sqlSelect using empID;
    23  end;
    24 
    25  procedure GetEmpByName(
    26          cur out sys_refcursor,
    27          empName in emp.ename%type,
    28          template in integer default EMP_BASIC_DETAILS
    29  ) is
    30          sqlSelect       varchar2(32767);
    31  begin
    32          sqlSelect :=
    33                  'select '||TemplateList(template)||
    34                  'from emp where ename like :empName';
    35          open cur for sqlSelect using empName;
    36  end;
    37 
    38 
    39  end;
    40  /
    Package body created.
    SQL>
    SQL> var c refcursor
    SQL>
    SQL> exec Employees.GetEmpByID( :c, 7499 );
    PL/SQL procedure successfully completed.
    SQL> print c
         EMPNO ENAME      JOB
          7499 ALLEN      SALESMAN
    SQL>
    SQL> exec Employees.GetEmpByName( :c, 'A%', Employees.EMP_FULL_DETAILS );
    PL/SQL procedure successfully completed.
    SQL> print c
         EMPNO ENAME      JOB               MGR HIREDATE                   SAL       COMM     DEPTNO
          7499 ALLEN      SALESMAN         7698 1981/02/20 00:00:00       1600        300         30
          7876 ADAMS      CLERK            7788 1987/05/23 00:00:00       1100                    20
    SQL>

  • Problem in replication from R/3 for Relationship type BUR011 in BP

    Hi Experts,
    My issue is, when I create a customer in R/3 it should be replicated to CRM which it is doing.We just want only 3-4 responsible persons i.e for relationship type 'BUR011', so we need to replace the employee number which does not exist in CRM for BUR011 relationship and i feel tht it should be done during runtime.
    Any one who can suggest me a BADI or FM to do tht..
    Thanks,
    SA
    Edited by: Saurabh Agrawal on Sep 13, 2008 7:24 AM

    Hi Bob,
    Well,i feel tht badi we can not use it here. Let me make my scenario understand to u.
    I want to make the relationship BUR011.The sales employess is present in R/3 where i am actually making this BP,but tht employess i not available in CRM,How do i make sure tht the employess which is not availble is always shown with any of the available employee, as if this does not happen,the records will not be created in CRM becoz of wrong sales employee.
    I hope i was able to make u understand my issue.
    Some badi must be there to do so.
    Ur inputs will be highly appriciated.
    Thanks,
    SA
    Edited by: Saurabh Agrawal on Sep 15, 2008 2:46 PM

  • Declare and initialize a varray of collection Object and pass it as OUT Par

    Hi ,
    How to declare and initialize a varray of collection Object and pass it as OUT Parameter to a procedure.
    Following is the Object and VARRAY Type 's I have created and trying to pass the EmployeeList varray type variable as an OUT parameter to my stored procedure, but it is not working. I tried different possibilities of declaring and initializing the varray type variable but it did not work. Any help would be appreciated.
    CREATE TYPE Employee IS Object
              employeeId     Number,
              employeeName VARCHAR2(31),
              employeeType     VARCHAR2(20),
    CREATE TYPE EmployeeList IS VARRAY(100) OF Employee;
    /* Procedure execution block */
    declare
    employees EmployeeList;
    begin
    EXECUTE displayEmployeeDetails(100, employees);
    end;
    Thanks in advance,
    Raghu.

    but it is not workingWhat's the definition of not working?
    Error messages are always helpful.
    SQL> CREATE OR REPLACE TYPE Employee IS Object
      2  (
      3  employeeId Number,
      4  employeeName VARCHAR2(31),
      5  employeeType VARCHAR2(30)
      6  );
      7  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE TYPE EmployeeList IS VARRAY(100) OF Employee;
      2  /
    Type created.
    SQL> CREATE OR REPLACE PROCEDURE getEmployeeDetails (
      2    o_employees OUT employeelist
      3  )
      4  AS
      5  BEGIN
      6   o_employees := employeelist();
      7   o_employees.EXTEND;
      8   o_employees(1) := employee(1,'Penry','Mild Mannered Janitor');
      9  END;
    10  /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2   employees employeelist;
      3  begin
      4   getemployeedetails(employees);
      5   for i in 1 .. employees.count
      6   loop
      7    dbms_output.put_line(employees(i).employeeid||' '||
      8                         employees(i).employeename||' '||
      9                         employees(i).employeetype);
    10   end loop;
    11  end;
    12  /
    1 Penry Mild Mannered Janitor
    PL/SQL procedure successfully completed.
    SQL>

  • Varray of Object Type

    Hello,
    I am still very new at PL/SQL so please bare with me if you can. I am trying to learn how to store data from an object in a single varray of objects. My code below is attempting to declare an object type with 3 instance attributes and 3 instance methods of getter and setter method.
    Then i want to create a varray type to store an array of "Employee" object types.
    From here i am trying to use a loop to retrieve the first 10 ename, empno, and sal records from the emp table and store them in the variable array of 10 elements.
    Finally, I tried to use another loop to output the ename, empno, and sal in reverse order.
    My object and my object body was created successfully with no errors.
    The problem starts when I begin the anonymous block that creates the varray, this is where i get an error message at the end.
    At the end of my code is the error message i get. Can anyone suggest to me what I am doing wrong, and/or what I can do to achieve this task.
    SET SERVEROUTPUT ON
    --create object
    CREATE OR REPLACE TYPE Employee AS OBJECT(
      ename_obj VARCHAR2(10),
      empno_obj NUMBER(4),
      sal_obj NUMBER(7,2),
      MEMBER FUNCTION getename RETURN VARCHAR2,
      MEMBER FUNCTION getempno RETURN NUMBER,
      MEMBER FUNCTION getsal RETURN NUMBER);
    --create object body
    CREATE OR REPLACE TYPE BODY Employee AS
      MEMBER FUNCTION getename RETURN VARCHAR2 IS
      BEGIN
       RETURN ename_obj;
      END;
      MEMBER FUNCTION getempno RETURN VARCHAR2 IS
      BEGIN
       RETURN empno_obj;
      END;
      MEMBER FUNCTION getsal RETURN VARCHAR2 IS
      BEGIN
       RETURN sal_obj;
      END;
    END;
    --create varray of object and begin line 1 of ERROR Message--
    1> DECLARE
    2> TYPE tvrEmploy IS VARRAY(10) OF Employee;
    3>  vClient    tvrEmploy;
    4>    iCounter   integer:=1;
    5>   CURSOR client_cursor IS
    6>   SELECT ename, sal
    7>    FROM emp
    8>    WHERE rownum < 11;
    9>  BEGIN
    10>    vClient:=tvrEmploy(null,null,null,null,null,null,null,null,null,null) ;
    11>    FOR i IN client_cursor LOOP
    12>       vClient(iCounter).ename_obj:=i.ename;
    13>      vClient(iCounter).empno_obj:=i.empno;
    14>       vClient(iCounter).sal_obj:=i.sal;
    15>       iCounter:=iCounter+1;
    16>    END LOOP;
    17>    FOR I IN REVERSE 1..10 LOOP
    18>        dbms_output.put_line(to_char(I) ||' '|| vClient(I).ename_obj ||' '|| vClient(I).empno_obj ||' '||
              vClient(I).sal_obj);
    19>    END LOOP;
    20> END ;
    21> /
    --ERROR message below--
    DECLARE
    ERROR at line 1:
    ORA-06530: Reference to uninitialized composite
    ORA-06512: at line 12
    Thank you again for your time and patience.
    -Todd

    Hi,
    The error occurs on line 12, the first time through the loop, when you try to execute:
    vClient(iCounter).ename_obj:=i.ename;
    At that point, vClient (1) is not an Employee object; it's NULL.
    Try this:
    DECLARE
        TYPE tvrEmploy IS VARRAY(10) OF Employee;
        vClient    tvrEmploy;
        iCounter   integer := 1;
        CURSOR client_cursor IS
            SELECT  ename, sal
            ,       empno                                                 -- ADDED
       FROM    scott.emp
       WHERE   rownum < 11;
    BEGIN
        vClient := tvrEmploy (null,null,null,null,null,null,null,null,null,null) ;  
        FOR i IN client_cursor LOOP
            vClient (iCounter) := Employee (i.ename, i.empno, i.sal);     -- CHANGED
            iCounter := iCounter + 1;
       END LOOP;
    FOR I IN REVERSE 1..10 LOOP
           dbms_output.put_line(to_char(I) ||' '|| vClient(I).ename_obj ||' '|| vClient(I).empno_obj ||' '||
          vClient(I).sal_obj);
       END LOOP;
    END ;

  • NESTED Tables for Sub-types when creating table for Super-type

    If I create the following types, as an example:
    Person with subtypes: Employee and Customer
    Appointment
    CREATE OR REPLACE TYPE Person_OT AS OBJECT (
    person#                         NUMBER,
    personSurname                    VARCHAR2(50),
    personForenames               VARCHAR2(50),
    personDateOfBirth               DATE,
    personAddress                    Address_OT,
    ) NOT FINAL ;
    CREATE OR REPLACE TYPE Employee UNDER Person_OT (
    empSalary               NUMBER,
    empNoSales          NUMBER,
    makes               Appointment_List_OT
    ) FINAL ;
    CREATE OR REPLACE TYPE Appointment_OT AS OBJECT (
    some attributes
    CREATE OR REPLACE TYPE Appointment_List_OT AS TABLE OF REF Appointment_OT ;
    When creating the table to hold objects of Person type, how can the requisite nested table for representing 'makes' be declared? The below approach is not correct, however the table will not compile without naming the nested tables.
    CREATE TABLE Person_TBL OF Person_OT (
    Person#     PRIMARY KEY)
    NESTED TABLE makes STORE AS Appointment_List_NTBL;
    Advice very much appreciated!

    CREATE TABLE Person_TBL OF Person_OT(
    Person# PRIMARY KEY)
    NESTED TABLE TREAT(SYS_NC_ROWINFO$ AS EMPLOYEE).MAKES STORE AS Appointment_List_NTBL
    Table created.
    SQL> select * from user_nested_tables
      2  /
    TABLE_NAME                     TABLE_TYPE_OWNER
    TABLE_TYPE_NAME                PARENT_TABLE_NAME
    PARENT_TABLE_COLUMN
    STORAGE_SPEC                   RETURN_TYPE          ELEMENT_SUBSTITUTABLE
    APPOINTMENT_LIST_NTBL          SCOTT
    APPOINTMENT_LIST_OT            PERSON_TBL
    TREAT(SYS_NC_ROWINFO$ AS "SCOTT"."EMPLOYEE")."MAKES"
                           DEFAULT                VALUE                         N
    SQL>  SY.

  • TTClasses interface for PL/SQL procedure and fetching its results

    Hi experts,
    I am using TimesTen Release 11.2.1.3.0;
    I created a simple PL/SQL procedure as follows in timesten-
    Command> create or replace procedure employee(eno in emp.empno%type) is
    > e_name emp.ename%type;
    > begin
    > select ename into e_name from emp where emp.empno = eno;
    > dbms_output.put_line(e_name);
    > end;
    > /
    And then I call it through TTClasses as
    TTCmd cmd, compilecmd;
    compilecmd.Prepare(conn,"alter procedure employee compile;",status);
    cmd.Prepare(conn,"begin employee(1020); end;",status);
    cmd.Execute(..);
    cmd.FetchNext(..);
    Here fetchNext is returning an error -
    [TimesTen][TimesTen 11.2.1.3.0 ODBC Driver]Invalid cursor state
    *** ODBC Error/Warning = 24000, TimesTen Error/Warning = 0
    *** Unable to fetch row for statement: <begin employee(1020); end;>.terminate called after throwing an instance of 'TTError'
    Aborted
    How can I run PL/SQL procedures/functions on TimesTen through TTClasses interface?
    Any help or input would be of great value.
    Thanks

    The issue here is nothing to do with TTClasses. Your PL/SQL procedure executes a SELECT statement (that returns just one row) using an implicit cursor within the PL/SQL procedure and retrieves the value of the ename column into the PL/SQL variable. However it does not them do anything with that value such as pass it back to the caller...
    Similarly, the TTClasses code executes a statement that it is expecting to create an ODBC level cursor 9which thsi PL/SQL invocation will not of course) and it is then trying to fetch from a cursor that does not exist.
    I would recommend that you take a look at the TimesTen PL/SQL documentation (Oracle® TimesTen In-Memory Database PL/SQL Developer's Guide Release 11.2.1) and refer to the section on IN, OUT and IN/OUT parameters. This will show you how you can use OUT parameters to return values to the caller. This technique works fine for ODBC, JDBC and OCi programs but does not sadly currently work with TTClasses. TTClasses has not yet been enhanced to support OUT and INOUT parameters. Of course as you have the source code for TTClasses you could make the necessary modifications yourself.
    I will open a bug requesting that TTClasses support OUT and INOUT parameters but in the meantime if you need this kind of capability you will need to either modify TTClasses yourself or switch to using a different API.
    Chris

Maybe you are looking for

  • Can't get rid of a time event on iCal; it's there on everyday

    Made some schedules for the month but when I go to print, there's this "8:00PM" time on everyday. I don't know where that came from and I can't figure out how to eliminate it. It also shows up on a NEW calendar too! (It shows only when printing in al

  • Wireless Ant. Late 2009 cable end piece broken - where to buy?

    My Mac Mini 2.26 Intel Core 2 Duo Late 2009 wireless antenna cable came loose.  I've removed the AirPort/Bluetooth board from inside and noticed that the end connector that snaps onto the board for the large antenna (Rt side I think) won't stay.  Rem

  • Clustered Oracle 9i AS and OC4J Problem

    Hi, I am working with two Oracle 9i AS (9.0.2.0.1), serverA and serverB, in a clustered environment. I have published a servlet to the cluster under the URL of /MyApp and the main servlet is MyServlet. I have noticed that when I go to either URL: htt

  • Organisational determination from two sources

    Hi all, When creating quotations we need the following information available: Organisational Unit Sales org Distribution channel Division Sales Office Sales Group Most of this data is maintained on our customer masters – except for Organisational Uni

  • Flash builder burrito

    hello I'm are using the flash builder burrito to make a few test's for android aplications. So my questions are When the final release for the burrito whe will be able to buid  aplications without adobe air requeriment? I ask that because on samples