Application Development 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: 

Restrict some file types when attaching using GOS

Former Member
0 Kudos

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

1 REPLY 1

JL23
Active Contributor
0 Kudos

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