All files / output cl_gui_frontend_services.clas.mjs

29.85% Statements 100/335
100% Branches 2/2
0.85% Functions 1/117
29.85% Lines 100/335

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 3351x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                                   1x       1x     1x               1x     1x         1x     1x               1x     1x               1x     1x         1x     1x                       1x     1x               1x     1x                                       1x     1x         1x     1x                                       1x     1x                 1x     1x                               1x     1x                                           1x     1x                                             1x     1x         1x     1x               1x     1x         1x     1x                   1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_gui_frontend_services.clas.abap
class cl_gui_frontend_services {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_FRONTEND_SERVICES';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"FILETYPE_ALL": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "FILETYPE_XML": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "FILETYPE_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "ACTION_CANCEL": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "ACTION_OK": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PLATFORM_NT351": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PLATFORM_NT40": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PLATFORM_NT50": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PLATFORM_WINDOWS95": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PLATFORM_WINDOWS98": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PLATFORM_WINDOWSXP": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"GUI_DOWNLOAD": {"visibility": "U", "parameters": {"BIN_FILESIZE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "FILENAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "FILETYPE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "WRITE_LF": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "WRITE_FIELD_SEPARATOR": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"CHAR1","ddicName":"CHAR1","description":"CHAR1"});}, "is_optional": " "}, "SHOW_TRANSFER_STATUS": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"CHAR1","ddicName":"CHAR1","description":"CHAR1"});}, "is_optional": " "}, "CONFIRM_OVERWRITE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "DATA_TAB": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}},
  "FILE_EXIST": {"visibility": "U", "parameters": {"RESULT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "FILE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "DIRECTORY_LIST_FILES": {"visibility": "U", "parameters": {"DIRECTORY": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "FILES_ONLY": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "FILE_TABLE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "COUNT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "GUI_UPLOAD": {"visibility": "U", "parameters": {"FILENAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "FILETYPE": {"type": () => {return new abap.types.Character(10, {"qualifiedName":"CHAR10","ddicName":"CHAR10","description":""});}, "is_optional": " "}, "CODEPAGE": {"type": () => {return new abap.types.Character(20, {"qualifiedName":"abap_encoding"});}, "is_optional": " "}, "READ_BY_LINE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "FILELENGTH": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "DATA_TAB": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}},
  "FILE_OPEN_DIALOG": {"visibility": "U", "parameters": {"WINDOW_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "DEFAULT_FILENAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "DEFAULT_EXTENSION": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "MULTISELECTION": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "FILE_FILTER": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "INITIAL_DIRECTORY": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "FILE_TABLE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "filename": new abap.types.Character(1024, {"description":"FILENAME"})}, "FILE_TABLE", "FILE_TABLE", {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "FILETABLE");}, "is_optional": " "}, "RC": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "USER_ACTION": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "GET_PLATFORM": {"visibility": "U", "parameters": {"PLATFORM": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "FILE_SAVE_DIALOG": {"visibility": "U", "parameters": {"WINDOW_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "DEFAULT_EXTENSION": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "DEFAULT_FILE_NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "FILE_FILTER": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "INITIAL_DIRECTORY": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "PROMPT_ON_OVERWRITE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "FILENAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "PATH": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "FULLPATH": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "USER_ACTION": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "DIRECTORY_BROWSE": {"visibility": "U", "parameters": {"WINDOW_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "INITIAL_FOLDER": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "SELECTED_FOLDER": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "EXECUTE": {"visibility": "U", "parameters": {"DOCUMENT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "APPLICATION": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "PARAMETER": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "DEFAULT_DIRECTORY": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "MAXIMIZED": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "MINIMIZED": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "SYNCHRONOUS": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "OPERATION": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "GET_FILE_SEPARATOR": {"visibility": "U", "parameters": {"FILE_SEPARATOR": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "DIRECTORY_EXIST": {"visibility": "U", "parameters": {"RESULT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "DIRECTORY": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "DIRECTORY_CREATE": {"visibility": "U", "parameters": {"DIRECTORY": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "RC": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "CLIPBOARD_EXPORT": {"visibility": "U", "parameters": {"NO_AUTH_CHECK": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "DATA": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}, "RC": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "GET_SYSTEM_DIRECTORY": {"visibility": "U", "parameters": {"SYSTEM_DIRECTORY": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "GET_GUI_VERSION": {"visibility": "U", "parameters": {"VERSION_TABLE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "filename": new abap.types.Character(1024, {"description":"FILENAME"})}, "FILE_TABLE", "FILE_TABLE", {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "FILETABLE");}, "is_optional": " "}, "RC": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "CLIPBOARD_IMPORT": {"visibility": "U", "parameters": {"DATA": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"DEFAULT"});}, "is_optional": " "}, "LENGTH": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "FILE_DELETE": {"visibility": "U", "parameters": {"FILENAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "RC": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "GET_SAPGUI_WORKDIR": {"visibility": "U", "parameters": {"SAPWORKDIR": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
    this.filetype_all = cl_gui_frontend_services.filetype_all;
    this.filetype_xml = cl_gui_frontend_services.filetype_xml;
    this.filetype_text = cl_gui_frontend_services.filetype_text;
    this.action_cancel = cl_gui_frontend_services.action_cancel;
    this.action_ok = cl_gui_frontend_services.action_ok;
    this.platform_nt351 = cl_gui_frontend_services.platform_nt351;
    this.platform_nt40 = cl_gui_frontend_services.platform_nt40;
    this.platform_nt50 = cl_gui_frontend_services.platform_nt50;
    this.platform_windows95 = cl_gui_frontend_services.platform_windows95;
    this.platform_windows98 = cl_gui_frontend_services.platform_windows98;
    this.platform_windowsxp = cl_gui_frontend_services.platform_windowsxp;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async directory_exist(INPUT) {
    return cl_gui_frontend_services.directory_exist(INPUT);
  }
  static async directory_exist(INPUT) {
    let result = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let directory = INPUT?.directory;
    if (directory?.getQualifiedName === undefined || directory.getQualifiedName() !== "STRING") { directory = undefined; }
    if (directory === undefined) { directory = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.directory); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(29, 'directory_exist not supported')));
    return result;
  }
  async get_sapgui_workdir(INPUT) {
    return cl_gui_frontend_services.get_sapgui_workdir(INPUT);
  }
  static async get_sapgui_workdir(INPUT) {
    let sapworkdir = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.sapworkdir) {sapworkdir = INPUT.sapworkdir;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(32, 'get_sapgui_workdir not supported')));
  }
  async file_exist(INPUT) {
    return cl_gui_frontend_services.file_exist(INPUT);
  }
  static async file_exist(INPUT) {
    let result = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let file = INPUT?.file;
    if (file?.getQualifiedName === undefined || file.getQualifiedName() !== "STRING") { file = undefined; }
    if (file === undefined) { file = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.file); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(24, 'file_exist not supported')));
    return result;
  }
  async file_delete(INPUT) {
    return cl_gui_frontend_services.file_delete(INPUT);
  }
  static async file_delete(INPUT) {
    let filename = INPUT?.filename;
    if (filename?.getQualifiedName === undefined || filename.getQualifiedName() !== "STRING") { filename = undefined; }
    if (filename === undefined) { filename = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.filename); }
    let rc = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.rc) {rc = INPUT.rc;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(25, 'file_delete not supported')));
  }
  async clipboard_import(INPUT) {
    return cl_gui_frontend_services.clipboard_import(INPUT);
  }
  static async clipboard_import(INPUT) {
    let data = INPUT?.data || abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"DEFAULT"});
    let length = INPUT?.length || new abap.types.Integer({qualifiedName: "I"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(30, 'clipboard_import not supported')));
  }
  async directory_list_files(INPUT) {
    return cl_gui_frontend_services.directory_list_files(INPUT);
  }
  static async directory_list_files(INPUT) {
    let directory = INPUT?.directory;
    if (directory?.getQualifiedName === undefined || directory.getQualifiedName() !== "STRING") { directory = undefined; }
    if (directory === undefined) { directory = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.directory); }
    let files_only = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.files_only) {files_only.set(INPUT.files_only);}
    let file_table = new abap.types.Character(4);
    if (INPUT && INPUT.file_table) {file_table = INPUT.file_table;}
    let count = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.count) {count = INPUT.count;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(34, 'directory_list_files not supported')));
  }
  async directory_create(INPUT) {
    return cl_gui_frontend_services.directory_create(INPUT);
  }
  static async directory_create(INPUT) {
    let directory = INPUT?.directory;
    if (directory?.getQualifiedName === undefined || directory.getQualifiedName() !== "STRING") { directory = undefined; }
    if (directory === undefined) { directory = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.directory); }
    let rc = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.rc) {rc = INPUT.rc;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(30, 'directory_create not supported')));
  }
  async gui_download(INPUT) {
    return cl_gui_frontend_services.gui_download(INPUT);
  }
  static async gui_download(INPUT) {
    let bin_filesize = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.bin_filesize) {bin_filesize.set(INPUT.bin_filesize);}
    let filename = INPUT?.filename;
    if (filename?.getQualifiedName === undefined || filename.getQualifiedName() !== "STRING") { filename = undefined; }
    if (filename === undefined) { filename = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.filename); }
    let filetype = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.filetype) {filetype.set(INPUT.filetype);}
    let write_lf = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.write_lf) {write_lf.set(INPUT.write_lf);}
    let write_field_separator = new abap.types.Character(1, {"qualifiedName":"CHAR1","ddicName":"CHAR1","description":"CHAR1"});
    if (INPUT && INPUT.write_field_separator) {write_field_separator.set(INPUT.write_field_separator);}
    let show_transfer_status = new abap.types.Character(1, {"qualifiedName":"CHAR1","ddicName":"CHAR1","description":"CHAR1"});
    if (INPUT && INPUT.show_transfer_status) {show_transfer_status.set(INPUT.show_transfer_status);}
    let confirm_overwrite = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.confirm_overwrite) {confirm_overwrite.set(INPUT.confirm_overwrite);}
    let data_tab = new abap.types.Character(4);
    if (INPUT && INPUT.data_tab) {data_tab = INPUT.data_tab;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(26, 'gui_download not supported')));
  }
  async get_file_separator(INPUT) {
    return cl_gui_frontend_services.get_file_separator(INPUT);
  }
  static async get_file_separator(INPUT) {
    let file_separator = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.file_separator) {file_separator = INPUT.file_separator;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(32, 'get_file_separator not supported')));
  }
  async execute(INPUT) {
    return cl_gui_frontend_services.execute(INPUT);
  }
  static async execute(INPUT) {
    let document = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.document) {document.set(INPUT.document);}
    let application = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.application) {application.set(INPUT.application);}
    let parameter = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.parameter) {parameter.set(INPUT.parameter);}
    let default_directory = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.default_directory) {default_directory.set(INPUT.default_directory);}
    let maximized = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.maximized) {maximized.set(INPUT.maximized);}
    let minimized = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.minimized) {minimized.set(INPUT.minimized);}
    let synchronous = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.synchronous) {synchronous.set(INPUT.synchronous);}
    let operation = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.operation) {operation.set(INPUT.operation);}
    if (INPUT === undefined || INPUT.operation === undefined) {operation = abap.CharacterFactory.get(4, 'OPEN');}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(21, 'execute not supported')));
  }
  async directory_browse(INPUT) {
    return cl_gui_frontend_services.directory_browse(INPUT);
  }
  static async directory_browse(INPUT) {
    let window_title = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.window_title) {window_title.set(INPUT.window_title);}
    let initial_folder = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.initial_folder) {initial_folder.set(INPUT.initial_folder);}
    let selected_folder = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.selected_folder) {selected_folder = INPUT.selected_folder;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(30, 'directory_browse not supported')));
  }
  async gui_upload(INPUT) {
    return cl_gui_frontend_services.gui_upload(INPUT);
  }
  static async gui_upload(INPUT) {
    let filename = INPUT?.filename;
    if (filename?.getQualifiedName === undefined || filename.getQualifiedName() !== "STRING") { filename = undefined; }
    if (filename === undefined) { filename = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.filename); }
    let filetype = new abap.types.Character(10, {"qualifiedName":"CHAR10","ddicName":"CHAR10","description":""});
    if (INPUT && INPUT.filetype) {filetype.set(INPUT.filetype);}
    let codepage = new abap.types.Character(20, {"qualifiedName":"abap_encoding"});
    if (INPUT && INPUT.codepage) {codepage.set(INPUT.codepage);}
    if (INPUT === undefined || INPUT.codepage === undefined) {codepage = abap.builtin.space;}
    let read_by_line = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.read_by_line) {read_by_line.set(INPUT.read_by_line);}
    let filelength = INPUT?.filelength || new abap.types.Integer({qualifiedName: "I"});
    let data_tab = new abap.types.Character(4);
    if (INPUT && INPUT.data_tab) {data_tab = INPUT.data_tab;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(24, 'gui_upload not supported')));
  }
  async file_open_dialog(INPUT) {
    return cl_gui_frontend_services.file_open_dialog(INPUT);
  }
  static async file_open_dialog(INPUT) {
    let window_title = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.window_title) {window_title.set(INPUT.window_title);}
    let default_filename = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.default_filename) {default_filename.set(INPUT.default_filename);}
    let default_extension = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.default_extension) {default_extension.set(INPUT.default_extension);}
    let multiselection = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.multiselection) {multiselection.set(INPUT.multiselection);}
    let file_filter = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.file_filter) {file_filter.set(INPUT.file_filter);}
    let initial_directory = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.initial_directory) {initial_directory.set(INPUT.initial_directory);}
    let file_table = abap.types.TableFactory.construct(new abap.types.Structure({
    "filename": new abap.types.Character(1024, {"description":"FILENAME"})}, "FILE_TABLE", "FILE_TABLE", {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "FILETABLE");
    if (INPUT && INPUT.file_table) {file_table = INPUT.file_table;}
    let rc = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.rc) {rc = INPUT.rc;}
    let user_action = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.user_action) {user_action = INPUT.user_action;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(30, 'file_open_dialog not supported')));
  }
  async file_save_dialog(INPUT) {
    return cl_gui_frontend_services.file_save_dialog(INPUT);
  }
  static async file_save_dialog(INPUT) {
    let window_title = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.window_title) {window_title.set(INPUT.window_title);}
    let default_extension = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.default_extension) {default_extension.set(INPUT.default_extension);}
    let default_file_name = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.default_file_name) {default_file_name.set(INPUT.default_file_name);}
    let file_filter = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.file_filter) {file_filter.set(INPUT.file_filter);}
    let initial_directory = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.initial_directory) {initial_directory.set(INPUT.initial_directory);}
    let prompt_on_overwrite = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.prompt_on_overwrite) {prompt_on_overwrite.set(INPUT.prompt_on_overwrite);}
    let filename = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.filename) {filename = INPUT.filename;}
    let path = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.path) {path = INPUT.path;}
    let fullpath = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.fullpath) {fullpath = INPUT.fullpath;}
    let user_action = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.user_action) {user_action = INPUT.user_action;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(30, 'file_save_dialog not supported')));
  }
  async get_platform() {
    return cl_gui_frontend_services.get_platform();
  }
  static async get_platform() {
    let platform = new abap.types.Integer({qualifiedName: "I"});
    platform.set(cl_gui_frontend_services.platform_windowsxp);
    return platform;
  }
  async clipboard_export(INPUT) {
    return cl_gui_frontend_services.clipboard_export(INPUT);
  }
  static async clipboard_export(INPUT) {
    let no_auth_check = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.no_auth_check) {no_auth_check.set(INPUT.no_auth_check);}
    let data = INPUT?.data || new abap.types.Character(4);
    let rc = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.rc) {rc = INPUT.rc;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(30, 'clipboard_export not supported')));
  }
  async get_system_directory(INPUT) {
    return cl_gui_frontend_services.get_system_directory(INPUT);
  }
  static async get_system_directory(INPUT) {
    let system_directory = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.system_directory) {system_directory = INPUT.system_directory;}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(34, 'get_system_directory not supported')));
  }
  async get_gui_version(INPUT) {
    return cl_gui_frontend_services.get_gui_version(INPUT);
  }
  static async get_gui_version(INPUT) {
    let version_table = abap.types.TableFactory.construct(new abap.types.Structure({
    "filename": new abap.types.Character(1024, {"description":"FILENAME"})}, "FILE_TABLE", "FILE_TABLE", {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "FILETABLE");
    if (INPUT && INPUT.version_table) {version_table = INPUT.version_table;}
    let rc = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.rc) {rc = INPUT.rc;}
    abap.statements.insertInternal({data: abap.CharacterFactory.get(4, '9999'), table: version_table});
    abap.statements.insertInternal({data: abap.CharacterFactory.get(1, '1'), table: version_table});
    abap.statements.insertInternal({data: abap.CharacterFactory.get(2, '20'), table: version_table});
  }
}
abap.Classes['CL_GUI_FRONTEND_SERVICES'] = cl_gui_frontend_services;
cl_gui_frontend_services.filetype_all = new abap.types.String({qualifiedName: "STRING"});
cl_gui_frontend_services.filetype_all.set('abc');
cl_gui_frontend_services.filetype_xml = new abap.types.String({qualifiedName: "STRING"});
cl_gui_frontend_services.filetype_xml.set('xml');
cl_gui_frontend_services.filetype_text = new abap.types.String({qualifiedName: "STRING"});
cl_gui_frontend_services.filetype_text.set('txt');
cl_gui_frontend_services.action_cancel = new abap.types.Integer({qualifiedName: "I"});
cl_gui_frontend_services.action_cancel.set(1);
cl_gui_frontend_services.action_ok = new abap.types.Integer({qualifiedName: "I"});
cl_gui_frontend_services.action_ok.set(1);
cl_gui_frontend_services.platform_nt351 = new abap.types.Integer({qualifiedName: "I"});
cl_gui_frontend_services.platform_nt351.set(1);
cl_gui_frontend_services.platform_nt40 = new abap.types.Integer({qualifiedName: "I"});
cl_gui_frontend_services.platform_nt40.set(2);
cl_gui_frontend_services.platform_nt50 = new abap.types.Integer({qualifiedName: "I"});
cl_gui_frontend_services.platform_nt50.set(3);
cl_gui_frontend_services.platform_windows95 = new abap.types.Integer({qualifiedName: "I"});
cl_gui_frontend_services.platform_windows95.set(4);
cl_gui_frontend_services.platform_windows98 = new abap.types.Integer({qualifiedName: "I"});
cl_gui_frontend_services.platform_windows98.set(5);
cl_gui_frontend_services.platform_windowsxp = new abap.types.Integer({qualifiedName: "I"});
cl_gui_frontend_services.platform_windowsxp.set(6);
export {cl_gui_frontend_services};