06-27-2017 8:14 PM
Hi experts,
Is there any chance to restrict some files when attaching using GOS?
I'm using below code in a button an it allows the user to attach any kind of files when pressed, but it would be great to allow the upload just of PDF files.
CREATE OBJECT ANEXO_OBJ TYPE CL_GOS_MANAGER.
ANEXO_OBJ->SET_RW_MODE( IP_MODE = 'E' ).
WA_BOR-OBJKEY = WA_ZSDT0132-NR_ROT.
WA_BOR-OBJTYPE = 'ZSDR0061'.
ANEXO_OBJ->START_SERVICE_DIRECT(
EXPORTING
IP_SERVICE = 'PCATTA_CREA'
IS_OBJECT = WA_BOR
EXCEPTIONS
NO_OBJECT = 1
OBJECT_INVALID = 2
EXECUTION_FAILED = 3
OTHERS = 4 ).
Thank you in advance
09-04-2017 8:58 PM
transaction SOPE is made to define which file types are not allowed