2007 Aug 28 9:45 AM
Hi all,
In the names of some methods of a class I find IF....for example in the class CL_SMARTFORM_BCS there are methods like IF_DELETE_BCSDELETE , IF_COPY_BCSCOPY , IF_DOCUMENT_BCS~GET_BODY_PART_COUNT etc...At the same time there are methods like GET_SFPROCESS , CREATE.
Can anyone please tell me why is that the word IF..... is used before some methods? Is there any signifance with it?
Kindsly reply as fast as possible.
Regards,
Vijay
Hi all,
In the names of some methods of a class I find IF....for example in the class CL_SMARTFORM_BCS there are methods like IF_DELETE_BCSDELETE , IF_COPY_BCSCOPY , IF_DOCUMENT_BCS~GET_BODY_PART_COUNT etc...At the same time there are methods like GET_SFPROCESS , CREATE.
Can anyone please tell me why is that the word IF..... is used before some methods? Is there any signifance with it?
Kindsly reply as fast as possible.
Regards,
Vijay
2007 Aug 28 10:15 AM
Hi Vijay,
IF refers to the Interface linked with the Class. As example given by you "IF_DOCUMENT_BCS~GET_BODY_PART_COUNT", IF_DOCUMENT_BCS is interace linked to class CL_SMARTFORM_BCS.
-Alpesh
2007 Aug 28 10:29 AM
Hi ,
Thank you very much for your reply . Could you please provide me some pointers so that I could learn Object Oriented Programming in SAP from scratch.
Kindly reply as fast as possible.
Regards,
Vijay
2007 Aug 28 10:38 AM
hi,
you can find everything about ABAP including ABAP objects in this.
reward if helpful.
dont forget to close the thread.
thanks
2007 Aug 28 11:28 AM
Hi Anju,
Thanks for your reply . I guess you forgot to copy and paste the link . Thanks for your reply once again...
Kindly reply as fast as possible.
Regards,
Vijay
2007 Aug 28 11:35 AM
Please go though the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
Please reward the helpful entries.
Regards,
Raman.
2007 Aug 28 11:50 AM
Hi,
yes I forgot...Sorry
here is the link
http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
2007 Aug 28 10:24 AM
Hi Bala..
These methods are actually defined in an Interface IF_DELETE_BCS.
A class can include an interface to Implement the methods.
In that case these methods are addressed like <interfaceName>~<method Name>.
Here ~ (Tilde) is the interface resolution operator. That indicates this method is actually defined in an interface. But you can call it like any other method in the Class.
<b>reward if Helpful</b>
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |