‎2010 Jul 15 5:18 AM
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.
‎2010 Aug 16 9:54 AM
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