Thursday, November 17, 2016

How to Create Production version in SAP PP

The production version is the link between a product BOM (Bill of Material) and the process Routing. It determines which alternative BOM is used together with which routing to produce a material or plan a material.
There may be different production versions based on the lot sizes and validity dates.
For example, there may be different versions if you want to produce 1 – 100 liter of paint than 100 – 1000 liter of paint, as such the different composition of BOM may be required in both cases.
  • It comprises of the following data:
  1. The assignment of routings to the production version
  1. The assignment of the alternative BOM to the production version
  • Production versions are used in material requirements planning (MRP), production order creation, and product costing to select the most suitable routing and the corresponding bill of material.
In order to create production version, perform the following steps-
Step 1) From SAP Easy access screen open transaction C223
  1. Enter Plant Code.
  1. Enter parent material for which production version needs to be created.
  1. Enter Material code.
  1. Input the production version code and text.
  1. Input the validity dates of the production version.
  1. Input the lot size range where it would be valid.
  1. Input Alternative BOM and BOM usage as "1" for production BOM.
  1. Enter Routing Group and Counter.
  1. Enter type of task list, i.e., routing.
How to Create Production version in SAP PP
After filling in all the fields, click How to Create Production version in SAP PP or press Enter to go to the next screen.
Step 2) In this screen,
  1. Select the line of the newly created production version.
  2. Press "consistency check" to check whether BOM and routing are valid.
How to Create Production version in SAP PP
Step 3) In this screen, you can see the messages regarding the validity of BOM and routing for the material.
  1. Check whether task list routing exists in the validity period (01.01.2015 – 31.12.9999) and lot sizes (0 – 99999999) of the production version.
  1. Check whether BOM exists in the validity period (01.01.2015 – 31.12.9999) and lot sizes (0 – 9999999999999) of the production version.
How to Create Production version in SAP PP
ClickHow to Create Production version in SAP PP or press F3 from the keyboard to the previous screen.
Step 4) In this screen, you can see the test status is indicated by green color.
  1. You can see the consistency check status in green color.
How to Create Production version in SAP PP
Click How to Create Production version in SAP PP to save the new version, the system will show message " Production version saved" at the lower left corner.
Troubleshooting
  • There might be the case where in BOM and Routing are not valid in production version validity time frame. Ensure that validity period of production falls between validity period for both BOM and Routing.

Sunday, November 13, 2016

COLLECT

Syntax: COLLECT wa INTO itab.

COLLECT is a statement which is similar to APPEND, the differences are :
  • The COLLECT statement checks weather the work area record already exists with same key field value (the key field must be of type C, N, D, T).
  • If yes, it will add the numerical fields to the sum total of existing records in ITAB.
  • If no, it will append or add a new record.
Using COLLECT statement in SAP ABAP

Example program on collect

REPORT demo_int_tables_COLLECT .
DATA: BEGIN OF line,
 col1(3) TYPE c,
 col2(2) TYPE n,
 col3 TYPE i,
 END OF line.
DATA itab LIKE SORTED TABLE OF line
 WITH NON-UNIQUE KEY col1 col2.
line-col1 = 'abc'. line-col2 = '12'. line-col3 = 3.
COLLECT line INTO itab.
WRITE / sy-tabix.
line-col1 = 'def'. line-col2 = '34'. line-col3 = 5.
COLLECT line INTO itab.
WRITE / sy-tabix.
line-col1 = 'abc'. line-col2 = '12'. line-col3 = 7.
COLLECT line INTO itab.
WRITE / sy-tabix.
LOOP AT itab INTO line.
 WRITE: / line-col1, line-col2, line-col3.
ENDLOOP.

The list output is:
  1
  2
  1
abc 12 10
def 34  5
The example fills a sorted table. The first two COLLECT statements work like normal insertion statements. In the third COLLECTstatement, the first line of itab is modified. The following diagram shows the three steps:
This graphic is explained in the accompanying text

Monday, November 7, 2016

Alternative Unit of Measure for Material

Before dealing with sap alternative unit of measure, let’s define what Base Unit of Measure for a SAP Material then we will explain the Alternative unit for Material.

