Sei sulla pagina 1di 16

Physical sample labels

Functional Specification Forms

Table of Contents
1 OVERVIEW.................................................................................................................................3 2 FUNCTIONAL SPECIFICATION.....................................................................................................3 2.1 Selection Screen Transaction ZDE_QPR4...............................................................................................5 2.2 Physical sample output work list ..............................................................................................................6 2.3 Action button menu..................................................................................................................................9 3 FURTHER INFORMATION..........................................................................................................16

1 Overview
Purpose of output program/Query Quality inspection at sites Gerlingen, Rudolstadt, Holzkirchen, Barleben, and Osterweddingen is based on physical samples created in SAP. Sampling is done manually using sample labels. Samples are transferred to the labs and results are recorded against the sample data records in SAP. Additionally retain samples are kept. For container based sampling additional labels are required to mark the containers as sampled (only Gerlingen, Rudolstadt and Holzkirchen). Five local form layouts are required for sample labels. The owner of this document is Local Quality Assurance.

Business owner

2 Functional specification

Business objects Trigger for output

Physical sample Sample print is triggered using SAP standard functions. Output is done either automatically at inspection lot creation or manually via the physical sample record (transactions QPR2, QPR4). In Barleben and Osterweddingen sample labels are always printed manually via transactions ZDE_QPR4, QPR4, QPR2; stability study QST01, QM01, QM02; and environmental monitoring ZC9_EM_COCKPIT. Labels are never printed automatically. Data is selected automatically at creation of the printout (see next chapter). When a physical sample is created system checks sample type in customizing table TQ40. There it is specified if print is triggered automatically and which function module is used for further processing. The function module is called for controlling the subsequent steps. It calls the print program and form as specified in customizing tables T496R and T496F (maintained by transaction CQ85). If sampling is based on the number of containers for each sample different labels have to be printed: one label to be attached to the sample (Sample label) one label to be attached to the container to indicate that the container has been sampled (Container label) The information if container label have to be printed additionally to the sample label is not available in SAP standard. This has to be retrieved from local table ZDE_QLABEL. If the corresponding field is flagged then container labels have to be printed. In case of primary samples there is one container label per sample label, in case of pooled samples the number of container labels has to be retrieved according to the following logic: Call function QPRS_READ_SAMPLES_FOR_LOT with input parameter I_PRUEFLOS. Read PNPOS from output structure E_QPRS_TAB for the pooled sample. Count entries from E_QPRS_TAB for this PNPOS where PRTYP = 1. For every pooled sample SAP creates a number of primary samples according to the sample drawing procedure. As these primary samples are not subjected to quality inspection no labels have to be printed for them. If container labels are required for pooled samples the number of labels corresponds to the number of primary samples used for creating the pooled sample. Each of these container labels carries the number of the pooled sample. Required sample data is selected by the print program and passed to the form for output. Print parameters are selected from customizing table T496P and T496D. However, as printer assignment provided by this standard procedure does not provide enough flexibility an additional check on table ZDE_QLABEL is required and the printer has to be exchanged if specified differently. Begin 7000006008

Data Selection (Input) Processing logic

SLIM DEBA Sample labels Sample Label Print Transaction: ZDE_QPR4


Sample labels are printed from customize transaction (ZDE_QPR4) where the user list physical samples through a selection criteria and print multiple physical sample labels with additional output device settings functionality New transaction is required: ZDE_QPR4. The transaction logic is similar to standard transaction QPR4 (program SAPLQPRS) The transaction should be available in English and German, according to logon

language.

2.1 Selection Screen Transaction ZDE_QPR4


Table QPRS QALS QALS QALS MARA QALS QPRS QALS QALS QALS QALS RC68A RC68A QPRS ZDE_STYPE RQPRS Field PHYNR WERKS MATNR CHARG MTART PRUEFLOS PN_NR HERKUNFT MBLNR AUFNR EBELN ARBPL WERKS PRTYP ZZPSTYPE GBTYP (radio button) Description Physical sample Plant Material Batch Material Type Inspection Lot Drawing number Inspection lot origin Material document Process order Purchasing Doc. Work center Plant (work center) Sample category Sample type Sample container Required physical Sample Select only physical samples with sample containers recorded in table: ZC9_SM_CDUMMY All physical samples Bring all physical samples related to the selected inspection lot Output Device Layout

(radio button)

RSPOPNAME

DISVARIANT

VARIANT

The transaction should be design to only work with one specific inspection lot at the time. Therefore the selection brings all the physical samples related to one single inspection lot. When the criteria enter by the user select more than one inspection lot, then a new window pop-up with all inspection lots matching the criteria. Then the user selects the required inspection lot. Pop-up window contains the following information Table QALS QALS QALS QALS QALS QALS RMQEA Field WERKS PRUEFLOS MATNR KTEXTMAT CHARG HERKUNFT STATUSTEXT Description Plant Inspection Lot Material Material description Batch Inspection lot origin Inspection lot status

