‎2006 Feb 08 7:14 PM
Hi,
what are steps that are involved in BAPI programing?
And any sample program to demonstrate the same.
In which area the programs have to be developed.
Thanks in advance.
Sriram.
‎2006 Feb 08 7:17 PM
BAPIs are just RFC enabled funtion modules. They are designed to be useable from outside the system, and in some cases not by an ABAP developer. This is the reason for the field names and structures. So that they are easy to understand by a non-ABAPer. You can create custom BAPIs, but you must conform to the naming conventions in order to publish your BAPI to the BAPI browser, transaction BAPI. You can create your function group and function module thru SE80.
Regards,
Rich Heilman
‎2006 Feb 08 7:18 PM
If you are just wanting to call a BAPI, its just like calling a funciton module.
http://help.sap.com/saphelp_46c/helpdata/en/a5/3ec8074ac011d1894e0000e829fbbd/frameset.htm
Regards,
Rich Heilman
‎2006 Feb 08 7:18 PM
Hi Sriram,
You want to create a BAPI function module or you want to BAPI in your program.
Create a BAPI function is same as creating a function module via T/code SE37.
Can you please specic on your requirement
Lanka
‎2006 Feb 08 7:31 PM
Hi Lanka Murhty,
Am new to the BAPI programing i want to write a sample code to know how it is working and etc....
So for that i need how to write a program in what are the steps involved in it.
Thanks,
Sriram
‎2006 Feb 08 7:36 PM
‎2006 Feb 08 7:46 PM
check this link
http://www.sapgenie.com/sapgenie/docs/BAPI%20JCO.pdf
pls reward points for helpful answers
Message was edited by: chandrasekhar jagarlamudi
‎2006 Feb 08 7:50 PM
Hi Sriram,
Chandrasekhar already provided you some good documentation on BAPI.
Lanka
‎2006 Feb 10 4:14 AM
STEPS TO CREATE A BAPI:
1ST STEP: GO TO SE11 AND CREATE A STRUCTURE CONTAINING FIELD SU WANTED WITH NAMING CONVENTION STARTING WITH ZBAOI OR YBAPI.
2ND STEP: GO TO SE37, CREATE A RFC FN MODULE, GIVE THE IPORT AND EXPORT PARAMETERS ACOORDING TO THE LOGIC AND ALSO GIVE A RETURN PARAMETER OF TYPE BAPIRETURN.
RELESE THE FN MODULE.
3RD STEP: GO TO SWO1 AND GIVE THE INTERFACE TYPE AND INSIDE THAT ASSIGN THE FN MODULE TO THE INTERFACE.
4TH STEP: GO TO TRANSACTION "BAPI" AND CHECK OUT UR INTERFACE WHICH IS ASSIGNED RFC WHICH IS NOTHING BUT UR BAPI.
SO BAPI IS AN INTERFACE.
IF U WANT TO USE ALREADY CREATED BAPI IN UR PROGRAM.
THEN U CALL METHOD IN UR PROGRAM.
‎2006 Feb 10 4:05 AM
Hi Sriram
Check Out This link...It has step by step creation of BAPI in it with snapshot...
http://www.allsaplinks.com/bapi_example.html
http://www.allsaplinks.com/bapi_step3.html
Cheers:)
Mithlesh
‎2006 Feb 10 4:22 AM
Hi Sri,
follow these simple steps..
1. STEP 1 - Define a structures for the BAPI
2. STEP 2 - Write Function Module
3. STEP 3 - Create the API Method Using the BAPI WIZARD
4. STEP 4 - Final steps
<b>STEP 1 - Define a structures for the BAPI</b>
In this step a structures for the parameters and tables of the function module used for the BAPI are defined.
You will have to define a structure for every parameter in the BAPI. You cannot use the same structures used in existing applications because BAPI structures are frozen when BAPIs are released and then there are restrictions on changing them
<b>STEP 2 - Write Function Module</b>
Important notes:
Each BAPI must have its own function group.
Under the attributes tab remember to select Processing Type Remote Enabled module, otherwise the function module cannot be invoked via RFC and used as a BAPI
Import/Export parameters can only be BY VALUE for an RFC enabled function module
We are only creating one BAPI in this example, but you can create related BAPIs in the same function pool, so they will be able to share global data.
<b>STEP 3 - Create the API Method Using the BAPI WIZARD</b>
The BAPI wizard is used toTo expose the remote function module as a BAPI. The wizard will generate some additional code, so the function module is a valid method of the BOR. This allows the BAPi to be called as a workflow method in addition to be called by an outside program.
Note: Each function module corresponds to a method in the BOR
Go to the Business Object Builder SWO1.
You can either create the new Object type as a subtype of an existing business object or create a new business object from scratch.
<b>STEP 4 - Final steps</b>
When the Business object has been checked and the documentation created, the following steps must be carried out:
Release the BAPI function module (in the Function Builder).
Release the business object type (in the BOR ObjectType -> Change release status to -> Implemented ).
Release the BAPI as a method in the BOR (Release the methods you has created - Set the cursor on the method then
Edit -> Change release status -> Object type component -> To released )
For potential write BAPIs: Release the IDoc and its segments
hoe these simple steps are helpful at the beginners level
regards
satesh