All files / output cl_alv_changed_data_protocol.clas.mjs

20.58% Statements 28/136
100% Branches 2/2
3.12% Functions 1/32
20.58% Lines 28/136

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 1361x 1x 1x 1x 1x 1x 1x 1x                   1x 1x   1x 1x   1x 1x                   1x 1x 1x 1x 1x 1x                                                                             1x       1x                   1x                     1x                                         1x                 1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_alv_changed_data_protocol.clas.abap
class cl_alv_changed_data_protocol {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_ALV_CHANGED_DATA_PROTOCOL';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"MT_MOD_CELLS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "row_id": new abap.types.Integer({qualifiedName: "I"}),
  "sub_row_id": new abap.types.Integer({qualifiedName: "I"}),
  "fieldname": new abap.types.Character(30, {}),
  "value": new abap.types.Character(128, {}),
  "error": new abap.types.Character(1, {}),
  "tabix": new abap.types.Integer({qualifiedName: "I"}),
  "style": new abap.types.Hex({length: 4}),
  "style2": new abap.types.Hex({length: 4}),
  "style3": new abap.types.Hex({length: 4}),
  "style4": new abap.types.Hex({length: 4})}, "LVC_S_MODI", "LVC_S_MODI", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_MODI");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "MT_DELETED_ROWS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "row_id": new abap.types.Integer({qualifiedName: "I"}),
  "sub_row_id": new abap.types.Integer({qualifiedName: "I"})}, "LVC_S_MOCE", "LVC_S_MOCE", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_MOCE");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "MT_INSERTED_ROWS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "row_id": new abap.types.Integer({qualifiedName: "I"}),
  "sub_row_id": new abap.types.Integer({qualifiedName: "I"})}, "LVC_S_MOCE", "LVC_S_MOCE", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_MOCE");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "MT_GOOD_CELLS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "row_id": new abap.types.Integer({qualifiedName: "I"}),
  "sub_row_id": new abap.types.Integer({qualifiedName: "I"}),
  "fieldname": new abap.types.Character(30, {}),
  "value": new abap.types.Character(128, {}),
  "error": new abap.types.Character(1, {}),
  "tabix": new abap.types.Integer({qualifiedName: "I"}),
  "style": new abap.types.Hex({length: 4}),
  "style2": new abap.types.Hex({length: 4}),
  "style3": new abap.types.Hex({length: 4}),
  "style4": new abap.types.Hex({length: 4})}, "LVC_S_MODI", "LVC_S_MODI", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_MODI");}, "visibility": "U", "is_constant": " ", "is_class": " "}};
  static METHODS = {"DISPLAY_PROTOCOL": {"visibility": "U", "parameters": {"I_CONTAINER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}, "I_DISPLAY_TOOLBAR": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "I_OPTIMIZE_COLUMNS": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "ADD_PROTOCOL_ENTRY": {"visibility": "U", "parameters": {"I_MSGID": {"type": () => {return new abap.types.Character(20, {"qualifiedName":"SYMSGID","ddicName":"SYMSGID","description":"SYMSGID"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "I_MSGTY": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"SYMSGTY","ddicName":"SYMSGTY","description":"SYMSGTY"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "I_MSGNO": {"type": () => {return new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"});}, "is_optional": " ", "parm_kind": "I", "type_name": "NumericType"}, "I_MSGV1": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_MSGV2": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_MSGV3": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_MSGV4": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_FIELDNAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "I_ROW_ID": {"type": () => {return new abap.types.Integer({qualifiedName: "INT4"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "I_TABIX": {"type": () => {return new abap.types.Integer({qualifiedName: "INT4"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "GET_CELL_VALUE": {"visibility": "U", "parameters": {"I_ROW_ID": {"type": () => {return new abap.types.Integer({qualifiedName: "INT4"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "I_TABIX": {"type": () => {return new abap.types.Integer({qualifiedName: "INT4"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "I_FIELDNAME": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "E_VALUE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "E", "type_name": "AnyType"}}},
  "MODIFY_CELL": {"visibility": "U", "parameters": {"I_ROW_ID": {"type": () => {return new abap.types.Integer({qualifiedName: "INT4"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "I_TABIX": {"type": () => {return new abap.types.Integer({qualifiedName: "INT4"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "I_FIELDNAME": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "I_VALUE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "display_protocol": this.display_protocol.bind(this),
      "add_protocol_entry": this.add_protocol_entry.bind(this),
      "get_cell_value": this.get_cell_value.bind(this),
      "modify_cell": this.modify_cell.bind(this),
    };
    this.mt_mod_cells = abap.types.TableFactory.construct(new abap.types.Structure({
    "row_id": new abap.types.Integer({qualifiedName: "I"}),
    "sub_row_id": new abap.types.Integer({qualifiedName: "I"}),
    "fieldname": new abap.types.Character(30, {}),
    "value": new abap.types.Character(128, {}),
    "error": new abap.types.Character(1, {}),
    "tabix": new abap.types.Integer({qualifiedName: "I"}),
    "style": new abap.types.Hex({length: 4}),
    "style2": new abap.types.Hex({length: 4}),
    "style3": new abap.types.Hex({length: 4}),
    "style4": new abap.types.Hex({length: 4})}, "LVC_S_MODI", "LVC_S_MODI", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_MODI");
    this.mt_deleted_rows = abap.types.TableFactory.construct(new abap.types.Structure({
    "row_id": new abap.types.Integer({qualifiedName: "I"}),
    "sub_row_id": new abap.types.Integer({qualifiedName: "I"})}, "LVC_S_MOCE", "LVC_S_MOCE", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_MOCE");
    this.mt_inserted_rows = abap.types.TableFactory.construct(new abap.types.Structure({
    "row_id": new abap.types.Integer({qualifiedName: "I"}),
    "sub_row_id": new abap.types.Integer({qualifiedName: "I"})}, "LVC_S_MOCE", "LVC_S_MOCE", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_MOCE");
    this.mt_good_cells = abap.types.TableFactory.construct(new abap.types.Structure({
    "row_id": new abap.types.Integer({qualifiedName: "I"}),
    "sub_row_id": new abap.types.Integer({qualifiedName: "I"}),
    "fieldname": new abap.types.Character(30, {}),
    "value": new abap.types.Character(128, {}),
    "error": new abap.types.Character(1, {}),
    "tabix": new abap.types.Integer({qualifiedName: "I"}),
    "style": new abap.types.Hex({length: 4}),
    "style2": new abap.types.Hex({length: 4}),
    "style3": new abap.types.Hex({length: 4}),
    "style4": new abap.types.Hex({length: 4})}, "LVC_S_MODI", "LVC_S_MODI", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "LVC_T_MODI");
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async modify_cell(INPUT) {
    let i_row_id = new abap.types.Integer({qualifiedName: "INT4"});
    if (INPUT && INPUT.i_row_id) {i_row_id.set(INPUT.i_row_id);}
    let i_tabix = new abap.types.Integer({qualifiedName: "INT4"});
    if (INPUT && INPUT.i_tabix) {i_tabix.set(INPUT.i_tabix);}
    let i_fieldname = new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"});
    if (INPUT && INPUT.i_fieldname) {i_fieldname.set(INPUT.i_fieldname);}
    let i_value = INPUT?.i_value;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async get_cell_value(INPUT) {
    let i_row_id = new abap.types.Integer({qualifiedName: "INT4"});
    if (INPUT && INPUT.i_row_id) {i_row_id.set(INPUT.i_row_id);}
    let i_tabix = new abap.types.Integer({qualifiedName: "INT4"});
    if (INPUT && INPUT.i_tabix) {i_tabix.set(INPUT.i_tabix);}
    let i_fieldname = INPUT?.i_fieldname;
    if (i_fieldname?.getQualifiedName === undefined || i_fieldname.getQualifiedName() !== "LVC_FNAME") { i_fieldname = undefined; }
    if (i_fieldname === undefined) { i_fieldname = new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"}).set(INPUT.i_fieldname); }
    let e_value = INPUT?.e_value || new abap.types.Character(4);
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async add_protocol_entry(INPUT) {
    let i_msgid = INPUT?.i_msgid;
    if (i_msgid?.getQualifiedName === undefined || i_msgid.getQualifiedName() !== "SYMSGID") { i_msgid = undefined; }
    if (i_msgid === undefined) { i_msgid = new abap.types.Character(20, {"qualifiedName":"SYMSGID","ddicName":"SYMSGID","description":"SYMSGID"}).set(INPUT.i_msgid); }
    let i_msgty = INPUT?.i_msgty;
    if (i_msgty?.getQualifiedName === undefined || i_msgty.getQualifiedName() !== "SYMSGTY") { i_msgty = undefined; }
    if (i_msgty === undefined) { i_msgty = new abap.types.Character(1, {"qualifiedName":"SYMSGTY","ddicName":"SYMSGTY","description":"SYMSGTY"}).set(INPUT.i_msgty); }
    let i_msgno = INPUT?.i_msgno;
    if (i_msgno?.getQualifiedName === undefined || i_msgno.getQualifiedName() !== "SYMSGNO") { i_msgno = undefined; }
    if (i_msgno === undefined) { i_msgno = new abap.types.Numc({length: 3, qualifiedName: "SYMSGNO"}).set(INPUT.i_msgno); }
    let i_msgv1 = INPUT?.i_msgv1 || new abap.types.Character(4);
    let i_msgv2 = INPUT?.i_msgv2 || new abap.types.Character(4);
    let i_msgv3 = INPUT?.i_msgv3 || new abap.types.Character(4);
    let i_msgv4 = INPUT?.i_msgv4 || new abap.types.Character(4);
    let i_fieldname = INPUT?.i_fieldname;
    let i_row_id = new abap.types.Integer({qualifiedName: "INT4"});
    if (INPUT && INPUT.i_row_id) {i_row_id.set(INPUT.i_row_id);}
    let i_tabix = new abap.types.Integer({qualifiedName: "INT4"});
    if (INPUT && INPUT.i_tabix) {i_tabix.set(INPUT.i_tabix);}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  async display_protocol(INPUT) {
    let i_container = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});
    if (INPUT && INPUT.i_container) {i_container.set(INPUT.i_container);}
    let i_display_toolbar = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.i_display_toolbar) {i_display_toolbar.set(INPUT.i_display_toolbar);}
    let i_optimize_columns = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.i_optimize_columns) {i_optimize_columns.set(INPUT.i_optimize_columns);}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
}
abap.Classes['CL_ALV_CHANGED_DATA_PROTOCOL'] = cl_alv_changed_data_protocol;
export {cl_alv_changed_data_protocol};