Simple Function Module with Simple Parameters

Here is the use of Function Module with simple parameters


Calling Function Module in program
*&---------------------------------------------------------------------*
*& Report  ZFUNMOD1                                                    *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&                                                                     *
*&---------------------------------------------------------------------*
REPORT  ZFUNMOD1                                .

DATA: V1 TYPE I VALUE 10,
      V2 TYPE I VALUE 20,
      V3 TYPE I.

CALL FUNCTION 'ZFUNMOD1'
 EXPORTING
   P2            = V2
   P1            = V1
 IMPORTING
   P3            = V3.

   WRITE:/ V3.

Popular posts from this blog

ALV with field catalog merge

SAP ABAP real-time Interview Questions with answers

Using GUI Upload in SAP ABAP