0% found this document useful (0 votes)
18 views6 pages

Subroutines:-This Is The Example Where Modularization Happening Within The Same Program. - Concatenation Example

The document discusses the concept of subroutines and function modules in programming, highlighting their roles in modularization, readability, and code reusability. It explains how subroutines take input parameters and modify output parameters, while function modules can operate across different systems. Additionally, it covers the use of program function status for menu interactions and the GUI_DOWNLOAD function module for data downloading in various formats.

Uploaded by

Gaurav Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views6 pages

Subroutines:-This Is The Example Where Modularization Happening Within The Same Program. - Concatenation Example

The document discusses the concept of subroutines and function modules in programming, highlighting their roles in modularization, readability, and code reusability. It explains how subroutines take input parameters and modify output parameters, while function modules can operate across different systems. Additionally, it covers the use of program function status for menu interactions and the GUI_DOWNLOAD function module for data downloading in various formats.

Uploaded by

Gaurav Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

--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.

--

You might also like