BizDoc.Infrastructure.SAP
6.7.7
See the version list below for details.
dotnet add package BizDoc.Infrastructure.SAP --version 6.7.7
NuGet\Install-Package BizDoc.Infrastructure.SAP -Version 6.7.7
<PackageReference Include="BizDoc.Infrastructure.SAP" Version="6.7.7" />
paket add BizDoc.Infrastructure.SAP --version 6.7.7
#r "nuget: BizDoc.Infrastructure.SAP, 6.7.7"
// Install BizDoc.Infrastructure.SAP as a Cake Addin #addin nuget:?package=BizDoc.Infrastructure.SAP&version=6.7.7 // Install BizDoc.Infrastructure.SAP as a Cake Tool #tool nuget:?package=BizDoc.Infrastructure.SAP&version=6.7.7
SAP for BizDoc
In program.cs
builder.Services.AddBizDoc().
AddSAP(options =>
{
options.ConnectionString = "sap";
});
app.UseBizDoc().UseSAP();
Extension | Usage |
---|---|
UseUserIdentityManager() | |
UseExchangeRate() | Set base currency in options |
UseAnalysis() | Configure and schedule |
ScheduleDocumentsSynchronize() | |
ScheduleItemsSynchronize() | |
ScheduleGeneralLedgerSynchronize() |
Analysis
Configure UseAnalysis
base on SAP account segmentations.
app.UseBizDoc().
UseSAP().
UseAnalysis();
BizDoc configure two cubes in bizdoc.json with axes and default views.
{
"Cubes": [{
"Type": "BizDoc.SAP.Configuration.DocumentCube, BizDoc.Infrastructure.SAP",
"Axes": [...],
"Views": [...]
}, {
"Type": "BizDoc.SAP.Configuration.ItemCube, BizDoc.Infrastructure.SAP",
"Axes": [...],
}]
}
{
"Widgets": [{
"Type": "BizDoc.Configuration.Widgets.CubeAnalysis",
"Options": {
"XAxis": "..."
}
}]
}
Object type
Type |
---|
SelfInvoice |
PurchaseRequest |
AccountPayableDownPayment |
AccountReceivableDownPayment |
AccountReceivableCorrectionInvoiceReversal |
AccountReceivableCorrectionInvoice |
AccountPayableCorrectionInvoiceReversal |
AccountPayableCorrectionInvoice |
SalesQuotation |
GoodsReceipt |
GoodsIssue |
GoodsReturn |
GoodsReceiptPurchaseOrder |
SalesOrder |
Delivery |
AccountPayableInvoice |
AccountReceivableInvoice |
Returns |
AccountReceivableReturnRequest |
InventoryTransfer |
PurchaseOrder |
Set ObjectType in options to relevant types.
Mapping
Implement CubeBase.IAxesMapping.
public class ShippingDateMapping : AxesMappingPolicy
{
public IDictionary<string, string> Mapping =>
new()
{
{"year", "EXTRACT(YEAR FROM ShipDate)" },
{"quarter","TO_CHAR(ShipDate, 'Q')"},
{"month", "'M' + TO_CHAR(ShipDate, 'MM')" },
{"branch", "Branch"},
};
}
To synchronize individual document type, use ScheduleDocumentsSynchronize
.
app.UseBizDoc().
UseSAP().
ScheduleDocumentsSynchronize<ShippingDateMapping>(ObjectType.Delivery, Cron.Daily());
Set DocumentMappingPolicy, ItemMappingPolicy and GlMappingPolicy in options.
Configure
From Architect utility, create new cube from either Documents or Items.
Widgets
Departments Performace.
Peers.
My Teams.
My Teams Pending.
Team Pending.
Teams Performance.
Workflow
DirectManager node
Assign document owner employee manager, if exists.
Position node
Assign user(s) to w/f by employee position.
Components
Types added to bizdoc.SAP.json.
Name | Usage |
---|---|
CostCenters | |
Projects | |
Departments | |
AccountSegmentationCategories | Set SegmentName in configuration file options |
AccountCategories | |
GeneralLedgerAccounts | |
Branchs | |
BusinessPlaces | |
ExpenseTypes | |
Employees | |
Salesperson | |
Manufacturers | |
Locations | Item location |
Teams | Employee teams |
Positions | User / employee position |
Configure AccountSegmentationCategories
in bizdoc.json:
{
"Types": [
{
"Name": "departments",
"Type": "BizDoc.SAP.Configuration.AccountSegmentationCategories, BizDoc.SAP",
"Options": {
"SegmentName": "region"
}
}
]
}
Database
Access database by injecting the SAPStorage
service.
using BizDoc.SAP.Storage;
public class MyService {
private readonly SAPStorage _storage;
public MyService (SAPStorage storage) => _storage = storage;
private void List() {
foreach (var order in _storage.PurchaseOrders) {
...
}
}
}
API
Name | Method | Usage |
---|---|---|
/api/sap/businesspartners/vendors | GET take, value | |
/api/sap/businesspartners/customers | GET take, value | |
/api/sap/accountsegmentation/{segment} | GET take, value | AccountSegmentationCategory |
/api/sap/businesspartners/{code} | GET | |
/api/sap/glaccounts | GET take, parent, value | GeneralLedgerAccount |
/api/sap/items | GET take, value | |
/api/sap/items/{number} | GET | |
/api/sap/purchaseorders/{id} | GET |
Security notice: Restrict api.
Angular
npm @bizdoc/sap package.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.0 | 87 | 12/15/2024 |
8.7.0 | 95 | 10/8/2024 |
8.6.0 | 84 | 7/29/2024 |
8.5.0 | 136 | 5/7/2024 |
8.4.2 | 139 | 3/16/2024 |
8.4.1 | 136 | 3/13/2024 |
8.3.9 | 139 | 3/12/2024 |
8.3.8 | 132 | 3/11/2024 |
8.3.7 | 121 | 3/11/2024 |
8.3.6 | 109 | 3/10/2024 |
8.3.5 | 132 | 3/10/2024 |
8.2.5 | 131 | 3/7/2024 |
8.2.4 | 137 | 3/5/2024 |
8.2.2 | 129 | 2/20/2024 |
8.1.2 | 166 | 1/17/2024 |
8.1.1 | 130 | 1/12/2024 |
7.1.1 | 200 | 11/20/2023 |
7.0.1 | 177 | 9/23/2023 |
7.0.0 | 243 | 3/28/2023 |
6.8.8 | 375 | 11/6/2022 |
6.8.7 | 359 | 11/1/2022 |
6.8.6 | 364 | 10/31/2022 |
6.8.5 | 383 | 10/27/2022 |
6.8.4 | 383 | 10/27/2022 |
6.8.3 | 380 | 10/24/2022 |
6.8.2 | 394 | 10/20/2022 |
6.8.1 | 401 | 10/18/2022 |
6.8.0 | 422 | 10/16/2022 |
6.7.12 | 396 | 8/25/2022 |
6.7.11 | 388 | 8/24/2022 |
6.7.9 | 388 | 8/14/2022 |
6.7.8 | 399 | 8/9/2022 |
6.7.7 | 386 | 8/4/2022 |
6.7.5 | 415 | 7/24/2022 |
6.7.3 | 422 | 7/21/2022 |
6.7.2 | 451 | 7/12/2022 |
6.7.1 | 425 | 7/10/2022 |
0.1.16 | 458 | 7/2/2022 |
0.1.14 | 442 | 6/30/2022 |
0.1.13 | 401 | 6/30/2022 |
0.1.10 | 456 | 6/29/2022 |
0.1.8 | 461 | 6/26/2022 |
0.1.7 | 429 | 6/26/2022 |
0.1.5 | 398 | 6/24/2022 |
0.1.4 | 400 | 6/24/2022 |
0.1.3 | 437 | 6/23/2022 |
0.1.1 | 446 | 6/23/2022 |
0.1.0 | 403 | 6/23/2022 |
-