SAP Units of Measurement Overview

Unit of measure in which stocks of the material are managed. The system converts all the quantities you enter in other units of measure (alternative units of measure) to the base unit of measure. Then I will explain how Alternative Units work for Material. 
You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.
It is usually refer in SAP with MEINS

SAP Units of Measurement

 Tables
All the Unit are stored in Standard Table T006.
In This Table T006, Details of the Unit and the kind of the unit are defined such as Nb od Decimal, Dimension key, Temperature, Pressure …
Check the table T006A ( Assign Internal to Language-Dependent Unit ) For Unit Description.
T006A-MSEHI is the Unit of Measurement and T006A-MSEHT is for Unit of Measurement Text.

SAP Units of Measurement Conversion Function

IF you check the data element of MEINS ( Unit of Measurement ), it has in standard a conversion routine.
Unit of Measurement Data Element
The conversion routine for MEINS are:
  • CONVERSION_EXIT_CUNIT_INPUT Conversion exit for commercial (3-char) measurement unit INPUT
  • CONVERSION_EXIT_CUNIT_OUTPUT Conversion exit for commercial (3-char) measurement unit OUTPUT
Actually, Unit of Measurement are defined in interne format and external format. This is can be helpfull when looking for SAP Material Unit Conversion.
For exemple, the internal format for Box unit, is BOXand the external unit will be KAR ( this is the commercial value ). This is can be found easly for Sap Material Unit Conversion function module with
CONVERSION_EXIT_CUNIT_INPUT or OUTPUT.

SAP Units of Measurement on Material

The Most important Unit of Measurement for a Material is the Base Unit of Measure. It is the defaut Unit for Sales, Delivery and Stock when dealing with the Material.
The Value of SAP Base Unit for Measure for a Material can be found at MARA-MEINS.

SAP Alternative Unit of Measure

A unit of measure that is defined in the SAP system in addition to the base unit of measure (BUn, base UoM). For example, the base unit of measure might be “pallet” while the alternative unit might be “carton”.

SAP Material : Alternative Units of Measure

In order to maintain or display this list, open the Material General Data ( MM02 for Change or MM03 for Display), Go to Additionnal Data (on the top bar) , then select the second tap Unit of Mesure.

Alternative Units of Mesure for MaterialMaterial Alternative Units of Mesure Overview

Let’s try to decrypt how the Units of Mesure works.
Unit of measure in which quantities can be entered alternatively to the base unit of measure / stockkeeping unit.
To convert a quantity, whose unit of measure is not the same as the base unit of measure, into the base unit of measure, the system requires a quotient:
Quantity (in alternative unit of measure) = quotient * quantity (in base unit of measure)
In Order to define the Quotient = Numerator / Denominator

Alternative Unit of Measure for Stockkeeping Unit (X)

Denominator for conversion to base units of measure

Denominator of the quotient that specifies the ratio of the alternative unit of measure to the base unit of measure.

Numerator for Conversion to Base Units of Measure (Y)

Numerator of the quotient that specifies the ratio of the alternative unit of measure to the base unit of measure.

SAP Material Alternative Units of Measure Table

The table where the alternative Units of measure, Numerator and Denominator is MARM (Units of Measure for Material).
  • MEINH: Alternative Unit of Measure for Stockkeeping Unit
  • UMREZ: Numerator for Conversion to Base Units of Measure
  • UMREN: Denominator for conversion to base units of measure
You can define an International Article Number (EAN/UPC) by alternative unit.
It is useless to look for the base unit in this table. Actually the Base Unit of measure is only on MARA-MEINS.

Convert Material Quantities to Different Unit of Measure

In order to convert SAP Material Quantities from an unit of Measure to an other or an alternative unit, use the standard function module MATERIAL_UNIT_CONVERSION.
a sample use for MATERIAL_UNIT_CONVERSION, is

SAP giới thiệu mã hỗ trợ AI trong ngôn ngữ ABAP riêng của mình

SAP đã ra mắt một loạt tính năng mã hỗ trợ AI trong môi trường phát triển ứng dụng dựa trên đám mây của mình, đồng thời tham gia vào danh sá...