If the inspection lot selected has status UD (RMQEA- STATUSTEXT), then error message: The function you selected cannot be carried out, usage decision taken

2.2 Physical sample output work list

After the user executes selection criteria all physical samples related to the inspection lot are display in a work list (ALV). On the top of the screen is the header information, and below the physical sample work list. If physical sample system status = DLFL (Deletion indicator) then do not display the physical sample in the work list. Header Table QALS QALS QALS QALS QALS QALS QPRS QALS QALS ZDE_SM_QLABEL Field WERKS MATNR KTEXTMAT CHARG PRUEFLOS HERKUNFT PN_NR ENSTEHDAT ERSTELLER RSPOPNAME Description Plant Material Material short text Batch Inspection lot Inspection origin Drawing number Created on Created by Printer*

* In order to select the printer use the following logic: 1. Bring from selection screen (RSPOPNAME)
2. If no value found in the selection screen, then search in table

ZDE_SM_QLABEL for the following key combinations: Plant, inspection origin, material type, and procurement; if no value found then search for plant, inspection origin and material type if no value found then search for plant, and inspection origin. 3. if no value found leave field empty Work list viewer Table Monitor Field Description

Icon
Red: Created. Initial color Yellow: Printed. Physical sample system status is LBPR (Label printed) Green: In the lab. Physical sample user status is ZSRL (receive at Lab) or ZDLV (Sample Deliver)

NEW

Label Printed

If physical sample system status is LBPR, then field is equal to Label Printed, otherwise field is empty. V_TJ30 ZDE_STYPE TXT30 ZZPSTYPE User status description (Physical Sample) Sample type If PHYNR is in table QPRS_SEL_P, retrieve VORGLFNR, then search in table ZDE_STYPE for VORGLFNR entry and bring ZZPSTYPE related to VORGLFNR Drawing point: Short text Data type: CHAR Length: 20 Free text entry field. User can record a free text required in the sample label layout. Once the physical samples are printed, transfer the free text to field RQPRSINFEORT (Physical sample, Info Sample-Drw) Dummy sample indicator If sample container QPRS-GBTYP is contain in table ZDE_SM_CDUMMY then field equal to Dummy Sample ZLCOPY Number of Copies: Number of sample label copies to be printed. If no value found then label should be printed only once, no extra-copy required. Physical Sample Number Physical-Sample Type Sample Category (short text) Sample-Drawing Number Manually Created Sample Physical-Sample Container Container short text Size of the Physical Sample Unit of Measure for Physical Sample Size Inspection Lot Material Number Plant Batch Number Short Text for Physical Sample Sample-Drawing Procedure Item Number in Sample-Drawing

NEW field Free text

ZZXDWP

NEW

NEW

QPRS QPRS QPRS QPRS QPRS QPRS TQ42T QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS

PHYNR PRART PRTYP PN_NR XMANU GBTYP KURZTEXT MENGE MEINH PLOS2 MATNR WERKS CHARG KTEXT PNVER PNPOS

Procedure QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS QPRS RC68A RC68A GEBEH LGORT ABORT ABDAU ABDAT ABINF AENNA AENDT AENZT ENTORT INFEORT ENTDATUM ENTZEIT BEARBEITER ARBPL WERKS Lot Container Storage Location Storage Location for a Physical Sample Storage Duration of the Physical Sample in Days Storage Deadline for Physical Sample Storage Information for the Physical Sample Last User who Changed the PhysicalSample Record Date the Physical Sample Was Changed Time at Which Physical-Sample Record Changed Location of Sample Drawing (Functional Location) Description of Sample-Drawing Location Date of Sample Drawing Time of Sample Drawing Processor Responsible for the Sample, Sample Taker Work center Plant (work center)

2.3 Action button menu


Icon Title Select all (F5) Deselect all (F6) Display physical sample (F9) Sort ascending order (Ctrl+F4) Sort descending order (Ctrl+Shift+ F4) Set filter (Ctrl+F5) Change layout (Shift+F8) Select layout (Ctrl+F9) Description Standard Standard Standard (QPR3) Standard Standard

Standard Standard Standard

Save layout (Ctrl+F10) Refresh Print Label (Ctrl+L)

Standard Standard Call sample label print program for all physical samples selected. Window pop-up with output device selection field. User can select a new output device where the labels selected will be printed

Change printer

Print Label

User selects one or multiple samples and press [Print Label]. Output device selection: Bring output device from the header information If no value found, then pop-up printer selection window. A windows pop-out with the output device selection. By default printer field comes empty. User must select a printer.

Number of copies: additional label copy settings recorded in the ALV table.

If ZLCOPY >1 then reprint the label in consecutive order for the same physical sample. E.g. ZLCOPY=3 then print the same label 3 times. Printing parameters: by default print immediately and delete spool after printing. Layout: from this transaction only Layout 2 is required (General Label).

