cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

number of attachment

Former Member
0 Kudos
209

Hi All,

I am working on Sourcing 7.0 project management part. Is there any way to restrict the number of attachment for a task? My requirement is for one task user can attach only 3 documents.

Is there any configuration setting where we can set the count? Or I need to write Script for that.

Please share your view.

Thanks,

Deepak

Edited by: Deepak Arora on Aug 10, 2011 11:17 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

I am not sure this could be achieved using configuration. However a validation script can be written to keep a check on number of attachments. You can throw an application exception when attachment count increases beyond a particular limit.

Regards

Mudit Saini

Former Member
0 Kudos

Hi Mudit,

Thanks for reply.

As per detail in Help.sap.com, attachment option is available on the sourcing document toolbar, or in a line item, project schedule event, or discussion message.

Here I am taking Project as document. I have checked class for document ans is u201Cprojects.ProjectTypeu201D. In that u201CDEFAULT_ATTACHMENTSu201D is coming as a collection and class for this is u201Cattachment.subordinateu201D.

Could you please give some pointers on how to proceed for scripting.

Thanks

Deepak

Former Member
0 Kudos

Hi

You can use method: getAttachments() ( IAPI: com.sap.eso.api.projects.ProjectIBeanIfc) to get the list of attachments for the project. then a counter can be set to keep count of attachments restricted.In case user try to add more attachments, exception message could be thrown.

Regards

Mudit Saini

Answers (0)