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

Query in Method Name

Former Member
0 Likes
821

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

7 REPLIES 7
Read only

alpesh_saparia3
Active Contributor
0 Likes
777

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

Read only

0 Likes
777

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

Read only

0 Likes
777

hi,

you can find everything about ABAP including ABAP objects in this.

reward if helpful.

dont forget to close the thread.

thanks

Read only

0 Likes
777

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

Read only

Read only

Read only

varma_narayana
Active Contributor
0 Likes
777

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>