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

How to create a Bapi

Former Member
0 Likes
536

Can any one please tell me the main points to be noted while creating a BAPI and how it differs from an FM ?

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
506

Hi Sri,

- 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.

- 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.

For more information, please check this link.

http://www.erpgenie.com/sap/abap/bapi/example.htm

Hope this will help.

Regards,

Ferry Lianto

3 REPLIES 3
Read only

ferry_lianto
Active Contributor
0 Likes
507

Hi Sri,

- 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.

- 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.

For more information, please check this link.

http://www.erpgenie.com/sap/abap/bapi/example.htm

Hope this will help.

Regards,

Ferry Lianto

Read only

0 Likes
506

<b>Import/Export parameters can only be BY VALUE for an RFC enabled function module.</b>

Can you please explain this sentence to me?