Application Development 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: 

bapi

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

former_member188685
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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