Skip to Content
0

Restrict some file types when attaching using GOS

Jun 27, 2017 at 07:14 PM

87

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jürgen L
Sep 04, 2017 at 07:58 PM
0

transaction SOPE is made to define which file types are not allowed

Share
10 |10000 characters needed characters left characters exceeded