Does anyone know in which table the values under "References" & "Notes" section will be stored in PPM.
Can we alter / add manual entries to these sections using a SQL query?
Pls help, URGENT!!
The notes are stored in KNTA_FIELD_CHANGE_NOTES. And references are stored in KNTA_REFERENCES.
And it's possible to update these tables.
::Please Give KUDOS if you like this and Mark it as Accepted Solution if this resolved your query::
Data from the "Notes" section is probably is stored in KNTA_NOTE_ENTRIES Table.
And Primary table for References is KNTA_REFERENCES but there could be other associated tables as well depending on what kind of info you are looking for or want to populate.
We are currently having two fields in 'Details' section, Attachment (Component type: ATTACHMENT) and URL(Component type: Web Address (URL)).
But now our requirement is to remove these fields from this section, so we are planning to move the attachments & URL present in these fields to the Refernce section using a sql script manually for all existing requests in PPM.
I need to know for doing this, which all tables needs to be updated ?
As far as my analysis, 1. for URL ---> if we insert in KNTA_REFERENCES it is working
2. for Attachments ---> we need to insert in KNTA_DOCUMENTS & KNTA_REFERENCES. Is this enough or some other tables also needs to be updated?
Yes, KNTA_REFERENCES shhould be the Primary tabel for References in case of URL value but you may also want to take a look at KNTA_REF_RELATIONSHIPS_NLS as well to make sure the value is refereced properly.
Moving an attachement may be a little tricky & Risky !
What are you using for your document management in PPM? There could be various ways: simple filesystem storage, Documentum or PPM DMS.
I have never moved an attachment itself ever since we moved off of the filesystem storage to DMS. So, I would strongly suggest you to make sure about this with HP Support so that the move doesn't break any request attacment relationship as some could be critical docs. In either case, Depending on how you are storing and whether or not Versioning is enabled, the attachments in Reference probably would involve KNTA_REFERENCES, KNTA_REF_RELATIONSHIPS_NLS, KNTA_DOCUMENTS, KNTA_DOCUMENT_VERSION, KNTA_DOCUMENT-TIP_CONTENTS, and KNTA_DOCUMENT_HISTORY_CONTENTS tables.
And of couse you should not forget about the KCRT_REQUESTS Table in Both the cases to make sure you don't run into any possible cache issues.
Need your help further to know , when a request is created and data is filled in the notes section, where is this stored in the DB.Thanks in advance.
Data from the "Notes" Section is stored in KNTA_NOTE_ENTRIES Table. The column parent_entity_primary_key stores the request id. Here is script you can use to insert notes. Hopefully this can help you ...
INSERT INTO knta_main.KNTA_NOTE_ENTRIES(
,'Put your Notes here',
sysdate - (1/(24 *60*60)),
sysdate - (1/(24 *60 *60)),
20, --parent_entity_id for Request is 20
sysdate - (1/(24 *60 *60)),30242,
'Request Status Value here'
request_id in (Request IDs separated by commas);
When I look at the KNTA_NOTE_ENTRIES table, the NOTE_ENTRY_ID field has a different number used when the note is entered from the request vs. using an INSERT statement with KNTA_NOTE_ENTRIES_S.nextval. Why are there two different numbers used? My concern is that eventually there will be an overlap with these numbers.
The NOTE_ENTRY_ID from the note I entered in the request before my insert from a script was 69974. My script (using KNTA_NOTE_ENTRIES_S.nextval) has the NOTE_ENTRY_ID of 70008. When I enter a note via the request again, the NOTE_ENTRY_ID is 69975. I would have expected it to by 70009 in this case.