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 Identify if a RFC Function Module is a BAPI or not?

Former Member
0 Likes
3,461

I have an existing custom made RFC function module which I want to use from a non-SAP system. How do I find whether it's (the existing RFC enables FM) a BAPI or not? If I come to know that this is a BAPI then it may prevent me from creating another Wrapper BAPI which in turn calls this existing RFC.

I have an existing custom made RFC function module which I want to use from a non-SAP system. How do I find whether it's (the existing RFC enables FM) a BAPI or not? If I come to know that this is a BAPI then it may prevent me from creating another Wrapper BAPI which in turn calls this existing RFC.

6 REPLIES 6
Read only

Former Member
0 Likes
2,013

Hi Swapnil,

you might identify an RFC enabled function module used for BAPI e.g. by calling transaction SE37, using the input help -> Information System, typing in the name of your function module, press button "All Selections" (the one with the plus sign) and select "Only Modules for BAPI". Hope that helps you.

Best regards,

Andreas

Read only

0 Likes
2,013

Hi Andreas,

In SE37 when I use where used list for the RFC Z* FM, there is no item named "Only Modules for BAPI" in the help list.

Hi Keshav,

Can u please elaborate a bit, how can I know from BAPI tcode, whether the RFC is a BAPI or not?

Read only

0 Likes
2,013

If you want to call a SAP function from an external server, then it doesn't matter whether the name starts with 'BAPI' or whatever.

The only thing that matters is that it is an RFC enabled function.

edit.

And since it's your own function that is RFC enabled, you can use the function without writeing a wrapper around it.

But... make sure you're not using any function exceptions to raise errors, but instead use a RETURN table with errors (just like SAP does).

Read only

0 Likes
2,013

Hi Swapnil,

please make sure that you use the Input Help (F4) in SE37 and continue as described already. It should work that way.

Best regards,

Andreas

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,013

If its bapi then it will be registered in Business object repository.

You can check it via transaction BAPI.

Read only

santosh_kumarm
Participant
0 Likes
2,013

Hi Swapnil,

If the function module has 'BAPI' in its name and if it remote enabled then it is BAPI. the parameters of the function module has to be pass by value and not by reference. BAPIRET or BAPIRET2 as changing paramter.

There is no much difference B/W Remote function module and BAPI. only difference the BAPI function module are assigned to Object's Method. through SW01. so that Non-SAP System can access the SAP Business Layer.

Hope the information will he useful.

Regards

Santosh