18.04.2013 Views

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

78 <strong>B2B</strong> <strong>Integration</strong> — A <strong>Practical</strong> <strong>Guide</strong> <strong>to</strong> <strong>Collaborative</strong> E-<strong>commerce</strong><br />

the output may be a user-defined type or a system-defined type. Userdefined<br />

types are used for s<strong>to</strong>ring groups of related information by<br />

containing combinations of multiple individual data members. This<br />

grouping and encapsulation of data helps in passing a single input<br />

parameter instead of a large number of parameters and/or returning a<br />

logical object that contains all the data as desired from the output of a<br />

method call.<br />

Named Constants — In several cases, APIs use fixed numeric or string<br />

codes, also known as constants, <strong>to</strong> represent some kind of constant<br />

information or value. Naming these constants provides a more convenient<br />

way <strong>to</strong> refer <strong>to</strong> their values in code.<br />

Callback Functions — Callback functions are an optional feature of an<br />

API. Callback functions are regular functions defined in the programs<br />

implementing APIs with the exception that they are never made available<br />

through an interface. They are used internally by one or more of the<br />

API functions <strong>to</strong> perform the task.<br />

Classes of APIs<br />

Based on their functionality and uses, APIs can be classified in<strong>to</strong> five<br />

different classes. Although there is considerable similarity in these<br />

classes, they broadly cover all the different approaches in which packaged<br />

applications (i.e., ERP, CRM, SCM), databases, legacy systems or<br />

cus<strong>to</strong>m developed applications can expose their methods in the form of<br />

interfaces.<br />

Method APIs — Method APIs provide an interface for a series of<br />

methods or functions exposed by an application, which the external<br />

applications can invoke. Each method is defined by a name, a set of<br />

input parameters (which must be provided by the calling application in<br />

order <strong>to</strong> use the method), output type and exceptions.<br />

Several leading packaged software vendors provide linkable libraries.<br />

For instance, external applications can access SAP Business Objects<br />

through standardized, platform-independent interfaces — Business<br />

Application Programming Interfaces (BAPIs).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!