Creating Relationships between views, causes writable mapping error
Hi
I'm using the DBAdapter in ESB (10.1.3.3), which uses Toplink and I am trying to create a relationship between a table and a view. None of the objects have any keys or indexes, so I am creating a relationship directly.
When I have created the adapter service and compile the ESB, I get the following error:
Descriptor EmployeePhonesV -> The following primary key fields are unmapped: STAFF_NUMBER
Descriptor EmployeePhonesV -> The following primary key fields have no writable mappings: STAFF_NUMBER
When I imported the view, I had to tell it that the primary key was a composite as there is no real unique key field.
Is this a known problem that I can't create relationships between views???
Any help most appreciated.
Chris
Hello Chris,
The exception is stating there isn't a mapping capable of setting the STAFF_NUMBER field. How do you have this field mapped? Generally there should be a writable either direct-to-field mapping or OnetoOne mapping using this field though other types of mappings will work.
Best Regards,
Chris Delahunt
Similar Messages
-
How to create a help view for a customized error message
Hi all,
Can you guide me how to create a help view for a customized error message, we need to put some suggestions in it so that user can can resolve this issue with this guide. ( the short text is too short to describe all situations via TC:SE91)
Thanks very much!
Bruce, WenHi Bruce,
Could you brief your concerns again.
Why don't you maintain long text in message class for long description.
Regards,
Ranjith N -
How to create relationship between two records using MDM Java APIs
Hi,
I am trying to create relationship between two records using Java Apis. Please guide me in doing this.
Regards,
NirajHi Niraj,
There is ModifyRelationshipsCommand:
http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/data/commands/ModifyRelationshipsCommand.html
Retrieve Relationship command:
http://help.sap.com/javadocs/MDM/current/com/sap/mdm/schema/commands/GetRelationshipListCommand.html
Also, please refer similar thread, MDM Java API and relationships.
Hope it helps..
Regards,
Mandeep Saini -
What is rfc of creating relationship between ibase and partner?
I need bapi or rfc for assign a partner to ibase.
create relationship between ibase and parten.
pls.Hi
check this link
Re: BAPI for creating IBASE structure
Regards
Pavan -
CRM - Bapi for creating relationship between BPs with sales area data
Hi
I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
Example - I would like to create relationship type CRMH03.
Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
Does anybody know such a bapi?
Regards
RadekHey Radek,
I am actually looking for the same functionality. Were you able to find a solution although no one replied to your question in this thread? If so, it would be very helpful for me to know. Maybe you have to combine more BAPIs in order to add the organization information to the relationship. But I have no idea how.
Best Regards
Mirko -
How to create relationShip between two resources??
Hi,
Is there any manual process on workbench to create relationShip between two resources like repositoryClient.createRelationship() API does.
Regards
SunilHi Niraj,
There is ModifyRelationshipsCommand:
http://help.sap.com/javadocs/MDM/SP06/com/sap/mdm/data/commands/ModifyRelationshipsCommand.html
Retrieve Relationship command:
http://help.sap.com/javadocs/MDM/current/com/sap/mdm/schema/commands/GetRelationshipListCommand.html
Also, please refer similar thread, MDM Java API and relationships.
Hope it helps..
Regards,
Mandeep Saini -
Cannot create relationship between 2 BAPI based MBO
Hello,
I have 2 MBO-s based on 2 BAPI (FM) data sources. Both accept BP Number as a parameter. I want to create a relationship between them. However when I try (map the BP Number parameters) I get the following error:
"Relationship has two mobile business objects with independent definition in the online cache group, which is not allowed".
Both MBO belong to the same online cache group.
I find the message a bit cryptic. Does anyone knows what it means? Any ideas how to solve the issue?
Thank you!Hi Tzanko,
Maybe in online as cache group policies, relationship is not available.
1) change cache group policies other than online, such as DCN, OnDemand or Scheduled
2) or use no relationship but load parameter, in this case you give the same parameter to Two mbo.
I tried the following condition and got the same phenomenon.
SUP 2.0.1
MBO JDBC Customer-Sales_order (whichi is sampledb)
Customer-Sales_order (one to many relation)
Thanks, -
Can you create relationship between Sales Order and Functional Location
I am working on a requirement for customer service. We are using Functional Location for customer facilities. We would like to relate a functional location to a sales order. Purpose is that we want to relate purchase of items to the functional location.
We can see that you can set technical object on a line by line basis, but you cannot relate a functional location. Does anyone know if this is possible with out of the box configuration? Or would I need to apply a user exit.
Thanks,
Tony RomainHi,
I don't think we can link a functional location to a sales order in standard sap.
Prase -
Views in create relationship screen
Hello !
I am trying to create a partnerlink that fetches data from SQL Server Table and view. Now the list comes for both and I select them then I define the primary key for the view.
When I try to create the relationship between both. It comes parent table and child table. in both lists the view is not coming.
is relations is restricted to tables or there is a way I can view it and create relation with it
Thanks,
BaraaHi
May I know which version of bpel process manager you are using.
It is not possible to create relationship over views in the 10.1.2.
You can try the same with Oracle BPEL process Manager 10.1.3
HTH!!! -
Recieving ORA-01722 invalid number error while creating a materialized view
Hi,
I am receiving a ORA-01722 invalid number error while creating a materialized view. when run the select statement of the view i don't get any error, but when i use the same select statement to create a materialized view i receive this error. Could any please help in resolving this error. Here is the code i am using to create a materialized view.
CREATE MATERIALIZED VIEW MV_EBS_CH_CLOSED
REFRESH FORCE ON DEMAND
AS
SELECT DISTINCT kr.request_id, org.org_unit_name,
ebs_ch_ticket_type (kr.request_id) ticket_type,
DECODE
(kr.status_code,
'CLOSED_SUCCESS', kr.last_update_date,
'IN_PROGRESS', (SELECT MAX (start_time)
FROM ebs_ch_datastore ecd1
WHERE kr.request_id = ecd1.request_id
AND workflow_step_name =
'Final BA Review and Deployment Exit Criteria')
) closed_date,
substr(krhd.visible_parameter12,1,10) siebel_start_date,
kr.creation_date itg_start_date
FROM kcrt_requests kr,
kcrt_request_types krt,
kcrt_req_header_details krhd, kcrt_request_details krd1,
(SELECT koum.user_id user_id,
DECODE (koup.org_unit_name,
'IT Implementations', 'CHS - Service Management BA',
koup.org_unit_name
) org_unit_name
FROM krsc_org_unit_members koum, krsc_org_units koup
WHERE 1 = 1
AND 'Y' = koup.enabled_flag
AND koum.org_unit_id = koup.org_unit_id
AND EXISTS (
SELECT 'X'
FROM krsc_org_units kouc
WHERE koup.org_unit_id = kouc.org_unit_id
START WITH kouc.parent_org_unit_id =
ANY (SELECT org_unit_id
FROM krsc_org_units krsc_org_units1
WHERE 'Clearinghouse' =
org_unit_name)
CONNECT BY kouc.parent_org_unit_id =
PRIOR kouc.org_unit_id)
UNION
SELECT kou.manager_id user_id,
DECODE
(kou.org_unit_name,
'IT Implementations', 'CHS - Service Management BA',
kou.org_unit_name
) org_unit_name
FROM krsc_org_units kou
WHERE 'Y' = kou.enabled_flag
START WITH kou.parent_org_unit_id =
(SELECT org_unit_id
FROM krsc_org_units krsc_org_units2
WHERE 'Clearinghouse' = org_unit_name)
CONNECT BY kou.parent_org_unit_id = PRIOR kou.org_unit_id) org
WHERE krt.request_type_id = kr.request_type_id
AND krt.request_type_name IN ('Bug Fix', 'IT Enhancement')
and kr.REQUEST_ID = krd1.request_id
and krd1.batch_number = 1
AND kr.request_id = krhd.request_id
AND org.user_id in (krd1.parameter4, krd1.parameter5, krd1.parameter7)
AND ( 'CLOSED_SUCCESS' = kr.status_code
OR 'IN_PROGRESS' = kr.status_code
AND kr.request_id IN (
SELECT request_id
FROM (SELECT DISTINCT request_id,
MAX
(start_time)
closed_date
FROM ebs_ch_datastore
WHERE 'Final BA Review and Deployment Exit Criteria' =
workflow_step_name
GROUP BY request_id))
Thanks,
Shaik MohiuddinThis error occurs when you try to create a materialized view , but if you run the sql the results are perfectly fine. Well it happend to me also and to fix this I made sure all the coulmns have the same data type which are used in joins or in where clause.
use
where
to_number(col1)=to_number(col2) and to_number(col3)=to_number(col4)
hope this helps.. -
Relationships between tasks of different phases
Hello
Can someone tell me how to create relationships between tasks of different phases ? I am using cProjects 4.00 .
Where or how can I check the version of the cProjects which I am using?
I am getting a message 'Communication with the WFM Core system is not possible' . Please tell me how to solve this problem.
Also I am not able to create Role in the Resource view of Projects . I am getting the message 'First create a new project role. Use the appropriate function - Create Role - on the left-hand side. ' The button 'Create Role' is greyed out.
thanks for your time
ArvindHi
Have you mapped project role types for project type?
this is a SPRO activity.
Also check
Are you using WFM Core? If so, ask Basis to verify RFC and Live cache settings.
You need Configuration settings for that so as to allow you to create role.
For Relationships:
Goto any task which you want to link. From Basic Data task view, select Relationship Tab.
In Create link Select 2nd option of Task (Any Level)
Click Search and select the Task
Select relationship as reuired predecessor or successor.
Niranjan
Let me know if it helps
Edited by: Niranjan Dandekar on Aug 1, 2008 6:35 PM -
Creating a Materialized View from different agregate queries
I want to create a materialized view. The problem is that doing so can get sticky. The view should have one row, with each column representing the return of an aggregate function on the base table. Here is a query that returns this kind of result:
select
(select count(rowid) from pasta) "PASTA_ROWS",
(select count(salt) from pasta where salt='F') "SALT_IS_FEMALE_ROWS"
from dual;
You can see that by selecting the subqueries from dual, I get the return to be in seperate columns. The problem is that when I try creating a Materialized view, I get an error.
ERROR at line 8:
ORA-22818: subquery expressions not allowed here
So, is there a simple SQL query that will return the values I am asking for, in seperate columns, but will not make the materialized view produce an error?
Thanks,
Edward
For your reference, here is a describe of the pasta table:
SQL> desc pasta
Name Null? Type
CHEESE NUMBER(4)
TOMATO VARCHAR2(20)
SALT VARCHAR2(1)
OREGANO VARCHAR2(20)
OLIVE_OIL VARCHAR2(40)Edward:
Something like this should work:
SELECT COUNT(*) PASTA_ROWS,
SUM(DECODE(salt,'F',1,0)) SALT_IS_FEMALE_ROWS
FROM pastaTTFN
John -
Creating Relationships and using synchronization parameters in SUP
Hello Experts ,
I am developing an iPhone application using generated code from sup .
I want to put forward some querries that i have in my mind .
Basically my scenario is i have an equipment list and details for each equipment .
On iPhone one page displays the list and on clicking on any equipment i go to another page displaying eq details .
1.How do i filter data for details based on particular equipment number selected on first screen .
2.In SUP i have 2 mbo's , one for eqpmnt and another for details .Does creating relationship between them in sup changes generated code and filters data automatically in xcode .
3.Do i have to use synchronization parameters in this case to filter out data .
If not please tell me how should i go forward about this .
Any kind of help would be appreciated .
Thanks & Regards ,
Rockky .Hi Rockky,
1- If you want to filter data on page displays list then you have to create synchronization parameters. Once you retrieved data from back-end it all comes to CDB (sybase consolidated database) so synchronization parameter filters data from cdb for which input you entered.
2- If you display detail of any equipment you have to set relation between root and child MBO.
there is a very clear tutorial which sybase provides you can find samples about using relations and synchronization prmtrs:
http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01213.0200/doc/pdf/sup_tutorials_ioscodegen.pdf
Regards
Tahir -
How we will create relationship with org unit and task catalog
HI Experts
How we can create relationship between Org unit and Task Catalog in Organisation management once we grouped all the tasks in one group.
For Example we have one org unit under that we have 3 depts those will consider as org units only.under 3 depts we have professor,Lecturer,Reader as jobs and positions also.If we create Professor tasks in task catalog which all the tasks will be assigned to positions as well.
If it is Org unit and Task catalog how we can create relationship.
Thanks
RajjiHi,
Please try.
DATA: lt_hrp1001 TYPE STANDARD TABLE OF P1001.
DATA: lw_hrp1001 TYPE p1001.
lw_hrp1001-mandt = sy-mandt.
lw_hrp1001-plvar = parent_pos-plvar.
lw_hrp1001-otype = parent_pos-otype.
lw_hrp1001-objid = other_pos.
lw_hrp1001-istat = parent_pos-istat.
lw_hrp1001-begda = sy-datum.
lw_hrp1001-endda = lc_endda.
lw_hrp1001-infty = '1001'.
lw_hrp1001-aedtm = sy-datum.
lw_hrp1001-uname = sy-uname.
lw_hrp1001-rsign = codes.
lw_hrp1001-relat = relats.
lw_hrp1001-sclas = lc_sclas.
lw_hrp1001-sobid = cord_pos.
append lw_hrp1001 to lt_hrp1001.
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
fcode = 'INSE'
vtask = 'S'
commit_flg = 'X'
TABLES
innnn = lt_hrp1001
EXCEPTIONS
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
OTHERS = 6.
Hope this helps.
regards,
Xiang Li -
Creation of Relationship between an Org Unit and ROSTER
Hi All,
I have Done All the Back end Settings For Roster.However when i am trying to Create relationship between Roster and an Org unit,there is no avaibility Of Rosters.Can Someone Please Guide me Out.
Thanks,
PunamHI,
There are standard relationship for Rosters (91 ,92 ,93 and 94),
but befor doing all the configuration you have to activate switch for roster
Go to transaction SHDG
Choose the path Application Components-> payroll->India->India public sector.
Click on change Global fields Icon and add the value as u2018Xu2019 for data element u201CPIN_SW_INPSu201D.
Activate the entry
Warm Regards,
Kapil Kaushal
Maybe you are looking for
-
Using a Plasma TV as a Monitor
OK, I have a Panasonic plasma and the Apple mini dvi to vga adapter. when connected, my MacBook recognizes the plasma. I can't get mirror to work, but I can select the Plasma and run front row. How do I mirror?
-
Libjvm.so on RedHat 7.1
Hi~ This is KOJACK, java developer. I have some problem in using VM in j2sdk-1_4_0-linux-i386-rpm.bin or j2sdk-1_3_1_03-linux-i386.bin) on RedHat 7.1. When I try to install a weblogic server from BEA. i see the error as follows: Could you help me wit
-
Java.lang.UnsatisfiedLinkError: no ocijdbc9
I am getting this error while trying to connect via oci. Here is my url jdbc:oracle:oci8:@dnins1 I have the oracle client installed. I have my oracle_home set and I have oracle_home\ora92\lib and oracle_home\ora92\bin in my path. What else am I missi
-
Impossible to download Mavericks on a mac book pro 15'' 2008 with lion
I cannot download Mavericks on my mac book pro. I cleaned it with Onyx, repared the permissions, gave my id in App store, which was recognized, deactivated my Intego Antivirus, no way. It works on a mac mini with snow leopard, but it does'nt put the
-
When I try to start Lightroom CC i get the following error and the splash screen freezes An error occurred when attempting to change modules.