‎2007 Nov 28 11:10 AM
Hi experts,
Can you please explain what are interfaces all about in ABAP?
regards,
Rahul..
‎2007 Nov 28 11:16 AM
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
‎2007 Nov 28 11:12 AM
Interfaces-Transfering data from legacy system to SAP using Batch Data Communication and LSMW.
‎2007 Nov 28 11:14 AM
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
‎2007 Nov 28 11:16 AM
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