All files / output cl_abap_structdescr.clas.mjs

69.43% Statements 409/589
75.67% Branches 28/37
34.09% Functions 15/44
69.43% Lines 409/589

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 5891x 1x 1x 864x 864x 864x 864x 864x 864x       864x 864x 864x       864x 864x       864x 864x 1x 1x       1x 1x                                                                                         1x 1x 1x   1x 1x       1x 1x       1x 1x   864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x                                                                                           864x     864x                       864x     864x                                                                                                             864x 60x 60x 60x 60x 60x 60x 60x 60x 60x 60x 60x 60x 60x 60x 180x 180x 180x 180x 180x 180x 60x 60x 864x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 25x 100x 100x 100x 100x 100x 100x 100x 100x 100x 100x 25x 67x 67x 67x 67x 67x 67x 67x 67x 67x 25x 25x 864x     864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 864x 7853x 7853x 7853x 7853x 7853x 7853x 7853x 864x 1x 1x 1x 1x 4x 4x 4x 4x 1x 864x 864x 1137x 1137x 1137x 1137x 1137x 1137x 1137x 1137x 864x 231x 231x 231x 231x 231x 231x 231x 231x 231x 231x 231x 231x 231x 6x 231x 225x 225x 225x 231x 864x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
const {cl_abap_complexdescr} = await import("./cl_abap_complexdescr.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_abap_structdescr.clas.abap
class cl_abap_structdescr extends cl_abap_complexdescr {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_ABAP_STRUCTDESCR';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"HAS_INCLUDE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "COMPONENTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
  "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
  "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
  "name": new abap.types.Character(30, {"qualifiedName":"abap_compname"})}, "abap_compdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_compdescr_tab");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "STRUCT_KIND": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_structkind"});}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "MT_REFS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "NAME"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
  "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MT_REFS_COMP": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "NAME"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
  "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");}, "visibility": "I", "is_constant": " ", "is_class": " "}};
  static METHODS = {"UPDATE_COMPONENTS": {"visibility": "I", "parameters": {}},
  "CONSTRUCT_FROM_DATA": {"visibility": "U", "parameters": {"DESCR": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR", RTTIName: "\\CLASS=CL_ABAP_STRUCTDESCR"});}, "is_optional": " "}, "DATA": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}},
  "GET_COMPONENTS": {"visibility": "U", "parameters": {"RT_COMPONENTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "NAME"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
  "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");}, "is_optional": " "}}},
  "GET_DDIC_FIELD_LIST": {"visibility": "U", "parameters": {"RT_COMPONENTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "tabname": new abap.types.Character(30, {}),
  "fieldname": new abap.types.Character(30, {}),
  "langu": new abap.types.Character(1, {}),
  "position": new abap.types.Numc({length: 4}),
  "offset": new abap.types.Numc({length: 6}),
  "domname": new abap.types.Character(30, {}),
  "rollname": new abap.types.Character(30, {}),
  "checktable": new abap.types.Character(1, {}),
  "leng": new abap.types.Numc({length: 6}),
  "intlen": new abap.types.Numc({length: 6}),
  "outputlen": new abap.types.Numc({length: 6}),
  "decimals": new abap.types.Numc({length: 6}),
  "datatype": new abap.types.Character(1, {}),
  "inttype": new abap.types.Character(1, {}),
  "reftable": new abap.types.Character(1, {}),
  "reffield": new abap.types.Character(1, {}),
  "precfield": new abap.types.Character(1, {}),
  "authorid": new abap.types.Character(1, {}),
  "memoryid": new abap.types.Character(1, {}),
  "logflag": new abap.types.Character(1, {}),
  "mask": new abap.types.Character(20, {}),
  "masklen": new abap.types.Character(1, {}),
  "convexit": new abap.types.Character(1, {}),
  "headlen": new abap.types.Character(1, {}),
  "scrlen1": new abap.types.Character(1, {}),
  "scrlen2": new abap.types.Character(1, {}),
  "scrlen3": new abap.types.Character(1, {}),
  "fieldtext": new abap.types.Character(1, {}),
  "reptext": new abap.types.Character(1, {}),
  "scrtext_s": new abap.types.Character(1, {}),
  "scrtext_m": new abap.types.Character(1, {}),
  "scrtext_l": new abap.types.Character(1, {}),
  "keyflag": new abap.types.Character(1, {}),
  "lowercase": new abap.types.Character(1, {}),
  "mac": new abap.types.Character(1, {}),
  "genkey": new abap.types.Character(1, {}),
  "noforkey": new abap.types.Character(1, {}),
  "valexi": new abap.types.Character(1, {}),
  "noauthch": new abap.types.Character(1, {}),
  "sign": new abap.types.Character(1, {}),
  "dynpfld": new abap.types.Character(1, {}),
  "f4availabl": new abap.types.Character(1, {}),
  "comptype": new abap.types.Character(1, {}),
  "outputstyle": new abap.types.Character(1, {}),
  "lfieldname": new abap.types.Character(132, {})}, "DFIES", "DFIES", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "DDFIELDS");}, "is_optional": " "}, "P_LANGU": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"sy-langu","conversionExit":"ISOLA"});}, "is_optional": " "}, "P_INCLUDING_SUBSTRUCTRES": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}},
  "GET_COMPONENT_TYPE": {"visibility": "U", "parameters": {"P_DESCR_REF": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"});}, "is_optional": " "}, "P_NAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " "}}},
  "GET_INCLUDED_VIEW": {"visibility": "U", "parameters": {"P_RESULT": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "NAME"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_component_view_tab");}, "is_optional": " "}, "P_LEVEL": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "GET": {"visibility": "U", "parameters": {"P_RESULT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR", RTTIName: "\\CLASS=CL_ABAP_STRUCTDESCR"});}, "is_optional": " "}, "P_COMPONENTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "NAME"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
  "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");}, "is_optional": " "}}},
  "CREATE": {"visibility": "U", "parameters": {"REF": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR", RTTIName: "\\CLASS=CL_ABAP_STRUCTDESCR"});}, "is_optional": " "}, "P_COMPONENTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "NAME"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
  "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");}, "is_optional": " "}, "P_STRICT": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}},
  "GET_SYMBOLS": {"visibility": "U", "parameters": {"P_RESULT": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "NAME"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "abap_component_symbol_tab");}, "is_optional": " "}}}};
  #mt_refs;
  #mt_refs_comp;
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "update_components": this.#update_components.bind(this),
      "get_components": this.get_components.bind(this),
      "get_ddic_field_list": this.get_ddic_field_list.bind(this),
      "get_component_type": this.get_component_type.bind(this),
      "get_included_view": this.get_included_view.bind(this),
      "get_symbols": this.get_symbols.bind(this),
    };
    this.has_include = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    this.components = abap.types.TableFactory.construct(new abap.types.Structure({
    "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
    "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
    "name": new abap.types.Character(30, {"qualifiedName":"abap_compname"})}, "abap_compdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_compdescr_tab");
    this.struct_kind = new abap.types.Character(1, {"qualifiedName":"abap_structkind"});
    this.#mt_refs = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
    this.FRIENDS_ACCESS_INSTANCE["mt_refs"] = this.#mt_refs;
    this.#mt_refs_comp = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
    this.FRIENDS_ACCESS_INSTANCE["mt_refs_comp"] = this.#mt_refs_comp;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async get_symbols() {
    let p_result = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "abap_component_symbol_tab");
    let lt_components = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
    let ls_symbol = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {});
    let lt_symbols = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "abap_component_symbol_tab");
    let lo_structdescr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR", RTTIName: "\\CLASS=CL_ABAP_STRUCTDESCR"});
    let fs_ls_component_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}));
    let fs_ls_symbol_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {}));
    lt_components.set((await this.get_components()));
    for await (const unique1222 of abap.statements.loop(lt_components)) {
      fs_ls_component_.assign(unique1222);
      if (abap.compare.initial(fs_ls_component_.get().name) === false) {
        ls_symbol.get().name.set(fs_ls_component_.get().name);
        ls_symbol.get().type.set(fs_ls_component_.get().type);
        abap.statements.insertInternal({data: ls_symbol, table: p_result});
      }
      if (abap.compare.eq(fs_ls_component_.get().as_include, abap.builtin.abap_true)) {
        await abap.statements.cast(lo_structdescr, fs_ls_component_.get().type);
        lt_symbols.set((await lo_structdescr.get().get_symbols()));
        for await (const unique1223 of abap.statements.loop(lt_symbols)) {
          fs_ls_symbol_.assign(unique1223);
          abap.statements.concatenate({source: [fs_ls_symbol_.get().name, fs_ls_component_.get().suffix], target: ls_symbol.get().name});
          abap.statements.concatenate({source: [fs_ls_symbol_.get().name, fs_ls_component_.get().suffix], target: ls_symbol.get().name});
          ls_symbol.get().type.set(fs_ls_symbol_.get().type);
          abap.statements.insertInternal({data: ls_symbol, table: p_result});
        }
      }
    }
    return p_result;
  }
  async get(INPUT) {
    return cl_abap_structdescr.get(INPUT);
  }
  static async get(INPUT) {
    let p_result = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR", RTTIName: "\\CLASS=CL_ABAP_STRUCTDESCR"});
    let p_components = INPUT?.p_components;
    if (p_components?.getQualifiedName === undefined || p_components.getQualifiedName() !== "ABAP_COMPONENT_TAB") { p_components = undefined; }
    if (p_components === undefined) { p_components = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab").set(INPUT.p_components); }
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
    return p_result;
  }
  async create(INPUT) {
    return cl_abap_structdescr.create(INPUT);
  }
  static async create(INPUT) {
    let ref = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR", RTTIName: "\\CLASS=CL_ABAP_STRUCTDESCR"});
    let p_components = INPUT?.p_components;
    if (p_components?.getQualifiedName === undefined || p_components.getQualifiedName() !== "ABAP_COMPONENT_TAB") { p_components = undefined; }
    if (p_components === undefined) { p_components = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab").set(INPUT.p_components); }
    let p_strict = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.p_strict) {p_strict.set(INPUT.p_strict);}
    let ls_component = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {});
    let ls_ref = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {});
    if (abap.compare.eq(abap.builtin.lines({val: p_components}), abap.IntegerFactory.get(0))) {
      const unique1224 = await (new abap.Classes['CX_SY_STRUCT_ATTRIBUTES']()).constructor_();
      unique1224.EXTRA_CX = {"INTERNAL_FILENAME": "cl_abap_structdescr.clas.abap","INTERNAL_LINE": 116};
      throw unique1224;
    }
    for await (const unique1225 of abap.statements.loop(p_components)) {
      ls_component.set(unique1225);
      if (abap.compare.initial(ls_component.get().name)) {
        const unique1226 = await (new abap.Classes['CX_SY_STRUCT_COMP_NAME']()).constructor_();
        unique1226.EXTRA_CX = {"INTERNAL_FILENAME": "cl_abap_structdescr.clas.abap","INTERNAL_LINE": 121};
        throw unique1226;
      } else if (abap.compare.initial(ls_component.get().type)) {
        const unique1227 = await (new abap.Classes['CX_SY_STRUCT_COMP_TYPE']()).constructor_();
        unique1227.EXTRA_CX = {"INTERNAL_FILENAME": "cl_abap_structdescr.clas.abap","INTERNAL_LINE": 123};
        throw unique1227;
      } else if (abap.compare.gt(abap.builtin.strlen({val: ls_component.get().name}), abap.IntegerFactory.get(30))) {
        const unique1228 = await (new abap.Classes['CX_SY_STRUCT_COMP_NAME']()).constructor_();
        unique1228.EXTRA_CX = {"INTERNAL_FILENAME": "cl_abap_structdescr.clas.abap","INTERNAL_LINE": 125};
        throw unique1228;
      }
    }
    ref.set(await (new abap.Classes['CL_ABAP_STRUCTDESCR']()).constructor_());
    for await (const unique1229 of abap.statements.loop(p_components)) {
      ls_component.set(unique1229);
      ls_ref.clear();
      ls_ref.get().name.set(ls_component.get().name);
      ls_ref.get().type.set(ls_component.get().type);
      abap.statements.append({source: ls_ref, target: ref.get().FRIENDS_ACCESS_INSTANCE["mt_refs"]});
    }
    await ref.get().FRIENDS_ACCESS_INSTANCE["update_components"]();
    ref.get().type_kind.set(cl_abap_structdescr.typekind_struct2);
    ref.get().kind.set(cl_abap_structdescr.kind_struct);
    return ref;
  }
  async get_included_view(INPUT) {
    let p_result = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_component_view_tab");
    let p_level = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.p_level) {p_level.set(INPUT.p_level);}
    let ls_view = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {});
    let ls_ref = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {});
    for await (const unique1230 of abap.statements.loop(this.#mt_refs,{where: async (I) => {return abap.compare.eq(I.as_include, abap.builtin.abap_false);},topEquals: {"as_include": abap.builtin.abap_false}})) {
      ls_ref.set(unique1230);
      ls_view.clear();
      ls_view.get().name.set(ls_ref.get().name);
      ls_view.get().type.set(ls_ref.get().type);
      abap.statements.insertInternal({data: ls_view, table: p_result});
    }
    return p_result;
  }
  async get_ddic_field_list(INPUT) {
    let rt_components = abap.types.TableFactory.construct(new abap.types.Structure({
    "tabname": new abap.types.Character(30, {}),
    "fieldname": new abap.types.Character(30, {}),
    "langu": new abap.types.Character(1, {}),
    "position": new abap.types.Numc({length: 4}),
    "offset": new abap.types.Numc({length: 6}),
    "domname": new abap.types.Character(30, {}),
    "rollname": new abap.types.Character(30, {}),
    "checktable": new abap.types.Character(1, {}),
    "leng": new abap.types.Numc({length: 6}),
    "intlen": new abap.types.Numc({length: 6}),
    "outputlen": new abap.types.Numc({length: 6}),
    "decimals": new abap.types.Numc({length: 6}),
    "datatype": new abap.types.Character(1, {}),
    "inttype": new abap.types.Character(1, {}),
    "reftable": new abap.types.Character(1, {}),
    "reffield": new abap.types.Character(1, {}),
    "precfield": new abap.types.Character(1, {}),
    "authorid": new abap.types.Character(1, {}),
    "memoryid": new abap.types.Character(1, {}),
    "logflag": new abap.types.Character(1, {}),
    "mask": new abap.types.Character(20, {}),
    "masklen": new abap.types.Character(1, {}),
    "convexit": new abap.types.Character(1, {}),
    "headlen": new abap.types.Character(1, {}),
    "scrlen1": new abap.types.Character(1, {}),
    "scrlen2": new abap.types.Character(1, {}),
    "scrlen3": new abap.types.Character(1, {}),
    "fieldtext": new abap.types.Character(1, {}),
    "reptext": new abap.types.Character(1, {}),
    "scrtext_s": new abap.types.Character(1, {}),
    "scrtext_m": new abap.types.Character(1, {}),
    "scrtext_l": new abap.types.Character(1, {}),
    "keyflag": new abap.types.Character(1, {}),
    "lowercase": new abap.types.Character(1, {}),
    "mac": new abap.types.Character(1, {}),
    "genkey": new abap.types.Character(1, {}),
    "noforkey": new abap.types.Character(1, {}),
    "valexi": new abap.types.Character(1, {}),
    "noauthch": new abap.types.Character(1, {}),
    "sign": new abap.types.Character(1, {}),
    "dynpfld": new abap.types.Character(1, {}),
    "f4availabl": new abap.types.Character(1, {}),
    "comptype": new abap.types.Character(1, {}),
    "outputstyle": new abap.types.Character(1, {}),
    "lfieldname": new abap.types.Character(132, {})}, "DFIES", "DFIES", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "DDFIELDS");
    let p_langu = new abap.types.Character(1, {"qualifiedName":"sy-langu","conversionExit":"ISOLA"});
    if (INPUT && INPUT.p_langu) {p_langu.set(INPUT.p_langu);}
    if (INPUT === undefined || INPUT.p_langu === undefined) {p_langu = abap.builtin.sy.get().langu;}
    let p_including_substructres = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.p_including_substructres) {p_including_substructres.set(INPUT.p_including_substructres);}
    if (INPUT === undefined || INPUT.p_including_substructres === undefined) {p_including_substructres = abap.builtin.abap_false;}
    let lt_components = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
    let ls_component = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {});
    let ls_return = new abap.types.Structure({
    "tabname": new abap.types.Character(30, {}),
    "fieldname": new abap.types.Character(30, {}),
    "langu": new abap.types.Character(1, {}),
    "position": new abap.types.Numc({length: 4}),
    "offset": new abap.types.Numc({length: 6}),
    "domname": new abap.types.Character(30, {}),
    "rollname": new abap.types.Character(30, {}),
    "checktable": new abap.types.Character(1, {}),
    "leng": new abap.types.Numc({length: 6}),
    "intlen": new abap.types.Numc({length: 6}),
    "outputlen": new abap.types.Numc({length: 6}),
    "decimals": new abap.types.Numc({length: 6}),
    "datatype": new abap.types.Character(1, {}),
    "inttype": new abap.types.Character(1, {}),
    "reftable": new abap.types.Character(1, {}),
    "reffield": new abap.types.Character(1, {}),
    "precfield": new abap.types.Character(1, {}),
    "authorid": new abap.types.Character(1, {}),
    "memoryid": new abap.types.Character(1, {}),
    "logflag": new abap.types.Character(1, {}),
    "mask": new abap.types.Character(20, {}),
    "masklen": new abap.types.Character(1, {}),
    "convexit": new abap.types.Character(1, {}),
    "headlen": new abap.types.Character(1, {}),
    "scrlen1": new abap.types.Character(1, {}),
    "scrlen2": new abap.types.Character(1, {}),
    "scrlen3": new abap.types.Character(1, {}),
    "fieldtext": new abap.types.Character(1, {}),
    "reptext": new abap.types.Character(1, {}),
    "scrtext_s": new abap.types.Character(1, {}),
    "scrtext_m": new abap.types.Character(1, {}),
    "scrtext_l": new abap.types.Character(1, {}),
    "keyflag": new abap.types.Character(1, {}),
    "lowercase": new abap.types.Character(1, {}),
    "mac": new abap.types.Character(1, {}),
    "genkey": new abap.types.Character(1, {}),
    "noforkey": new abap.types.Character(1, {}),
    "valexi": new abap.types.Character(1, {}),
    "noauthch": new abap.types.Character(1, {}),
    "sign": new abap.types.Character(1, {}),
    "dynpfld": new abap.types.Character(1, {}),
    "f4availabl": new abap.types.Character(1, {}),
    "comptype": new abap.types.Character(1, {}),
    "outputstyle": new abap.types.Character(1, {}),
    "lfieldname": new abap.types.Character(132, {})}, "DFIES", "DFIES", {}, {});
    let lv_name = new abap.types.String({qualifiedName: "STRING"});
    let lv_keyfield = new abap.types.String({qualifiedName: "STRING"});
    let lo_elemdescr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_ELEMDESCR", RTTIName: "\\CLASS=CL_ABAP_ELEMDESCR"});
    let fs_component_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "tabname": new abap.types.Character(30, {}),
    "fieldname": new abap.types.Character(30, {}),
    "langu": new abap.types.Character(1, {}),
    "position": new abap.types.Numc({length: 4}),
    "offset": new abap.types.Numc({length: 6}),
    "domname": new abap.types.Character(30, {}),
    "rollname": new abap.types.Character(30, {}),
    "checktable": new abap.types.Character(1, {}),
    "leng": new abap.types.Numc({length: 6}),
    "intlen": new abap.types.Numc({length: 6}),
    "outputlen": new abap.types.Numc({length: 6}),
    "decimals": new abap.types.Numc({length: 6}),
    "datatype": new abap.types.Character(1, {}),
    "inttype": new abap.types.Character(1, {}),
    "reftable": new abap.types.Character(1, {}),
    "reffield": new abap.types.Character(1, {}),
    "precfield": new abap.types.Character(1, {}),
    "authorid": new abap.types.Character(1, {}),
    "memoryid": new abap.types.Character(1, {}),
    "logflag": new abap.types.Character(1, {}),
    "mask": new abap.types.Character(20, {}),
    "masklen": new abap.types.Character(1, {}),
    "convexit": new abap.types.Character(1, {}),
    "headlen": new abap.types.Character(1, {}),
    "scrlen1": new abap.types.Character(1, {}),
    "scrlen2": new abap.types.Character(1, {}),
    "scrlen3": new abap.types.Character(1, {}),
    "fieldtext": new abap.types.Character(1, {}),
    "reptext": new abap.types.Character(1, {}),
    "scrtext_s": new abap.types.Character(1, {}),
    "scrtext_m": new abap.types.Character(1, {}),
    "scrtext_l": new abap.types.Character(1, {}),
    "keyflag": new abap.types.Character(1, {}),
    "lowercase": new abap.types.Character(1, {}),
    "mac": new abap.types.Character(1, {}),
    "genkey": new abap.types.Character(1, {}),
    "noforkey": new abap.types.Character(1, {}),
    "valexi": new abap.types.Character(1, {}),
    "noauthch": new abap.types.Character(1, {}),
    "sign": new abap.types.Character(1, {}),
    "dynpfld": new abap.types.Character(1, {}),
    "f4availabl": new abap.types.Character(1, {}),
    "comptype": new abap.types.Character(1, {}),
    "outputstyle": new abap.types.Character(1, {}),
    "lfieldname": new abap.types.Character(132, {})}, "DFIES", "DFIES", {}, {}));
    lt_components.set((await this.get_components()));
    abap.statements.assert(abap.compare.cp(this.absolute_name, abap.CharacterFactory.get(7, '+TYPE=*')));
    lv_name.set(this.absolute_name.getOffset({offset: 6}));
    for await (const unique1231 of abap.statements.loop(lt_components)) {
      ls_component.set(unique1231);
      ls_return.clear();
      ls_return.get().tabname.set(lv_name);
      ls_return.get().fieldname.set(ls_component.get().name);
      if (abap.compare.eq(ls_component.get().type.get().kind, abap.Classes['CL_ABAP_TYPEDESCR'].kind_elem)) {
        await abap.statements.cast(lo_elemdescr, ls_component.get().type);
        ls_return.get().leng.set(lo_elemdescr.get().output_length);
      }
      abap.statements.append({source: ls_return, target: rt_components});
    }
    for (const keyfield of abap.DDIC[lv_name.get()]?.keyFields || [] ) {
      lv_keyfield.set(keyfield);
      abap.statements.readTable(rt_components,{assigning: fs_component_,
        withKey: (i) => {return abap.compare.eq(i.fieldname, lv_keyfield);},
        withKeyValue: [{key: (i) => {return i.fieldname}, value: lv_keyfield}],
        usesTableLine: false,
        withKeySimple: {"fieldname": lv_keyfield}});
      abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)));
      fs_component_.get().keyflag.set(abap.builtin.abap_true);
    }
    return rt_components;
  }
  async construct_from_data(INPUT) {
    return cl_abap_structdescr.construct_from_data(INPUT);
  }
  static async construct_from_data(INPUT) {
    let descr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR", RTTIName: "\\CLASS=CL_ABAP_STRUCTDESCR"});
    let data = INPUT?.data;
    let lv_name = new abap.types.String({qualifiedName: "STRING"});
    let ls_ref = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {});
    let lv_suffix = new abap.types.String({qualifiedName: "STRING"});
    let lv_as_include = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let lo_datadescr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"});
    let fs_fs_ = new abap.types.FieldSymbol(new abap.types.Character(4));
    descr.set(await (new abap.Classes['CL_ABAP_STRUCTDESCR']()).constructor_());
    for (const name of Object.keys(INPUT.data.value)) {
        lv_name.set(name.toUpperCase());
      abap.statements.assign({component: lv_name, target: fs_fs_, source: data});
      await abap.statements.cast(lo_datadescr, (await abap.Classes['CL_ABAP_TYPEDESCR'].describe_by_data({p_data: fs_fs_})));
      ls_ref.get().name.set(lv_name);
      ls_ref.get().type.set(lo_datadescr);
      if (INPUT.data?.getAsInclude) {
          lv_as_include.set(INPUT.data?.getAsInclude()?.[name.toLowerCase()] ? "X" : " ");
      }
      ls_ref.get().as_include.set(lv_as_include);
      if (INPUT.data?.getRenamingSuffix) {
          lv_suffix.set(INPUT.data?.getRenamingSuffix()?.[name.toLowerCase()] || "");
        abap.statements.translate(lv_suffix, "UPPER");
      }
      ls_ref.get().suffix.set(lv_suffix);
      abap.statements.append({source: ls_ref, target: descr.get().FRIENDS_ACCESS_INSTANCE["mt_refs"]});
    }
    await descr.get().FRIENDS_ACCESS_INSTANCE["update_components"]();
    return descr;
  }
  async #update_components() {
    let ls_component = new abap.types.Structure({
    "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
    "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
    "name": new abap.types.Character(30, {"qualifiedName":"abap_compname"})}, "abap_compdescr", undefined, {}, {});
    let lo_structdescr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR", RTTIName: "\\CLASS=CL_ABAP_STRUCTDESCR"});
    let lt_components = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
    let lv_name = new abap.types.String({qualifiedName: "STRING"});
    let fs_ls_ref_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}));
    let fs_ls_component_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}));
    this.components.clear();
    this.#mt_refs_comp.set(this.#mt_refs);
    for await (const unique1232 of abap.statements.loop(this.#mt_refs)) {
      fs_ls_ref_.assign(unique1232);
      ls_component.get().name.set(fs_ls_ref_.get().name);
      ls_component.get().type_kind.set(fs_ls_ref_.get().type.get().type_kind);
      ls_component.get().length.set(fs_ls_ref_.get().type.get().length);
      ls_component.get().decimals.set(fs_ls_ref_.get().type.get().decimals);
      abap.statements.append({source: ls_component, target: this.components});
    }
    for await (const unique1233 of abap.statements.loop(this.#mt_refs,{where: async (I) => {return abap.compare.eq(I.as_include, abap.builtin.abap_true);},topEquals: {"as_include": abap.builtin.abap_true}})) {
      fs_ls_ref_.assign(unique1233);
      await abap.statements.cast(lo_structdescr, fs_ls_ref_.get().type);
      lt_components.set((await lo_structdescr.get().get_components()));
      for await (const unique1234 of abap.statements.loop(lt_components)) {
        fs_ls_component_.assign(unique1234);
        abap.statements.concatenate({source: [fs_ls_component_.get().name, fs_ls_ref_.get().suffix], target: lv_name});
        await abap.statements.deleteInternal(this.#mt_refs_comp,{where: async (I) => {return abap.compare.eq(I.name, lv_name);}});
      }
    }
  }
  async get_components() {
    let rt_components = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
    rt_components.set(this.#mt_refs_comp);
    return rt_components;
  }
  async get_component_type(INPUT) {
    let p_descr_ref = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"});
    let p_name = INPUT?.p_name;
    let fs_line_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "NAME"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
    "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}));
    abap.statements.readTable(this.#mt_refs,{assigning: fs_line_,
      withKey: (i) => {return abap.compare.eq(i.name, p_name);},
      withKeyValue: [{key: (i) => {return i.name}, value: p_name}],
      usesTableLine: false,
      withKeySimple: {"name": p_name}});
    if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
      throw new abap.ClassicError({classic: "component_not_found"});
    } else {
      p_descr_ref.set(fs_line_.get().type);
    }
    return p_descr_ref;
  }
}
abap.Classes['CL_ABAP_STRUCTDESCR'] = cl_abap_structdescr;
cl_abap_structdescr.component = new abap.types.Structure({
"name": new abap.types.String({qualifiedName: "NAME"}),
"type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
"as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {});
cl_abap_structdescr.component_table = abap.types.TableFactory.construct(new abap.types.Structure({
"name": new abap.types.String({qualifiedName: "NAME"}),
"type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"}),
"as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
"suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
cl_abap_structdescr.included_view = abap.types.TableFactory.construct(new abap.types.Structure({
"name": new abap.types.String({qualifiedName: "NAME"}),
"type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_component_view_tab");
cl_abap_structdescr.symbol_table = abap.types.TableFactory.construct(new abap.types.Structure({
"name": new abap.types.String({qualifiedName: "NAME"}),
"type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "abap_component_symbol_tab");
export {cl_abap_structdescr};