‎2006 Feb 06 4:43 AM
Plese give me the following information.
1) wt is the difference between BAPIRETURN, BAPIRET1 and BAPIRET2?
2) wt is the diff. between an RFC-enabled fm and BAPI ?
‎2006 Feb 06 5:08 AM
1.all the three are return paramter structures.
the difference is BAPIRET1 has 1 field ID more than BAPIRETURN and BAPIRET2 has some more fields like ROW, COLUMN etc. the purpose of all the three are same.
2.BAPI is an interface which uses RFC.
‎2006 Feb 06 4:45 AM
Hi Christopher,
1. wt is the diff. between an RFC-enabled fm and BAPI ?
Not much.
BAPI is having a corresponding business object
which is REGISTERED in Sap Repository.
2. Where as RFC-enabled FM
is just a normal FM
which can be called from outside the SYSTEM
using RFC concept (DESTINATION )
(The confusion is created bcos
BAPI concept (business object conept)
are implemented in SAP
using FM Only (which are RFC Enabled)
and the name of the FM starts with BAPI_*.
)
regards,
amit m.
‎2006 Feb 06 4:52 AM
Hello Amit !
As u said, there is no differnce..if i select rfc-enabled and give a name as ztest(fm name) will it behave as BAPI ??(without giving BAPI_* as a name?)
‎2006 Feb 06 4:58 AM
Hi Christopher,
BAPI is an interface of a business object based on the OO (object oriented) concept. You can find all the Business objects using tran code SWO1.
Whereas remote function call could be any function module (non business object interfaces) defined in a remote system which you can call specifying the remote destination. For this you will have to define the destination name in the RFC definition (SM59).
Example: Function module to read a sales order from SAP system which can be called from CRM system
‎2006 Feb 06 5:03 AM
Hi again,
1. YES, Definitely it will behave like BAPI.
2. The sap concept of
naming function modules (related to business object)
and naming them as BAPI*
is JUST FOR IDENTIFIECATION PURPOSE,
and nothing else.
We can give ANY NAME.
regards,
amit m.
Message was edited by: Amit Mittal
‎2006 Feb 06 5:07 AM
Thanx chandrika.
can u tell wt is diff. between the 3 str.( BAPIRETURN, BAPIRET1 nd BAPIRET2 ) ?
‎2006 Feb 06 5:08 AM
1.all the three are return paramter structures.
the difference is BAPIRET1 has 1 field ID more than BAPIRETURN and BAPIRET2 has some more fields like ROW, COLUMN etc. the purpose of all the three are same.
2.BAPI is an interface which uses RFC.
‎2006 Feb 06 5:15 AM
Hi hymavathi,
can we use any of the three. How can we know, in what case we have to use BAPIRET1 or BAPIRET2?
Can u plz tell me difference other than the fields in these structures ?
‎2006 Feb 06 5:23 AM
u can use BAPIRET2 only as it also gives LOGICAL SYSTEM NAME, etc details.
so as BAPIRET2 satisfies more requirements u can always use BAPIRET2.
BAPIRET2 can be said as improvement of other two
‎2006 Feb 06 5:28 AM
Thank u so much Hymavathi,
can u please much more clear with RFC fm and BAPI ? I m still in confusion with this ?
Amit posted good answer but can u elaborate and explain me in detail !
‎2006 Feb 06 5:32 AM
hi,
The procedure to create BAPI
1.in se11 create a structure of type zbapi or ybapi.
2. se37 , create a fn module of type REMOTE and release
3. in SW01, CREATE AN OBJECT/INTERFACE TYPE AND ASSIGN THE FN MODULE
TO THE METHOD INSIDE (THIS IS THE BAPI)
4. NOW GO TO TCODE BAPI AND CHECK THE BAPI CRETAED.
now the second step can be replaced by METHODS TOO. but
as RFC is efficient, we are assigning RFC to the BAPI.
so BAPI uses RFC. BAPI is an interface which uses RFC .
‎2006 Feb 06 5:40 AM
hi hymavathi,
in step 3,
wt is diff. between object type and interface type?
‎2006 Feb 06 5:49 AM
hi Christopher,
OBJECTTYPE/ INTERFACE TYPE both are technical names give to BOR.
but category object type, is related to work flow.
interface type , we assign RFC.