13. Modularization Techniques Flashcards

1
Q

When you declare a subroutine, you are identifying the_____ When you call a subroutine, you must specify the______

A

Formal parameters, Actual parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When using parameters, they must be passed to the subroutine using one of the following three methods.

A

Pass by value, Pass by value and result and Pass by reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Pass by value-method

A

When the subroutine is called, a copy of the value of the data variable is passed to the formal parameter. The formal parameter has its own storage location (memory).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Pass by value and result-Method

A

In addition to the above, at the end of the subroutine, the value of the formal parameter is passed back to the actual parameter assigned to it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Pass by reference-method

A

The formal parameters do not have a separate storage location. Instead, the address of the actual parameter is passed to the formal parameter. Changes to the value of the formal parameter are immediately reflected back in the actual parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

PERFORM statement

A

to call a subroutine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

FORM/ENDFORM statement

A

to define a subroutine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

USING keyword

A

allows you to specify the data variables to be passed as parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

CHANGING keyword

A

when specifying formal parameters to define a pass by value and result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Local data

A

is any variable or structure that is defined within a subroutine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

use this option if you want the variable to be re-initialized with the default value every time it enters the subroutine.

A

DATA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

use this option if you want the variable to remember what the value was the last time it was in the subroutine. It will not be re-initialized based on the definition.

A

STATICS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Function modules

A

are general purpose ABAP routines that can be called from any ABAP program. The benefit of function modules lies in their reusability, which saves developers from creating redundant code and increases programming efficiency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Function builder

A

These function groups are collections of logically related functions that share common program context, such as global variables, at run time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Parts of a function module

A

Administration, Interface, Documentation, Source code, Global data and main program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Administration-part of a function module

A

Attributes such as the function group and short text

are assigned

17
Q

Interface-part of a function module

A

Parameters such as import/export and exceptions are defined.

18
Q

Documentation-part of a function module

A

Maintain documentation of function module

19
Q

Source code-part of a function module

A

Define actual ABAP code for function module

20
Q

Global data-part of a function module

A

Define data available for all function modules belonging to the assigned function group

21
Q

Main program-part of a function module

A

Program where all of the function modules of a function group are stored as well as the global data

22
Q

Funtion groups

A

Are collections of logically related functions modules. Specification of a function group is required when creating a function module.

23
Q

5 different interface parameters

A
• Import parameters
	• Changing parameters
	• Export parameters
	• Tables parameters
Exceptions parameters
24
Q

Import parameters

A

are those variables that will be imported from the

calling program.

25
Q

Export parameters

A

are those variables that will be exported to the

calling program.

26
Q

Changing parameters

A

are those variables that will be both imported from and exported to the calling program.

27
Q

RAISE

A

use this version if you just want to set SY-SUBRC and let the calling program do the logic to interpret the importance and send a message or take any other action.

28
Q

MESSAGE … RAISING

A

use this version if you want the function module to also capture specific message information that you can later access in your main program.

29
Q

SE37

A

ABAP Function Builder

30
Q

EXPORTING statement

A

to pass data from the calling program to the function module.

31
Q

IMPORTING statement

A

to transfer data from the function module to the program.

32
Q

TEST/EXECUTE statement

A

Test a function module

33
Q

DESTINATION statement

A

tells the SAP System that the called function runs in a system other than the callers. is required for the remote call of a Function Module.