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 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 | 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 | await import("./zcl_abapgit_popups.clas.locals.mjs"); const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_popups.clas.abap class zcl_abapgit_popups { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_POPUPS'; static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_POPUPS"]; static ATTRIBUTES = {"MS_POSITION": {"type": () => {return new abap.types.Structure({ "start_column": new abap.types.Integer({qualifiedName: "I"}), "start_row": new abap.types.Integer({qualifiedName: "I"}), "end_column": new abap.types.Integer({qualifiedName: "I"}), "end_row": new abap.types.Integer({qualifiedName: "I"})}, "zif_abapgit_popups=>ty_popup_position", undefined, {}, {});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "C_ANSWER_CANCEL": {"type": () => {return new abap.types.Character(1, {});}, "visibility": "I", "is_constant": "X", "is_class": "X"}, "ZIF_ABAPGIT_POPUPS~C_NEW_BRANCH_LABEL": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}}; static METHODS = {"ADD_FIELD": {"visibility": "I", "parameters": {"IV_TABNAME": {"type": () => {return new abap.types.Character(30, {});}, "is_optional": " "}, "IV_FIELDNAME": {"type": () => {return new abap.types.Character(30, {});}, "is_optional": " "}, "IV_FIELDTEXT": {"type": () => {return new abap.types.Character(20, {});}, "is_optional": " "}, "IV_VALUE": {"type": () => {return new abap.types.Character();}, "is_optional": " "}, "IV_FIELD_ATTR": {"type": () => {return new abap.types.Character(2, {});}, "is_optional": " "}, "IV_OBLIGATORY": {"type": () => {return (() => { throw new Error("Void type: SPO_OBL") })();}, "is_optional": " "}, "CT_FIELDS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_sval_tt");}, "is_optional": " "}}}, "_POPUP_3_GET_VALUES": {"visibility": "I", "parameters": {"IV_POPUP_TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_NO_VALUE_CHECK": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "EV_VALUE_1": {"type": () => {return (() => { throw new Error("Void type: SPO_VALUE") })();}, "is_optional": " "}, "EV_VALUE_2": {"type": () => {return (() => { throw new Error("Void type: SPO_VALUE") })();}, "is_optional": " "}, "EV_VALUE_3": {"type": () => {return (() => { throw new Error("Void type: SPO_VALUE") })();}, "is_optional": " "}, "CT_FIELDS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_lt_fields");}, "is_optional": " "}}}, "COMMIT_LIST_BUILD": {"visibility": "I", "parameters": {"IV_REPO_URL": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_BRANCH_NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "ET_VALUE_TAB": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "message": new abap.types.Character(100, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-message"}), "datetime": new abap.types.Character(20, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-datetime"})}, "zcl_abapgit_popups=>ty_commit_value_tab", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_commit_value_tab_tt");}, "is_optional": " "}, "ET_COMMITS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent2": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "author": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-AUTHOR"}), "email": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-EMAIL"}), "time": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-TIME"}), "message": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MESSAGE"}), "body": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-body"), "branch": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-BRANCH"}), "merge": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MERGE"}), "tags": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-tags"), "create": abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-NAME"}), "parent": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-PARENT"})}, "zif_abapgit_git_definitions=>ty_create", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-create"), "compressed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_git_definitions=>ty_commit", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit_tt");}, "is_optional": " "}}}, "CENTER": {"visibility": "U", "parameters": {"RS_POSITION": {"type": () => {return new abap.types.Structure({ "start_column": new abap.types.Integer({qualifiedName: "I"}), "start_row": new abap.types.Integer({qualifiedName: "I"}), "end_column": new abap.types.Integer({qualifiedName: "I"}), "end_row": new abap.types.Integer({qualifiedName: "I"})}, "zif_abapgit_popups=>ty_popup_position", undefined, {}, {});}, "is_optional": " "}, "IV_WIDTH": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "IV_HEIGHT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}}}; #ms_position; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "add_field": this.#add_field.bind(this), "_popup_3_get_values": this.#_popup_3_get_values.bind(this), "commit_list_build": this.#commit_list_build.bind(this), }; this.#ms_position = new abap.types.Structure({ "start_column": new abap.types.Integer({qualifiedName: "I"}), "start_row": new abap.types.Integer({qualifiedName: "I"}), "end_column": new abap.types.Integer({qualifiedName: "I"}), "end_row": new abap.types.Integer({qualifiedName: "I"})}, "zif_abapgit_popups=>ty_popup_position", undefined, {}, {}); this.FRIENDS_ACCESS_INSTANCE["ms_position"] = this.#ms_position; this.zif_abapgit_popups$c_new_branch_label = abap.Classes['ZIF_ABAPGIT_POPUPS'].zif_abapgit_popups$c_new_branch_label; this.c_answer_cancel = zcl_abapgit_popups.c_answer_cancel; } async constructor_(INPUT) { if (super.constructor_) { await super.constructor_(INPUT); } return this; } async #add_field(INPUT) { let iv_tabname = INPUT?.iv_tabname; if (iv_tabname === undefined) { iv_tabname = new abap.types.Character(30, {}).set(INPUT.iv_tabname); } let iv_fieldname = INPUT?.iv_fieldname; if (iv_fieldname === undefined) { iv_fieldname = new abap.types.Character(30, {}).set(INPUT.iv_fieldname); } let iv_fieldtext = INPUT?.iv_fieldtext; if (iv_fieldtext === undefined) { iv_fieldtext = new abap.types.Character(20, {}).set(INPUT.iv_fieldtext); } let iv_value = INPUT?.iv_value || new abap.types.Character(); if (INPUT === undefined || INPUT.iv_value === undefined) {iv_value = abap.CharacterFactory.get(1, '');} let iv_field_attr = new abap.types.Character(2, {}); if (INPUT && INPUT.iv_field_attr) {iv_field_attr.set(INPUT.iv_field_attr);} if (INPUT === undefined || INPUT.iv_field_attr === undefined) {iv_field_attr = abap.CharacterFactory.get(1, '');} let iv_obligatory = (() => { throw new Error("Void type: SPO_OBL") })(); if (INPUT && INPUT.iv_obligatory) {iv_obligatory.set(INPUT.iv_obligatory);} let ct_fields = abap.types.TableFactory.construct(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_sval_tt"); if (INPUT && INPUT.ct_fields) {ct_fields = INPUT.ct_fields;} let fs_ls_field_ = new abap.types.FieldSymbol(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {})); fs_ls_field_.assign(ct_fields.appendInitial()); fs_ls_field_.get().tabname.set(iv_tabname); fs_ls_field_.get().fieldname.set(iv_fieldname); fs_ls_field_.get().fieldtext.set(iv_fieldtext); fs_ls_field_.get().value.set(iv_value); fs_ls_field_.get().field_attr.set(iv_field_attr); fs_ls_field_.get().field_obl.set(iv_obligatory); } async center(INPUT) { return zcl_abapgit_popups.center(INPUT); } static async center(INPUT) { let rs_position = new abap.types.Structure({ "start_column": new abap.types.Integer({qualifiedName: "I"}), "start_row": new abap.types.Integer({qualifiedName: "I"}), "end_column": new abap.types.Integer({qualifiedName: "I"}), "end_row": new abap.types.Integer({qualifiedName: "I"})}, "zif_abapgit_popups=>ty_popup_position", undefined, {}, {}); let iv_width = INPUT?.iv_width; if (iv_width?.getQualifiedName === undefined || iv_width.getQualifiedName() !== "I") { iv_width = undefined; } if (iv_width === undefined) { iv_width = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.iv_width); } let iv_height = INPUT?.iv_height; if (iv_height?.getQualifiedName === undefined || iv_height.getQualifiedName() !== "I") { iv_height = undefined; } if (iv_height === undefined) { iv_height = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.iv_height); } let lc_min_size = new abap.types.Integer({qualifiedName: "I"}); lc_min_size.set(10); let lc_min_pos = new abap.types.Integer({qualifiedName: "I"}); lc_min_pos.set(5); if (abap.compare.gt(abap.builtin.sy.get().scols, lc_min_size) && abap.compare.gt(iv_width, abap.IntegerFactory.get(0)) && abap.compare.gt(abap.builtin.sy.get().scols, iv_width)) { rs_position.get().start_column.set(abap.builtin.nmax({val1: abap.operators.divide(abap.operators.minus(abap.builtin.sy.get().scols,iv_width),abap.IntegerFactory.get(2)), val2: lc_min_pos})); } else { rs_position.get().start_column.set(lc_min_pos); } if (abap.compare.gt(abap.builtin.sy.get().srows, lc_min_size) && abap.compare.gt(iv_height, abap.IntegerFactory.get(0)) && abap.compare.gt(abap.builtin.sy.get().srows, iv_height)) { rs_position.get().start_row.set(abap.builtin.nmax({val1: abap.operators.minus(abap.operators.divide(abap.operators.minus(abap.builtin.sy.get().srows,iv_height),abap.IntegerFactory.get(2)),abap.IntegerFactory.get(1)), val2: lc_min_pos})); } else { rs_position.get().start_row.set(lc_min_pos); } rs_position.get().end_column.set(abap.operators.add(rs_position.get().start_column,iv_width)); rs_position.get().end_row.set(abap.operators.add(rs_position.get().start_row,iv_height)); return rs_position; } async #commit_list_build(INPUT) { let iv_repo_url = INPUT?.iv_repo_url; if (iv_repo_url?.getQualifiedName === undefined || iv_repo_url.getQualifiedName() !== "STRING") { iv_repo_url = undefined; } if (iv_repo_url === undefined) { iv_repo_url = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_repo_url); } let iv_branch_name = INPUT?.iv_branch_name; if (iv_branch_name?.getQualifiedName === undefined || iv_branch_name.getQualifiedName() !== "STRING") { iv_branch_name = undefined; } if (iv_branch_name === undefined) { iv_branch_name = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_branch_name); } let et_value_tab = INPUT?.et_value_tab || abap.types.TableFactory.construct(new abap.types.Structure({ "commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "message": new abap.types.Character(100, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-message"}), "datetime": new abap.types.Character(20, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-datetime"})}, "zcl_abapgit_popups=>ty_commit_value_tab", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_commit_value_tab_tt"); let et_commits = INPUT?.et_commits || abap.types.TableFactory.construct(new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent2": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "author": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-AUTHOR"}), "email": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-EMAIL"}), "time": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-TIME"}), "message": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MESSAGE"}), "body": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-body"), "branch": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-BRANCH"}), "merge": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MERGE"}), "tags": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-tags"), "create": abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-NAME"}), "parent": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-PARENT"})}, "zif_abapgit_git_definitions=>ty_create", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-create"), "compressed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_git_definitions=>ty_commit", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit_tt"); let lv_unix_time = new abap.types.Character(16, {"qualifiedName":"zcl_abapgit_git_time=>ty_unixtime"}); let lv_date = new abap.types.Date({qualifiedName: "D"}); let lv_date_string = new abap.types.Character(12, {}); let lv_time = new abap.types.Time({qualifiedName: "T"}); let lv_time_string = new abap.types.Character(10, {}); let fs_ls_commit_ = new abap.types.FieldSymbol(new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent2": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "author": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-AUTHOR"}), "email": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-EMAIL"}), "time": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-TIME"}), "message": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MESSAGE"}), "body": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-body"), "branch": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-BRANCH"}), "merge": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MERGE"}), "tags": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-tags"), "create": abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-NAME"}), "parent": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-PARENT"})}, "zif_abapgit_git_definitions=>ty_create", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-create"), "compressed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_git_definitions=>ty_commit", undefined, {}, {})); let fs_ls_value_tab_ = new abap.types.FieldSymbol(new abap.types.Structure({ "commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "message": new abap.types.Character(100, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-message"}), "datetime": new abap.types.Character(20, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-datetime"})}, "zcl_abapgit_popups=>ty_commit_value_tab", undefined, {}, {})); et_commits.clear(); et_value_tab.clear(); et_commits.set(((await abap.Classes['ZCL_ABAPGIT_GIT_COMMIT'].get_by_branch({iv_branch_name: iv_branch_name, iv_repo_url: iv_repo_url, iv_deepen_level: abap.IntegerFactory.get(99), iv_sorted: abap.builtin.abap_false}))).get().commits); if (abap.compare.initial(et_commits)) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`No commits are available in this branch.`)}); } abap.statements.sort(et_commits,{by: [{component: "time", descending: true}]}); for await (const unique1054 of abap.statements.loop(et_commits)) { fs_ls_commit_.assign(unique1054); fs_ls_value_tab_.assign(et_value_tab.appendInitial()); fs_ls_value_tab_.get().commit.set(fs_ls_commit_.get().sha1); fs_ls_value_tab_.get().message.set(fs_ls_commit_.get().message); lv_unix_time.set(fs_ls_commit_.get().time); await abap.Classes['ZCL_ABAPGIT_GIT_TIME'].get_utc({iv_unix: lv_unix_time, ev_time: lv_time, ev_date: lv_date}); abap.statements.write(lv_date,{target: lv_date_string}); abap.statements.write(lv_time,{target: lv_time_string}); fs_ls_value_tab_.get().datetime.set(abap.operators.concat(new abap.types.String().set(`${abap.templateFormatting(lv_date_string)}, `),new abap.types.String().set(`${abap.templateFormatting(lv_time_string)}`))); } } async zif_abapgit_popups$branch_list_popup(INPUT) { let rs_branch = new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-NAME"}), "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}), "is_head": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-DISPLAY_NAME"})}, "zif_abapgit_git_definitions=>ty_git_branch", undefined, {}, {}); let iv_url = INPUT?.iv_url; if (iv_url?.getQualifiedName === undefined || iv_url.getQualifiedName() !== "STRING") { iv_url = undefined; } if (iv_url === undefined) { iv_url = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_url); } let iv_default_branch = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_default_branch) {iv_default_branch.set(INPUT.iv_default_branch);} let iv_show_new_option = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_show_new_option) {iv_show_new_option.set(INPUT.iv_show_new_option);} let iv_hide_branch = new abap.types.String({qualifiedName: "ZIF_ABAPGIT_PERSISTENCE=>TY_REPO_XML-BRANCH_NAME"}); if (INPUT && INPUT.iv_hide_branch) {iv_hide_branch.set(INPUT.iv_hide_branch);} let iv_hide_head = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_hide_head) {iv_hide_head.set(INPUT.iv_hide_head);} let lo_branches = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GIT_BRANCH_LIST", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GIT_BRANCH_LIST"}); let lt_branches = abap.types.TableFactory.construct(new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-NAME"}), "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}), "is_head": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-DISPLAY_NAME"})}, "zif_abapgit_git_definitions=>ty_git_branch", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"name_key","type":"SORTED","isUnique":false,"keyFields":["NAME"]}]}, "zif_abapgit_git_definitions=>ty_git_branch_list_tt"); let lv_answer = new abap.types.Character(1, {}); let lv_default = new abap.types.Integer({qualifiedName: "I"}); let lv_head_suffix = new abap.types.String({qualifiedName: "STRING"}); let lv_head_symref = new abap.types.String({qualifiedName: "STRING"}); let lv_text = new abap.types.String({qualifiedName: "STRING"}); let lt_selection = abap.types.TableFactory.construct((() => { throw new Error("Void type: SPOPLI") })(), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let fs_ls_sel_ = new abap.types.FieldSymbol((() => { throw new Error("Void type: SPOPLI") })()); let fs_ls_branch_ = new abap.types.FieldSymbol(new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-NAME"}), "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}), "is_head": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-DISPLAY_NAME"})}, "zif_abapgit_git_definitions=>ty_git_branch", undefined, {}, {})); lo_branches.set((await (await abap.Classes['ZCL_ABAPGIT_GIT_FACTORY'].get_git_transport()).get().zif_abapgit_git_transport$branches({iv_url: iv_url}))); lt_branches.set((await lo_branches.get().zif_abapgit_git_branch_list$get_branches_only())); lv_head_suffix.set(new abap.types.String().set(` (${abap.templateFormatting(abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_head_name)})`)); lv_head_symref.set((await lo_branches.get().zif_abapgit_git_branch_list$get_head_symref())); if (abap.compare.initial(iv_hide_branch) === false) { await abap.statements.deleteInternal(lt_branches,{where: async (I) => {return abap.compare.eq(I.name, iv_hide_branch);}}); } if (abap.compare.initial(iv_hide_head) === false) { await abap.statements.deleteInternal(lt_branches,{where: async (I) => {return abap.compare.eq(I.name, abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_head_name) || abap.compare.eq(I.is_head, abap.builtin.abap_true);}}); } if (abap.compare.initial(lt_branches)) { if (abap.compare.initial(iv_hide_head) === false) { lv_text.set(abap.CharacterFactory.get(4, 'main')); } if (abap.compare.initial(iv_hide_branch) === false && abap.compare.ne(iv_hide_branch, abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_git_branch.get().main)) { if (abap.compare.initial(lv_text)) { lv_text.set(abap.operators.concat(iv_hide_branch,abap.CharacterFactory.get(3, ' is'))); } else { abap.statements.concatenate({source: [lv_text, abap.CharacterFactory.get(3, 'and'), iv_hide_branch, abap.CharacterFactory.get(3, 'are')], target: lv_text, separatedBy: abap.builtin.space}); } } else { lv_text.set(abap.operators.concat(lv_text,abap.CharacterFactory.get(3, ' is'))); } if (abap.compare.initial(lv_text) === false) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.operators.concat(abap.CharacterFactory.get(33, 'No branches available to select ('),abap.operators.concat(lv_text,abap.CharacterFactory.get(8, ' hidden)')))}); } else { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(35, 'No branches are available to select')}); } } for await (const unique1055 of abap.statements.loop(lt_branches)) { fs_ls_branch_.assign(unique1055); if (!(abap.compare.initial(fs_ls_branch_.get().name) === false)) { continue; } if (abap.compare.eq(fs_ls_branch_.get().is_head, abap.builtin.abap_true)) { if (abap.compare.eq(fs_ls_branch_.get().name, abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_head_name)) { if (abap.compare.ne(fs_ls_branch_.get().name, lv_head_symref) && abap.compare.initial(lv_head_symref) === false) { continue; } else { abap.statements.insertInternal({initial: true, index: abap.IntegerFactory.get(1), assigning: fs_ls_sel_, table: lt_selection}); fs_ls_sel_.get().varoption.set(fs_ls_branch_.get().name); } } else { abap.statements.insertInternal({initial: true, index: abap.IntegerFactory.get(1), assigning: fs_ls_sel_, table: lt_selection}); fs_ls_sel_.get().varoption.set(abap.operators.concat(fs_ls_branch_.get().display_name,lv_head_suffix)); } if (abap.compare.gt(lv_default, abap.IntegerFactory.get(0))) { lv_default.set(abap.operators.add(lv_default,abap.IntegerFactory.get(1))); } } else { fs_ls_sel_.assign(lt_selection.appendInitial()); fs_ls_sel_.get().varoption.set(fs_ls_branch_.get().display_name); } if (abap.compare.eq(fs_ls_branch_.get().name, iv_default_branch)) { if (abap.compare.eq(fs_ls_branch_.get().is_head, abap.builtin.abap_true)) { lv_default.set(abap.IntegerFactory.get(1)); } else { lv_default.set(abap.builtin.sy.get().tabix); } } } if (abap.compare.eq(iv_show_new_option, abap.builtin.abap_true)) { fs_ls_sel_.assign(lt_selection.appendInitial()); fs_ls_sel_.get().varoption.set(abap.Classes['ZIF_ABAPGIT_POPUPS'].zif_abapgit_popups$c_new_branch_label); } this.#ms_position.set((await this.center({iv_width: abap.IntegerFactory.get(30), iv_height: abap.builtin.lines({val: lt_selection})}))); try { if (abap.FunctionModules['POPUP_TO_DECIDE_LIST'] === 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['POPUP_TO_DECIDE_LIST']({exporting: {titel: abap.CharacterFactory.get(13, 'Select Branch'), textline1: abap.CharacterFactory.get(15, 'Select a branch'), start_col: this.#ms_position.get().start_column, start_row: this.#ms_position.get().start_row, cursorline: lv_default}, importing: {answer: lv_answer}, tables: {t_spopli: lt_selection}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { default: abap.builtin.sy.get().subrc.set(1); break; } } else { throw e; } } if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(31, 'Error from POPUP_TO_DECIDE_LIST')}); } if (abap.compare.eq(lv_answer, zcl_abapgit_popups.c_answer_cancel)) { return rs_branch; } abap.statements.readTable(lt_selection,{assigning: fs_ls_sel_, withKey: (i) => {return abap.compare.eq(i.selflag, abap.builtin.abap_true);}, withKeyValue: [{key: (i) => {return i.selflag}, value: abap.builtin.abap_true}], usesTableLine: false, withKeySimple: {"selflag": abap.builtin.abap_true}}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); if (abap.compare.eq(iv_show_new_option, abap.builtin.abap_true) && abap.compare.eq(fs_ls_sel_.get().varoption, abap.Classes['ZIF_ABAPGIT_POPUPS'].zif_abapgit_popups$c_new_branch_label)) { rs_branch.get().name.set(abap.Classes['ZIF_ABAPGIT_POPUPS'].zif_abapgit_popups$c_new_branch_label); } else { abap.statements.replace({target: fs_ls_sel_.get().varoption, all: false, with: abap.CharacterFactory.get(1, ''), of: lv_head_suffix}); abap.statements.readTable(lt_branches,{assigning: fs_ls_branch_, withKey: (i) => {return abap.compare.eq(i.display_name, fs_ls_sel_.get().varoption);}, withKeyValue: [{key: (i) => {return i.display_name}, value: fs_ls_sel_.get().varoption}], usesTableLine: false, withKeySimple: {"display_name": fs_ls_sel_.get().varoption}}); if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { for await (const unique1056 of abap.statements.loop(lt_branches,{where: async (I) => {return abap.compare.cs(I.display_name, fs_ls_sel_.get().varoption);}})) { fs_ls_branch_.assign(unique1056); break; } } abap.statements.assert(abap.compare.assigned(fs_ls_branch_)); rs_branch.set((await lo_branches.get().zif_abapgit_git_branch_list$find_by_name({iv_branch_name: fs_ls_branch_.get().name}))); lv_text.set(new abap.types.String().set(`Branch switched from ${abap.templateFormatting((await abap.Classes['ZCL_ABAPGIT_GIT_BRANCH_UTILS'].get_display_name({iv_branch_name: iv_default_branch})))} to ${abap.templateFormatting((await abap.Classes['ZCL_ABAPGIT_GIT_BRANCH_UTILS'].get_display_name({iv_branch_name: rs_branch.get().name})))} `)); await abap.statements.message({exception: lv_text, type: abap.CharacterFactory.get(1, 'S')}); } return rs_branch; } async zif_abapgit_popups$choose_code_insp_check_variant() { let rv_check_variant = new abap.types.Character(30, {"qualifiedName":"SCI_CHKV","ddicName":"SCI_CHKV","description":"SCI_CHKV"}); let lt_return = abap.types.TableFactory.construct((() => { throw new Error("Void type: DDSHRETVAL") })(), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let fs_ls_return_ = new abap.types.FieldSymbol((() => { throw new Error("Void type: DDSHRETVAL") })()); try { if (abap.FunctionModules['F4IF_FIELD_VALUE_REQUEST'] === 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['F4IF_FIELD_VALUE_REQUEST']({exporting: {tabname: abap.CharacterFactory.get(8, 'SCI_DYNP'), fieldname: abap.CharacterFactory.get(4, 'CHKV')}, tables: {return_tab: lt_return}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { case "FIELD_NOT_FOUND": abap.builtin.sy.get().subrc.set(1); break; case "NO_HELP_FOR_FIELD": abap.builtin.sy.get().subrc.set(2); break; case "INCONSISTENT_HELP": abap.builtin.sy.get().subrc.set(3); break; case "NO_VALUES_FOUND": abap.builtin.sy.get().subrc.set(4); break; default: abap.builtin.sy.get().subrc.set(5); 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.readTable(lt_return,{assigning: fs_ls_return_, withKey: (i) => {return abap.compare.eq(i.retfield, abap.CharacterFactory.get(13, 'SCI_DYNP-CHKV'));}, withKeyValue: [{key: (i) => {return i.retfield}, value: abap.CharacterFactory.get(13, 'SCI_DYNP-CHKV')}], usesTableLine: false, withKeySimple: {"retfield": abap.CharacterFactory.get(13, 'SCI_DYNP-CHKV')}}); if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { rv_check_variant.set(fs_ls_return_.get().fieldval); } return rv_check_variant; } async zif_abapgit_popups$commit_list_popup(INPUT) { let rs_commit = new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent2": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "author": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-AUTHOR"}), "email": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-EMAIL"}), "time": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-TIME"}), "message": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MESSAGE"}), "body": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-body"), "branch": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-BRANCH"}), "merge": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MERGE"}), "tags": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-tags"), "create": abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-NAME"}), "parent": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-PARENT"})}, "zif_abapgit_git_definitions=>ty_create", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-create"), "compressed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_git_definitions=>ty_commit", undefined, {}, {}); let iv_repo_url = INPUT?.iv_repo_url; if (iv_repo_url?.getQualifiedName === undefined || iv_repo_url.getQualifiedName() !== "STRING") { iv_repo_url = undefined; } if (iv_repo_url === undefined) { iv_repo_url = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_repo_url); } let iv_branch_name = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_branch_name) {iv_branch_name.set(INPUT.iv_branch_name);} let lt_commits = abap.types.TableFactory.construct(new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "parent2": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "author": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-AUTHOR"}), "email": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-EMAIL"}), "time": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-TIME"}), "message": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MESSAGE"}), "body": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-body"), "branch": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-BRANCH"}), "merge": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_COMMIT-MERGE"}), "tags": abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-tags"), "create": abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-NAME"}), "parent": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_CREATE-PARENT"})}, "zif_abapgit_git_definitions=>ty_create", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit-create"), "compressed": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_git_definitions=>ty_commit", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_git_definitions=>ty_commit_tt"); let lt_value_tab = abap.types.TableFactory.construct(new abap.types.Structure({ "commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "message": new abap.types.Character(100, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-message"}), "datetime": new abap.types.Character(20, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-datetime"})}, "zcl_abapgit_popups=>ty_commit_value_tab", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_commit_value_tab_tt"); let lt_selected_values = abap.types.TableFactory.construct(new abap.types.Structure({ "commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "message": new abap.types.Character(100, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-message"}), "datetime": new abap.types.Character(20, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-datetime"})}, "zcl_abapgit_popups=>ty_commit_value_tab", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_commit_value_tab_tt"); let lt_columns = abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-NAME"}), "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-TEXT"}), "length": (() => { throw new Error("Void type: LVC_OUTLEN") })(), "show_icon": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "center": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_popups=>ty_alv_column", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_popups=>ty_alv_column_tt"); let fs_ls_value_tab_ = new abap.types.FieldSymbol(new abap.types.Structure({ "commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "message": new abap.types.Character(100, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-message"}), "datetime": new abap.types.Character(20, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-datetime"})}, "zcl_abapgit_popups=>ty_commit_value_tab", undefined, {}, {})); let fs_ls_column_ = new abap.types.FieldSymbol(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-NAME"}), "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-TEXT"}), "length": (() => { throw new Error("Void type: LVC_OUTLEN") })(), "show_icon": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "center": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_popups=>ty_alv_column", undefined, {}, {})); await this.#commit_list_build({iv_branch_name: iv_branch_name, iv_repo_url: iv_repo_url, et_value_tab: lt_value_tab, et_commits: lt_commits}); fs_ls_column_.assign(lt_columns.appendInitial()); fs_ls_column_.get().name.set(abap.CharacterFactory.get(6, 'COMMIT')); fs_ls_column_.get().text.set(abap.CharacterFactory.get(4, 'Hash')); fs_ls_column_.get().length.set(abap.IntegerFactory.get(8)); fs_ls_column_.assign(lt_columns.appendInitial()); fs_ls_column_.get().name.set(abap.CharacterFactory.get(7, 'MESSAGE')); fs_ls_column_.get().text.set(abap.CharacterFactory.get(7, 'Message')); fs_ls_column_.get().length.set(abap.IntegerFactory.get(60)); fs_ls_column_.assign(lt_columns.appendInitial()); fs_ls_column_.get().name.set(abap.CharacterFactory.get(8, 'DATETIME')); fs_ls_column_.get().text.set(abap.CharacterFactory.get(8, 'Datetime')); fs_ls_column_.get().length.set(abap.IntegerFactory.get(17)); await this.zif_abapgit_popups$popup_to_select_from_list({it_list: lt_value_tab, iv_title: new abap.types.String().set(`Select a commit`), iv_end_column: abap.IntegerFactory.get(100), iv_striped_pattern: abap.builtin.abap_true, iv_optimize_col_width: abap.builtin.abap_false, iv_selection_mode: abap.Classes['IF_SALV_C_SELECTION_MODE'].if_salv_c_selection_mode$single, it_columns_to_display: lt_columns, et_list: lt_selected_values}); if (abap.compare.initial(lt_selected_values)) { const unique1057 = await (new abap.Classes['ZCX_ABAPGIT_CANCEL']()).constructor_(); unique1057.EXTRA_CX = {"INTERNAL_FILENAME": "zcl_abapgit_popups.clas.abap","INTERNAL_LINE": 386}; throw unique1057; } abap.statements.readTable(lt_selected_values,{index: abap.IntegerFactory.get(1), assigning: fs_ls_value_tab_}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); abap.statements.readTable(lt_commits,{into: rs_commit, withKey: (i) => {return abap.compare.eq(i.sha1, fs_ls_value_tab_.get().commit);}, withKeyValue: [{key: (i) => {return i.sha1}, value: fs_ls_value_tab_.get().commit}], usesTableLine: false, withKeySimple: {"sha1": fs_ls_value_tab_.get().commit}}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); return rs_commit; } async zif_abapgit_popups$create_branch_popup(INPUT) { let iv_source_branch_name = INPUT?.iv_source_branch_name; if (iv_source_branch_name?.getQualifiedName === undefined || iv_source_branch_name.getQualifiedName() !== "STRING") { iv_source_branch_name = undefined; } if (iv_source_branch_name === undefined) { iv_source_branch_name = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_source_branch_name); } let ev_name = INPUT?.ev_name || new abap.types.String({qualifiedName: "STRING"}); let ev_cancel = INPUT?.ev_cancel || new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); let lt_fields = abap.types.TableFactory.construct(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let lv_name = (() => { throw new Error("Void type: SPO_VALUE") })(); ev_name.clear(); ev_cancel.clear(); await this.#add_field({iv_tabname: abap.CharacterFactory.get(5, 'TEXTL'), iv_fieldname: abap.CharacterFactory.get(4, 'LINE'), iv_fieldtext: abap.CharacterFactory.get(4, 'Name'), iv_value: abap.CharacterFactory.get(15, 'new-branch-name'), ct_fields: lt_fields}); try { await this.#_popup_3_get_values({iv_popup_title: new abap.types.String().set(`Create branch from ${abap.templateFormatting((await abap.Classes['ZCL_ABAPGIT_GIT_BRANCH_UTILS'].get_display_name({iv_branch_name: iv_source_branch_name})))}`), ev_value_1: lv_name, ct_fields: lt_fields}); ev_name.set((await abap.Classes['ZCL_ABAPGIT_GIT_BRANCH_UTILS'].complete_heads_branch_name({iv_branch_name: (await abap.Classes['ZCL_ABAPGIT_GIT_BRANCH_UTILS'].normalize_branch_name({iv_branch_name: lv_name}))}))); } catch (e) { if ((abap.Classes['ZCX_ABAPGIT_CANCEL'] && e instanceof abap.Classes['ZCX_ABAPGIT_CANCEL'])) { ev_cancel.set(abap.builtin.abap_true); } else { throw e; } } } async zif_abapgit_popups$popup_folder_logic() { let rv_folder_logic = new abap.types.String({qualifiedName: "STRING"}); let lt_selection = abap.types.TableFactory.construct((() => { throw new Error("Void type: SPOPLI") })(), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let lv_answer = new abap.types.Character(1, {}); let fs_ls_sel_ = new abap.types.FieldSymbol((() => { throw new Error("Void type: SPOPLI") })()); fs_ls_sel_.assign(lt_selection.appendInitial()); fs_ls_sel_.get().selflag.set(abap.builtin.abap_true); fs_ls_sel_.get().varoption.set(abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_folder_logic.get().prefix); fs_ls_sel_.assign(lt_selection.appendInitial()); fs_ls_sel_.get().varoption.set(abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_folder_logic.get().full); fs_ls_sel_.assign(lt_selection.appendInitial()); fs_ls_sel_.get().varoption.set(abap.Classes['ZIF_ABAPGIT_DOT_ABAPGIT'].zif_abapgit_dot_abapgit$c_folder_logic.get().mixed); try { if (abap.FunctionModules['POPUP_TO_DECIDE_LIST'] === 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['POPUP_TO_DECIDE_LIST']({exporting: {titel: abap.CharacterFactory.get(12, 'Folder logic'), textline1: abap.CharacterFactory.get(19, 'Select folder logic'), start_col: this.#ms_position.get().start_column, start_row: this.#ms_position.get().start_row}, importing: {answer: lv_answer}, tables: {t_spopli: lt_selection}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { default: abap.builtin.sy.get().subrc.set(1); break; } } else { throw e; } } if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(31, 'Error from POPUP_TO_DECIDE_LIST')}); } if (abap.compare.eq(lv_answer, zcl_abapgit_popups.c_answer_cancel)) { await abap.Classes['ZCX_ABAPGIT_CANCEL'].raise({iv_text: new abap.types.String().set(`Canceled`)}); } abap.statements.readTable(lt_selection,{assigning: fs_ls_sel_, withKey: (i) => {return abap.compare.eq(i.selflag, abap.builtin.abap_true);}, withKeyValue: [{key: (i) => {return i.selflag}, value: abap.builtin.abap_true}], usesTableLine: false, withKeySimple: {"selflag": abap.builtin.abap_true}}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); rv_folder_logic.set(fs_ls_sel_.get().varoption); return rv_folder_logic; } async zif_abapgit_popups$popup_search_help(INPUT) { let rv_value = (() => { throw new Error("Void type: DDSHRETVAL") })(); let iv_tab_field = INPUT?.iv_tab_field; if (iv_tab_field?.getQualifiedName === undefined || iv_tab_field.getQualifiedName() !== "STRING") { iv_tab_field = undefined; } if (iv_tab_field === undefined) { iv_tab_field = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_tab_field); } let lt_ret = abap.types.TableFactory.construct((() => { throw new Error("Void type: DDSHRETVAL") })(), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let ls_ret = (() => { throw new Error("Void type: DDSHRETVAL") })(); let lv_tabname = new abap.types.Character(30, {}); let lv_fieldname = new abap.types.Character(30, {}); abap.statements.split({source: iv_tab_field, at: abap.CharacterFactory.get(1, '-'), targets: [lv_tabname,lv_fieldname]}); lv_tabname.set(abap.builtin.to_upper({val: lv_tabname})); lv_fieldname.set(abap.builtin.to_upper({val: lv_fieldname})); try { if (abap.FunctionModules['F4IF_FIELD_VALUE_REQUEST'] === 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['F4IF_FIELD_VALUE_REQUEST']({exporting: {tabname: lv_tabname, fieldname: lv_fieldname}, tables: {return_tab: lt_ret}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { default: abap.builtin.sy.get().subrc.set(5); break; } } else { throw e; } } if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`F4IF_FIELD_VALUE_REQUEST error [${abap.templateFormatting(iv_tab_field)}]`)}); } if (abap.compare.gt(abap.builtin.lines({val: lt_ret}), abap.IntegerFactory.get(0))) { abap.statements.readTable(lt_ret,{into: ls_ret, withKey: (i) => {return abap.compare.eq(i.fieldname, lv_fieldname);}, withKeyValue: [{key: (i) => {return i.fieldname}, value: lv_fieldname}], usesTableLine: false, withKeySimple: {"fieldname": lv_fieldname}}); if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { rv_value.set(ls_ret.get().fieldval); } else { abap.statements.readTable(lt_ret,{index: abap.IntegerFactory.get(1), into: ls_ret}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); rv_value.set(ls_ret.get().fieldval); } } return rv_value; } async zif_abapgit_popups$popup_select_tr_requests(INPUT) { let rt_r_trkorr = abap.types.TableFactory.construct(new abap.types.Structure({ "sign": new abap.types.Character(1, undefined), "option": new abap.types.Character(2, undefined), "low": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "high": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, undefined, undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_trrngtrkor_tt"); let is_selection = INPUT?.is_selection; if (is_selection === undefined) { is_selection = (() => { throw new Error("Void type: TRWBO_SELECTION") })().set(INPUT.is_selection); } let iv_title = INPUT?.iv_title; if (iv_title === undefined) { iv_title = (() => { throw new Error("Void type: TRWBO_TITLE") })().set(INPUT.iv_title); } let iv_username_pattern = INPUT?.iv_username_pattern || new abap.types.Character(4); if (INPUT === undefined || INPUT.iv_username_pattern === undefined) {iv_username_pattern = abap.builtin.sy.get().uname;} let ls_r_trkorr = new abap.types.Structure({ "sign": new abap.types.Character(1, undefined), "option": new abap.types.Character(2, undefined), "low": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "high": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, undefined, undefined, {}, {}); let lr_request = (() => { throw new Error("Void type: trwbo_request_header") })(); let lt_request = (() => { throw new Error("Void type: TRWBO_REQUEST_HEADERS") })(); this.#ms_position.set((await this.center({iv_width: abap.IntegerFactory.get(120), iv_height: abap.IntegerFactory.get(10)}))); try { if (abap.FunctionModules['TRINT_SELECT_REQUESTS'] === 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_REQUESTS']({exporting: {iv_username_pattern: iv_username_pattern, is_selection: is_selection, iv_complete_projects: abap.builtin.abap_false, is_popup: this.#ms_position, iv_via_selscreen: abap.CharacterFactory.get(1, 'X'), iv_title: iv_title}, importing: {et_requests: lt_request}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { case "ACTION_ABORTED_BY_USER": 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({iv_text: abap.CharacterFactory.get(18, 'Selection canceled')}); } if (abap.compare.initial(lt_request)) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(16, 'No Request Found')}); } if (abap.compare.gt(abap.builtin.lines({val: lt_request}), new abap.types.Integer().set(10000))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(38, 'Too many requests selected (max 10000)')}); } for await (const unique1058 of abap.statements.loop(lt_request)) { lr_request.assign(unique1058); ls_r_trkorr.get().sign.set(abap.CharacterFactory.get(1, 'I')); ls_r_trkorr.get().option.set(abap.CharacterFactory.get(2, 'EQ')); ls_r_trkorr.get().low.set(lr_request.get().trkorr); abap.statements.insertInternal({data: ls_r_trkorr, table: rt_r_trkorr}); } return rt_r_trkorr; } async zif_abapgit_popups$popup_select_wb_tc_tr_and_tsk() { let rt_r_trkorr = abap.types.TableFactory.construct(new abap.types.Structure({ "sign": new abap.types.Character(1, undefined), "option": new abap.types.Character(2, undefined), "low": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "high": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, undefined, undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_trrngtrkor_tt"); let ls_selection = (() => { throw new Error("Void type: TRWBO_SELECTION") })(); let lv_title = (() => { throw new Error("Void type: TRWBO_TITLE") })(); ls_selection.get().trkorrpattern.set(abap.builtin.space); ls_selection.get().connect_req_task_conditions.set(abap.CharacterFactory.get(1, 'X')); ls_selection.get().reqfunctions.set(abap.CharacterFactory.get(5, 'KTRXS')); ls_selection.get().reqstatus.set(abap.CharacterFactory.get(5, 'RNODL')); ls_selection.get().taskstatus.set(abap.CharacterFactory.get(5, 'RNODL')); abap.statements.condense(ls_selection.get().reqfunctions, {nogaps: true}); ls_selection.get().taskfunctions.set(abap.CharacterFactory.get(4, 'QRSX')); abap.statements.concatenate({source: [abap.builtin.sy.get().sysid, abap.CharacterFactory.get(1, '*')], target: ls_selection.get().trkorrpattern}); lv_title.set(abap.CharacterFactory.get(25, 'Select Transports / Tasks')); rt_r_trkorr.set((await this.zif_abapgit_popups$popup_select_tr_requests({is_selection: ls_selection, iv_title: lv_title, iv_username_pattern: abap.CharacterFactory.get(1, '*')}))); return rt_r_trkorr; } async zif_abapgit_popups$popup_to_confirm(INPUT) { let rv_answer = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_popups=>ty_char1"}); let iv_titlebar = INPUT?.iv_titlebar; let iv_text_question = INPUT?.iv_text_question; let iv_text_button_1 = INPUT?.iv_text_button_1 || new abap.types.Character(); if (INPUT === undefined || INPUT.iv_text_button_1 === undefined) {iv_text_button_1 = abap.CharacterFactory.get(3, 'Yes');} let iv_icon_button_1 = new abap.types.Character(30, {"qualifiedName":"zif_abapgit_popups=>ty_icon"}); if (INPUT && INPUT.iv_icon_button_1) {iv_icon_button_1.set(INPUT.iv_icon_button_1);} if (INPUT === undefined || INPUT.iv_icon_button_1 === undefined) {iv_icon_button_1 = abap.builtin.space;} let iv_text_button_2 = INPUT?.iv_text_button_2 || new abap.types.Character(); if (INPUT === undefined || INPUT.iv_text_button_2 === undefined) {iv_text_button_2 = abap.CharacterFactory.get(2, 'No');} let iv_icon_button_2 = new abap.types.Character(30, {"qualifiedName":"zif_abapgit_popups=>ty_icon"}); if (INPUT && INPUT.iv_icon_button_2) {iv_icon_button_2.set(INPUT.iv_icon_button_2);} if (INPUT === undefined || INPUT.iv_icon_button_2 === undefined) {iv_icon_button_2 = abap.builtin.space;} let iv_default_button = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_popups=>ty_char1"}); if (INPUT && INPUT.iv_default_button) {iv_default_button.set(INPUT.iv_default_button);} if (INPUT === undefined || INPUT.iv_default_button === undefined) {iv_default_button = abap.CharacterFactory.get(1, '1');} let iv_display_cancel_button = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_popups=>ty_char1"}); if (INPUT && INPUT.iv_display_cancel_button) {iv_display_cancel_button.set(INPUT.iv_display_cancel_button);} if (INPUT === undefined || INPUT.iv_display_cancel_button === undefined) {iv_display_cancel_button = abap.builtin.abap_true;} let iv_popup_type = INPUT?.iv_popup_type || new abap.types.Character(); if (INPUT === undefined || INPUT.iv_popup_type === undefined) {iv_popup_type = abap.CharacterFactory.get(21, 'ICON_MESSAGE_QUESTION');} this.#ms_position.set((await this.center({iv_width: abap.IntegerFactory.get(65), iv_height: abap.IntegerFactory.get(5)}))); try { if (abap.FunctionModules['POPUP_TO_CONFIRM'] === 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['POPUP_TO_CONFIRM']({exporting: {titlebar: iv_titlebar, text_question: iv_text_question, text_button_1: iv_text_button_1, icon_button_1: iv_icon_button_1, text_button_2: iv_text_button_2, icon_button_2: iv_icon_button_2, default_button: iv_default_button, display_cancel_button: iv_display_cancel_button, popup_type: iv_popup_type, start_column: this.#ms_position.get().start_column, start_row: this.#ms_position.get().start_row}, importing: {answer: rv_answer}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { case "TEXT_NOT_FOUND": 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({iv_text: abap.CharacterFactory.get(27, 'error from POPUP_TO_CONFIRM')}); } return rv_answer; } async zif_abapgit_popups$popup_to_create_transp_branch(INPUT) { let rs_transport_branch = new abap.types.Structure({ "branch_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TRANSPORT_TO_BRANCH-BRANCH_NAME"}), "commit_text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_DEFINITIONS=>TY_TRANSPORT_TO_BRANCH-COMMIT_TEXT"})}, "zif_abapgit_definitions=>ty_transport_to_branch", undefined, {}, {}); 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 lt_fields = abap.types.TableFactory.construct(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let lv_transports_as_text = new abap.types.String({qualifiedName: "STRING"}); let lv_desc_as_text = new abap.types.String({qualifiedName: "STRING"}); let lv_branch_name = (() => { throw new Error("Void type: SPO_VALUE") })(); let lv_commit_text = (() => { throw new Error("Void type: SPO_VALUE") })(); rs_transport_branch.get().branch_name.clear(); rs_transport_branch.get().commit_text.clear(); lv_transports_as_text.set(iv_trkorr); lv_desc_as_text.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_cts_api()).get().zif_abapgit_cts_api$read_description({iv_trkorr: iv_trkorr}))); await this.#add_field({iv_tabname: abap.CharacterFactory.get(5, 'TEXTL'), iv_fieldname: abap.CharacterFactory.get(4, 'LINE'), iv_fieldtext: abap.CharacterFactory.get(11, 'Branch name'), iv_value: lv_transports_as_text, ct_fields: lt_fields}); await this.#add_field({iv_tabname: abap.CharacterFactory.get(10, 'ABAPTXT255'), iv_fieldname: abap.CharacterFactory.get(4, 'LINE'), iv_fieldtext: abap.CharacterFactory.get(11, 'Commit text'), iv_value: lv_desc_as_text, ct_fields: lt_fields}); await this.#_popup_3_get_values({iv_popup_title: abap.CharacterFactory.get(23, 'Transport to new Branch'), ev_value_1: lv_branch_name, ev_value_2: lv_commit_text, ct_fields: lt_fields}); rs_transport_branch.get().branch_name.set(lv_branch_name); rs_transport_branch.get().commit_text.set(lv_commit_text); return rs_transport_branch; } async zif_abapgit_popups$popup_to_select_from_list(INPUT) { let it_list = INPUT?.it_list; let iv_title = new abap.types.Character(70, {"qualifiedName":"LVC_TITLE","ddicName":"LVC_TITLE","description":"LVC_TITLE"}); if (INPUT && INPUT.iv_title) {iv_title.set(INPUT.iv_title);} if (INPUT === undefined || INPUT.iv_title === undefined) {iv_title = abap.builtin.space;} let iv_header_text = INPUT?.iv_header_text || new abap.types.Character(); if (INPUT === undefined || INPUT.iv_header_text === undefined) {iv_header_text = abap.builtin.space;} let iv_start_column = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.iv_start_column) {iv_start_column.set(INPUT.iv_start_column);} if (INPUT === undefined || INPUT.iv_start_column === undefined) {iv_start_column = abap.IntegerFactory.get(10);} let iv_end_column = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.iv_end_column) {iv_end_column.set(INPUT.iv_end_column);} if (INPUT === undefined || INPUT.iv_end_column === undefined) {iv_end_column = abap.IntegerFactory.get(125);} let iv_start_line = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.iv_start_line) {iv_start_line.set(INPUT.iv_start_line);} if (INPUT === undefined || INPUT.iv_start_line === undefined) {iv_start_line = abap.IntegerFactory.get(10);} let iv_end_line = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.iv_end_line) {iv_end_line.set(INPUT.iv_end_line);} if (INPUT === undefined || INPUT.iv_end_line === undefined) {iv_end_line = abap.IntegerFactory.get(30);} let iv_striped_pattern = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_striped_pattern) {iv_striped_pattern.set(INPUT.iv_striped_pattern);} if (INPUT === undefined || INPUT.iv_striped_pattern === undefined) {iv_striped_pattern = abap.builtin.abap_false;} let iv_optimize_col_width = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_optimize_col_width) {iv_optimize_col_width.set(INPUT.iv_optimize_col_width);} if (INPUT === undefined || INPUT.iv_optimize_col_width === undefined) {iv_optimize_col_width = abap.builtin.abap_true;} let iv_selection_mode = (() => { throw new Error("Void type: SALV_DE_CONSTANT") })(); if (INPUT && INPUT.iv_selection_mode) {iv_selection_mode.set(INPUT.iv_selection_mode);} if (INPUT === undefined || INPUT.iv_selection_mode === undefined) {iv_selection_mode = abap.Classes['IF_SALV_C_SELECTION_MODE'].if_salv_c_selection_mode$multiple;} let iv_select_column_text = INPUT?.iv_select_column_text || new abap.types.Character(); if (INPUT === undefined || INPUT.iv_select_column_text === undefined) {iv_select_column_text = abap.builtin.space;} let it_columns_to_display = INPUT?.it_columns_to_display; if (it_columns_to_display?.getQualifiedName === undefined || it_columns_to_display.getQualifiedName() !== "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN_TT") { it_columns_to_display = undefined; } if (it_columns_to_display === undefined) { it_columns_to_display = abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-NAME"}), "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-TEXT"}), "length": (() => { throw new Error("Void type: LVC_OUTLEN") })(), "show_icon": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "center": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_popups=>ty_alv_column", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_popups=>ty_alv_column_tt").set(INPUT.it_columns_to_display); } let it_preselected_rows = abap.types.TableFactory.construct(new abap.types.Integer({qualifiedName: "I"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_popups=>ty_rows"); if (INPUT && INPUT.it_preselected_rows) {it_preselected_rows.set(INPUT.it_preselected_rows);} let et_list = INPUT?.et_list || abap.types.TableFactory.construct(new abap.types.Character(4), {"withHeader":false,"keyType":"DEFAULT"}); let lo_popup = new abap.types.ABAPObject({qualifiedName: "LCL_OBJECT_DECISION_LIST", RTTIName: "\\CLASS-POOL=ZCL_ABAPGIT_POPUPS\\CLASS=LCL_OBJECT_DECISION_LIST"}); et_list.clear(); this.#ms_position.set((await this.center({iv_width: abap.operators.minus(iv_end_column,iv_start_column), iv_height: abap.operators.minus(iv_end_line,iv_start_line)}))); lo_popup.set(await (new abap.Classes['CLAS-ZCL_ABAPGIT_POPUPS-LCL_OBJECT_DECISION_LIST']()).constructor_({it_list: it_list, iv_title: iv_title, iv_header_text: iv_header_text, is_position: this.#ms_position, iv_striped_pattern: iv_striped_pattern, iv_optimize_col_width: iv_optimize_col_width, iv_selection_mode: iv_selection_mode, iv_select_column_text: iv_select_column_text, it_columns_to_display: it_columns_to_display, it_preselected_rows: it_preselected_rows})); await lo_popup.get().display(); await lo_popup.get().get_selected({et_list: et_list}); } async zif_abapgit_popups$popup_to_select_labels(INPUT) { let rv_labels = new abap.types.String({qualifiedName: "STRING"}); let iv_labels = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.iv_labels) {iv_labels.set(INPUT.iv_labels);} let lt_all_labels = abap.types.TableFactory.construct(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_REPO_SRV=>TY_LABEL-LABEL"})}, "zif_abapgit_repo_srv=>ty_label", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"key_label","type":"SORTED","isUnique":false,"keyFields":["LABEL"]}]}, "zif_abapgit_repo_srv=>ty_labels"); let ls_label = new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_REPO_SRV=>TY_LABEL-LABEL"})}, "zif_abapgit_repo_srv=>ty_label", undefined, {}, {}); let lt_current_labels = 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"); let lt_selected_labels = abap.types.TableFactory.construct(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_REPO_SRV=>TY_LABEL-LABEL"})}, "zif_abapgit_repo_srv=>ty_label", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"key_label","type":"SORTED","isUnique":false,"keyFields":["LABEL"]}]}, "zif_abapgit_repo_srv=>ty_labels"); let lt_columns_to_display = abap.types.TableFactory.construct(new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-NAME"}), "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-TEXT"}), "length": (() => { throw new Error("Void type: LVC_OUTLEN") })(), "show_icon": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "center": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_popups=>ty_alv_column", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_popups=>ty_alv_column_tt"); let lt_preselected_rows = abap.types.TableFactory.construct(new abap.types.Integer({qualifiedName: "I"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_popups=>ty_rows"); let ls_columns_to_display = new abap.types.Structure({ "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-NAME"}), "text": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_POPUPS=>TY_ALV_COLUMN-TEXT"}), "length": (() => { throw new Error("Void type: LVC_OUTLEN") })(), "show_icon": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "center": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "zif_abapgit_popups=>ty_alv_column", undefined, {}, {}); let lv_save_tabix = new abap.types.Integer({qualifiedName: "I"}); let li_popup = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_POPUPS", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_POPUPS"}); let fs_lv_label_ = new abap.types.FieldSymbol(new abap.types.Structure({ "label": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_REPO_SRV=>TY_LABEL-LABEL"})}, "zif_abapgit_repo_srv=>ty_label", undefined, {}, {})); let fs_lv_current_label_ = new abap.types.FieldSymbol(new abap.types.String({qualifiedName: "STRING"})); lt_current_labels.set((await abap.Classes['ZCL_ABAPGIT_REPO_LABELS'].split({iv_labels: iv_labels}))); lt_all_labels.set((await (await abap.Classes['ZCL_ABAPGIT_REPO_SRV'].get_instance()).get().zif_abapgit_repo_srv$get_label_list())); for await (const unique1059 of abap.statements.loop(lt_current_labels)) { fs_lv_current_label_.assign(unique1059); abap.statements.readTable(lt_all_labels,{keyName: "key_label", withKey: (i) => {return abap.compare.eq(i.label, fs_lv_current_label_);}, withKeyValue: [{key: (i) => {return i.label}, value: fs_lv_current_label_}], usesTableLine: false, withKeySimple: {"label": fs_lv_current_label_}}); if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { ls_label.get().label.set(fs_lv_current_label_); abap.statements.insertInternal({data: ls_label, table: lt_all_labels}); } } if (abap.compare.eq(abap.builtin.lines({val: lt_all_labels}), abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`No labels maintained yet`)}); } abap.statements.sort(lt_all_labels,{}); await abap.statements.deleteInternal(lt_all_labels,{adjacent: true}); for await (const unique1060 of abap.statements.loop(lt_all_labels)) { fs_lv_label_.assign(unique1060); lv_save_tabix.set(abap.builtin.sy.get().tabix); abap.statements.readTable(lt_current_labels,{withKey: (i) => {return abap.compare.eq(i.table_line, fs_lv_label_.get().label);}, withKeyValue: [{key: (i) => {return i.table_line}, value: fs_lv_label_.get().label}], usesTableLine: true, withKeySimple: {"table_line": fs_lv_label_.get().label}}); if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { abap.statements.insertInternal({data: lv_save_tabix, table: lt_preselected_rows}); } } ls_columns_to_display.get().name.set(abap.CharacterFactory.get(5, 'LABEL')); ls_columns_to_display.get().text.set(abap.CharacterFactory.get(5, 'Label')); abap.statements.insertInternal({data: ls_columns_to_display, table: lt_columns_to_display}); li_popup.set((await abap.Classes['ZCL_ABAPGIT_UI_FACTORY'].get_popups())); await li_popup.get().zif_abapgit_popups$popup_to_select_from_list({iv_header_text: abap.CharacterFactory.get(13, 'Select labels'), iv_select_column_text: abap.CharacterFactory.get(9, 'Add label'), it_list: lt_all_labels, iv_selection_mode: abap.Classes['IF_SALV_C_SELECTION_MODE'].if_salv_c_selection_mode$multiple, it_columns_to_display: lt_columns_to_display, it_preselected_rows: lt_preselected_rows, iv_start_column: abap.IntegerFactory.get(15), iv_end_column: abap.IntegerFactory.get(55), et_list: lt_selected_labels}); for await (const unique1061 of abap.statements.loop(lt_selected_labels)) { fs_lv_label_.assign(unique1061); if (abap.compare.initial(rv_labels) === false) { rv_labels.set(abap.operators.concat(rv_labels,abap.CharacterFactory.get(1, ','))); } rv_labels.set(abap.operators.concat(rv_labels,fs_lv_label_.get().label)); } return rv_labels; } async zif_abapgit_popups$popup_to_select_transport() { let rv_trkorr = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}); if (abap.FunctionModules['TR_F4_REQUESTS'] === 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_F4_REQUESTS']({importing: {ev_selected_request: rv_trkorr}}); return rv_trkorr; } async zif_abapgit_popups$popup_transport_request(INPUT) { let rv_transport = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}); let is_transport_type = new abap.types.Structure({ "request": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"}), "task": new abap.types.Character(1, {"qualifiedName":"TRFUNCTION","ddicName":"TRFUNCTION","description":"TRFUNCTION"})}, "zif_abapgit_definitions=>ty_transport_type", undefined, {}, {}); if (INPUT && INPUT.is_transport_type) {is_transport_type.set(INPUT.is_transport_type);} let iv_use_default_transport = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_use_default_transport) {iv_use_default_transport.set(INPUT.iv_use_default_transport);} if (INPUT === undefined || INPUT.iv_use_default_transport === undefined) {iv_use_default_transport = abap.builtin.abap_false;} let lt_e071 = abap.types.TableFactory.construct(new abap.types.Structure({ "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "as4pos": new abap.types.Numc({length: 6}), "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(120, {}), "objfunc": new abap.types.Character(1, {}), "lockflag": new abap.types.Character(1, {}), "gennum": new abap.types.Character(3, {}), "lang": new abap.types.Character(1, {}), "activity": new abap.types.Character(20, {})}, "E071", "E071", {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let lt_e071k = abap.types.TableFactory.construct(new abap.types.Structure({ "trkorr": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}), "pgmid": new abap.types.Character(4, {}), "object": new abap.types.Character(4, {}), "objname": new abap.types.Character(30, {}), "as4pos": new abap.types.Numc({length: 6}), "mastertype": new abap.types.Character(4, {}), "mastername": new abap.types.Character(40, {}), "viewname": new abap.types.Character(30, {}), "objfunc": new abap.types.Character(1, {}), "tabkey": new abap.types.Character(120, {}), "sortflag": new abap.types.Character(1, {}), "flag": new abap.types.Character(1, {}), "lang": new abap.types.Character(1, {}), "activity": new abap.types.Character(20, {})}, "E071K", "E071K", {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let lv_order = new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"}); let ls_default = new abap.types.Structure({ "trfunction": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_default_transport=>ty_get-trfunction"}), "ordernum": new abap.types.Character(20, {"qualifiedName":"TRKORR","ddicName":"TRKORR","description":"TRKORR"})}, "zif_abapgit_default_transport=>ty_get", undefined, {}, {}); let lv_category = new abap.types.Character(4, {}); ls_default.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_default_transport()).get().zif_abapgit_default_transport$get())); if ((abap.compare.eq(ls_default.get().trfunction, is_transport_type.get().request) || abap.compare.initial(ls_default.get().trfunction)) && abap.compare.eq(iv_use_default_transport, abap.builtin.abap_true)) { lv_order.set(ls_default.get().ordernum); } if (abap.compare.eq(is_transport_type.get().request, abap.Classes['ZIF_ABAPGIT_CTS_API'].zif_abapgit_cts_api$c_transport_type.get().cust_request)) { lv_category.set(abap.Classes['ZIF_ABAPGIT_CTS_API'].zif_abapgit_cts_api$c_transport_category.get().customizing); } else { lv_category.set(abap.Classes['ZIF_ABAPGIT_CTS_API'].zif_abapgit_cts_api$c_transport_category.get().workbench); } try { if (abap.FunctionModules['TRINT_ORDER_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_ORDER_CHOICE']({exporting: {wi_order_type: is_transport_type.get().request, wi_task_type: is_transport_type.get().task, wi_category: lv_category, wi_order: lv_order}, importing: {we_order: rv_transport}, tables: {wt_e071: lt_e071, wt_e071k: lt_e071k}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { case "NO_CORRECTION_SELECTED": abap.builtin.sy.get().subrc.set(1); break; case "DISPLAY_MODE": abap.builtin.sy.get().subrc.set(2); break; case "OBJECT_APPEND_ERROR": abap.builtin.sy.get().subrc.set(3); break; case "RECURSIVE_CALL": abap.builtin.sy.get().subrc.set(4); break; case "WRONG_ORDER_TYPE": abap.builtin.sy.get().subrc.set(5); break; default: abap.builtin.sy.get().subrc.set(6); break; } } else { throw e; } } if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(1))) { const unique1062 = await (new abap.Classes['ZCX_ABAPGIT_CANCEL']()).constructor_(); unique1062.EXTRA_CX = {"INTERNAL_FILENAME": "zcl_abapgit_popups.clas.abap","INTERNAL_LINE": 807}; throw unique1062; } else if (abap.compare.gt(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(1))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100(); } return rv_transport; } async zif_abapgit_popups$tag_list_popup(INPUT) { let rs_tag = new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "object": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-NAME"}), "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}), "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-DISPLAY_NAME"}), "tagger_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-TAGGER_NAME"}), "tagger_email": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-TAGGER_EMAIL"}), "message": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-MESSAGE"}), "body": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_TAG-BODY"})}, "zif_abapgit_git_definitions=>ty_git_tag", undefined, {}, {}); let iv_url = INPUT?.iv_url; if (iv_url?.getQualifiedName === undefined || iv_url.getQualifiedName() !== "STRING") { iv_url = undefined; } if (iv_url === undefined) { iv_url = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_url); } let lo_branches = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_GIT_BRANCH_LIST", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_GIT_BRANCH_LIST"}); let lt_tags = abap.types.TableFactory.construct(new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-NAME"}), "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}), "is_head": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-DISPLAY_NAME"})}, "zif_abapgit_git_definitions=>ty_git_branch", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"name_key","type":"SORTED","isUnique":false,"keyFields":["NAME"]}]}, "zif_abapgit_git_definitions=>ty_git_branch_list_tt"); let ls_branch = new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-NAME"}), "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}), "is_head": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-DISPLAY_NAME"})}, "zif_abapgit_git_definitions=>ty_git_branch", undefined, {}, {}); let lv_answer = new abap.types.Character(1, {}); let lv_default = new abap.types.Integer({qualifiedName: "I"}); let lv_tag = new abap.types.String({qualifiedName: "STRING"}); let lt_selection = abap.types.TableFactory.construct((() => { throw new Error("Void type: SPOPLI") })(), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let fs_ls_sel_ = new abap.types.FieldSymbol((() => { throw new Error("Void type: SPOPLI") })()); let fs_ls_tag_ = new abap.types.FieldSymbol(new abap.types.Structure({ "sha1": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-NAME"}), "type": new abap.types.Character(2, {"qualifiedName":"zif_abapgit_git_definitions=>ty_git_branch_type"}), "is_head": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "display_name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_GIT_DEFINITIONS=>TY_GIT_BRANCH-DISPLAY_NAME"})}, "zif_abapgit_git_definitions=>ty_git_branch", undefined, {}, {})); lo_branches.set((await (await abap.Classes['ZCL_ABAPGIT_GIT_FACTORY'].get_git_transport()).get().zif_abapgit_git_transport$branches({iv_url: iv_url}))); lt_tags.set((await lo_branches.get().zif_abapgit_git_branch_list$get_tags_only())); for await (const unique1063 of abap.statements.loop(lt_tags,{where: async (I) => {return abap.compare.np(I.name, abap.operators.concat(abap.CharacterFactory.get(1, '*'),abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_git_branch.get().peel));}})) { fs_ls_tag_.assign(unique1063); fs_ls_sel_.assign(lt_selection.appendInitial()); fs_ls_sel_.get().varoption.set((await abap.Classes['ZCL_ABAPGIT_GIT_TAG'].remove_tag_prefix({iv_text: fs_ls_tag_.get().name}))); } if (abap.compare.initial(lt_selection)) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(31, 'No tags are available to select')}); } this.#ms_position.set((await this.center({iv_width: abap.IntegerFactory.get(30), iv_height: abap.builtin.lines({val: lt_selection})}))); try { if (abap.FunctionModules['POPUP_TO_DECIDE_LIST'] === 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['POPUP_TO_DECIDE_LIST']({exporting: {titel: abap.CharacterFactory.get(10, 'Select Tag'), textline1: abap.CharacterFactory.get(12, 'Select a tag'), start_col: this.#ms_position.get().start_column, start_row: this.#ms_position.get().start_row, cursorline: lv_default}, importing: {answer: lv_answer}, tables: {t_spopli: lt_selection}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { default: abap.builtin.sy.get().subrc.set(1); break; } } else { throw e; } } if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(31, 'Error from POPUP_TO_DECIDE_LIST')}); } if (abap.compare.eq(lv_answer, zcl_abapgit_popups.c_answer_cancel)) { return rs_tag; } abap.statements.readTable(lt_selection,{assigning: fs_ls_sel_, withKey: (i) => {return abap.compare.eq(i.selflag, abap.builtin.abap_true);}, withKeyValue: [{key: (i) => {return i.selflag}, value: abap.builtin.abap_true}], usesTableLine: false, withKeySimple: {"selflag": abap.builtin.abap_true}}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); lv_tag.set((await abap.Classes['ZCL_ABAPGIT_GIT_TAG'].add_tag_prefix({iv_text: fs_ls_sel_.get().varoption}))); abap.statements.readTable(lt_tags,{keyName: "name_key", assigning: fs_ls_tag_, withKey: (i) => {return abap.compare.eq(i.name, lv_tag);}, withKeyValue: [{key: (i) => {return i.name}, value: lv_tag}], usesTableLine: false, withKeySimple: {"name": lv_tag}}); if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { for await (const unique1064 of abap.statements.loop(lt_tags,{where: async (I) => {return abap.compare.cs(I.name, lv_tag);}})) { fs_ls_tag_.assign(unique1064); break; } } abap.statements.assert(abap.compare.assigned(fs_ls_tag_)); ls_branch.set((await lo_branches.get().zif_abapgit_git_branch_list$find_by_name({iv_branch_name: fs_ls_tag_.get().name}))); abap.statements.moveCorresponding(ls_branch, rs_tag); return rs_tag; } async #_popup_3_get_values(INPUT) { let iv_popup_title = INPUT?.iv_popup_title; if (iv_popup_title?.getQualifiedName === undefined || iv_popup_title.getQualifiedName() !== "STRING") { iv_popup_title = undefined; } if (iv_popup_title === undefined) { iv_popup_title = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_popup_title); } let iv_no_value_check = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}); if (INPUT && INPUT.iv_no_value_check) {iv_no_value_check.set(INPUT.iv_no_value_check);} if (INPUT === undefined || INPUT.iv_no_value_check === undefined) {iv_no_value_check = abap.builtin.abap_false;} let ev_value_1 = INPUT?.ev_value_1 || (() => { throw new Error("Void type: SPO_VALUE") })(); let ev_value_2 = INPUT?.ev_value_2 || (() => { throw new Error("Void type: SPO_VALUE") })(); let ev_value_3 = INPUT?.ev_value_3 || (() => { throw new Error("Void type: SPO_VALUE") })(); let ct_fields = abap.types.TableFactory.construct(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_lt_fields"); if (INPUT && INPUT.ct_fields) {ct_fields = INPUT.ct_fields;} let lv_answer = new abap.types.Character(1, {}); let fs_ls_field_ = new abap.types.FieldSymbol(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {})); this.#ms_position.set((await this.center({iv_width: abap.IntegerFactory.get(120), iv_height: abap.builtin.lines({val: ct_fields})}))); try { if (abap.FunctionModules['POPUP_GET_VALUES'] === 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['POPUP_GET_VALUES']({exporting: {no_value_check: iv_no_value_check, popup_title: iv_popup_title, start_column: this.#ms_position.get().start_column, start_row: this.#ms_position.get().start_row}, importing: {returncode: lv_answer}, tables: {fields: ct_fields}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { default: abap.builtin.sy.get().subrc.set(1); break; } } else { throw e; } } if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(27, 'Error from POPUP_GET_VALUES')}); } if (abap.compare.eq(lv_answer, zcl_abapgit_popups.c_answer_cancel)) { const unique1065 = await (new abap.Classes['ZCX_ABAPGIT_CANCEL']()).constructor_(); unique1065.EXTRA_CX = {"INTERNAL_FILENAME": "zcl_abapgit_popups.clas.abap","INTERNAL_LINE": 914}; throw unique1065; } if (INPUT && INPUT.ev_value_1) { abap.statements.readTable(ct_fields,{index: abap.IntegerFactory.get(1), assigning: fs_ls_field_}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); ev_value_1.set(fs_ls_field_.get().value); } if (INPUT && INPUT.ev_value_2) { abap.statements.readTable(ct_fields,{index: abap.IntegerFactory.get(2), assigning: fs_ls_field_}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); ev_value_2.set(fs_ls_field_.get().value); } if (INPUT && INPUT.ev_value_3) { abap.statements.readTable(ct_fields,{index: abap.IntegerFactory.get(3), assigning: fs_ls_field_}); abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))); ev_value_3.set(fs_ls_field_.get().value); } } } abap.Classes['ZCL_ABAPGIT_POPUPS'] = zcl_abapgit_popups; zcl_abapgit_popups.c_answer_cancel = new abap.types.Character(1, {}); zcl_abapgit_popups.c_answer_cancel.set('A'); zcl_abapgit_popups.zif_abapgit_popups$c_new_branch_label = new abap.types.String({qualifiedName: "STRING"}); zcl_abapgit_popups.zif_abapgit_popups$c_new_branch_label.set('+ create new ...'); zcl_abapgit_popups.ty_lt_fields = abap.types.TableFactory.construct(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_lt_fields"); zcl_abapgit_popups.ty_commit_value_tab = new abap.types.Structure({ "commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "message": new abap.types.Character(100, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-message"}), "datetime": new abap.types.Character(20, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-datetime"})}, "zcl_abapgit_popups=>ty_commit_value_tab", undefined, {}, {}); zcl_abapgit_popups.ty_commit_value_tab_tt = abap.types.TableFactory.construct(new abap.types.Structure({ "commit": new abap.types.Character(40, {"qualifiedName":"zif_abapgit_git_definitions=>ty_sha1"}), "message": new abap.types.Character(100, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-message"}), "datetime": new abap.types.Character(20, {"qualifiedName":"zcl_abapgit_popups=>ty_commit_value_tab-datetime"})}, "zcl_abapgit_popups=>ty_commit_value_tab", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_commit_value_tab_tt"); zcl_abapgit_popups.ty_sval_tt = abap.types.TableFactory.construct(new abap.types.Structure({ "tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "value": new abap.types.Character(132, {}), "field_attr": new abap.types.Character(2, {}), "field_obl": new abap.types.Character(1, {}), "comp_code": new abap.types.Character(2, {}), "fieldtext": new abap.types.Character(20, {}), "comp_tab": new abap.types.Character(30, {}), "comp_field": new abap.types.Character(30, {}), "novaluehlp": new abap.types.Character(1, {})}, "SVAL", "SVAL", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zcl_abapgit_popups=>ty_sval_tt"); export {zcl_abapgit_popups}; |