07-26-2008 7:22 AM
Hi,
I have to develop a bapi which fetches data from ztable in R/3 and display it in the form of table.How to proceed for this? Urgent. Please help.
Rgds,
khadeer.
07-26-2008 7:26 AM
Hi,
Goto SE37 and create a function module and in attributes mention function module as REMOTE ENABLED
and create it as you create a normal function module...
Important point is that you have to maintain the structure in SE11 and should give the structure in FM
In source code write the necessary program...
SELECT *
FROM Ztable
into table itab.
itab is a table define in BAPI function module of type structure defined in SE11.
Dont forget that you should save the function group of the function module only in Package..
Check this link....
[Bapi Creation|http://www.erpgenie.com/abap/bapi/example.htm]
or
[Step by Step guidance|http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm]
Hope this would help you.
Regards
Narin Nandivada.
07-26-2008 7:26 AM
Hi,
Goto SE37 and create a function module and in attributes mention function module as REMOTE ENABLED
and create it as you create a normal function module...
Important point is that you have to maintain the structure in SE11 and should give the structure in FM
In source code write the necessary program...
SELECT *
FROM Ztable
into table itab.
itab is a table define in BAPI function module of type structure defined in SE11.
Dont forget that you should save the function group of the function module only in Package..
Check this link....
[Bapi Creation|http://www.erpgenie.com/abap/bapi/example.htm]
or
[Step by Step guidance|http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm]
Hope this would help you.
Regards
Narin Nandivada.
07-26-2008 7:26 AM
1. create the Function Group
2. Create the Function Module
3. Tables parameters
give the tablename and Reference Structure or table,
4. In the Attributes section check the Radiobutton RFC Function
5. In side the Function Source code Select the data from ZTABLE into the table parameter and Activate the Whole Function group.
07-26-2008 9:08 AM
Hi Khadeer.
I would like to suggest,
1. Go To Transaction - BAPI.
2. Go To Project.
3. Navigate to Bapi design.
4. Navigate to Define Bapi Structures.
5. Navigate to Creating BAPI Function modules.
6. Navigate to Implementing BAPI Function module.
7. Major factor - Function Module must be RFC enabled,
as all BAPIs are RFC enabled.
Hope that's usefull.
Good Luck & Regards.
Harsh Dave