Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Making attachment read only

pbechani
Participant
0 Likes
662

Hi

I have created an attachment using GOS. I want the attachment to be non modifiable and should not be deleted.

I can return the attachment through BAPI_REL_GETRELATIONS.

How can I manipulate it so that it is non modifiable and can not be deleted.

Kind Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
565

Sorry for my language.

In system 6.0 you can use FM GOS_ATTACHMENT_LIST_POPUP, for example. The attachments cann't be modified if set FM parameter IP_MODE = 'D' => Display Mode - no database changes (that's write in description for FM).

That's very simple method to give a chance for user to work with GOS attachments.

Also, you can use method DISPLAY_ATTACHMENT of class CL_GOS_DOCUMENT_SERVICE. This method run service "Display" directly and give no chance to edit/delete attachment.

Good luck.

Hi

I have created an attachment using GOS. I want the attachment to be non modifiable and should not be deleted.

I can return the attachment through BAPI_REL_GETRELATIONS.

How can I manipulate it so that it is non modifiable and can not be deleted.

Kind Regards

3 REPLIES 3
Read only

Former Member
0 Likes
566

Sorry for my language.

In system 6.0 you can use FM GOS_ATTACHMENT_LIST_POPUP, for example. The attachments cann't be modified if set FM parameter IP_MODE = 'D' => Display Mode - no database changes (that's write in description for FM).

That's very simple method to give a chance for user to work with GOS attachments.

Also, you can use method DISPLAY_ATTACHMENT of class CL_GOS_DOCUMENT_SERVICE. This method run service "Display" directly and give no chance to edit/delete attachment.

Good luck.

Read only

pbechani
Participant
0 Likes
565

I had to use Signature fields to lock input fieds

Read only

Former Member
0 Likes
565

Hi,

Can you explain more on what you mean by signature fields? or which fields did u change and pass to which FM? I require this as well but found no solution yet. Thank you.