Anda di halaman 1dari 6

Deadline Monitoring for Recurring Inspections

Business Objective
Standard testing is performed on a weekly (Calendar based) basis at each manufacturing plant.
This includes density, solids, gloss, and microbial testing of one or more washwater types. Most
of these tests are existing QM's, however new ones would be created for microbial testing. If
this data were entered into SAP, it would be universally available for review and analysis.

These materials have existing raw material numbers, however the inspection would not be
initiated by, or be associated with a goods movement transaction. It is simply an inspection or
an intermediate material that QC would enter weekly.

Purpose
To have the system automatically create inspection lots at predefined intervals for selected
materials. To plan such inspections by having the system monitor the date for a recurring
inspection. Recurring inspections will be triggered by a program that runs automatically on
nightly bases. When recurring inspections are triggered inspection lots are created.

Prerequisites
The system creates inspection lots automatically for recurring inspections of Materials if the
following conditions have been met:

 Material is defined in Custom Table with Next Inspection Date.


 An inspection type is active for inspection lot origin 09 in the inspection settings of the
material master.
 An inspection interval is specified in the Quality Management view of the material
master.

Functional Design

Step 1 : Creation of Z table for material with 09 inspection type w.r.to plant.

Input screen should have the following as input screen

Inspection type:
Plant

Out put Table:

The table should be as follows

Materia Material Plant(QMAT Plant Inspection Last Next


l descriptio -WERKS) Description(T001W frequency(MARC inspection inspection
Number n –(MAKT- (3) -NAME1) -PRFRQ) date (6) date=(Last
QMAT- MAKTX) (4) (5) inspection
MATNR (2) date+
(1) Inspection
frequency)
(7)

Logic for building the table:

Column 1: (Material Number ) & Column 3 (Plant)

In QMAT table pass ART as 09

“ From the out put pick up the following “


 QMAT-MATNR- for material numbers
 Pass MATNR to MARA and check for MSTAE &LVORM
If MSTAE&LVORM fields are blank take that material into the Z table column 1 .
Else skip that material to Z table.
 QMAT-WERKS- Plant(3)

Column 2 (Material description)

Pass MATNR to MAKT for material description

 MAKT- MAKTX- Material description.(2)

Column 4 (Plant description )

Pass MATNR to T001W for material description

 T001W-NAME1- Plant description(4)

Column 5 (Inspection frequency )

Pass MATNR & WERKS to MARC for inspection frequency


 MARC- PRFRQ Inspection frequency.(5)

Column 6 (Last inspection date ) & Column 7

Logic needed for column 6 and 7

6. Last inspection date : Initially this will be given by the business as there is no data in the system.

Materia Material Plant(QMAT Plant Inspection Last Next


l descriptio -WERKS) Description(T001W frequency in inspection inspection
Number n –(MAKT- (3) -NAME1) days(MARC- date (6) date=(Last
QMAT- MAKTX) (4) PRFRQ) inspection
MATNR (2) (5) date+
(1) Inspection
frequency)
(7)
M1 XXXXXX 1001 7 02.10.2007 09.10.2007

7. If the last inspection date is empty , next inspection date will be empty.
8. So idea is we build table with the all 7 columns , but system fetches data till column 5 from the
tables. And column 6 and 7 will be empty.
9. Business provides us last inspection dates against each material ,
10. Once the last inspection date entered system automatically gives the next inspection date.
***Next inspection date : this need to be updated based on the last inspection +
inspection frequency (MARC-PRFRQ).

11. With this the Z table gets ready


Periodic update of Z table:
Once the table got created with some materials it should not get disturbed when we run
periodic updates. Only the new added materials with 09 inspection should get added up.

There will be two scenarios

1. A new material introduced and it is having 09 inspection type assigned to it.


2. An old material (Already existing material) that is extended with inspection type 09.

Logic for building the table:

Column 1: (Material Number ) & Column 3 (Plant)

In QMAT table pass ART as 09

“ From the out put pick up the following “


 QMAT-MATNR- for material numbers(1)
Compare list of QMAT-MATNR with the Z Table - MATNR already existing ,if any new
materials picked into QMAT-MATNR , add those to Z Table- MATNR.
 QMAT-WERKS- Plant(3) for the new added materials.

Column 2 (Material description)

Pass MATNR( the new add materials) to MAKT for material description

 MAKT- MAKTX- Material description.(2)

Column 4 (Plant description )

Pass MATNR( the new add materials) to T001W for material description

 T001W-NAME1- Plant description(4)


Column 5 (Inspection frequency )

Pass MATNR( the new add materials) to MARC for inspection frequency

 MARC- PRFRQ Inspection frequency.(5)

For column 6th :for New materials

Pass MATNR in MARA table

Pick MARA- LAEDA

if LAEDA is 00/00/0000 then pick ERSAD

Creation of inspection lot


Inspection lot need to be created with inspection type 09 based on the periodicity of the
inspection.

 Every day a back ground program should check the Z table for material and its inspection date.
 Any material’s next inspection date is falling on the day , then system should create an
inspection lot with inspection type 09 .
Ex: Say back ground program run on 10th October and there is a material with inspection date in
column 7th as 10th October then program should pick that materials for creating inspection lot.
Before creating inspection lot system should check for any unrestricted stock availability for
checking.

Pass : MATNR, WERKS into MARD table.

Individual line for each storage location will be displayed with LABST(unrestricted stock for each
storage location)

We need to take the inspection lot size total of all line items. (Summation of all lines of LABST)

** No need to take the batch number . Though materials are batch managed no need of giving
batch in the inspection lot.**

***If the MARD- LABST is zero no need to create inspection lot***

Before going to inspection lot creation better we first check MARD –LABST if it is >0 then it should go
for creation of inspection lot else it should stop just by updating column 6th and 7th for next inspections.
Even inspection lot was not created the column 6th and 7th should get changed with the next inspection
dates.

Creation of inspection lot:

Use BAPI for this


 Input parameters for inspection lot generally will be :

Material number(MATNR), Plant (WERKS), inspection type(ART)

Inspection lot quantity should be MARD- LABST (Total of all LGORT)

Pass MATNR, WERKS into MARD table . We can see individual line for each storage location.

We need to take the inspection lot size total of all line items. (Total of LABST)

Once the inspection lot created program should change the last inspection date with next
inspection date ( that means the current date ) and the Next inspection date should get updated with
next inspection date .( current date + frequency).

Note1: The Z table should be editable . As some time last inspection date can be a manual input or
people may want to enter materials manually.

Note2 : While updating the table system should not over write the existing list, only the new material
should get added.

Report log:

log: We need to work on out put log & error log, what type of errors can occur?

1. Any of the column in the Z table is empty.


2. If system fail to create inspection lot .
3. By any reason if the background job fails completely there should be alert.

Anda mungkin juga menyukai