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 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs"); // zcl_abapgit_exception_viewer.clas.abap class zcl_abapgit_exception_viewer { static INTERNAL_TYPE = 'CLAS'; static INTERNAL_NAME = 'ZCL_ABAPGIT_EXCEPTION_VIEWER'; static IMPLEMENTED_INTERFACES = []; static ATTRIBUTES = {"MX_ERROR": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCX_ABAPGIT_EXCEPTION", RTTIName: "\\CLASS=ZCX_ABAPGIT_EXCEPTION"});}, "visibility": "I", "is_constant": " ", "is_class": " "}, "MT_CALLSTACK": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "ABAP_CALLSTACK");}, "visibility": "I", "is_constant": " ", "is_class": " "}}; static METHODS = {"BUILD_TOP_OF_LIST": {"visibility": "I", "parameters": {"RO_FORM": {"type": () => {return (() => { throw new Error("Void type: cl_salv_form_element") })();}, "is_optional": " "}, "IS_TOP_OF_STACK": {"type": () => {return new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {});}, "is_optional": " "}}}, "ADD_ROW": {"visibility": "I", "parameters": {"IO_GRID": {"type": () => {return (() => { throw new Error("Void type: cl_salv_form_layout_grid") })();}, "is_optional": " "}, "IV_COL_1": {"type": () => {return new abap.types.Character();}, "is_optional": " "}, "IV_COL_2": {"type": () => {return new abap.types.Character();}, "is_optional": " "}}}, "ON_DOUBLE_CLICK": {"visibility": "I", "parameters": {"ROW": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "COLUMN": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}, "SET_TEXT": {"visibility": "I", "parameters": {"IO_COLUMNS": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_SALV_COLUMNS_TABLE", RTTIName: "\\CLASS=CL_SALV_COLUMNS_TABLE"});}, "is_optional": " "}, "IV_COLUMN": {"type": () => {return (() => { throw new Error("Void type: LVC_FNAME") })();}, "is_optional": " "}, "IV_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}}, "GOTO_SOURCE_CODE": {"visibility": "I", "parameters": {"IS_CALLSTACK": {"type": () => {return new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {});}, "is_optional": " "}}}, "EXTRACT_CLASSNAME": {"visibility": "I", "parameters": {"RV_CLASSNAME": {"type": () => {return new abap.types.Character(40, {});}, "is_optional": " "}, "IV_MAINPROGRAM": {"type": () => {return new abap.types.Character(40, {});}, "is_optional": " "}}}, "GET_TOP_OF_CALLSTACK": {"visibility": "I", "parameters": {"RS_TOP_OF_CALLSTACK": {"type": () => {return new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {});}, "is_optional": " "}}}, "CONSTRUCTOR": {"visibility": "U", "parameters": {"IX_ERROR": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZCX_ABAPGIT_EXCEPTION", RTTIName: "\\CLASS=ZCX_ABAPGIT_EXCEPTION"});}, "is_optional": " "}}}, "GOTO_SOURCE": {"visibility": "U", "parameters": {}}, "GOTO_MESSAGE": {"visibility": "U", "parameters": {}}, "SHOW_CALLSTACK": {"visibility": "U", "parameters": {}}}; #mx_error; #mt_callstack; constructor() { this.me = new abap.types.ABAPObject(); this.me.set(this); this.INTERNAL_ID = abap.internalIdCounter++; this.FRIENDS_ACCESS_INSTANCE = { "build_top_of_list": this.#build_top_of_list.bind(this), "add_row": this.#add_row.bind(this), "on_double_click": this.#on_double_click.bind(this), "set_text": this.#set_text.bind(this), "goto_source_code": this.#goto_source_code.bind(this), "extract_classname": this.#extract_classname.bind(this), "get_top_of_callstack": this.#get_top_of_callstack.bind(this), "goto_source": this.goto_source.bind(this), "goto_message": this.goto_message.bind(this), "show_callstack": this.show_callstack.bind(this), }; this.#mx_error = new abap.types.ABAPObject({qualifiedName: "ZCX_ABAPGIT_EXCEPTION", RTTIName: "\\CLASS=ZCX_ABAPGIT_EXCEPTION"}); this.FRIENDS_ACCESS_INSTANCE["mx_error"] = this.#mx_error; this.#mt_callstack = abap.types.TableFactory.construct(new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "ABAP_CALLSTACK"); this.FRIENDS_ACCESS_INSTANCE["mt_callstack"] = this.#mt_callstack; } async #add_row(INPUT) { let io_grid = INPUT?.io_grid; if (io_grid === undefined) { io_grid = (() => { throw new Error("Void type: cl_salv_form_layout_grid") })().set(INPUT.io_grid); } let iv_col_1 = INPUT?.iv_col_1; let iv_col_2 = INPUT?.iv_col_2; let lo_row = (() => { throw new Error("Void type: cl_salv_form_layout_flow") })(); lo_row.set((await io_grid.get().add_row())); await lo_row.get().create_label({position: abap.IntegerFactory.get(1), text: iv_col_1}); await lo_row.get().create_label({position: abap.IntegerFactory.get(2), text: iv_col_2}); } async #build_top_of_list(INPUT) { let ro_form = (() => { throw new Error("Void type: cl_salv_form_element") })(); let is_top_of_stack = INPUT?.is_top_of_stack; if (is_top_of_stack?.getQualifiedName === undefined || is_top_of_stack.getQualifiedName() !== "ABAP_CALLSTACK_LINE") { is_top_of_stack = undefined; } if (is_top_of_stack === undefined) { is_top_of_stack = new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {}).set(INPUT.is_top_of_stack); } let lo_grid = (() => { throw new Error("Void type: cl_salv_form_layout_grid") })(); lo_grid.set(await (new abap.Classes['RUNTIME_ERROR']()).constructor_({columns: abap.IntegerFactory.get(2)})); await this.#add_row({io_grid: lo_grid, iv_col_1: abap.CharacterFactory.get(13, 'Main program:'), iv_col_2: is_top_of_stack.get().mainprogram}); await this.#add_row({io_grid: lo_grid, iv_col_1: abap.CharacterFactory.get(13, 'Include name:'), iv_col_2: is_top_of_stack.get().include}); await this.#add_row({io_grid: lo_grid, iv_col_1: abap.CharacterFactory.get(11, 'Source line'), iv_col_2: new abap.types.String().set(`${abap.templateFormatting(is_top_of_stack.get().line)}`)}); ro_form.set(lo_grid); return ro_form; } async constructor_(INPUT) { let ix_error = INPUT?.ix_error; if (ix_error?.getQualifiedName === undefined || ix_error.getQualifiedName() !== "ZCX_ABAPGIT_EXCEPTION") { ix_error = undefined; } if (ix_error === undefined) { ix_error = new abap.types.ABAPObject({qualifiedName: "ZCX_ABAPGIT_EXCEPTION", RTTIName: "\\CLASS=ZCX_ABAPGIT_EXCEPTION"}).set(INPUT.ix_error); } this.#mx_error.set(ix_error); this.#mt_callstack.set(this.#mx_error.get().mt_callstack); return this; } async #extract_classname(INPUT) { let rv_classname = new abap.types.Character(40, {}); let iv_mainprogram = INPUT?.iv_mainprogram; if (iv_mainprogram === undefined) { iv_mainprogram = new abap.types.Character(40, {}).set(INPUT.iv_mainprogram); } rv_classname.set(abap.builtin.substring_before({val: iv_mainprogram, regex: abap.CharacterFactory.get(5, '=*CP$')})); return rv_classname; } async #get_top_of_callstack() { let rs_top_of_callstack = new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {}); abap.statements.readTable(this.#mt_callstack,{index: abap.IntegerFactory.get(1), into: rs_top_of_callstack}); 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(`Callstack is empty`)}); } return rs_top_of_callstack; } async goto_message() { let lv_msg = new abap.types.Character(100, {}); let lt_bdcdata = abap.types.TableFactory.construct((() => { throw new Error("Void type: BDCDATA") })(), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, ""); let ls_bdcdata = (() => { throw new Error("Void type: BDCDATA") })(); ls_bdcdata.get().program.set(abap.CharacterFactory.get(14, 'SAPLWBMESSAGES')); ls_bdcdata.get().dynpro.set(abap.CharacterFactory.get(4, '0100')); ls_bdcdata.get().dynbegin.set(abap.builtin.abap_true); abap.statements.insertInternal({data: ls_bdcdata, table: lt_bdcdata}); ls_bdcdata.clear(); ls_bdcdata.get().fnam.set(abap.CharacterFactory.get(11, 'RSDAG-ARBGB')); ls_bdcdata.get().fval.set(this.#mx_error.get().if_t100_message$t100key.get().msgid); abap.statements.insertInternal({data: ls_bdcdata, table: lt_bdcdata}); ls_bdcdata.clear(); ls_bdcdata.get().fnam.set(abap.CharacterFactory.get(10, 'MSG_NUMMER')); ls_bdcdata.get().fval.set(this.#mx_error.get().if_t100_message$t100key.get().msgno); abap.statements.insertInternal({data: ls_bdcdata, table: lt_bdcdata}); ls_bdcdata.clear(); ls_bdcdata.get().fnam.set(abap.CharacterFactory.get(13, 'RSDAG-MSGFLAG')); ls_bdcdata.get().fval.set(abap.CharacterFactory.get(1, 'X')); abap.statements.insertInternal({data: ls_bdcdata, table: lt_bdcdata}); ls_bdcdata.clear(); ls_bdcdata.get().fnam.set(abap.CharacterFactory.get(10, 'BDC_OKCODE')); ls_bdcdata.get().fval.set(abap.CharacterFactory.get(11, '=WB_DISPLAY')); abap.statements.insertInternal({data: ls_bdcdata, table: lt_bdcdata}); try { if (abap.FunctionModules['ABAP4_CALL_TRANSACTION'] === 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['ABAP4_CALL_TRANSACTION']({exporting: {tcode: abap.CharacterFactory.get(4, 'SE91'), mode_val: abap.CharacterFactory.get(1, 'E')}, tables: {using_tab: lt_bdcdata}}); abap.builtin.sy.get().subrc.set(0); } catch (e) { if (e.classic) { switch (e.classic.toUpperCase()) { case "SYSTEM_FAILURE": abap.builtin.sy.get().subrc.set(1); break; case "COMMUNICATION_FAILURE": abap.builtin.sy.get().subrc.set(2); break; case "RESOURCE_FAILURE": abap.builtin.sy.get().subrc.set(3); break; default: abap.builtin.sy.get().subrc.set(4); 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: lv_msg}); } } async goto_source() { await this.#goto_source_code({is_callstack: (await this.#get_top_of_callstack())}); } async #goto_source_code(INPUT) { let is_callstack = INPUT?.is_callstack; if (is_callstack?.getQualifiedName === undefined || is_callstack.getQualifiedName() !== "ABAP_CALLSTACK_LINE") { is_callstack = undefined; } if (is_callstack === undefined) { is_callstack = new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {}).set(INPUT.is_callstack); } let lc_obj_type = new abap.types.Structure({ "class": new abap.types.Character(4, {"qualifiedName":"TROBJTYPE","ddicName":"TROBJTYPE","description":"TROBJTYPE"}), "program": new abap.types.Character(4, {"qualifiedName":"TROBJTYPE","ddicName":"TROBJTYPE","description":"TROBJTYPE"})}, undefined, undefined, {}, {}); lc_obj_type.get().class.set(new abap.types.String().set(`CLAS`)); lc_obj_type.get().program.set(new abap.types.String().set(`PROG`)); let ls_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let ls_sub_item = new abap.types.Structure({ "obj_type": new abap.types.Character(4, {}), "obj_name": new abap.types.Character(40, {}), "devclass": new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}), "srcsystem": new abap.types.Character(5, {}), "origlang": new abap.types.Character(1, {}), "inactive": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "abap_language_version": new abap.types.Character(1, {"qualifiedName":"zif_abapgit_aff_types_v1=>ty_abap_language_version"})}, "zif_abapgit_definitions=>ty_item", undefined, {}, {}); let lv_classname = new abap.types.Character(40, {}); lv_classname.set((await this.#extract_classname({iv_mainprogram: is_callstack.get().mainprogram}))); if (abap.compare.initial(lv_classname) === false) { ls_item.get().obj_name.set(lv_classname); ls_item.get().obj_type.set(lc_obj_type.get().class); } else { ls_item.get().obj_name.set(is_callstack.get().mainprogram); ls_item.get().obj_type.set(lc_obj_type.get().program); } ls_sub_item.get().obj_name.set(is_callstack.get().include); ls_sub_item.get().obj_type.set(lc_obj_type.get().program); await abap.Classes['ZCL_ABAPGIT_OBJECTS'].jump({is_item: ls_item, is_sub_item: ls_sub_item, iv_line_number: is_callstack.get().line}); } async #on_double_click(INPUT) { let row = new abap.types.Integer({qualifiedName: "I"}); if (INPUT && INPUT.row) {row = INPUT.row;} let column = new abap.types.String({qualifiedName: "STRING"}); if (INPUT && INPUT.column) {column = INPUT.column;} let lx_error = new abap.types.ABAPObject({qualifiedName: "ZCX_ABAPGIT_EXCEPTION", RTTIName: "\\CLASS=ZCX_ABAPGIT_EXCEPTION"}); let fs_ls_callstack_ = new abap.types.FieldSymbol(new abap.types.Structure({ "mainprogram": new abap.types.Character(40, {}), "include": new abap.types.Character(40, {}), "line": new abap.types.Integer({qualifiedName: "I"}), "blocktype": new abap.types.Character(12, {}), "blockname": new abap.types.String({qualifiedName: "STRING"})}, "ABAP_CALLSTACK_LINE", "ABAP_CALLSTACK_LINE", {}, {})); abap.statements.readTable(this.#mt_callstack,{index: row, assigning: fs_ls_callstack_}); if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) { return; } try { await this.#goto_source_code({is_callstack: fs_ls_callstack_}); } catch (e) { if ((abap.Classes['ZCX_ABAPGIT_EXCEPTION'] && e instanceof abap.Classes['ZCX_ABAPGIT_EXCEPTION'])) { lx_error.set(e); await abap.statements.message({exception: lx_error, type: abap.CharacterFactory.get(1, 'S'), displayLike: abap.CharacterFactory.get(1, 'E')}); } else { throw e; } } } async #set_text(INPUT) { let io_columns = INPUT?.io_columns; if (io_columns?.getQualifiedName === undefined || io_columns.getQualifiedName() !== "CL_SALV_COLUMNS_TABLE") { io_columns = undefined; } if (io_columns === undefined) { io_columns = new abap.types.ABAPObject({qualifiedName: "CL_SALV_COLUMNS_TABLE", RTTIName: "\\CLASS=CL_SALV_COLUMNS_TABLE"}).set(INPUT.io_columns); } let iv_column = INPUT?.iv_column; if (iv_column === undefined) { iv_column = (() => { throw new Error("Void type: LVC_FNAME") })().set(INPUT.iv_column); } let iv_text = INPUT?.iv_text; if (iv_text?.getQualifiedName === undefined || iv_text.getQualifiedName() !== "STRING") { iv_text = undefined; } if (iv_text === undefined) { iv_text = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_text); } let lo_column = new abap.types.ABAPObject({qualifiedName: "CL_SALV_COLUMN", RTTIName: "\\CLASS=CL_SALV_COLUMN"}); let lv_short_text = new abap.types.Character(10, {"qualifiedName":"SCRTEXT_S","ddicName":"SCRTEXT_S","description":"SCRTEXT_S"}); let lv_medium_text = new abap.types.Character(20, {"qualifiedName":"SCRTEXT_M","ddicName":"SCRTEXT_M","description":"SCRTEXT_M"}); let lv_long_text = new abap.types.Character(40, {"qualifiedName":"SCRTEXT_L","ddicName":"SCRTEXT_L","description":"SCRTEXT_L"}); lo_column.set((await io_columns.get().get_column({columnname: iv_column}))); lv_short_text.set(iv_text); lv_medium_text.set(iv_text); lv_long_text.set(iv_text); await lo_column.get().set_short_text({value: lv_short_text}); await lo_column.get().set_medium_text({value: lv_medium_text}); await lo_column.get().set_long_text({value: lv_long_text}); } async show_callstack() { let lx_error = new abap.types.ABAPObject({qualifiedName: "CX_STATIC_CHECK", RTTIName: "\\CLASS=CX_STATIC_CHECK"}); let lo_event = new abap.types.ABAPObject({qualifiedName: "CL_SALV_EVENTS_TABLE", RTTIName: "\\CLASS=CL_SALV_EVENTS_TABLE"}); let lo_columns = new abap.types.ABAPObject({qualifiedName: "CL_SALV_COLUMNS_TABLE", RTTIName: "\\CLASS=CL_SALV_COLUMNS_TABLE"}); let lo_alv = new abap.types.ABAPObject({qualifiedName: "CL_SALV_TABLE", RTTIName: "\\CLASS=CL_SALV_TABLE"}); let ls_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, {}, {}); try { await abap.Classes['CL_SALV_TABLE'].factory({r_salv_table: lo_alv, t_table: this.#mt_callstack}); await (await lo_alv.get().get_columns()).get().set_optimize(); await lo_alv.get().set_top_of_list({val: (await this.#build_top_of_list({is_top_of_stack: (await this.#get_top_of_callstack())}))}); ls_position.set((await abap.Classes['ZCL_ABAPGIT_POPUPS'].center({iv_width: abap.IntegerFactory.get(150), iv_height: abap.IntegerFactory.get(25)}))); await lo_alv.get().set_screen_popup({start_column: ls_position.get().start_column, end_column: ls_position.get().end_column, start_line: ls_position.get().start_row, end_line: ls_position.get().end_row}); lo_event.set((await lo_alv.get().get_event())); lo_columns.set((await lo_alv.get().get_columns())); await this.#set_text({io_columns: lo_columns, iv_column: new abap.types.String().set(`LINE`), iv_text: new abap.types.String().set(`Line`)}); await this.#set_text({io_columns: lo_columns, iv_column: new abap.types.String().set(`LINE`), iv_text: new abap.types.String().set(`Line`)}); await this.#set_text({io_columns: lo_columns, iv_column: new abap.types.String().set(`BLOCKTYPE`), iv_text: new abap.types.String().set(`Event Type`)}); await this.#set_text({io_columns: lo_columns, iv_column: new abap.types.String().set(`BLOCKNAME`), iv_text: new abap.types.String().set(`Event`)}); await this.#set_text({io_columns: lo_columns, iv_column: new abap.types.String().set(`FLAG_SYSTEM`), iv_text: new abap.types.String().set(`System`)}); abap.statements.setHandler({EVENT_NAME: "DOUBLE_CLICK", EVENT_CLASS: "CL_SALV_EVENTS_TABLE"}, [this.on_double_click.bind(this)], "ALL"); await lo_alv.get().display(); } catch (e) { if ((abap.Classes['CX_STATIC_CHECK'] && e instanceof abap.Classes['CX_STATIC_CHECK'])) { lx_error.set(e); await abap.statements.message({exception: lx_error, type: abap.CharacterFactory.get(1, 'S'), displayLike: abap.CharacterFactory.get(1, 'E')}); } else { throw e; } } } } abap.Classes['ZCL_ABAPGIT_EXCEPTION_VIEWER'] = zcl_abapgit_exception_viewer; export {zcl_abapgit_exception_viewer}; |