Additional data on relationship between two objects
Hi
We have a requirement to capture additional data on a relationship between two objects. The data to be captured are custom fields that are unique to the relationship between the objects and not specific to either of the objects.
We created a new object type and related it to the position (S)and the job (C) object. In the customising (Personnel Management/Personnel Development/Basic Settings/Maintain Relationships there is an option to set up Additional Data. There are however several restrictions (e.g. the substructure has to be in T77AD). When you set up an existing substructure (e.g. PAD22) and screen (e.g. 3000), it works really well, however we have not been able to get this to read our own substructure and screen (since there is no customer include on HRP1001 and the 'Additional data' button seems to go to MP100100 to find the screen).
My question is two fold:
a) Is this an allowed customisation (e.g. can we create our own substructure, screen and Query string)? And if so, how does the data get into T77AD (since SAP recommends that data should not be added to this table)? and
b) Is there any documentation on this (thus far I have only received info on how to enhance infotypes which I don't think is relevant???)?
If this can not be maintained is there any other suggestions on how to deal with this scenario?
Any assistance will be appreciated.
Regards
Liezl
Hi everyone
Thanks for everyone who tried to assist us with this. I am happy to report that our in-house guru's have found the answer. So, for anyone who is interested:
In programme MP100100 you have a screen 6000 which is a customer enhancements screen. We set up two in-house function modules for the PBO and PAI with its own screen and added an append structure to PAD31 to add the fields required. In the configuration, we then specified PAD31 as the substructure with screen 6000 and then also specified our own PBO and PAI function modules. The parameters required for screen 6000 is set up within our own customer screens.
Hope this will be helpful to someone - it certainly seemed to open up some doors for us!
Regards
Liezl
Similar Messages
-
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 -
Problem with a 1:M relationship between two entity beans
I am having trouble trying to implement a 1:M relationship between two EJB2.0 entity beans using and EJBQL query. I have an ApplicantEJB, which contains a collection of phone numbers. The applicant table in the database has one primary key, applicant_id. The applicant_phones database table has a compound primary key--applicant_id and phone_type_id--so I have implemented a custom PK class to represent this, PhonePK. I have implemented a findByNameAndPhone method in my ejb-jar.xml file with the following syntax:
SELECT object(a) FROM applicants a, applicant_phones p where a.applicantID = p.applicantID and a.name = ?1 and p.phoneNumber = ?2
If I deploy this, Orion/OC4J translates the query in the orion-ejb-jar.xml with an incorrect reference to the applicant_phones.applicant_id column:
SELECT a.applicant_id FROM applicants a , applicant_phones p WHERE ((a.applicant_id = p.applicantID ) AND (a.name = ?) AND (p.phone_number = ? ))
I must have something wrong with the ApplicantEJB and PhoneEJB primary key mappings in my orion-ejb-jar.xml file, but I have tried many different combinations of values and keep getting them overwritten by the container with each deployment. Why is Orion/OC4J defaulting the applicant_id reference to the ob[i]Long postings are being truncated to ~1 kB at this time.I have posted excerpts from my orion-ejb-jar.xml file in this posting: Problem mapping a 1:M relationship between two entity EJBs w/ a compound PK
Sorry for the duplicate postings, but I was getting errors on the submission.
April -
Relationship between two tables
Hi,
Can some one tell me how can i find the relationship between two tables in CRM. is there any transaction for the same. Is it possible to see the data model.
Thanks
Akila.RHi Nishant ,
Could you please explain brief about the Data relationship ......??
I can see the Foreign Key & Check Table relation in se11 .
Since I am in the Analysing phase ,
what are all the details can i get from Foreign Key & Check table kind relations ...??
Thanks
Rgds
Ganesh -
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 -
How to get relationship between two views in the reports
How to get relationship between two views in the reports, I am doing a deletion program , it is fully relates to views , how to get relationship between them in the reports
Hi,
Please explain your question in detail...what do you want to read ?
If you want to know about the navigation links between the views then you can use APIs like
wdComponentAPI.getComponentInfo().findInWindows("windowName").getViewUsageByID("Name").getNavigationLinks();
Iterate through the navigationLinkInfo from above collection and can read the other properties .
I haven't tried the above , but it should work !!!
Regards,Anilkumar -
XOR arc among various relationships between two entities
I have a scenarious where subtype is implemented as XOR arc among 1:1 relationships between two entities.Not familiar how to make the arc of exclusive or ..in SQL Modeler.
Grateful for any direction.
Kind Regards
Ivan,Hi Ivan,
here are steps for logical model (they are similar for relational model):
1) select two (or more) relationships and entity they are connected to
2) Click on "New Arc" icon to create arc
Philip -
Create AlE Relationship between two company code F210 to FN21 (UHP To UPI)
Hi,
I want to know how to create ALE realtion ship between two company code ( F210 to FN21(Server name UHP to UPI ) and how to process it?
Please reply ASAP.
Regards,
AchinHi Sathish,
Thanks for reply!..
But My question I want to Add ALE relationship between two company code F210 to FN21 (UHP(Production server) To UPI(Third Party System)).
Regards!
Achin -
How to build "Greater/less or Equal" relationships between two tables?
Hi,
Is there any straightforward approachs to realize the following kind of relationships between two tables?
Table1.process_end_date >= Table2.work_start_date and
Table1.process_end_date <= Table2.work_end_date
BTW, there's no common columns for these two tables to do simple joins (inner, outter...).
Thanks.
Regards,
QilongSure.
Table.SelectRows filters a given table (in this case Table2) based on a function provided as the second argument.
(table2Row) => is the start of our filter function. It defines a function that takes one argument, called table2Row. Each row of Table2 will be passed to this function. If the function returns true, the row will be kept. If the function returns false,
the row will be filtered out.
The right hand side of the => is the filter expression. Because we're adding the custom column to Table1, we can reference a field in the current row of Table1 using square brackets (e.g. [process_end_date]). To reference the fields in the current row
of Table2, we have to index into the table2Row variable passed to our function (e.g. table2Row[work_start_date]).
Hope that helps.
Ehren -
How to give relationship between two tables with comon column with between oprator
Hi Folks,
I am using Sql Server 2008R2. I am getting a problem to establish relationship between two tables.
I have two Tables, 1.Inventory Details Table another one is Inventory Header Table.
Inventory Details Table having a column Card No and inventory Header Table having columns From card No and To Card No.
I want to give relationship between these two tables with Card no. Could you please provide me the Sql Query.
Your help would be greatly appreciated .
Regards
hasthi.
email:[email protected]Hi Raju,
We have two way that we can relate to the table either join or quality condition use following syntax/Query for relating two tables
select * from Inventory_Details ID inner join Inventory_Header IH on ID.CardNo between IH.FrmCardno and IH.ToCardNo
or
Select * from Inventory_Details ID ,Inventory_Header IH where ID.CardNo=IH.CardNo OrSelect * from Inventory_Details ID ,Inventory_Header IH where ID.CardNo between IH.FrmCardno and IH.ToCardNo
Hope this will help you
Niraj Sevalkar -
Relationships between Business Objects
Hi,
Does anyone know where to look to find the relationships between various business objects? If you look at most ES descriptions, there is usually a reference to a business object. I'd like to find somewhere where I could see the entire network of relationships.
Thanks
Dickhi,
IMHO there is no straight-forward relationship between business objects. business objects are independent entities offering some operations to manipulate them. if some business object wraps('has') some other business objects, it is nevertheless supposed to be manipulated by some operations(services), which refer to the aggregate object only. otherwise you you would loose loose coupling.
business object share a certain context though, common domains where they are required. in SAP this is reflected through ES bundles, e.g. <a href="https://wiki.sdn.sap.com/wiki/display/ESpackages/CourseApprovalProcesses">this</a>. In such an ES bundle description you find a <a href="https://wiki.sdn.sap.com/wiki/display/ESpackages/CourseApprovalProcessesBusinessObjects">link</a> affected by the use cases which are to be handled within this ES bundle.
my point of view,
anton -
How to identify the follow up relationship between two service ticket
Hi Folks,
How to identify the follow up relationship between two service ticket ?
Please help me on this...
Regards,
Shashi K, ReddyHi Pepe !
Thank you for the answer, but I dont find this structure ET_DOC_FLOW.....
Please let me know is that structure is correct ......
Regards,
Shashi K, Reddy
shashikumarreddy at gmail dot com -
Problem mapping a 1:M relationship between two entity EJBs w/ a compound PK
I am having trouble trying to implement a 1:M relationship in OC4J 9.0.3 between two EJB2.0 entity beans using an EJBQL query. I have an ApplicantEJB, which contains a collection of phone numbers. The applicant table in the database has one primary key, applicant_id. The applicant_phones database table has a compound primary key--applicant_id and phone_type_id--so I have implemented a custom PK class to represent this, PhonePK. I have implemented a findByNameAndPhone method in my ejb-jar.xml file with the following syntax:
SELECT object(a) FROM applicants a, applicant_phones p where a.applicantID = p.applicantID and a.name = ?1 and p.phoneNumber = ?2
If I deploy this, Orion/OC4J translates the query in the orion-ejb-jar.xml with an incorrect reference to the applicant_phones.applicant_id column:
SELECT a.applicant_id FROM applicants a , applicant_phones p WHERE ((a.applicant_id = p.applicantID ) AND (a.name = ?) AND (p.phone_number = ? ))
I must have something wrong with my ApplicantEJB and PhoneEJB primary key mappings in my orion-ejb-jar.xml file, but I have tried many different combinations of values and keep getting them overwritten by the container with each deployment. Why is Orion/OC4J defaulting the applicant_id reference Long postings are being truncated to ~1 kB at this time.Sure. Here's the <entity-deployment> for my applicant entity:
<entity-deployment name="ApplicantEntityEJB" location="ApplicantEntityEJB" table="applicants" data-source="java:/OracleDS">
<primkey-mapping>
<cmp-field-mapping name="applicantID" persistence-name="applicant_id"/>
</primkey-mapping>
<cmp-field-mapping name="name" persistence-name="name"/>
<cmp-field-mapping name="phones">
<collection-mapping table="applicant_phones">
<primkey-mapping>
<cmp-field-mapping name="applicantID">
<entity-ref home="ApplicantEntityEJB">
<cmp-field-mapping name="applicantID" persistence-name="applicant_id"/>
</entity-ref>
</cmp-field-mapping>
</primkey-mapping>
<value-mapping type="test.entity.PhoneEntity">
<cmp-field-mapping>
<entity-ref home="PhoneEntityEJB">
<cmp-field-mapping>
<fields>
<cmp-field-mapping name="phoneTypeID" persistence-name="phone_type_id"/>
<cmp-field-mapping name="applicantID" persistence-name="app[i]Long postings are being truncated to ~1 kB at this time. -
How to find particular date lies in between two given dates
hi,
i have a problem. i have to find if particular day lies in between two given dates.
example two dates are joindate and expirydate.
1.joindate is 1/03/2007
expdate is 1/03/2008
now i have to find if 29 feb is in between this joindate and expirydate.
if any1 has ny idea please reply asap.
thanks.The Date class has a before() and after() method you can use to compare Date objects.
-
Programmatically create a relationship between two positions in HR
Hi,
I have a requirement to create relationships in HRP1001 between two given positions with a start and end date.
I need to write an upload program to do this but want to avoid Batch Input if possible.
Are there any relevant function modules that can do what transaction PP01 does?
Many Thanks
DavidHi,
Try using this code
LOOP AT T_MAINTAIN INTO WA_MAINTAIN.
WA_MAINTAIN-FCODE = 'INSE'.
WA_MAINTAIN-PLVAR = '01'.
WA_MAINTAIN-ISTAT = '1'.
*Relate account to project
IF WA_MAINTAIN-OTYPE = 'O' AND WA_MAINTAIN-SCLAS = 'O'.
WA_MAINTAIN-RSIGN = 'B'.
WA_MAINTAIN-RELAT = '002'.
*Relate position to project
ELSEIF WA_MAINTAIN-OTYPE = 'O' AND WA_MAINTAIN-SCLAS = 'S'.
WA_MAINTAIN-RSIGN = 'B'.
WA_MAINTAIN-RELAT = '003'.
*Relate job to position
ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'C'.
WA_MAINTAIN-RSIGN = 'B'.
WA_MAINTAIN-RELAT = '007'.
*Relate employee to position
ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'P'.
WA_MAINTAIN-RSIGN = 'A'.
WA_MAINTAIN-RELAT = '008'.
ENDIF.
*Relate position to position
ELSEIF WA_MAINTAIN-OTYPE = 'S' AND WA_MAINTAIN-SCLAS = 'S'.
WA_MAINTAIN-RSIGN = 'A'.
WA_MAINTAIN-RELAT = '002'.
ENDIF.
WA_MAINTAIN-ENDDA = '99991231'.
*FM to create relationship
CALL FUNCTION 'RH_RELATION_MAINTAIN'
EXPORTING
ACT_FCODE = WA_MAINTAIN-FCODE
ACT_PLVAR = WA_MAINTAIN-PLVAR
ACT_OTYPE = WA_MAINTAIN-OTYPE
ACT_OBJID = WA_MAINTAIN-OBJID
ACT_ISTAT = WA_MAINTAIN-ISTAT
ACT_RSIGN = WA_MAINTAIN-RSIGN
ACT_RELAT = WA_MAINTAIN-RELAT
ACT_SCLAS = WA_MAINTAIN-SCLAS
ACT_SOBID = WA_MAINTAIN-SOBID
ACT_BEGDA = WA_MAINTAIN-BEGDA
ACT_ENDDA = WA_MAINTAIN-ENDDA
ACT_PROZT = WA_MAINTAIN-PROZT
EXCEPTIONS
MAINTAINANCE_FAILED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
WRITE : WA_INPUT-OBJID.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
Maybe you are looking for
-
How do i add a second display desktop to my macbok
How do I add a second display (desktop) to my macbook pro so when I swipe, there are three screen options, the one for widgets, the main one and then another desktop?
-
a little help please........I just got my ipad and have synced it to my friends computer and now can't sync it to my own home computer........any suggestions?
-
Hi All, I have a requirement to understand the Schedule line wise level open qty, qty delivered, qty PGId & qty invoiced, something similar to a Sales order line item's document flow, i cant use VBFA or VBAP referring the SA line item as it is consid
-
Update Notification Download Button Issue
Hi, Not really sure if this should be in the General area or in the Bugs & Issues area... so please moderator(s) please move this if it needs it... Was just informed about an update to the Flash Player ... so hit the download and ran the installer...
-
HR_INFOTYPE_OPERATION - Running in Batch Mode
I have an ABAP which reads data from a flat file into an internal table and then loops through this internal table and updates HR Infotype 15 records via the HR_INFOTYPE_OPERATION function. In my program I give the user the option of running it in a