All files / output cl_salv_layout_service.clas.mjs

20.83% Statements 25/120
100% Branches 2/2
5% Functions 1/20
20.83% Lines 25/120

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 1201x 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_service.clas.abap
class cl_salv_layout_service {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_LAYOUT_SERVICE';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"F4_LAYOUTS": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return 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", {}, {});}, "is_optional": " ", "parm_kind": "R", "type_name": "StructureType"}, "S_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "LAYOUT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "RESTRICT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "GET_DEFAULT_LAYOUT": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return 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", {}, {});}, "is_optional": " ", "parm_kind": "R", "type_name": "StructureType"}, "S_KEY": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "RESTRICT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "MANDT": {"type": () => {return new abap.types.Character(3, {"qualifiedName":"MANDT","ddicName":"MANDT","description":"MANDT"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "BYPASS_BUFFER": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "GET_LAYOUTS": {"visibility": "U", "parameters": {"T_LAYOUT": {"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"}, "S_KEY": {"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 = {
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async get_default_layout(INPUT) {
    return cl_salv_layout_service.get_default_layout(INPUT);
  }
  static async get_default_layout(INPUT) {
    let value = 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", {}, {});
    let s_key = INPUT?.s_key;
    let restrict = INPUT?.restrict || new abap.types.Character(4);
    let mandt = new abap.types.Character(3, {"qualifiedName":"MANDT","ddicName":"MANDT","description":"MANDT"});
    if (INPUT && INPUT.mandt) {mandt.set(INPUT.mandt);}
    if (INPUT === undefined || INPUT.mandt === undefined) {mandt = abap.builtin.sy.get().mandt;}
    let bypass_buffer = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.bypass_buffer) {bypass_buffer.set(INPUT.bypass_buffer);}
    return value;
    return value;
  }
  async get_layouts(INPUT) {
    return cl_salv_layout_service.get_layouts(INPUT);
  }
  static async get_layouts(INPUT) {
    let t_layout = 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");
    let s_key = INPUT?.s_key;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.IntegerFactory.get(2)));
    return t_layout;
  }
  async f4_layouts(INPUT) {
    return cl_salv_layout_service.f4_layouts(INPUT);
  }
  static async f4_layouts(INPUT) {
    let value = 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", {}, {});
    let s_key = INPUT?.s_key;
    let layout = INPUT?.layout || new abap.types.Character(4);
    let restrict = INPUT?.restrict || new abap.types.Character(4);
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.IntegerFactory.get(2)));
    return value;
  }
}
abap.Classes['CL_SALV_LAYOUT_SERVICE'] = cl_salv_layout_service;
export {cl_salv_layout_service};