Вы находитесь на странице: 1из 32

Advanced ABAP/4 Programming

Beyond the Obvious

Advanced ABAP/4 Programming

Remote Function Call (RFC) Business Application Programming Interfaces (BAPI) Application and Linking Enabling (ALE)

Remote Function Call

What is RFC ? Use of RFC ? Types of RFC ?

Remote Function Call

Automatic Tasks while calling RFC. Rules for RFC ? Function is RFC Client or RFC Server .. Difference. ? How to Create RFC Function?

Remote Function Call

Remote Function Call

Remote Function Call

Remote Function Call

Remote Function Call

Remote Function Call

Remote Function Call


Exercises Create a RFC Function Module which will retrieves only the active Vendor Master data like Vendor No, Name & Address. Create a RFC Function Module which retrieve the Customers Sales Areas belongs to him. Create a RFC Function Module which retrieve the Material description, Basic UoM

Remote Function Call


Types of RFC Call
Synchronous
CALL FUNCTION Func Destination Dest CALL FUNCTION func DESTINATION 'NONE' ... CALL FUNCTION func DESTINATION BACK' ...

Asynchronous
CALL FUNCTION func STARTING NEW TASK taskname PERFORMING form ON END OF TASK RECEIVE RESULTS FROM FUNCTION func.

BAPI

What is Business Object ? What is BOR ? What is BAPI ? Use of BAPI ?

BAPI
How Transaction Model should be for BAPI ? Log on Call BAPI to read and/or change data Log off

BAPI
Points to be remembered while creating BAPI It should not contain
CALL TRANSACTION SUBMIT REPORT SUBMIT REPORT AND RETURN COMMIT WORK

BAPI

Steps in Developing BAPI


Defining the scenario Review the BAPI scenario Defining a BAPI and its Interface Creating Individual Programming Objects Programming BAPI Testing & Documentation Release Enhance existing BAPIs, if required

BAPI
Assigning a Name to the Function Module
BAPI_<Business Object Name>_<Method Name> specify the function group The technical name of a SAP Business object ususally takes the form of BUSnnnn, where n is a number. Use the suffix nnnn as the name of function group

BAPI

BAPI

BAPI

BAPI

BAPI

BAPI

BAPI

BAPI

BAPI

BAPI

BAPI
Exercises Create a BAPI for Customer Object
Display the Address details Display the Credit details Display the Sales Areas

Create a BAPI for Material Object


Display the Basic details Display the Plant Stock details

ALE

ALE .. ? Purpose of ALE ..? Layers of ALE ? Development Models of ALE ?

ALE

Message Type .. ? Idoc Type ..? Processing : Inbound / Outbound ?

ALE

Idoc Types (basic types) ? Segment Editor ..? Idoc Type editor ?

Thank You

Вам также может понравиться