SAP MM - Material Type Free Tutorial

SAP MM - Material Type Free Tutorial

Materials with several common attributes are grouped together and they are assigned to material types. This will differentiate materials and allow organizations to systematically manage different materials according to company needs. For example: Raw Materials, Finished Products are several material types. Types of materials can be made by following the steps below.

Path SPRO :  
 
IMG >= Logistics General >= Material Master >= Basic Settings >= Material Types >= Define Attributes of Material Types
TCode: OMS2

In the IMG screen display select Define Attributes of Material Types run the icon by following the path above.





After that select new entries




Fill in the required information such as material type name and description. Click save.

Finish
SAP MM - 2 Type Master Data

SAP MM - 2 Type Master Data

SAP Master data consists of two types, namely:
  • Material master data
  • Vendor master data

Material Master Data

 The main points about Material Masters are as follows:
  1. This is the company's main source of material-specific data. This data will include information about materials that can be obtained, produced, or sold or sold by companies.
  2. Because there are different departments in the company and each department does some specific material. So they will enter different information about their material. So each user department has its own view of the master material notes. So, the data screen used to create master material can be divided into two categories.
  3. Main Data: This includes basic data (basic units of size, weight), purchase data (over tolerance and under tolerance), accounting data (standard prices, moving prices). 
  4. Additional Data: This will include additional information such as a brief description of the material, currency, etc.
Introduction SAP MM

Introduction SAP MM

SAP Business Process

SAP MM is known as the SAP Material Management system. The role of SAP MM in business processes is as follows:
  • A business process in SAP is referred to as the "SAP MM Module". 
  • SAP Material Management (MM) is part of the Logistics area and helps to manage an organization's procurement activities from procurement.
  • Supports all aspects of Material Management (planning, controlling, etc.). 
  •  This is the backbone of the Logistics area that combines modules such as Sales and distribution, Production planning, Plant Maintenance, Project Systems, Warehouse Management which are very much related to the Material Management module.

SAP MM Features 

The features of SAP MM system are as follows:

    SAP MM is one of the modules from SAP that deals with material management and inventory management.

    The MM process ensures that there is never a shortage of materials or gaps in the organization's supply chain process. SAP MM accelerates procurement and material management activities making running a business with complete time and cost efficiency.

    This relates to managing material (products and or services) organizational resources with the aim of accelerating productivity, reducing costs and improving improvements and at the same time being flexible to accommodate changes in everyday life.

    This relates to the Procurement Process, Master Data (Material & Vendor Master Data), Account Determination & Valuation of Materials, Inventory Management, Invoice Verification, Material Requirement Planning, etc.

Following is the standard SAP MM process flow



Tutorial Loop in SAP ABAP

Tutorial Loop in SAP ABAP

There may be situations when you need to repeat your code / Looping. In SAP ABAP, statements are executed sequentially: The first statement in a function is executed first, followed by the second, and so on. Loop statements allow us to execute a statement or group of statements several times and the following is the general form of a loop statement in most programming languages.

The ABAP programming language provides 3 types of Loop statements such as:

  1. WHILE loop
  2. Do loop
  3. Nested loop

WHILE loop

WHILE loop statements repeatedly execute target statements as long as certain conditions are true.

The general format of the WHILE command is as follows:
WHILE   

. 
    
ENDWHILE.

while_loop_sap_abap
A block statement can be a single statement or a block statement. While Loop executes the statements attached by the WHILE and ENDWHILE commands until the logical expression becomes false.

Example:
?
1
2
3
4
5
6
7
8
9
10
11
REPORT YS_SEP_15.
  
DATA: a type i.
 
a = 0.
  
WHILE a <> 8.
  
   Write: / 'This is the line:', a.
   a = a + 1.
The output is
This is the line: 0
This is the line: 1
This is the line: 2
This is the line: 3
This is the line: 4
This is the line: 5
This is the line: 6
This is the line: 7


Do loop

The unconditional loop repeatedly makes several statements without specifying any conditions. The DO statement applies the unconditional loop by executing a set of statement blocks several times without conditions.
Syntax
'Times' imposes restrictions on the number of loop paths, represented by 'n'. The value 'n' cannot be negative or zero. If zero or negative, the statement in the loop cannot be executed
do_loop_SAP_ABAP

Example:
?
1
2
3
4
5
6
7
Report YH_SEP_15.
   
Do 15 TIMES.
  
Write: / 'Hello'.
   
ENDDO.
The output is:
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello 
Hello

Nested loop

DO and WHILE statements can be tested and combined with other forms of loops. Each nested loop will have its own SY-INDEX which is created and monitored by the system.
DO [n TIMES]. 
. 
   DO [m TIMES]. 
   . 
   ENDDO. 
ENDDO.
Example:
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
REPORT YS_SEP_15.
   
Data: a1 type I, b1 type I.
   
a1 = 0. 
b1 = 0.
   
Do 2 times.
   
a1 = a1 + 1.
   
Write: /'Outer', a1.
   
Do 10 times. 
b1 = b1 + 1.
   
Write: /'Inner', b1.
   
ENDDo.
ENDDo
The output is:
Outer   1 
Inner   1 
Inner   2 
Inner   3 
Inner   4 
Inner   5 
Inner   6 
Inner   7 
Inner   8 
Inner   9 
Inner  10 
Outer   2 
Inner  11 
Inner  12 
Inner  13 
Inner  14 
Inner  15 
Inner  16 
Inner  17 
Inner  18 
Inner  19 
Inner  20

In this example, the outer DO loop is processed twice and the inner DO loop is processed 10 times, each time the outer DO loop is processed. So in this case, the inner loop is processed 20 times.