Connecting to SAP with the BDC in C#.NET

Make Quick Response Code in C#.NET Connecting to SAP with the BDC

APPENDIX A
QR Code Generator In Visual C#
Using Barcode maker for .NET Control to generate, create Denso QR Bar Code image in Visual Studio .NET applications.
www.OnBarcode.com
QR Code 2d Barcode Scanner In C#
Using Barcode scanner for VS .NET Control to read, scan read, scan image in .NET applications.
www.OnBarcode.com
Connecting to SAP with the BDC
Create EAN 13 In Visual C#.NET
Using Barcode maker for .NET framework Control to generate, create UPC - 13 image in .NET applications.
www.OnBarcode.com
USS Code 39 Encoder In Visual C#
Using Barcode creator for .NET framework Control to generate, create ANSI/AIM Code 39 image in .NET applications.
www.OnBarcode.com
If the BDC data were used to build a list and provide the data to other applications via a SharePoint list, you could create a custom list that uses fields from entities defined in the BDC to populate the columns of the list. The end result might look like figure A.6.
Create QR-Code In Visual C#
Using Barcode generator for VS .NET Control to generate, create QR Code JIS X 0510 image in .NET applications.
www.OnBarcode.com
Encoding Code128 In C#.NET
Using Barcode creator for VS .NET Control to generate, create ANSI/AIM Code 128 image in .NET framework applications.
www.OnBarcode.com
Figure A.6
Print Barcode In Visual C#
Using Barcode creator for VS .NET Control to generate, create Barcode image in .NET applications.
www.OnBarcode.com
Make Code 93 In Visual C#
Using Barcode drawer for VS .NET Control to generate, create USD-3 image in .NET framework applications.
www.OnBarcode.com
The Business Data column being used with BDC data from SAP
Printing Denso QR Bar Code In None
Using Barcode generator for Online Control to generate, create QR Code image in Online applications.
www.OnBarcode.com
Read QR Code In Visual Basic .NET
Using Barcode recognizer for .NET Control to read, scan read, scan image in VS .NET applications.
www.OnBarcode.com
Whereas the data in a list has some size limitations in the current version of SharePoint, it does serve as a good way to make data visible and consumable by more out-of-the-box web parts. It also provides a sort of data cache in front of the backend system. Thus in many instances, such an implementation could be not only a viable but also a good solution. The point is that, once the data has been exposed and is available within SharePoint, a lot more can be done with it across any number of applications that live outside of SAP.
Creating DataMatrix In Objective-C
Using Barcode maker for iPhone Control to generate, create Data Matrix ECC200 image in iPhone applications.
www.OnBarcode.com
Make ECC200 In None
Using Barcode printer for Font Control to generate, create Data Matrix ECC200 image in Font applications.
www.OnBarcode.com
APPENDIX A Connecting to SAP with the BDC
Barcode Decoder In VS .NET
Using Barcode Control SDK for ASP.NET Control to generate, create, read, scan barcode image in ASP.NET applications.
www.OnBarcode.com
Drawing Barcode In None
Using Barcode printer for Office Word Control to generate, create Barcode image in Office Word applications.
www.OnBarcode.com
To make this possible, a number of things must be set up. In order for SharePoint to be able to access the data, it must first know about the data. Therefore, an application must be defined within the BDC, and that application s entities must be visible. In figure A.7, you see the applications that have been defined for our BDC instance.
EAN13 Creation In None
Using Barcode printer for Microsoft Excel Control to generate, create EAN13 image in Excel applications.
www.OnBarcode.com
Print QR Code JIS X 0510 In None
Using Barcode encoder for Software Control to generate, create Quick Response Code image in Software applications.
www.OnBarcode.com
Figure A.7
Linear Barcode Creation In Java
Using Barcode maker for Java Control to generate, create Linear image in Java applications.
www.OnBarcode.com
Make UPC - 13 In Objective-C
Using Barcode generation for iPad Control to generate, create EAN13 image in iPad applications.
www.OnBarcode.com
The BDC application configured for connection to SAP web services
Data Matrix Encoder In .NET Framework
Using Barcode drawer for Reporting Service Control to generate, create Data Matrix 2d barcode image in Reporting Service applications.
www.OnBarcode.com
EAN13 Generation In .NET
Using Barcode encoder for VS .NET Control to generate, create GTIN - 13 image in .NET framework applications.
www.OnBarcode.com
APPENDIX A
Connecting to SAP with the BDC
If the CustomerServiceWCF item were chosen and subsequently the Customers entity were selected, you d see the configured information for the Customers entity. Figure A.8 includes items such as the fields that make up the entity, the relationships that it might have with another entity, the actions and URLs that have been defined for it, and finally the available filters that have been defined for it. Now that we ve seen what can be achieved, let s see what s involved in connecting to SAP via the Business Data Catalog.
Figure A.8
The fields and actions for the Customers (SAP) table
APPENDIX A Connecting to SAP with the BDC
How to connect the BDC to SAP
The connection information to connect to SAP is all created in the ADF for the application that describes the data source and its entities, and in this case, the web service endpoints by which data is retrieved. Listing A.1 is a snippet from the SupplierServiceWCF ADF, in which you can see the entity definition and the link to the service for it.
Listing A.1 Code for the LobSystem and URL from which to fetch the WSDL
- <LobSystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.microsoft.com/office/2006/03/ BusinessDataCatalog BDCMetadata.xsd" Type="WebService" Name="SuppliersServiceWCF" Version="1.0.0.0" xmlns="http://schemas.microsoft.com/office/2006/03/ ADF to connect to BusinessDataCatalog"> SAP via web service - <Properties> <Property Name="WsdlFetchUrl" Type="System.String">http:// sql2008.litware.com/sapservice/Supplier/ SupplierService.svc</Property> <Property Name="WebServiceProxyNamespace" Type="System.String"> BDC</Property> </Properties> - <LobSystemInstances> - <LobSystemInstance Name="SuppliersServiceWCF"> - <Properties> <Property Name="LobSystemName" Type="System.String">SuppliersServiceWCF </Property> <Property Name="WebServiceAuthenticationMode" Type="Microsoft.Office.Server.ApplicationRegistry.SystemSpecific. WebService.HttpAuthenticationMode">PassThrough</Property> </Properties> </LobSystemInstance> </LobSystemInstances>
The code is the part of the application definition file that defines how to connect to the data source, including the URL for the web service and the authentication settings. Listing A.2 is the entity definition, including the finder and IDEnumerator methods.
Listing A.2 Definition for the entity and its finder, identifier, and enumerator methods
<Entity EstimatedInstanceCount="10000" Name="Suppliers"> - <Properties> <Property Name="DefaultAction" Type="System.String">View </Property> View Profile </Properties> action - <Identifiers>
Profile
APPENDIX A
Connecting to SAP with the BDC
<Identifier TypeName="System.String" Name="SupplierID" /> </Identifiers> - <Methods> - <Method Name="GetSuppliers"> - <Parameters> + <Parameter Direction="Return" Name="Return"> - <TypeDescriptor TypeName="BDC.Supplier[],SuppliersServiceWCF" IsCollection="true" Name="Return"> - <TypeDescriptors> - <TypeDescriptor TypeName="BDC.Supplier,SuppliersServiceWCF" Name="Item"> - <TypeDescriptors> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0 , Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="Address" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="City" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="Country" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="EmailAddress" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="FaxNumber" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" IdentifierName="SupplierID" Name="ID" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="MobileNumber" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="PhoneNumber" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="PostalCode" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="Region" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="Street" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="SupplierName" /> <TypeDescriptor TypeName="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Name="WebAddress" /> </TypeDescriptors> </TypeDescriptor> </TypeDescriptors> </TypeDescriptor> </Parameter> Finder </Parameters> method - <MethodInstances> <MethodInstance Type="Finder" ReturnParameterName="Return" ReturnTypeDescriptorName="Return" ReturnTypeDescriptorLevel="0"
Copyright © OnBarcode.com . All rights reserved.