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

Function Module: BAPI or not?

Former Member
0 Likes
725

Hello All

I have a list of called Function Modules from a piece of code and would like to identify as BAPI or not. Some are obvious by their naming convention. However not all bapi modules are named as such. How can I identify if a fuction module is a bapi or just a function module?

Thanks in advance!

6 REPLIES 6
Read only

Former Member
0 Likes
692

Hi Michaell,

Naming convetion for BAPI will start with BAPI where as FM doesnt need naming convention.

With this you can identify BAPI or FM from your code

Read only

Former Member
0 Likes
692

A bapi has to an RFC. Check FM's attributes.

Also, all BAPIs are listed in transaction BAPI.

They have to have a corresponding business object.

Read only

0 Likes
692

Chinmay

By looking at attributes is there a way to tell if it has a corresponding business object? Or is this only through tran code "BAPI" or one of the SWO# codes?

Read only

0 Likes
692

You can go to Tools tab in BAPI transaction to see the corresponding business object. But I am not sure how to see the corresponding business object if you only have a function module name.

Let me check.

Read only

0 Likes
692

Okay, I checked a bit. I am not sure if this is reliable method, but it seems to work for few BAPIs I checked.

go to SE16 with table SWOTDV. - Give ABAPNAME = your FM name and ABAPTYPE = F.

You will get corresponding business object if it exists.

Read only

0 Likes
692

Chinmay

Thank you for the assistance. I think that at least gives me a good direction. Seems to work in the insantaces of the ones that I know are BAPIs. I'll work through my list. I figured there had to be some way.

Many Thanks!