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

bapi - class method-instance method

Former Member
0 Likes
649

can v tell from a given bapi, whether a particular bapi is a class method or an instance method by observing the code?

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
582

If you are looking for difference between instance & static method then

Instance method is defined using the METHODS statement, but the static (class method) is defined using the CLASS-METHODS statement.

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
583

If you are looking for difference between instance & static method then

Instance method is defined using the METHODS statement, but the static (class method) is defined using the CLASS-METHODS statement.

Read only

0 Likes
582

can u giv me one example for both?

Read only

0 Likes
582

I think bapis which create an instance of an SAP business object type are of type class methods like Create() and CreateFromData().

But bapis which have Change( ) Delete( ) and Undelete( ) Cancel ( ) are treated as changes in an existing instance of an SAP business object type are referred as instance method

Read only

0 Likes
582

i mean the example in the code... with the syntax that u gave for both the types.

Read only

0 Likes
582

> i mean the example in the code... with the syntax that u gave for both the types.

I didn't get your point about syntax?

May be check this link

http://www.sapmaterial.com/bapi_example.html