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

Interfaces

Former Member
0 Likes
620

Hi experts,

Can you please explain what are interfaces all about in ABAP?

regards,

Rahul..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
598

in object oriented point of view....

Interfaces

In ABAP interfaces are implemented in addition to, and independently of classes. An interface only has a declaration part,

and do not have visibility sections. Components (Attributes, methods, constants, types) can be defined the same way as in classes.

· Interfaces are listed in the definition part lof the class, and must always be in the PUBLIC SECTION.

· Operations defined in the interface atre impemented as methods of the class. All methods of the interface

must be present in the implementation part of the class.

· Attributes, events, constants and types defined in the interface are automatically available to the class

carrying out the implementation.

· Interface components are addressed in the class by display.

***************************************

Interfaces are needed when we need data from other than SAP envoronment and vise versa.

Suppose aclient may send his business data through Excel sheet which are to be loaded in his SAP Tables.Then we need to use interfaces.

There are two Categogies.

1.From Presentation Layer to your ABAP Program(and then into Database table)

Presentation layer means from your sytem (from C, drives)

2.From application Server to your ABAP Program(and then into Database table)

Application Server means the server for your Sap System.

For the first case you need to use:From Presentation Layer to your ABAP Program and vise versa)

GUI_UPLOAD to upload data,

GUI_DOWNLOAD to download data

For the Second case(From application Server to your ABAP Program and vise versa)

A.OPEN DATA SET FILE NAME ON APPL.SERVER FOR INPUT ENCODING BY DEFAULT. use tranfer command to send data to application server

B. CLOSE DATA SET.

**********************************

Regards

vasu

3 REPLIES 3
Read only

Former Member
0 Likes
598

Interfaces-Transfering data from legacy system to SAP using Batch Data Communication and LSMW.

Read only

Former Member
0 Likes
598

hi

in one sentence , interface linking between servers , sap and non-sap systems.

for that, BAPI, ALE like lot of methods r there,

regards

karthik

for more information refer in search forums

Read only

Former Member
0 Likes
599

in object oriented point of view....

Interfaces

In ABAP interfaces are implemented in addition to, and independently of classes. An interface only has a declaration part,

and do not have visibility sections. Components (Attributes, methods, constants, types) can be defined the same way as in classes.

· Interfaces are listed in the definition part lof the class, and must always be in the PUBLIC SECTION.

· Operations defined in the interface atre impemented as methods of the class. All methods of the interface

must be present in the implementation part of the class.

· Attributes, events, constants and types defined in the interface are automatically available to the class

carrying out the implementation.

· Interface components are addressed in the class by display.

***************************************

Interfaces are needed when we need data from other than SAP envoronment and vise versa.

Suppose aclient may send his business data through Excel sheet which are to be loaded in his SAP Tables.Then we need to use interfaces.

There are two Categogies.

1.From Presentation Layer to your ABAP Program(and then into Database table)

Presentation layer means from your sytem (from C, drives)

2.From application Server to your ABAP Program(and then into Database table)

Application Server means the server for your Sap System.

For the first case you need to use:From Presentation Layer to your ABAP Program and vise versa)

GUI_UPLOAD to upload data,

GUI_DOWNLOAD to download data

For the Second case(From application Server to your ABAP Program and vise versa)

A.OPEN DATA SET FILE NAME ON APPL.SERVER FOR INPUT ENCODING BY DEFAULT. use tranfer command to send data to application server

B. CLOSE DATA SET.

**********************************

Regards

vasu