Change Printer

The printer is either defined in table ZDE_SM_QLABEL, or at initial selection screen but the user should be able to change the printer before printing the labels. A windows pop-out with the output device selection. By default printer field comes empty. Once the user selects a new output device, then the printer is shown in the work list header. Sample labels should be printed then with the new printer selected.

Reprint Label
Label is reprinted when initial physical sample system status is equal to LBPR. When a label is re-printed a window pop-up with a status check warning. (Same logic as QPR4)

In order to reprint a label user must have special authorization.

Two different roles are defined for print and reprint.

AUDIT TRAIL
Sample labels audit trail is required to document when a label is reprinted or when extra-copy of the same label is printed. The status is checked in: include ZDE_PHYSICAL_SAMPLE_PRINT_INC to identify if the Sample Label is reprinted. Label extra-copy is required if field: ZLCOPY >1 If yes, a window should pop up requesting the user to record a reprinting reason comment. If more than one label is reprinted then only one reason is recorded. This information will be stored in the table ZDE_PSL_AT_LOG according to the following structure: Plant, Print date, Print Time, Inspection Lot, User, Number copies, Reason of reprint. Include ZDE_PHYSICAL_SAMPLE_PRINT_INC should be active for plant DE21 End 7000006008

Output

Layout 1:
Layout Example

Field mapping of data items (&D..&) &D1& / &D2& &D11& Mat.-Nr.: Bezeichnung: Charge: &D4& &D6& &D7& Lief.-Ch.: &D8& Prflos: &D5& &D3&

A M

Proben-Nr. &D9&
&D10&

Unterschrift: Data item D1 D2 Description dynamic text sample category Mapping

&D12&

'Gebindeetikett' for container label 'Probenetikett' for sample label 'Entnahmeprobe' for QPRS-PRTYP = 1 'Mischprobe' for QPRS-PRTYP = 2 'Rckstellprobe' for QPRS-PRTYP = 3 'Probe zur Lagerbedingung' for QPRSPRTYP = 6 print date

D3

print date

Additional functions

The criteria if a container sample is required depend on site and business case. For that reason a local table has to be created to provide this information. The table carries also the information on where the label is to be printed. Table: ZDE_QLABEL Table title: Sample label print options Field description Material type Inspection lot origin Plant Printer Flag container label for primary samples (QPRS-PRTYP = 1) needed Flag container labels for pooled samples (QPRS-PRTYP = 2) needed Print immediately Delete print Example
Material type ZRAW ZBUL ZBUL Inspection lot origin 01 04 04 Plant DE21 DE21 DE25 Printer P0043 P0044 P0121 X X Cont. Primary X Cont. Pooled X Pr. immed X Del. print X

Data element MTART QHERK WERKS_D RSPOPNAME New (XFELD) New (XFELD) SYPRIMM SYPRREL

Maintenance transaction ZDE_QLABEL for table ZDE_QLABEL has to be created. Transaction title: Sample label print options Begin 7000006008 Additional new tables are required for Barleben and Osterweddingen sample labels. Table: ZDE_SM_QLABEL Table title: Sample label print options DEBA Maintenance transaction ZDE_SM_QLABEL is required Transaction title: Sample label print options DEBA Field description Plant Inspection lot origin Material type Procurement (Key) (Key) Field WERKS_D QHERK MTART BESKZ

Printer

RSPOPNAME

Table: ZDE_SM_CPY_LABEL Table title: Sample label copy DEBA Maintenance transaction ZDE_SM_CPY_LABEL is required Transaction title: Sample label copy DEBA Field description Plant Inspection lot origin Work center Material type Number of copies (Key) (Key) (Key) (Key) NEW Field WERKS_D QHERK ARBPL MTART ZZSLCPY (NUM, 2 digits)

Table: ZDE_SM_PRINT_MIBI Table title: Sample label print Mibi Maintenance transaction ZDE_SM_PRINT_MIBI is required Transaction title: Sample label print Mibi Field description Plant Work center (Key) (Key) Field WERKS_D ARBPL

Table: ZDE_PSL_AT_LOG Table title: Sample label audit trail Maintenance transaction ZDE_PSL_AT_LOG is required Transaction title: Sample label audit trail Field description Physical Sample Number Plant Date Time Insp. Lot number Change by Number of copies Reason End 7000006008 Special printing options see Processing logic Field PHYNR PLANT PRINT_DATE PRINT_TIME PRUEFLOS NAME ZLCOPY ZREASON

Performance aspects Authorizations Dependencies

None None None

3 Further information
Contact persons / Function References Dr. Matthias Kummer / Business Process Owner Rudolstadt Thilo Schulz / Business Process Owner Gerlingen Business guidelines: QA_BG070_LDE SLIM Inspection Lot Processing

Potrebbero piacerti anche