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

Regarding attachments

Former Member
0 Likes
313

I want to restrict editing or deleting or creating new attachment using Class-- CL_GOS_DOCUMENT_SERVICE in ME54N after PR is released,please help me.... u can provide me a sample code if u have ....

TYPES : ref TYPE REF TO YTEST_GOS."zcl_gos_attachments."CL_GOS_ATTACHMENTS,"YTEST_GOS,

DATA: git_io TYPE ref, "sgs_rwmod,

v_ref TYPE REF TO cx_gos_al_error,

v_ip TYPE SGS_RWMOD.

CREATE OBJECT git_io.

TRY.

CALL METHOD git_io->set_rwmode

EXPORTING

ip_mode = 'D'.

CATCH cx_gos_al_error INTO v_ref .

ENDTRY.

***I am getting an error 'The obligatory parameter "IO_OBJECT" had no value assigned to it.'

here io_object is in 'CONSTRUCTOR'..........How will i define it or how will i pass the value in git_io.

1 REPLY 1
Read only

Former Member
0 Likes
257

Hello Sonu ,

where u can to put those validations ? , is it in User Exit ?.

y dont u use authorization objects to stop from deleting attachments ?

regards

Prabhu