@sap/subaccount-destination-service-provider
Version:
Provide service consumption of SAP subaccount services
26 lines • 1.86 kB
JavaScript
;
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const subaccountDestinationProviderRepositoryBusiness_1 = require("../../src/abap/providers/subaccountDestinationProviderRepositoryBusiness");
(() => __awaiter(void 0, void 0, void 0, function* () {
console.log("START ABAP BUSINESS OBJECT/CDS TEST FLOW");
const subaccountRepositoryBusiness = new subaccountDestinationProviderRepositoryBusiness_1.SubaccountDestinationProviderRepositoryBusiness();
const systemsBusinessList = yield subaccountRepositoryBusiness.getSystemsBusiness();
const abapSystemBusiness = systemsBusinessList.find((system) => system.name === "UYZ");
const boServiceList = yield abapSystemBusiness.getBOs();
const bo = boServiceList.find((bo) => bo.id === "I_PLANNEDORDERTP");
const boDetails = yield abapSystemBusiness.getSpecBo(bo.id);
const cdsList = yield abapSystemBusiness.getCDS();
const cds = cdsList.find((cds) => cds.id === "I_FININSTRUMENTSTATUS");
const cdsDetails = yield abapSystemBusiness.getSpecCds(cds.id);
console.log("END ABAP BUSINESS OBJECT/CDS TEST FLOW");
}))();
//# sourceMappingURL=abapTestFlowBusiness.js.map