Skip to Content
avatar image
Former Member

Restrict some file types when attaching using GOS

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 04, 2017 at 07:58 PM

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

    Add comment
    10|10000 characters needed characters exceeded