‎2005 Jun 15 4:28 PM
Hi all,
Please tell me the difference between BAPI and RFC.
Thanks.
Selvapandian
‎2005 Jun 15 4:32 PM
Hi all,
In the Call transaction method we are getting the return code values i .e sy-subrc values is more than 1000.
How can we know the description of the return codes?
Is there any table available or Function module available?
Please suggest me.
Thanks,
- Selvapandian
‎2005 Jun 15 4:38 PM
First, RFC is a remote-enabled function module. A BAPI is a RFC that performs some business functionality and is in the BOR.
Second, In your call transaction statement, add the extension MESSAGES INTO ITAB. The messages from the transaction will come back into that internal table. Then you can see the error messages.
Regards,
Rich Heilman
‎2005 Jun 15 4:51 PM
Yeah, if no BOR, you can assume a bapi looks like a RFC.
But except the differentiation on interface defination, BAPI do more master check or business check, before run the task. However, many RFC don't do check for the input parameter. I can give you some example for this difference, but maybe not necessary, it is definitely.
Bapi defined following some rule, do much check, and relatively slow.
RFC defined with no rule, do few check, but relatively fast.
‎2005 Jun 15 5:11 PM
Hi Selvapandian,
Just an additional statement...
Well RFC (and FM) will normally provide sy-subrc!
0== OK, >0 == Fail
Most of the BAPIS will provide a return-structure. This
structure is filled, whenever a error occurs.
If everthing runs well, it will remian empty.
BR
Michael