concept BDC in category sharePoint

appears as: BDC, The BDC, BDC
SharePoint 2007: Developer’s Guide to Business Data Catalog

This is an excerpt from Manning's book SharePoint 2007: Developer’s Guide to Business Data Catalog.

Figure 1.6. The services that BDC provides and how they relate to one another
Listing 8.11. isProductInStock method
private void isProductInStock(object sender, ConditionalEventArgs e) { // Get the SPList item for the Workflow SPListItem spListItem = workflowProperties.Item; // Parse the Order Quantity from the List Items Quantity Field int orderQuantity = int.Parse(spListItem.GetFormattedValue("Quantity")); // Set the SQL Provider SetProviderToServerContext(); // Impersonate the current windows user WindowsIdentity.GetCurrent().Impersonate(); // Get the Product field from the SPListItem BusinessDataField productField = (BusinessDataField)spListItem.Fields["Product"]; // Get the Current Stock Level as String from the BDC string currentStockLevelAsString = GetEntityColumnValue(productField, ProductID, "StockLevel"); // Parser the current Stock Level as Int int currentStockLevel = int.Parse(currentStockLevelAsString); e.Result = orderQuantity <= currentStockLevel; return; }

In the following paragraphs, we’ll look at the data in SAP, look at it in SharePoint, and review what artifacts have to be in place to support surfacing the data into SharePoint via the BDC. As such, the first stop will be to review getting to the customer data in SAP via the traditional GUI.