Quick Contact

    SAP Tutorial
    Sap FI

    Subroutines in SAP ABAP

    These are also sub programs, which contains set of re-usable statements for doing some specific task.

    These are mainly used for re-usability within the same program, however, we can re-use these Subroutines in other programs too.

    Subroutines contains importing and exporting parameters.

    Function Modules V/S Subroutines

    The main difference between Function Modules and Subroutines are sub-routines does not contain any exceptions and Subroutines are mainly used for local modularization where as function modules contains exceptions and used for global modularization.

    sub-routines have definition and implementation parts.

    Syntax:DEFINITION PART:

    PERFORM < SUBROUTINE NAME> USING < V1>< V2>   "DOUBLE CLICK ON SUBROUTINE NAME TO CREATE 
                               CHANGING < CV1>< CV2>
                               TABLES < IT1>< IT2> .
    
    **< V1>< V2> (VARIABLES), < CV1>< CV2> (CHANGING VARIABLES) AND < IT1>< IT2> (IMPORTING TABLES) ARE ACTUAL PARAMETERS
    
    Syntax IMPLEMENTATION PART
    FORM < SUBROUTINE NAME> USING < FV1>< FV2>
                           CHANGING < FCV1>< FCV2>
                           TABLES < FIT1>< FIT2>.
    ENDFORM.
    **< FV1>< FV2>, < FCV1>< FCV2> AND < FIT1>< FIT2> ARE FORMAL PARAMETERS
    

     

    Apply now for Advanced SAP Course

    Copyright 1999- Ducat Creative, All rights reserved.

    Anda bisa mendapatkan server slot online resmi dan terpercaya tentu saja di sini. Sebagai salah satu provider yang menyediakan banyak pilihan permainan.