--subroutines:-this is the example where modularization happening within the same program.
--concatenation example
--simplest version of subroutine
--its taking two parameters(p_fname,p_lname)as i/p and changing the third prameter(name)as o/p.
--fname & l_name is using parameters and name is changing parameter.
--
--in this we specify i/p parameters and o/p parameters as using and changing.
--so subroutine contraccted reputative part of job.
--includes are used to make program more readable.
--advantage of subroutine:-refactoring:-breaking codes into smalller subroutine done by includes.
--reusability:-resue the code again and again.
--function module is another kind of modularization across program and across system.it could be also
within system.
-function module is not limited to same system they can call any module of sap .
---this fm is used to capitallize first name and lastname.
---PROGRAM FUNCTION STATUS(PF STATUS)
--in this set pf status set the status on menu bar/application bar or whatever you want.
--suppose i have set download in excel and text
--now how do i know person click on excel download and how can be download.
by using user command sy-ucom we identifiy person click on wheter excel download or text download.
--at user-command shows in pic.
--so far we have only identfy an event.problem is still there how to download the data.
--so we have fm to download data GUI_DOWNLOAD.
--IN this fm we need to specify filename i.e data which need to download which format and data_tab
means where is your data in which internal table.
--in excel version change is
--in application tool bar
---leave to screen 0 means leave to previous screen.
--