This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
bw2:sending_data_to_the_service_layer [2020/12/15 12:35] akoehler created |
bw2:sending_data_to_the_service_layer [2021/08/09 14:28] (current) akoehler Adding how to add an attachment |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| Samples of the JSON structures for key SAP Business One objects can be found in the links below. | Samples of the JSON structures for key SAP Business One objects can be found in the links below. | ||
| - | ==== JSON Samples ==== | + | ===== JSON Samples |
| These samples are provided as a way to help understand the structure of the various SAP Business One objects. | These samples are provided as a way to help understand the structure of the various SAP Business One objects. | ||
| - | To find further information, | + | To find further information, |
| + | |||
| + | < | ||
| + | |||
| + | ==== Sales Order ==== | ||
| - | === Sales Order === | ||
| [[bw2:Sales Order for Service Layer]] | [[bw2:Sales Order for Service Layer]] | ||
| - | === Sales Delivery === | + | ==== Sales Delivery ==== |
| [[bw2:Sales Delivery for Service Layer]] | [[bw2:Sales Delivery for Service Layer]] | ||
| - | === Sales Invoice === | + | ==== Sales Invoice ==== |
| [[bw2:Sales Invoice for Service Layer]] | [[bw2:Sales Invoice for Service Layer]] | ||
| - | === Business Partner === | + | ==== Business Partner ==== |
| [[bw2: | [[bw2: | ||
| - | === Purchase Order === | + | ==== Purchase Order ==== |
| [[bw2: | [[bw2: | ||
| + | |||
| + | ==== Attachments ==== | ||
| + | |||
| + | Sending attachments through Service Layer is generally done in conjunction with another SAP method such as Purchase Orders. Using the Versago Temples provided **// | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ===Setting Update Attachment Tables and Connections=== | ||
| + | |||
| + | **An SAP Service Layer connection is necessary for this configuration to work. ** | ||
| + | |||
| + | Using the below scripts set up the tables in the desired database that Bizweaver can connect to. These tables need to be setup before importing the Bizweaver workflow. | ||
| + | |||
| + | < | ||
| + | CREATE TABLE [dbo].[vgo_SBO_PurchaseRequest_Attachments]( | ||
| + | [RecNum] [int] IDENTITY(1, | ||
| + | [vgoRecNum] [int] NOT NULL, | ||
| + | [FileLocation] [nvarchar](500) NULL, | ||
| + | [FilePath] [nvarchar](50) NULL, | ||
| + | [FileName] [nvarchar](200) NULL, | ||
| + | [FileType] [nvarchar](20) NULL, | ||
| + | [AttachmentCreateStatus] [nvarchar](1) NULL, | ||
| + | [AttachmentCreateDate] [datetime] NULL, | ||
| + | [AttachmentCreateError] [nvarchar](500) NULL, | ||
| + | [AttachmentAddPRStatus] [nvarchar](1) NULL, | ||
| + | [AttachmentAddPRDate] [datetime] NULL, | ||
| + | [AttachmentAddPRError] [nvarchar](500) NULL, | ||
| + | [AtcEntry] [int] NULL, | ||
| + | CONSTRAINT [PK_vgo_SBO_PurchaseRequests_Attachments] PRIMARY KEY CLUSTERED | ||
| + | ( | ||
| + | [RecNum] ASC | ||
| + | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
| + | ) ON [PRIMARY] | ||
| + | </ | ||
| + | < | ||
| + | CREATE TABLE [dbo].[vGo_SBO_PurchaseRequest_Dtl]( | ||
| + | [vgoRecNum] [int] NULL, | ||
| + | [vgoLineNum] [int] NULL, | ||
| + | [ItemCode] [nvarchar](50) NULL, | ||
| + | [ItemName] [nvarchar](100) NULL, | ||
| + | [CatalogNo] [nvarchar](20) NULL, | ||
| + | [Quantity] [decimal](18, | ||
| + | [Info_GrossPrice] [decimal](18, | ||
| + | [Info_DiscPct] [decimal](18, | ||
| + | [Info_NetPrice] [decimal](18, | ||
| + | [Info_LineTotal] [decimal](18, | ||
| + | [LineText] [nvarchar](250) NULL, | ||
| + | [SlpName] [nvarchar](50) NULL, | ||
| + | [WhsName] [nvarchar](50) NULL, | ||
| + | [UoMCode] [nvarchar](20) NULL, | ||
| + | [NeedDate] [date] NULL, | ||
| + | [AcctCode] [nvarchar](15) NULL, | ||
| + | [AccName] [nvarchar](100) NULL, | ||
| + | [FormatCode] [nvarchar](250) NULL, | ||
| + | [ProjectName] [nvarchar](50) NULL, | ||
| + | [zWhsCode] [nvarchar](8) NULL, | ||
| + | [zUoMEntry] [int] NULL, | ||
| + | [zSlpCode] [int] NULL, | ||
| + | [zPriceList] [int] NULL, | ||
| + | [PQT_VendorName] [nvarchar](100) NULL, | ||
| + | [zPQT_VendorCode] [nvarchar](50) NULL, | ||
| + | [zProjectcode] [nvarchar](20) NULL, | ||
| + | [TrnspName] [nvarchar](50) NULL, | ||
| + | [TrnspCode] [int] NULL, | ||
| + | [PriceStatus] [nvarchar](15) NULL, | ||
| + | [POCreation_SAPDocEntry] [int] NULL, | ||
| + | [POCreation_SAPDocNum] [int] NULL, | ||
| + | [POCreation_SAPErrMsg] [nvarchar](200) NULL, | ||
| + | [POCreation_PostingStatus] [int] NULL, | ||
| + | [POCreation_PostingDate] [datetime] NULL, | ||
| + | [ItemLink] [nvarchar](200) NULL | ||
| + | ) ON [PRIMARY] | ||
| + | </ | ||
| + | < | ||
| + | CREATE TABLE [dbo].[vGo_SBO_PurchaseRequest_Hdr]( | ||
| + | [vgoRecNum] [int] NOT NULL, | ||
| + | [vgoDocStatus] [nvarchar](20) NULL, | ||
| + | [vgoApprovalStatus] [nvarchar](10) NULL, | ||
| + | [OrderType] [int] NULL, | ||
| + | [NumAtCard] [nvarchar](50) NULL, | ||
| + | [DocDate] [date] NULL, | ||
| + | [DocDueDate] [date] NULL, | ||
| + | [ValidUntilDate] [date] NULL, | ||
| + | [Comments] [nvarchar](max) NULL, | ||
| + | [DocTotal] [decimal](18, | ||
| + | [ShipToLoc] [nvarchar](100) NULL, | ||
| + | [ShipViaName] [nvarchar](50) NULL, | ||
| + | [ProjectName] [nvarchar](50) NULL, | ||
| + | [BPLName] [nvarchar](100) NULL, | ||
| + | [OwnerName] [nvarchar](100) NULL, | ||
| + | [Currency] [nvarchar](10) NULL, | ||
| + | [ExchangeRate] [decimal](18, | ||
| + | [PriceListName] [nvarchar](50) NULL, | ||
| + | [zShipToCode] [nvarchar](50) NULL, | ||
| + | [zTrnspCode] [int] NULL, | ||
| + | [zProjectCode] [nvarchar](20) NULL, | ||
| + | [zBplId] [nvarchar](50) NULL, | ||
| + | [zOwnerCode] [int] NULL, | ||
| + | [zPriceList] [int] NULL, | ||
| + | [vgoCreateDate] [date] NULL, | ||
| + | [vgoCreatedBy] [nvarchar](50) NULL, | ||
| + | [vgoCreatedById] [int] NULL, | ||
| + | [SAPDocNum] [int] NULL, | ||
| + | [SAPDocEntry] [int] NULL, | ||
| + | [SAP_ErrMsg] [nvarchar](200) NULL, | ||
| + | [vgoPostingStatus] [int] NULL, | ||
| + | [vgoPostingDate] [datetime] NULL, | ||
| + | [PQT_EmpUserName] [nvarchar](50) NULL, | ||
| + | [zPQT_EmpUserCode] [int] NULL, | ||
| + | [PQT_BranchName] [nvarchar](50) NULL, | ||
| + | [zPQT_BranchCode] [int] NULL, | ||
| + | [PQT_DeptName] [nvarchar](50) NULL, | ||
| + | [zPQT_DeptCode] [int] NULL, | ||
| + | [PQT_RequestorEmail] [nvarchar](50) NULL, | ||
| + | [PQT_ProductTotal] [decimal](18, | ||
| + | [PQT_DocTotal] [decimal](18, | ||
| + | [zRequestorType] [nvarchar](1) NULL, | ||
| + | [CurrentLevelApprovalsTotal] [int] NULL, | ||
| + | [CurrentOtherApprovalsTotal] [int] NULL, | ||
| + | [CurrentOtherApprovalAmount1] [int] NULL, | ||
| + | [CurrentOtherApprovalAmount2] [int] NULL, | ||
| + | [ApprovalEmailStatus] [nvarchar](10) NULL, | ||
| + | [ApprovalEmailDate] [datetime] NULL, | ||
| + | | ||
| + | ( | ||
| + | [vgoRecNum] ASC | ||
| + | )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] | ||
| + | ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] | ||
| + | |||
| + | </ | ||