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 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 | 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"); // zcl_abapgit_transport.clas.abap class zcl_abapgit_transport { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_TRANSPORT'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {}; static METHODS = {"COLLECT_ALL_OBJECTS": {"visibility": "I", "parameters": {"RT_OBJECTS": {"type": () => {return (() => { throw new Error("Void type: TR_OBJECTS") })();}, "is_optional": " "}, "IV_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"zif_abapgit_persistence=>ty_value"});}, "is_optional": " "}}}, "SHOW_LOG": {"visibility": "I", "parameters": {"IT_LOG": {"type": () => {return (() => { throw new Error("Void type: SPROT_U_TAB") })();}, "is_optional": " "}, "IV_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}, "READ_REQUESTS": {"visibility": "O", "parameters": {"RT_REQUESTS": {"type": () => {return (() => { throw new Error("Void type: TRWBO_REQUESTS") })();}, "is_optional": " "}, "IT_TRKORR": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_transport=>ty_trkorr_tt");}, "is_optional": " "}}}, "FIND_TOP_PACKAGE": {"visibility": "O", "parameters": {"RV_PACKAGE": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"});}, "is_optional": " "}, "IT_TADIR": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_tadir_tt");}, "is_optional": " "}}}, "RESOLVE": {"visibility": "O", "parameters": {"RT_TADIR": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_tadir_tt");}, "is_optional": " "}, "IT_REQUESTS": {"type": () => {return (() => { throw new Error("Void type: TRWBO_REQUESTS") })();}, "is_optional": " "}, "IV_DELETED_OBJECTS": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "ZIP": {"visibility": "U", "parameters": {"RV_XSTR": {"type": () => {return new abap.types.XString({qualifiedName: "XSTRING"});}, "is_optional": " "}, "IV_SHOW_LOG_POPUP": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_LOGIC": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IS_TRKORR": {"type": () => {return (() => { throw new Error("Void type: TRWBO_REQUEST_HEADER") })();}, "is_optional": " "}}}, "TO_TADIR": {"visibility": "U", "parameters": {"RT_TADIR": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_tadir_tt");}, "is_optional": " "}, "IV_TRKORR": {"type": () => {return new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"});}, "is_optional": " "}, "IV_DELETED_OBJECTS": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}, "ADD_ALL_OBJECTS_TO_TRANS_REQ": {"visibility": "U", "parameters": {"IV_KEY": {"type": () => {return new abap.types.Character(12, {"qualifiedName":"zif_abapgit_persistence=>ty_value"});}, "is_optional": " "}}}}; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { }; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async add_all_objects_to_trans_req(INPUT) { return zcl_abapgit_transport.add_all_objects_to_trans_req(INPUT); } static async add_all_objects_to_trans_req(INPUT) { let iv_key = INPUT?.iv_key; if (iv_key?.getQualifiedName === undefined || iv_key.getQualifiedName() !== "ZIF_ABAPGIT_PERSISTENCE=>TY_VALUE") { iv_key = undefined; } if (iv_key === undefined) { iv_key = new abap.types.Character(12, {"qualifiedName":"zif_abapgit_persistence=>ty_value"}).set(INPUT.iv_key); } let ls_request = (() => { throw new Error("Void type: TRWBO_REQUEST_HEADER") })(); let lt_e071 = (() => { throw new Error("Void type: TR_OBJECTS") })(); let lv_text = new abap.types.String({qualifiedName: "STRING"}); let lv_answer = new abap.types.Character(1, {}); let lv_lock_objects = (() => { throw new Error("Void type: TRPARFLAG") })(); let lt_log = (() => { throw new Error("Void type: SPROT_U_TAB") })(); lv_answer.set((await (await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_popups()).get().zif_abapgit_popups$popup_to_confirm({iv_titlebar: new abap.types.String().set(`Lock objects?`), iv_text_question: new abap.types.String().set(`Shall all objects be locked in the transport request?`), iv_display_cancel_button: abap.builtin.abap_true}))); let unique43 = lv_answer; if (abap.compare.eq(unique43, abap.CharacterFactory.get(1, '1'))) { lv_lock_objects.set(abap.builtin.abap_true); } else if (abap.compare.eq(unique43, abap.CharacterFactory.get(1, '2'))) { lv_lock_objects.set(abap.builtin.abap_false); } else { return; } lt_e071.set((await this.collect_all_objects({iv_key: iv_key}))); try { if (abap.FunctionModules['TRINT_REQUEST_CHOICE'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} } await abap.FunctionModules['TRINT_REQUEST_CHOICE']({exporting: {iv_request_types: abap.CharacterFactory.get(5, 'FTCOK'), iv_lock_objects: lv_lock_objects, iv_with_error_log: abap.builtin.abap_false}, importing: {es_request: ls_request, et_log: lt_log}, tables: {it_e071: lt_e071}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { case "INVALID_REQUEST": abap.builtin.sy.get().subrc.set(1); break; case "INVALID_REQUEST_TYPE": abap.builtin.sy.get().subrc.set(2); break; case "USER_NOT_OWNER": abap.builtin.sy.get().subrc.set(3); break; case "NO_OBJECTS_APPENDED": abap.builtin.sy.get().subrc.set(4); break; case "ENQUEUE_ERROR": abap.builtin.sy.get().subrc.set(5); break; case "CANCELLED_BY_USER": abap.builtin.sy.get().subrc.set(6); break; case "RECURSIVE_CALL": abap.builtin.sy.get().subrc.set(7); break; default: abap.builtin.sy.get().subrc.set(8); break; } } else { throw e; } } if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { lv_text.set(new abap.types.String().set(`Objects successfully added to ${abap.templateFormatting(ls_request.get().trkorr)}`)); await abap.statements.message({exception: lv_text, type: abap.CharacterFactory.get(1, 'S')}); return; } if (abap.compare.gt(abap.builtin.lines({val: lt_log}), abap.IntegerFactory.get(0))) { await this.show_log({it_log: lt_log, iv_title: new abap.types.String().set(`Error log`)}); } else { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100(); } } async collect_all_objects(INPUT) { return zcl_abapgit_transport.collect_all_objects(INPUT); } static async collect_all_objects(INPUT) { let rt_objects = (() => { throw new Error("Void type: TR_OBJECTS") })(); let iv_key = INPUT?.iv_key; if (iv_key?.getQualifiedName === undefined || iv_key.getQualifiedName() !== "ZIF_ABAPGIT_PERSISTENCE=>TY_VALUE") { iv_key = undefined; } if (iv_key === undefined) { iv_key = new abap.types.Character(12, {"qualifiedName":"zif_abapgit_persistence=>ty_value"}).set(INPUT.iv_key); } let lt_objects = (() => { throw new Error("Void type: SCTS_TADIR") })(); let lt_objects_all = (() => { throw new Error("Void type: SCTS_TADIR") })(); let ls_e071 = (() => { throw new Error("Void type: TR_OBJECTS") })(); let li_repo = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_REPO", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_REPO"}); let lv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}); let lt_packages = abap.types.TableFactory.construct(new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_sap_package=>ty_devclass_tt"); let fs_lv_package_ = new abap.types.FieldSymbol(new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"})); let fs_ls_object_ = new abap.types.FieldSymbol(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "srcsystem": new abap.types.Character(5, {}), "edtflag": new abap.types.Character(1, {}), "masterlang": new abap.types.Character(1, {}), "component": new abap.types.Character(30, {}), "author": new abap.types.Character(12, {})}, "TADIR", "TADIR", {}, {})); li_repo.set((await (await abap.Classes['ZCL_ABAPGIT_REPO_SRV'].get_instance()).get().zif_abapgit_repo_srv$get({iv_key: iv_key}))); lv_package.set((await li_repo.get().zif_abapgit_repo$get_package())); lt_packages.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_sap_package({iv_package: lv_package})).get().zif_abapgit_sap_package$list_subpackages())); abap.statements.insertInternal({data: lv_package, table: lt_packages}); for await (const unique44 of abap.statements.loop(lt_packages)) { fs_lv_package_.assign(unique44); lt_objects.clear(); try { if (abap.FunctionModules['TRINT_SELECT_OBJECTS'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} } await abap.FunctionModules['TRINT_SELECT_OBJECTS']({exporting: {iv_devclass: fs_lv_package_, iv_via_selscreen: abap.builtin.abap_false}, importing: {et_objects_tadir: lt_objects}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { case "CANCELLED_BY_USER": abap.builtin.sy.get().subrc.set(1); break; case "INVALID_INPUT": abap.builtin.sy.get().subrc.set(2); break; default: abap.builtin.sy.get().subrc.set(3); break; } } else { throw e; } } if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100(); } abap.statements.insertInternal({lines: true, data: lt_objects, table: lt_objects_all}); } if (abap.compare.eq(abap.builtin.lines({val: lt_objects_all}), abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`No objects found`)}); } for await (const unique45 of abap.statements.loop(lt_objects_all)) { fs_ls_object_.assign(unique45); ls_e071.clear(); abap.statements.moveCorresponding(fs_ls_object_, ls_e071); abap.statements.insertInternal({data: ls_e071, table: rt_objects}); } return rt_objects; } async find_top_package(INPUT) { return zcl_abapgit_transport.find_top_package(INPUT); } static async find_top_package(INPUT) { let rv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}); let it_tadir = INPUT?.it_tadir; if (it_tadir?.getQualifiedName === undefined || it_tadir.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR_TT") { it_tadir = undefined; } if (it_tadir === undefined) { it_tadir = abap.types.TableFactory.construct(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_tadir_tt").set(INPUT.it_tadir); } let lt_obj = abap.types.TableFactory.construct(new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_sap_package=>ty_devclass_tt"); let lt_super = abap.types.TableFactory.construct(new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_sap_package=>ty_devclass_tt"); let lv_super = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}); let lv_index = new abap.types.Integer({qualifiedName: "I"}); let fs_ls_tadir_ = new abap.types.FieldSymbol(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {})); abap.statements.readTable(it_tadir,{index: abap.IntegerFactory.get(1), assigning: fs_ls_tadir_}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); lt_super.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_sap_package({iv_package: fs_ls_tadir_.get().devclass})).get().zif_abapgit_sap_package$list_superpackages())); for await (const unique46 of abap.statements.loop(it_tadir)) { fs_ls_tadir_.assign(unique46); lt_obj.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_sap_package({iv_package: fs_ls_tadir_.get().devclass})).get().zif_abapgit_sap_package$list_superpackages())); for await (const unique47 of abap.statements.loop(lt_super)) { lv_super.set(unique47); lv_index.set(abap.builtin.sy.get().tabix); abap.statements.readTable(lt_obj,{from: lv_super}); if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.statements.deleteInternal(lt_super,{index: lv_index}); } } } abap.statements.readTable(lt_super,{index: abap.builtin.lines({val: lt_super}), into: rv_package}); return rv_package; } async read_requests(INPUT) { return zcl_abapgit_transport.read_requests(INPUT); } static async read_requests(INPUT) { let rt_requests = (() => { throw new Error("Void type: TRWBO_REQUESTS") })(); let it_trkorr = INPUT?.it_trkorr; if (it_trkorr?.getQualifiedName === undefined || it_trkorr.getQualifiedName() !== "ZCL_ABAPGIT_TRANSPORT=>TY_TRKORR_TT") { it_trkorr = undefined; } if (it_trkorr === undefined) { it_trkorr = abap.types.TableFactory.construct(new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_transport=>ty_trkorr_tt").set(INPUT.it_trkorr); } let lt_requests = (() => { throw new Error("Void type: TRWBO_REQUESTS") })(); let fs_lv_trkorr_ = new abap.types.FieldSymbol(new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})); for await (const unique48 of abap.statements.loop(it_trkorr)) { fs_lv_trkorr_.assign(unique48); try { if (abap.FunctionModules['TR_READ_REQUEST_WITH_TASKS'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} } await abap.FunctionModules['TR_READ_REQUEST_WITH_TASKS']({exporting: {iv_trkorr: fs_lv_trkorr_}, importing: {et_requests: lt_requests}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { case "INVALID_INPUT": abap.builtin.sy.get().subrc.set(1); break; default: abap.builtin.sy.get().subrc.set(2); break; } } else { throw e; } } if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100(); } abap.statements.append({source: lt_requests, lines: true, target: rt_requests}); } return rt_requests; } async resolve(INPUT) { return zcl_abapgit_transport.resolve(INPUT); } static async resolve(INPUT) { let rt_tadir = abap.types.TableFactory.construct(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_tadir_tt"); let it_requests = INPUT?.it_requests; if (it_requests === undefined) { it_requests = (() => { throw new Error("Void type: TRWBO_REQUESTS") })().set(INPUT.it_requests); } let iv_deleted_objects = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_deleted_objects) {iv_deleted_objects.set(INPUT.iv_deleted_objects);} if (INPUT === undefined || INPUT.iv_deleted_objects === undefined) {iv_deleted_objects = abap.builtin.abap_false;} let lv_object = new abap.types.Character(4, {}); let lv_obj_name = new abap.types.Character(40, {}); let ls_tadir = new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}); let lv_result = (() => { throw new Error("Void type: TRPARI") })(); let ls_tadir_sap = new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "srcsystem": new abap.types.Character(5, {}), "edtflag": new abap.types.Character(1, {}), "masterlang": new abap.types.Character(1, {}), "component": new abap.types.Character(30, {}), "author": new abap.types.Character(12, {})}, "TADIR", "TADIR", {}, {}); let fs_ls_request_ = new abap.types.FieldSymbol((() => { throw new Error("Void type: TRWBO_REQUESTS") })()); let fs_ls_object_ = new abap.types.FieldSymbol((() => { throw new Error("Void type: TRWBO_REQUESTS") })()); for await (const unique49 of abap.statements.loop(it_requests)) { fs_ls_request_.assign(unique49); for await (const unique50 of abap.statements.loop(fs_ls_request_.get().objects)) { fs_ls_object_.assign(unique50); if (abap.compare.eq(fs_ls_object_.get().pgmid, abap.CharacterFactory.get(4, 'LIMU')) && abap.compare.ne(fs_ls_object_.get().object, abap.CharacterFactory.get(4, 'VARX'))) { if (abap.FunctionModules['TR_CHECK_TYPE'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} } await abap.FunctionModules['TR_CHECK_TYPE']({exporting: {wi_e071: fs_ls_object_}, importing: {we_tadir: ls_tadir_sap, pe_result: lv_result}}); if (abap.compare.na(lv_result, abap.CharacterFactory.get(2, 'TL')) || abap.compare.initial(ls_tadir_sap)) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(24, 'error from TR_CHECK_TYPE')}); } lv_object.set(ls_tadir_sap.get().object); lv_obj_name.set(ls_tadir_sap.get().obj_name); } else { lv_object.set(fs_ls_object_.get().object); lv_obj_name.set(fs_ls_object_.get().obj_name); } ls_tadir.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_tadir()).get().zif_abapgit_tadir$read_single({iv_object: lv_object, iv_obj_name: lv_obj_name}))); if (abap.compare.initial(ls_tadir.get().delflag) || abap.compare.eq(iv_deleted_objects, abap.builtin.abap_true)) { abap.statements.append({source: ls_tadir, target: rt_tadir}); } } } abap.statements.sort(rt_tadir,{by: [{component: "object"},{component: "obj_name"}]}); await abap.statements.deleteInternal(rt_tadir,{adjacent: true,comparing: ['object','obj_name']}); await abap.statements.deleteInternal(rt_tadir,{where: async (I) => {return abap.compare.initial(I.table_line);}}); return rt_tadir; } async show_log(INPUT) { return zcl_abapgit_transport.show_log(INPUT); } static async show_log(INPUT) { let it_log = INPUT?.it_log; if (it_log === undefined) { it_log = (() => { throw new Error("Void type: SPROT_U_TAB") })().set(INPUT.it_log); } let iv_title = INPUT?.iv_title; if (iv_title?.getQualifiedName === undefined || iv_title.getQualifiedName() !== "STRING") { iv_title = undefined; } if (iv_title === undefined) { iv_title = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_title); } let li_log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"}); let lv_message = new abap.types.String({qualifiedName: "STRING"}); let fs_ls_log_ = new abap.types.FieldSymbol((() => { throw new Error("Void type: SPROT_U") })()); li_log.set(await (new abap.Classes['ZCL_ABAPGIT_LOG']()).constructor_({iv_title: iv_title})); for await (const unique51 of abap.statements.loop(it_log)) { fs_ls_log_.assign(unique51); await abap.statements.message({into: lv_message, id: fs_ls_log_.get().ag, type: fs_ls_log_.get().severity, number: fs_ls_log_.get().msgnr, with: [fs_ls_log_.get().var1,fs_ls_log_.get().var2,fs_ls_log_.get().var3,fs_ls_log_.get().var4]}); await li_log.get().zif_abapgit_log$add({iv_msg: lv_message, iv_type: fs_ls_log_.get().severity}); } await abap.Classes['ZCL_ABAPGIT_LOG_VIEWER'].show_log({ii_log: li_log}); } async to_tadir(INPUT) { return zcl_abapgit_transport.to_tadir(INPUT); } static async to_tadir(INPUT) { let rt_tadir = abap.types.TableFactory.construct(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_tadir_tt"); let iv_trkorr = INPUT?.iv_trkorr; if (iv_trkorr?.getQualifiedName === undefined || iv_trkorr.getQualifiedName() !== "TRKORR") { iv_trkorr = undefined; } if (iv_trkorr === undefined) { iv_trkorr = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}).set(INPUT.iv_trkorr); } let iv_deleted_objects = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_deleted_objects) {iv_deleted_objects.set(INPUT.iv_deleted_objects);} if (INPUT === undefined || INPUT.iv_deleted_objects === undefined) {iv_deleted_objects = abap.builtin.abap_false;} let lt_requests = (() => { throw new Error("Void type: TRWBO_REQUESTS") })(); let lt_trkorr = abap.types.TableFactory.construct(new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_transport=>ty_trkorr_tt"); if (abap.compare.initial(iv_trkorr)) { return rt_tadir; } abap.statements.insertInternal({data: iv_trkorr, table: lt_trkorr}); lt_requests.set((await this.read_requests({it_trkorr: lt_trkorr}))); rt_tadir.set((await this.resolve({it_requests: lt_requests, iv_deleted_objects: iv_deleted_objects}))); return rt_tadir; } async zip(INPUT) { return zcl_abapgit_transport.zip(INPUT); } static async zip(INPUT) { let rv_xstr = new abap.types.XString({qualifiedName: "XSTRING"}); let iv_show_log_popup = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_show_log_popup) {iv_show_log_popup.set(INPUT.iv_show_log_popup);} if (INPUT === undefined || INPUT.iv_show_log_popup === undefined) {iv_show_log_popup = abap.builtin.abap_true;} let iv_logic = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_logic) {iv_logic.set(INPUT.iv_logic);} let is_trkorr = (() => { throw new Error("Void type: TRWBO_REQUEST_HEADER") })(); if (INPUT && INPUT.is_trkorr) {is_trkorr.set(INPUT.is_trkorr);} let lt_requests = (() => { throw new Error("Void type: TRWBO_REQUESTS") })(); let lt_tadir = abap.types.TableFactory.construct(new abap.types.Structure({ "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "korrnum": new abap.types.Character(10, {}), "delflag": new abap.types.Character(1, {}), "genflag": new abap.types.Character(1, {}), "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TADIR-PATH"}), "srcsystem": new abap.types.Character(5, {}), "masterlang": new abap.types.Character(1, {})}, "zif_abapgit_definitions=>ty_tadir", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_tadir_tt"); let lv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}); let lo_dot_abapgit = new abap.types.ABAPObject({qualifiedName: "ZCL_ABAPGIT_DOT_ABAPGIT", RTTIName: "\\CLASS=ZCL_ABAPGIT_DOT_ABAPGIT"}); let ls_local_settings = new abap.types.Structure({ "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_LOCAL_SETTINGS-DISPLAY_NAME"}), "ignore_subpackages": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "write_protected": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "only_local_objects": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "code_inspector_check_variant": new abap.types.Character(30, {"qualifiedName":"SCI_CHKV","ddicName":"SCI_CHKV","description":"SCI_CHKV"}), "block_commit": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "main_language_only": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suppress_lxe_po_comments": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "labels": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_LOCAL_SETTINGS-LABELS"}), "transport_request": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "customizing_request": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "flow": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "exclude_remote_paths": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE")}, "zif_abapgit_persistence=>ty_local_settings", undefined, {}, {}); let lt_trkorr = abap.types.TableFactory.construct(new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_transport=>ty_trkorr_tt"); let lv_trkorr = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}); if (INPUT && INPUT.is_trkorr) { abap.statements.append({source: is_trkorr.get().trkorr, target: lt_trkorr}); } else { lv_trkorr.set((await (await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_popups()).get().zif_abapgit_popups$popup_to_select_transport())); if (abap.compare.initial(lv_trkorr) === false) { abap.statements.append({source: lv_trkorr, target: lt_trkorr}); } } if (abap.compare.eq(abap.builtin.lines({val: lt_trkorr}), abap.IntegerFactory.get(0))) { return rv_xstr; } lt_requests.set((await this.read_requests({it_trkorr: lt_trkorr}))); lt_tadir.set((await this.resolve({it_requests: lt_requests}))); if (abap.compare.eq(abap.builtin.lines({val: lt_tadir}), abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(15, 'empty transport')}); } lv_package.set((await this.find_top_package({it_tadir: lt_tadir}))); if (abap.compare.initial(lv_package)) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(27, 'error finding super package')}); } lo_dot_abapgit.set((await abap.Classes['ZCL_ABAPGIT_DOT_ABAPGIT'].build_default())); if (INPUT && INPUT.iv_logic && abap.compare.initial(iv_logic) === false) { await lo_dot_abapgit.get().set_folder_logic({iv_logic: iv_logic}); } else { await lo_dot_abapgit.get().set_folder_logic({iv_logic: (await (await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_popups()).get().zif_abapgit_popups$popup_folder_logic())}); } rv_xstr.set((await abap.Classes['ZCL_ABAPGIT_ZIP'].export({iv_package: lv_package, io_dot_abapgit: lo_dot_abapgit, is_local_settings: ls_local_settings, it_filter: lt_tadir, iv_show_log: iv_show_log_popup}))); return rv_xstr; } } abap.Classes['ZCL_ABAPGIT_TRANSPORT'] = zcl_abapgit_transport; zcl_abapgit_transport.ty_trkorr_tt = abap.types.TableFactory.construct(new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_transport=>ty_trkorr_tt"); export {zcl_abapgit_transport}; |