Posts

Showing posts with the label sub routines

constants

Image
  Constants      REPORT  zajay_practice .      CONSTANTS :  c_v  type  i  value  10 .      write  c_v . Output:          10.      Error for changing constant value           REPORT  zajay_practice .      CONSTANTS :  c_v  type  i  value  10 .      write  c_v .     c_v  =  20 .      write  c_v .                    

selection text,text elements

Image
  Selection text REPORT ZAJAY_PRACTICE. PARAMETERS: p_number type i . if p_number mod 2 eq 0.   write 'even number'. else.   write 'odd number'. ENDIF. --> more-->text elements --> selection text -->in selection text 'enter the positive number'                                                                 or          --> Goto --> text elements --> selection text                                                        Output              enter the positive number [ ] Text Symbols.      REPORT...

Sub routines

 Sub routines           perform <name>           form <name>         endform. ------------------------------------------------------------------------------- small example for sub routines.          REPORT  ZAJAY_SUBROUTINES1 .           data :  v_a  type  i  value  10 ,              v_b  type  i  value  20 ,               v_c  type  i .           PERFORM  add .           FORM  add .           v_c  =  v_a + V_b .            write :  'sum is ' ,  v_c .       ...

Include program

Include Program Steps to create include program     *      Goto SE38     *      Give Program name starts with Z/Y like "zajay_include".     *      Click on create and give title and type is "Include Program".     *     Click on save and select package.     Steps to create executable program        *     Goto SE38        *     Give Program name starts with Z/Y like "zajay_execute".       *     Click on create and give title and type is "Executable Program".       *    Click on save and select package.     Include program " ZAJAY_INCLUDE_PROG"               *&---------------------------------------------------------------------*           *& Include ZAJAY...

function module

Image
  Create function module.        *  First create function group in se80. Give name and create and activate the function group.           *  Goto se37          *  Give name starts with z/y.          *   ZAJAY_OPERATIONS.          * Import means input parameters                                             * Export means output parameters.                                                            *  Then source code means performs operations.                      ...