All files / output zcl_abapgit_fm_ddif_doma_get.clas.mjs

19.48% Statements 15/77
100% Branches 2/2
25% Functions 1/4
19.48% Lines 15/77

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 771x 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_fm_ddif_doma_get.clas.abap
class zcl_abapgit_fm_ddif_doma_get {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_FM_DDIF_DOMA_GET';
  static IMPLEMENTED_INTERFACES = ["IF_FTD_INVOCATION_ANSWER"];
  static ATTRIBUTES = {};
  static METHODS = {};
  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 if_ftd_invocation_answer$answer(INPUT) {
    let $arguments = INPUT?.arguments;
    if ($arguments?.getQualifiedName === undefined || $arguments.getQualifiedName() !== "IF_FTD_INPUT_ARGUMENTS") { $arguments = undefined; }
    if ($arguments === undefined) { $arguments = new abap.types.ABAPObject({qualifiedName: "IF_FTD_INPUT_ARGUMENTS", RTTIName: "\\INTERFACE=IF_FTD_INPUT_ARGUMENTS"}).set(INPUT.arguments); }
    let result = new abap.types.ABAPObject({qualifiedName: "IF_FTD_INVOCATION_RESULT", RTTIName: "\\INTERFACE=IF_FTD_INVOCATION_RESULT"});
    if (INPUT && INPUT.result) {result = INPUT.result;}
    let ls_dd01v = new abap.types.Structure({
    "domname": new abap.types.Character(30, {}),
    "ddlanguage": new abap.types.Character(1, {}),
    "as4user": new abap.types.Character(12, {}),
    "as4date": new abap.types.Date(),
    "as4time": new abap.types.Time(),
    "ddtext": new abap.types.Character(60, {}),
    "datatype": new abap.types.Character(4, {}),
    "leng": new abap.types.Numc({length: 6}),
    "decimals": new abap.types.Numc({length: 6}),
    "outputlen": new abap.types.Numc({length: 6}),
    "convexit": new abap.types.Character(5, {}),
    "lowercase": new abap.types.Character(1, {}),
    "signflag": new abap.types.Character(1, {}),
    "entitytab": new abap.types.Character(30, {}),
    "appexist": new abap.types.Character(1, {}),
    "authclass": new abap.types.Character(2, {}),
    "masklen": new abap.types.Numc({length: 4}),
    "valexi": new abap.types.Character(1, {})}, "DD01V", "DD01V", {}, {});
    let lt_dd07v = abap.types.TableFactory.construct(new abap.types.Structure({
    "domname": new abap.types.Character(30, {}),
    "valpos": new abap.types.Numc({length: 4}),
    "ddlanguage": new abap.types.Character(1, {}),
    "domvalue_l": new abap.types.Character(10, {}),
    "domvalue_h": new abap.types.Character(10, {}),
    "ddtext": new abap.types.Character(60, {}),
    "domval_ld": new abap.types.Character(10, {}),
    "domval_hd": new abap.types.Character(10, {}),
    "appval": new abap.types.Character(1, {})}, "DD07V", "DD07V", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "DD07V_TAB");
    let lv_state = new abap.types.Character(1, {"qualifiedName":"DDGOTSTATE","ddicName":"DDGOTSTATE","description":"DDGOTSTATE"});
    let li_config = new abap.types.ABAPObject({qualifiedName: "IF_FTD_OUTPUT_CONFIGURATION", RTTIName: "\\INTERFACE=IF_FTD_OUTPUT_CONFIGURATION"});
    lv_state.set(abap.CharacterFactory.get(1, 'A'));
    if (abap.compare.initial(abap.Classes['ZCL_ABAPGIT_FM_DDIF_DOMA_PUT'].gs_dd01v) === false) {
      ls_dd01v.set(abap.Classes['ZCL_ABAPGIT_FM_DDIF_DOMA_PUT'].gs_dd01v);
      lt_dd07v.set(abap.Classes['ZCL_ABAPGIT_FM_DDIF_DOMA_PUT'].gt_dd07v);
    } else {
      ls_dd01v.get().domname.set(abap.CharacterFactory.get(18, 'ZABAPGIT_TEST_DOMA'));
      ls_dd01v.get().ddlanguage.set(abap.CharacterFactory.get(1, 'E'));
      ls_dd01v.get().datatype.set(abap.CharacterFactory.get(4, 'CHAR'));
      ls_dd01v.get().leng.set(abap.IntegerFactory.get(1));
      ls_dd01v.get().outputlen.set(abap.IntegerFactory.get(1));
      ls_dd01v.get().ddtext.set(abap.CharacterFactory.get(7, 'Testing'));
    }
    li_config.set((await result.get().if_ftd_invocation_result$get_output_configuration()));
    await li_config.get().if_ftd_output_configuration$set_exporting_parameter({name: abap.CharacterFactory.get(8, 'GOTSTATE'), value: lv_state});
    await li_config.get().if_ftd_output_configuration$set_exporting_parameter({name: abap.CharacterFactory.get(8, 'DD01V_WA'), value: ls_dd01v});
    await li_config.get().if_ftd_output_configuration$set_table_parameter({name: abap.CharacterFactory.get(9, 'DD07V_TAB'), value: lt_dd07v});
  }
}
abap.Classes['ZCL_ABAPGIT_FM_DDIF_DOMA_GET'] = zcl_abapgit_fm_ddif_doma_get;
export {zcl_abapgit_fm_ddif_doma_get};