Is possible to see another object types in Org Cart?
Hello all,
Is possible to see another object types in Org Cart?
Here we have a OTYPE = 'OO'.
I Created 2 new evaluation path with my new OTYPE.
I changed views in V_TWPC_V.
Views changed: ZVWO2O and ZVWO2P
New paths created based on: ZNAKO2OS and ZNAK_O2P
But i not see the 'OO' OTYPE in OrgChart.
Is this the right way for it?
Thanks.
Hi Luke, Thanks again.
The new Evaluation Path was defined by the OM Consultant like this:
V_TWPC_V: ZVWO2O -> EvalPath:
5 OO B 400 Is parent of * O
10 O B 002 Is line supervisor of * O
20 O B 003 Incorporates * S
V_TWPC_V: ZVWO2P -> EvalPath:
5 O A 400 Is child of * OO
10 O A 002 Reports (line) to * O
20 O B 003 Incorporates * S
I don't know what i have to do in SAP side and Nakisa Side.
Thanks for help.
Similar Messages
-
Another object type for mass maintenance
Hi,
How can I add another object type from the dropdown list in tcode MASS?Hi,
As per my undestanding it is not possible to add another object type in to drop down list in MASS.
Sap has already given all possible object type.
Can you please tell us what you wants to add..? -
Best way to do a Object which holds a collection of another object type.
I'm writing a caching object to store another object. The cache is only valid for a session, so I want a store the data in a nested table.
I have try to simplify my example down to its core.
How do I make this work and what is the best to index the index the items stored for fastest retrieval.
CREATE OR REPLACE TYPE ty_item AS OBJECT (
id_object VARCHAR2 (18),
ORDER MEMBER FUNCTION compare (other ty_item)
RETURN INTEGER
CREATE OR REPLACE TYPE BODY ty_item
AS
ORDER MEMBER FUNCTION compare (other ty_item)
RETURN INTEGER
IS
BEGIN
IF SELF.id_object < other.id_object
THEN
RETURN -1;
ELSIF SELF.id_object > other.id_object
THEN
RETURN 1;
ELSE
RETURN 0;
END IF;
END;
END;
CREATE OR REPLACE TYPE ty_item_store AS TABLE OF ty_item;
CREATE OR REPLACE TYPE ty_item_holder AS OBJECT (
CACHE ty_item_store,
MEMBER FUNCTION get (p_id_object IN VARCHAR2)
RETURN REF ty_item,
MEMBER FUNCTION find (p_id_object IN VARCHAR2)
RETURN REF ty_item,
MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
RETURN REF ty_item
CREATE OR REPLACE TYPE BODY ty_item_holder
AS
MEMBER FUNCTION get (p_id_object IN VARCHAR2)
RETURN REF ty_item
IS
rtn REF ty_item;
BEGIN
rtn := find (p_id_object);
IF rtn IS NULL
THEN
rtn := ADD (p_id_object);
END IF;
RETURN rtn;
END;
MEMBER FUNCTION find (p_id_object IN VARCHAR2)
RETURN REF ty_item
IS
rtn ty_item;
BEGIN
SELECT VALUE (ch)
INTO rtn
FROM CACHE ch
WHERE ch.id_object = p_id_object;
RETURN rtn;
END;
MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
RETURN REF ty_item
IS
item ty_item;
BEGIN
item := ty_item (p_id_object);
INSERT INTO CACHE
VALUES (item);
END;
END;
/Best way to do a Object which holds a collection of another object type. The best place for data in a database is.. no real surprise.. in tables. If that data is temporary of nature, global temporary tables cater for that.
Storing/caching data using PL/SQL requires very expensive private process memory (PGA) from the server. This does not scale.
I'm writing a caching object to store another object. Irrespective of how l33t your haxor skillz are, you will not be able to code as a sophisticated, performant and scalable PL/SQL data cache, as what already exists (as the database buffer cache) in Oracle.
The cache is only valid for a session, so I want a store the data in a nested table.Not sure how you take one (session local data) to mean the other (oh, let's use a nested table).
Session local data can be done using PL/SQL static variables. Can be done using name-value pairs residing in a context (Oracle namespace). Can be done using a global temporary table.
The choice is dependent on the requirements that need to be addressed. However, the term +"caching+" has very specific connotations that say that a global temporary table is likely the best suited candidate. -
Is it Possible to create custom Object type in configuration Tab
Hi ,
We have object type for table in Development Tab in SOLAR02 , is it possible to create a custom object type to represent the table object type in Configuration Tab.
Please let me know the steps , if it is possible.
Best Regards,
SaravanaHi
You answer for you problem exists and its a common problem but you need to go for this development as mentioned below
/people/andreas.diebold/blog/2007/02/13/extend-sap-solution-manager-to-manage-new-object-types
We did long time back
Hope ur problm and doubt is resolved now
Regards
Prakhar -
FIM Synchronization Service - How to provsion a group to another object type
Hi,
i'm new to fim and use just the fim2010 synchronization engine with some rules extensions.
I have 2 ActiveDirectories and want to Provision a Group(used as Distribution list) from ActiveDirectory A as a contact object in ActiveDirectory B with the SMTP address of the Group as the targetaddress of the contact.
Can you give me a hint how to accomplish that?
Should i use the ShouldProjectToMV() Method in the rulesextension from the AD Connector of Domain A and out the Group as a Special mvtype? How do i join (what anchor to use) the Group to Domain B if i also sync normal contact objects as well?
Thanks you for your help!If you want to decide that object is deleted you need to implement your de-provisioning logic.
De-provisioning logic should be implemented in Provision method as well. You need there something like:
if(I_dont_have_contact_for_group)
Provison_new_one
} else
if(do_I_Have_email_on_my_group_in_mv)
No -> delete_contact_in_other_forest
Depends on the target agent scope, if you have there other object types than contacts, you may want to implement Deprovision() method in agent extension to decide that contact should be deleted but other type of objects not.
Tomek Onyszko, memberOf Predica FIM Team (http://www.predica.pl), IdAM knowledge provider @ http://blog.predica.pl -
How to use an Object Type from Another Database
Hi,
I have this requirement that I need to call a stored procedure from another DB (db1) but I am having a problem with this because one of the input parameters uses an object type defined in that DB (db1). Is it possible to use an object type from another database? TIA!Sven W. wrote:
At least for queries, but I think also for procedure arguments..You (both) probably missed my post?
We can't use a remote type as procedure argument, even with the same OID.
It's OK for query on a remote object column though :
SQL> conn remote_user@remote_db
Entrez le mot de passe :
Connecté.
SQL> create type mytype oid '19A57209ECB73F91E03400400B40BBE3'
2 as object (att1 number);
3 /
Type créé.
SQL> create table mytable (col1 mytype);
Table créée.
SQL> insert into mytable values (mytype(777));
1 ligne créée.
SQL> create or replace function myfunc (p_in in mytype) return number
2 is
3 begin
4 return p_in.att1;
5 end;
6 /
Fonction créée.
SQL> disconn
Déconnecté de Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
SQL>
SQL>
SQL>
SQL>
SQL> conn my_user@local_db
Entrez le mot de passe :
Connecté.
SQL> create type mytype oid '19A57209ECB73F91E03400400B40BBE3'
2 as object (att1 number);
3 /
Type créé.
SQL> select * from mytable@test_dbl;
COL1(ATT1)
MYTYPE(777)
SQL> declare
2 res number;
3 begin
4 res := myfunc@test_dbl(mytype@test_dbl(777));
5 end;
6 /
res := myfunc@test_dbl(mytype@test_dbl(777));
ERREUR à la ligne 4 :
ORA-06550: Ligne 4, colonne 26 :
PLS-00331: référence non valide à REMOTE_USER.MYTYPE@TEST_DBL.WORLD
ORA-06550: Ligne 4, colonne 2 :
PL/SQL: Statement ignored
SQL> declare
2 res number;
3 begin
4 res := myfunc@test_dbl(mytype(777));
5 end;
6 /
res := myfunc@test_dbl(mytype(777));
ERREUR à la ligne 4 :
ORA-06550: Ligne 4, colonne 9 :
PLS-00306: numéro ou types d'arguments erronés dans appel à 'MYFUNC'
ORA-06550: Ligne 4, colonne 2 :
PL/SQL: Statement ignored -
Is it possible to get object type name with help of key field?
can any one tell me is it really possible to get the object type name if i have only key field,
are there any tables which store the object type names & keyfield. or there are any functionmodue which gives object type name by entering keyfield.Hello,
If the PO has workflows associated with it, there is a table SWIWIOBJCT which stores details of the workitem, object key , object type details.
If you input the object key to this table ( For ex: PO number in this case) , it will give you the corresponding object type for the object key for Workitem type F.
Thanks,
Sowmya Arni -
[ORA-22905] How to read a field of an object inside another object?
Greetings,
I'm a student and in a current exercise we have to work with the Object Oriented Programming functionality of Oracle.
In the database we defined an object type, which is then considered inside another object type. The thing is, that I cannot read an attribute of the inner object. I've read tens of websites but none of them have helped so far. I've read the PL/SQL User Guide and Reference document also.
The inner object is defined as follows:
create type address_t as object (
street varchar(50),
city varchar(50),
pcode number(5,0)
);The outer object has an object of type address_t inside it:
CREATE TYPE professor_t as OBJECT(
code number(2),
p_name varchar(50),
address address_t,
);Also, there is a table named PROFESSORS that stores objects of type professor_t
First of all, with a simple testing SQL statement I can see the data inside the object professor, even the object address_t:
SELECT * FROM PROFESSORS WHERE CODE = 13;returns the following:
CODE | NAME | ADDRESS
13 | JOHN | MYSCHEMA.ADDRESS_T('FIFTH AVENUE','NEW YORK',12345)The thing is, I want to read the field street of the object address (of type address_t) inside professor (of type professor_t).
I could see everywhere that the way to go is to use point notation, and I've seen examples about the command VALUE, but none of the following SQL statements work:
SELECT VALUE(ADDRESS.STREET) FROM(
SELECT CODE,P_NAME,ADDRESS FROM PROFESSORS WHERE CODE = 13);
SELECT ADDRESS.STREET FROM PROFESSORS WHERE CODE = 13;
SELECT PROFESSOR.ADDRESS.STREET FROM PROFESSORS WHERE CODE = 13;I'd really appreciate if someone could show me how to access the values of the field of the object inside an object.
Thanks in advance,
- David
Edited by: 858176 on May 11, 2011 6:53 PM FormattingGreat, this worked so far.
It is curious that you wrote 'profesores' but that is the actual name for the variable. I translated everything to english in order to post it here.
So, the statement is:
select value(t).DIRECCION.CIUDAD from profesores t;And It returned:
VALUE(T).DIRECCION.CIUDAD
Valencia
New York
TijuanaAnd, applying the VALUE command to the statement:
select codigo,
nombre,
value(t).DIRECCION.CALLE,
value(t).DIRECCION.CIUDAD,
value(t).DIRECCION.CP
from profesores T WHERE T.CODIGO = 13;Resulting in:
CODIGO NOMBRE VALUE(T).DIRECCION.CALLE VALUE(T).DIRECCION.CIUDAD VALUE(T).DIRECCION.CP
13 Pepito Pérez Calle de los Rosales 0 Valencia 46023 That is EXACTLY what I needed.
Thanks Thomas, It was really helpful !
Edited by: 858176 on May 11, 2011 7:46 PM -
Expression or Function as field in Object Type
I am trying to use an expression or call a function as a return value for a field in an OBJECT TYPE.
Here's the obj def:
CREATE OR REPLACE TYPE OUTAGE_REPEAT_CALL_T2 AS OBJECT (
INITCALL_TS DATE,
LASTCALL_TS DATE,
CALL_SRC CHAR(8),
ELAPSED_TIME NUMBER,
REP_ID CHAR(8),
CALL_CNT NUMBER(3)
The ELAPSED_TIME field should be the differnece in minutes from the LASTCALL_TS and SYSDATE...
I'm not sure how to select into this OBJECT to get my result...
Sample table and data:
SQL> desc oms.outage_repeat_call
Name Null? Type
ACCT NOT NULL NUMBER(10)
INITCALL_TS NOT NULL DATE
LASTCALL_TS NOT NULL DATE
CALL_CNT NOT NULL NUMBER(3)
CALL_SRC NOT NULL CHAR(8)
REP_ID NOT NULL CHAR(8)
The ELAPSED_TIME is not part of the underlying table..
sample data from tbl:
ACCT INITCALL_ LASTCALL_ CALL_CNT CALL_SRC REP_ID
123456 02-JAN-02 02-JAN-02 1 CBIS MJB2302
I want to have this as a result:
INITCALL_ LASTCALL_ CALL_SRC ELAPSED_TIME REP_ID CALL_CNT
02-JAN-02 02-JAN-02 CBIS 9997 MJB2302 1
But by doing a select from the OBJECT TYPE:
i.e.
SELECT OUTAGE_REPEAT_CALL_T2( ORPC.INITCALL_TS,
ORPC.LASTCALL_TS,
ORPC.CALL_SRC,
'expression or func' AS ELAPSED_TIME,
ORPC.REP_ID,
ORPC.CALL_CNT)
FROM
OMS.OUTAGE_REPEAT_CALL ORPC
WHERE
ORPC.ACCT=123456;
I am using DBMS_XMLQUERY to eventually get this:
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<INITCALL_TS>1/2/2002 12:45:0</INITCALL_TS>
<LASTCALL_TS>1/2/2002 12:45:0</LASTCALL_TS>
<CALL_SRC>CBIS </CALL_SRC>
<ELAPSED_TIME>10009</ELAPSED_TIME>
<REP_ID>MJB2302 </REP_ID>
<CALL_CNT>1</CALL_CNT>
</ROW>
</ROWSET>
Here's the real query... this OBJECT TYPE is embedded as an attribute of another OBJECT TYPE def.
sQuery := 'SELECT '
|| iNumAcct || ' AS NUMACCT,
SITE_T(S.ACCT,
S.SITE,
S.PHONE,
S.CUST_NM,
S.MED_IND,
S.MAC_IND,
S.HPP_IND,
S.STREET,
S.CITY,
S.STATE,
S.ZIP,
S.EUC,
S.STATUS,
S.AGR_TYP,
S.PRICE_SCHED,
S.OL_IND,
S.TRANS_IND,
S.CIRCUIT,
S.SUBSTATION,
S.OP_CENTER,
OUTAGE_STATUS_T(O.OUT_ID,
O.OUT_STATUS,
O.PO_DEV,
O.DEV_TYP,
O.CREW,
O.ETOR_TS,
O.TRBL_CD,
O.FIRST_RPT_TS,
O.END_TS,
O.CUST_CNT,
O.O_CALL_CNT,
OUTAGE_REPEAT_CALL_T(ORC.INITCALL_TS,
ORC.LASTCALL_TS,
ORC.CALL_SRC,
ORC.REP_ID,
ORC.CALL_CNT),
LIGHT_REPEAT_CALL_T(LRC.INITCALL_TS,
LRC.LASTCALL_TS,
LRC.CALL_SRC,
LRC.REP_ID,
LRC.CALL_CNT)
) AS OUTCUST
FROM
OMS.SITE S,
OMS.OUTAGE O,
OMS.OUTAGE_REPEAT_CALL ORC,
OMS.LIGHT_REPEAT_CALL LRC,
OMS.OUTAGE_TRANSFORMER OT
WHERE
S.ACCT = ' || pi_acctNum || ' AND
S.TRNFRMR_ID = OT.TRNFRMR_ID(+) AND
OT.OUT_ID = O.OUT_ID(+) AND
S.ACCT = ORC.ACCT(+) AND
S.ACCT = LRC.ACCT(+)';
I know this may sound confusing...but I apprecitate anyone's/everyone's suggestions!
MJB
DUKEPOWER CO.yes... here's the function that I also used as the expression...
FUNCTION uf_minutesDiff(pi_beginDte IN VARCHAR2, pi_endDte IN VARCHAR2) RETURN NUMBER
|| FUNC name: uf_minutesDiff
|| purpose: this function accepts A BEGINNING DATE AND ENDING DATE AND
|| RETURNS THE DIFFERENCE IN MINUTES
||
|| date: 12/19/2001
|| author: Mark J Brooks
||
|| history:
||
||
IS
iMinutes NUMBER;
/* LINE 280 */
BEGIN
select (to_date(pi_endDte,'DD-MON-YYYY:HH24:MI') -
to_date(pi_beginDte,'DD-MON-YYYY:HH24:MI'))*24*60
INTO iMinutes from dual;
IF iMinutes = 0
THEN
iMinutes := 1;
END IF;
RETURN iMinutes;
END uf_minutesDiff;
I also just used:
SQL> SELECT OUTAGE_REPEAT_CALL_T2( ORPC.INITCALL_TS,
2 ORPC.LASTCALL_TS,
3 ORPC.CALL_SRC,
4 (ORPC.LASTCALL_TS - SYSDATE) AS ELAPSED_TIME,
5 ORPC.REP_ID,
6 ORPC.CALL_CNT)
7 FROM
8 OMS.OUTAGE_REPEAT_CALL ORPC
9 WHERE
10 ORPC.ACCT=123456;
(ORPC.LASTCALL_TS - SYSDATE) AS ELAPSED_TIME,
ERROR at line 4:
ORA-00907: missing right parenthesis
with and without the parens
tx -
Using Multiple Object Types in a FIM Managed Criteria Distribution Group
Is it possible to use multiple object types in a criteria based distribution group. So when building your criteria filter, "Select (object type) that match (all/any) of the following condiftions". Currently you can only choose 1 object type and
I want to be able to choose object type "user" and a custom object type I create for my contactsYou can create main condition as "any" and later add two sub-conditions - one that object in set "All People" and other sub-condition that object in set "All Contacts" or "All Groups".
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer. -
Create "Object" Type based on columns of a table
Hi Experts
is it possible to create an Object Type based on columns of a table?
for example the syntax for creation of type is
CREATE OR REPLACE TYPE temp_t
AS OBJECT (ID number, code number)
can we create a type that is based on columns of an existing table? so that we donot have to write down all the column names in each type as i have to create types based on 100 and above tables :-s
Please help me out here!
Best RegardsYou cannot do that Zia, check below code:
SQL> create or replace type temp_t as object(object_name all_objects.object_name%TYPE);
2 /
Warning: Type created with compilation errors.
SQL> sho err
Errors for TYPE TEMP_T:
LINE/COL ERROR
0/0 PL/SQL: Compilation unit analysis terminated
1/35 PLS-00201: identifier 'ALL_OBJECTS.OBJECT_NAME' must be declared -
XDB Native Web Services - Collection of object types
Hello,
my DB 11g (11.1.0.6.0) is enabled to use XDB Native Web Services, everything works as it should. I already use it successfully to publish a web service with object types as OUT parameter. They are created as complex types in the XML response as described here: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm#CHDGBFID]
But what I need is a collection of these object types, e.g.
I have a type FLIGHT with some information elements (departure, arrival, date, time, price) and I have a web service function GET_AVAILABILITY with parameters departure, arrival and date. What I want is to return a collection of FLIGHT objects, it could be none, one or many flights for a request.
For the moment I create another object type which contains a fix number of FLIGHT objects to work around the collection issue:
create flight_tab_typ as object (
fl1 flight_typ
,fl2 flight_typ
,fl3 flight_typ
I tried to build a PL/SQL table of object type and also a VARRAY of object type but for both the WSDL of the web service cannot be build up correctly in the web browser. For me it seems that this is not supported by the Native Web Services.
I know I can build up my own XMLTYPE with XML structure as OUT parameter but to use object types is much easier and it builds up the XML structure automatically.
Does anybody know how to use collections (VARRAY or PL/SQL Tables) with the Native XML DB Web Services?
Thanks,
AndreasHi flea,
I use complex types with XDB native webservices. Here is an example. Using people/groups objects. I haven't compiled this so there may be some typos etc, but it should give you the idea.
Beware!I have had problems with the created WSDL file in that it doesn't always include the namespace from all types. In many client packages ( JDevloper , SOAPUI etc) this causes a wsdl import failure.
You can add the missing namespace by hand a load the WSDL file locally and then it should work. I haven't raised an SR with Oracle about this yet.
Assume you create the following under SCoTT schema on machine host.com on port 8080.
The webservice[WSDL] will be available from
http://host.com:8080/orawsv/SCOTT/WEBSERVCIES/GET_GROUP[?wsdl]
For other peoples sanity it took me a little while to realise the WSDL url is case specific. E.g. the schema, package and functions have to be UPPER case.
create table people_groups_tab (group_name varchar2(40 char),first_name varchar2(40 char),last_name varchar2(40 char))
insert into people_groups_tab values ('FINANCE','Joe','Bloggs')
insert into people_groups_tab values ('FINANCE','Bob','Jones')
insert into people_groups_tab values ('IT','Alan','Andrews')
create or replace type person_obj
as object
first_name people_groups_tab.first_name%type
,last_name people_groups_tab.last_name%type
create or replace type people_obj
as table of person_obj
create or replace type people_groups_obj
as object
group_name varchar2(40 char)
people people_obj
create or replace package webservices
as
function get_group
p_group_name varchar2
) return people_groups_obj;
end;
create or replace package body webservices
as
function get_group
p_group_name varchar2
) return people_groups_obj
as
l_group people_groups_obj;
l_people people_obj;
begin
select person_obj
first_name
,last_name
bulk collect into l_people
from people_groups_tab
where group_name p_group_name;
l_group := people_groups_obj(p_group_name,l_people);
return l_group;
end;
end;
/ -
Naming Standard - Object Types
Is there a way to extend the options under 'Naming Standard:' to include object types? As well as object type attributes, attributes that are created when a REF link is created or when an attribute's datatype is another object type. I would like to change the template format that is used when the default names are used when creating these items.
Thanks,
ScottKHi Scott,
we have such request logged.
Philip -
How to link organizational unit to org. Object type ?
Hello,
i want to link an organizational unit to the object type T024L, Does anyone know how i can do this ?
Thanks a lotHi,
You need to create assignment between Org object type and org unit. Use txn <b>PFOM - Create Assignments</b> for the same.
You can then try the std rule 30100012 also.
Hope this helps.
Regds,
Akshay Bhagwat
PS: Some points would be nice if it helps -
Why Cost center is an External Object type?
Hello SAP Minds,
How does Costcenter and Person are classified as External Object types..?
What is the difference between External Object types and Internal Object types. I mean wht is the basic difference between them?
As i know Internal Object types are Org. Unit, Postion and Job,.
As Costcenter and Person are also part of Personal Planning why it became as External objetct types..
Experts please guide me.Hi Vamsi,
While in personnel administration the person represents merely a type
of information object, in organizational management different object
types are processed. These are, for instance:
Organizational unit
Position
Job
Task
In addition external object types are also addressed. These represent
objects that do not belong to organizational management and are not
saved in its object structure, but that are quite important for organizational
management. These are, in particular:
Person from personnel administration
Applicants from recruiting
Cost center from cost accounting.
inputs given by swati
Hope it helps u.
avi
Maybe you are looking for
-
How to disable elasticity property of list view in Windows Phone 8.1..?
Hi, I am using the ListView control of Windows Phone 8.1. I am using data binding to populate the list items. It works fine. But I am able to pull the list down from the top( ie..When we pull down the list, fist item comes down and the background co
-
Mac Mini w/ Snow Leopard hibernating when it shouldn't
Hi, two Snow Leopard bugs to report: 1. I've got a Mac Mini (from ~early 08) which I've recently upgraded to Snow Leopard. I've got the Energy Saver control panel set to never allow the machine to go to sleep or to sleep the display. However, I hear
-
Dear All How to reverse /cancel ARE1 Document, I am getting fallowing error Duty payable cannot be less than 77,088.00 WHt is the next steps pls give some tips Thx Gowrish
-
I am trying to transfer songs to my Ipod and I keep getting an error -69. then when I delete the song that is making this happen it will load okay but then gets to another song and I get another -69 error. I can delete this file and continue again bu
-
Hello guys, I know this is probably not the right place to post questions like this, but I really have no idea where CATS belongs to, so... Anyway, I have little experinece using SAP and knows absolutely nothing about CATS besides what it stands for,