RCC
RCC
adv:
1.based on the status we can really perform other operations
2.memory consuption is very less in syncronous calls.
Asyncronous RFC:
if the calling rpogram is not intrested in called program response then always u
se asyncronous rfc.
adv:
1.This is faster than syn rfc as the calling program wont wait for response from
called program
disadv:
1.memeory consumption is more as the RFC server will be loaded with so many rfc
calls.
2. If the connectivity is lost data is lost
transactional RFC
Thelimitations of asyn rfc can be overcome in trfc.
trfc is also similar to asyn rfc.
we can set the time intervals like number of attempts in 30 minutes .
thus if RFC server is down it will try to reconnect every twice in every 30 minu
tes
qRFC:
This is also similar to tRFC but it queues the Trfc .
To make an rfc as qrfc we need to pass the queue name to function module
TRFC_SET_QUEUE_NAME
smq1 : outbound queues
smq2 : inbound queues
parallel rfc :
this is specific to local system only. we can run multiple rfcs on reserved work
processors. This also has load balancing which is not there with other rfcs.
multiple po's in same system .
q. how you connect any rfc remotely from a program?
sol: by calling the rfc and pasing the DESTINATION which was created in SM59
syntax:
call <rfc
fm> DESTINATION <destination name>.
How to create a custom BAPI?
sol:
1. create an rfc enabled function module using se37 and release it.
2. make sure you have a return parameter of type BAPIRET2 either in the export o
r tables paramter
(Note: This return paramter will be used to hold the exceptions ,error messages)
3.Create a business object using SWO1
4. make the rfc function module as an API method of business object
i.e here the functio module paramters are mapped into method paramters
5. implement the business object componenets first followed by business object t
ype
(i.e Bottom to top approach )
6. Release the business object type first followed by business obejct componenet
s
(i.e TOP TO BOTTOM Approach ).
7. Finally Generate the business object and test it
BO is like a class . i.,e its a template with different componenets like methods
, events, interface, attributes etc etc.
BAPI->