cancel
Showing results for 
Search instead for 
Did you mean: 

cFolder : How to fetch the additional fields enhanced using XML ?

Former Member
0 Kudos

Hi Champions,

We have enhanced the cFolders document create screen with 2 additional fields. this we could achieve through adding new fields in the Generic object XML file. And placing the same in the Web Dav Folders.

Now we need to fetch the data which are getting updated for each document against this new field.

we are not able to trace, whether this gets saved against any table , or structure or some other mechanism.

We need some pointers to fetch this data so that we can use it for upgating, classification data of DMS, and additional content to the notification sent via cFolders when the status is changed etc..

Thanks for your inputs in advance,,,

Best regards,

shashikumar bs

Accepted Solutions (1)

Accepted Solutions (1)

ulf_petzel
Advisor
Advisor
0 Kudos

Hi,

are you saying you created a new generic object or you added an object category that can be related to e.g. a document to cope with some additional attributes?

You can use the related cFolders APIs to fetch the data.

This means depending on your approach:

CFX_API_DOC_GETDETAIL

CFX_API_DOC_VERSION_GETDETAIL

CFX_API_DOC_GEN_OBJECT_READ

CFX_API_CATEGORY_READ - Read category data

See APIs in Help Portal.

[http://help.sap.com/saphelp_ppm450sp04/helpdata/en/30/cce8bf627db74fa531f89b9aed229f/frameset.htm]

Regards, Ulf.

Former Member
0 Kudos

Hi Ulf ,

We have downloaded Sample XML File for Gen. Object Type from the SAP documentation and modified to add few fields

which are for the " Document " only and we placed the modified XML in the Web Dav folders.

Then we could see the documents with additional fields , we updated few documents with additional data as per business requirement.

Now we wanted to extract this data for adding it in notification content.

Hence we need to know how to extract this document specific additional data. Where the data will be stored ?

Best regards,

Shashi

ulf_petzel
Advisor
Advisor
0 Kudos

Hi,

this is really easy.

First of all, you need to find out the folder in which the document is in if you don't know that yet, leveraging the API CFX_API_COL_GETDETAIL.

Then, you can read the content of the folder with CFX_API_FOLDER_GETDETAIL, which will give you the objects in the folder (their ID, 40 digits).

Then, you can read the category data of the document with input parameter of its ID in API CFX_API_CATEGORY_READ.

For testing - this ID can be found in the cFolders URL of the object after p_doc_id, e.g. p_doc_id=4C7FFA4F44532D27E10000000A4241A8.

Since you are talking about embedding this info in a notification, I guess this will be part of an automatic notification to be triggered in a status transition of an object?

Regards, Ulf.

Former Member
0 Kudos

Hi Ulf,

Thanks a lot for your answer. It hit bulls eye.

Regarding concatenating this in to automatic notifcation generated while status change, i will raise a new thread

please see if you have some approach, or work around.

best regards,

Shashikumar bs

Answers (0)