RFC BAPI ALE Overview.pdf_

Embed Size (px)

Citation preview

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    1/32

    Beyond the ObviousBeyond the Obvious

    Advanced ABAP/4 Programming

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    2/32

    Advanced ABAP/4 Programming

    Remote Function Call (RFC)

    Business Application Programming Interfaces (BAPI)

    Application and Linking Enabling (ALE)

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    3/32

    Remote Function Call

    What is RFC ?

    Use of RFC ?

    Types of RFC ?

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    4/32

    Remote Function Call

    Automatic Tasks while calling RFC.

    Rules for RFC ?

    Function is RFC Client or RFC Server .. Difference. ?

    How to Create RFC Function?

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    5/32

    Remote Function Call

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    6/32

    Remote Function Call

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    7/32

    Remote Function Call

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    8/32

    Remote Function Call

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    9/32

    Remote Function Call

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    10/32

    Remote Function Call

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    11/32

    Remote Function Call

    Exercises

    Create a RFC Function Module which will retrieves onlythe 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

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    12/32

    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.

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    13/32

    BAPI

    What is Business Object ?

    What is BOR ?

    What is BAPI ?

    Use of BAPI ?

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    14/32

    BAPI

    How Transaction Model should be for BAPI ?

    Log on

    Call BAPI to read and/or change data

    Log off

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    15/32

    BAPI

    Points to be remembered while creating BAPI

    It should not contain CALL TRANSACTION

    SUBMIT REPORT

    SUBMIT REPORT AND RETURN

    COMMIT WORK

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    16/32

    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

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    17/32

    BAPI

    Assigning a Name to the Function Module

    BAPI__

    specify the function group

    The technical name of a SAP Business object ususally takes theform of BUSnnnn, where n is a number. Use the suffix nnnnas

    the name of function group

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    18/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    19/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    20/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    21/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    22/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    23/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    24/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    25/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    26/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    27/32

    BAPI

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    28/32

    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

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    29/32

    ALE

    ALE .. ?

    Purpose of ALE ..?

    Layers of ALE ?

    Development Models of ALE ?

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    30/32

    ALE

    Message Type .. ?

    Idoc Type ..?

    Processing : Inbound / Outbound ?

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    31/32

    ALE

    Idoc Types (basic types) ?

    Segment Editor ..?

    Idoc Type editor ?

  • 7/30/2019 RFC BAPI ALE Overview.pdf_

    32/32

    Thank You