Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to set the visibility to "Internal only" when adding attachment to MA via Beanshell

Hi,

my problem is as in subject.

i tries with setAccessScope() from AttachmentSubIBeanIfc, but its does't works...

is this the rigth way?

thank you

waldemar

Tags:
Former Member
Former Member replied

Hello Waldemar,

In order to set the attachment visibility to internal only try below code.

attachmentsList= doc.getAttachments();

attachmentsListItr = attachmentsList.iterator();

while(attachmentsListItr.hasNext()){

attachmentsListItrMem = attachmentsListItr.next();

attachmentsListItrMem.setAttachmentVisibility(new UserVisibilityEnumType(1));

}

//0 is for internal & externalonly

//1 is for internal only


Regards,

Raj

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question