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
926

can u plss let me know what are meant by interfaces in ABAP.also it would be very helpful if u can provide me some links to learn them!!

thanks in advance

6 REPLIES 6
Read only

Former Member
0 Likes
890

Hi jamnun,

Interfaces are the program which will scheduled as daily, weeekly , yearly . These are used for data transfer from legacy to SAP. These are can be INBOUND and OUTBOUND. Inbound interfaces is used to load DATA from legacy to SAP and OUTBOUND interfaces is used to load data from SAP to legacy.

Thanks,

Adtiya.

Read only

Former Member
0 Likes
890

<a href="http://help.sap.com/saphelp_46c/helpdata/en/22/042427488911d189490000e829fbbd/content.htm">http://help.sap.com/saphelp_46c/helpdata/en/22/042427488911d189490000e829fbbd/content.htm</a>

<a href="http://www.erpgenie.com/abap/OO/syntax.htm">http://www.erpgenie.com/abap/OO/syntax.htm</a>

[url=http://help.sap.com/saphelp_nw04/helpdata/en/55/c5633c3a892251e10000000a114084/content.htm]http://help.sap.com/saphelp_nw04/helpdata/en/55/c5633c3a892251e10000000a114084/content.htm[/url]

Read only

Former Member
0 Likes
890

Hi

see this

Conversions - This type of transfer refers to a one-time transfer from a legacy system to the SAP system. In this case, the “legacy” system is the old system that is being replaced by the SAP system.

For example, the old system being replaced has data for 2,000 vendors that must be transferred to the SAP system.

Interfaces - This type of transfer refers to an ongoing transfer from a complimentary system to the SAP system. In this case, the “complimentary” system is a system that will run along side the SAP system.

For example, customer orders may be taken in another system. For the SAP system to reflect accurate information, these orders must be transferred to the SAP system every night.

BDC can be both interfaces or conversions depending upon the functionality above.

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.

in OOPS ABAP we use interfaces , see this for them

TABLES ZVIJIRANK.

DATA IT LIKE TABLE OF ZVIJIRANK WITH HEADER LINE.

INTERFACE I1.

METHODS : GETDATA.

ENDINTERFACE.

CLASS CL1 DEFINITION.

PUBLIC SECTION.

INTERFACES I1.

ENDCLASS.

CLASS CL2 DEFINITION.

PUBLIC SECTION.

INTERFACES I1.

ENDCLASS.

CLASS CL1 IMPLEMENTATION.

METHOD I1~GETDATA.

SELECT * FROM ZVIJIRANK INTO TABLE IT.

ENDMETHOD.

ENDCLASS.

CLASS CL2 IMPLEMENTATION.

METHOD I1~GETDATA.

SELECT * FROM ZVIJIRANK INTO TABLE IT WHERE REG_NO = '101'.

ENDMETHOD.

ENDCLASS.

DATA: OBJ1 TYPE REF TO CL1,

OBJ2 TYPE REF TO CL2.

START-OF-SELECTION.

CREATE OBJECT: OBJ1 , OBJ2.

CALL METHOD OBJ1->I1~GETDATA.

LOOP AT IT.

WRITE : / IT-REG_NO , IT-NAME , IT-BRANCH.

ENDLOOP.

CALL METHOD OBJ2->I1~GETDATA.

LOOP AT IT.

WRITE : / IT-REG_NO , IT-NAME , IT-BRANCH.

ENDLOOP.

If you have doubt means go through the following links.

http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

Regards

Anji

Read only

Former Member
0 Likes
890

Hi

SAP Exchange Infrastructure messages are based on XML. How can an application send a message of this type to a receiver? The idea is similar to a Remote Function Call (RFC): Communication with another system is encapsulated in an interface; the parameters of this interface are converted into a message. However, the significant difference between SAP XI and RFCs is that former always requires two interfaces for communication: One on the sender side and one on the receiver side. This has the advantage that the sender and receiver interfaces do not need to match exactly (loose coupling).

The following graphic illustrates schematically how a message is sent to a receiver using a sender interface:

heck the below sap help link.

http://help.sap.com/saphelp_46c/helpdata/en/22/042427488911d189490000e829fbbd/content.htm

http://help.sap.com/saphelp_nw70/helpdata/en/c9/5472fc787f11d194c90000e8353423/content.htm

TYPES are

Inbound & Outbound Interfaces.

Outbound Interfaces - Retrieving data from SAP and sending to other systems.

Inbound Interfaces - Sending data from other system to SAP.

Example

Outbound interface is used to send IDocs to the ALE server.

Inbound interface is used to Analyse the received Idoc.

Check this link.

http://help.sap.com/saphelp_nw04/helpdata/en/cd/0b733cb7d61952e10000000a11405a/content.htm

Read only

Former Member
0 Likes
890

hi,

Interface is a program which allows two systems/processes to communicate each other.

ex:

Take non-sap system & SAP system.

Requirement is:

data which is present in the non-sap system should be transfered to SAP.

in this case we have to establish a link between these two systems by writing a program called Interface program.

by doing this we can transfer the data from non-sap to SAP.

<b><i>Reward points if useful</i></b>

Chandra