Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bapi

Former Member
0 Likes
1,219

how many types bapi v can create?

4 REPLIES 4
Read only

Former Member
0 Likes
837

Hi Ruchi ,,,

Refer this links for information on BAPI,

http://www.saptechnical.com/Tutorials/BAPI/CustomBAPICreation/page1.htm

http://www.sap-img.com/bapi.htm

Reward if helpful,

Thanks & regards.

Sreekar.Kadiri

Read only

Former Member
0 Likes
837

All BAPIs are RFCs , BAPI process a

business object and handles a busienss function completely.

you can only create Bapi in the following way,that is the only tyepe of bapi we can create.

This is in general step ..

<code>

1 BAPI Browser Tcode - BAPI

2 BAPI Object Builder Tcode - SWO1

3 Naming Convention for BAPI's "Naming Conventions:

1) Business Object: BUS0001 where 0001 is an active function group.

2) Function Module: BAPI_<object name>_<methodName>

3) Method Name : Max 30 chars. Should start with capital letter. GetDetail

4) Reference fields : Structures. Should start with BAPI…"

4 Steps for creating a BAPI "Steps for Creating a BAPI:

1) Create a Function Module in SE37 and assign it to an active Function Group.

(Check Remote Enable in attributes section)

2) Fill the Import (Input) Parameters for the RFC

3) Fill the Export (Output) Parameters

(BAPIRETURN IS MANDATORY)

4) Fill the Table parameters, if any

5) Write the “functionality” in the source code

6) Activate and Release the Function Module"

5 Attaching Methods to Business Object "Attaching method to BO:

1) Transaction - SWO1, create a Business Object.

Object Type – Internal technical key of the BO in the BOR.

Super Type – If we are using some existing parent node features

Object Name – Descriptive Name (This is displayed in list of Objects)

Name – Descriptive name to select Object Type.

Description – Text max 40 char

Program – ABAP prg generated, associated with the object type.

2) Go to Utilities ->API Methods -> Add method

3) Add key fields and attributes, if any

4) Generate the Object

5) Select the Added Method, Edit ->Change Release Status -> Object Component -> To be Implemented

6) Select Object Type, Edit ->Change Release Status -> Object Type -> To be Implemented

7) Select the Added Method, Edit ->Change Release Status -> Object Component -> To be Released

😎 Select Object Type, Edit ->Change Release Status -> Object Type -> To be Released"

6 How to check BAPI Functions?

Either in TFDIR table by specifying BAPI_* or from SE37 by specifying BAPI_*

</code>

Reward if u find helpful.

Read only

ak_upadhyay
Contributor
0 Likes
837

Hi,

BAPIs

Definition

A Business Application Programming Interface (BAPI) is a precisely defined interface providing access to processes and data in business application systems such as R/3.

BAPIs of SAP Business Object Types

BAPIs are defined as API methods of SAP business object types. These business object types and their BAPIs are described and stored in the Business Object Repository (BOR). A BAPI is implemented as a function module, that is stored and described in the Function Builder.

BAPIs of SAP Interface Types

As of Release 4.5A BAPIs can also describe interfaces, implemented outside the R/3 System that can be called in external systems by R/3 Systems. These BAPIs are known as BAPIs used for outbound processing. The target system is determined for the BAPI call in the distribution model of Application Link Enabling (ALE).

BAPIs used for outbound processing are defined in the Business Object Repository (BOR) as API methods of SAP Interface Types. Functions implemented outside the R/3 System can be standardized and made available as BAPIs. For further information see BAPIs Used For Outbound Processing.

Integration

BAPIs can be called within the R/3 System from external application systems and other programs. BAPIs are the communication standard for business applications. BAPI interface technology forms the basis for the following developments:

Connecting:

New R/3 components, for example, Advanced Planner and Optimizer (APO) and Business Information Warehouse (BW).

Non-SAP software

Legacy systems

Isolating components within the R/3 System in the context of Business Framework

Distributed R/3 scenarios with asynchronous connections using Application Link Enabling (ALE)

Connecting R/3 Systems to the Internet using Internet Application Components (IACs)

PC programs as frontends to the R/3 System, for example, Visual Basic (Microsoft) or Visual Age for Java (IBM).

Workflow applications that extend beyond system boundaries

Customers' and partners' own developments

There are two types of BAPI's: Instance Dependent & Instance Independent.

Instance-dependent BAPIs

Instance-dependent BAPIs use specific instances of an object type which the client application must specify in the key fields of the business object. An example of an instance-dependent BAPI is CompanyCode.GetDetail() and when used the client application must specify the company code ID, for example, GetSAPObject("CompanyCode","0001").

Instance-independent BAPIs

Instance-independent BAPIs do not use specific instances of an object type. They usually return a list of object type instances in tables to the calling program. Instance-independent BAPIs are also called class methods. The BAPI CompanyCode.GetList(), which returns a list of company codes, is an example of an instance-independent BAPI.

Or check these links....

http://www.sapbapi.com/

http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm

http://searchsap.techtarget.com/news/article/0,289142,sid21_gci948835,00.html

http://articles.techrepublic.com.com/5100-6329-1051160.html

http://sap.ittoolbox.com/topics/t.asp?t=303&p=323&h1=303&h2=322&h3=323

Reward points if useful....

Regards

AK

Read only

Former Member
0 Likes
837

Hi,

BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.

The following standardized BAPIs are provided:

Reading instances of SAP business objects

GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.

The BAPI GetList() is a class method.

GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type

The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.

Create( ) and CreateFromData! ( )

The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.

Change( )

The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.

Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.

The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.

Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.

Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.

BAPI-step by step

http://www.sapgenie.com/abap/bapi/example.htm

just refer to the link below

http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g

list of all bapis

http://www.planetsap.com/LIST_ALL_BAPIs.htm

http://www.abapcode.sapbrainsonline.com/2008/03/sap-bapi-complete-list.html

for BAPI's

http://www.sappoint.com/abap/bapiintro.pdf

http://www.sappoint.com/abap/bapiprg.pdf

http://www.sappoint.com/abap/bapiactx.pdf

http://www.sappoint.com/abap/bapilst.pdf

http://www.sappoint.com/abap/bapiexer.pdf

http://service.sap.com/ale

http://service.sap.com/bapi

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf

http://www.planetsap.com/Bapi_main_page.htm

http://www.topxml.com/sap/sap_idoc_xml.asp

http://www.sapdevelopment.co.uk/

http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf

Also refer to the following links..

www.sap-img.com/bapi.htm

www.sap-img.com/abap/bapi-conventions.htm

www.planetsap.com/Bapi_main_page.htm

www.sapgenie.com/abap/bapi/index.htm

Checkout !!

http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html

http://techrepublic.com.com/5100-6329-1051160.html#

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.