All files / output cl_salv_layout.clas.mjs

32.6% Statements 30/92
100% Branches 2/2
5.55% Functions 1/18
32.6% Lines 30/92

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 921x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                   1x 1x                             1x       1x                             1x         1x       1x       1x       1x           1x         1x 1x 1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_salv_layout.clas.abap
class cl_salv_layout {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_LAYOUT';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"RESTRICT_NONE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"SET_KEY": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "SET_SAVE_RESTRICTION": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "SET_DEFAULT": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "HAS_DEFAULT": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "R", "type_name": "CharacterType"}}},
  "SET_INITIAL_LAYOUT": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}}},
  "GET_DEFAULT_LAYOUT": {"visibility": "U", "parameters": {"SDF": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "R", "type_name": "StringType"}}},
  "GET_LAYOUTS": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "report": new abap.types.Character(40, {}),
  "handle": new abap.types.Character(4, {}),
  "logical_group": new abap.types.Character(4, {}),
  "layout": new abap.types.Character(12, {}),
  "text": new abap.types.String({qualifiedName: "STRING"}),
  "user_specific": new abap.types.Character(1, {}),
  "default": new abap.types.Character(1, {}),
  "filter": new abap.types.Character(1, {}),
  "subtotal": new abap.types.Character(1, {}),
  "sum": new abap.types.Character(1, {})}, "SALV_S_LAYOUT_INFO", "SALV_S_LAYOUT_INFO", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "SALV_T_LAYOUT_INFO");}, "is_optional": " ", "parm_kind": "R", "type_name": "TableType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "set_key": this.set_key.bind(this),
      "set_save_restriction": this.set_save_restriction.bind(this),
      "set_default": this.set_default.bind(this),
      "has_default": this.has_default.bind(this),
      "set_initial_layout": this.set_initial_layout.bind(this),
      "get_default_layout": this.get_default_layout.bind(this),
      "get_layouts": this.get_layouts.bind(this),
    };
    this.restrict_none = cl_salv_layout.restrict_none;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async get_layouts() {
    let value = abap.types.TableFactory.construct(new abap.types.Structure({
    "report": new abap.types.Character(40, {}),
    "handle": new abap.types.Character(4, {}),
    "logical_group": new abap.types.Character(4, {}),
    "layout": new abap.types.Character(12, {}),
    "text": new abap.types.String({qualifiedName: "STRING"}),
    "user_specific": new abap.types.Character(1, {}),
    "default": new abap.types.Character(1, {}),
    "filter": new abap.types.Character(1, {}),
    "subtotal": new abap.types.Character(1, {}),
    "sum": new abap.types.Character(1, {})}, "SALV_S_LAYOUT_INFO", "SALV_S_LAYOUT_INFO", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "SALV_T_LAYOUT_INFO");
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
    return value;
  }
  async get_default_layout() {
    let sdf = new abap.types.String({qualifiedName: "STRING"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
    return sdf;
  }
  async set_key(INPUT) {
    let value = INPUT?.value;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async set_initial_layout(INPUT) {
    let value = INPUT?.value;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async set_save_restriction(INPUT) {
    let value = INPUT?.value || new abap.types.Character(4);
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async set_default(INPUT) {
    let value = INPUT?.value;
    if (value?.getQualifiedName === undefined || value.getQualifiedName() !== "ABAP_BOOL") { value = undefined; }
    if (value === undefined) { value = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}).set(INPUT.value); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async has_default() {
    let value = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
    return value;
  }
}
abap.Classes['CL_SALV_LAYOUT'] = cl_salv_layout;
cl_salv_layout.restrict_none = new abap.types.Integer({qualifiedName: "I"});
cl_salv_layout.restrict_none.set(3);
export {cl_salv_layout};