You are on page 1of 34

Phase DR Project Name Page 1/34

Block Name Function Name Created By


Document Name UISS Report Title Updated By

1. General Description Identify keys that used to retrieve


data for generating report
1. OBJECTIVE write down objective of f. Report Generation Keys
the report
Section No Field Description
1
2
2. REPORT INFORMATION 3
4
a. General Information
Please refer to "Report Layout" worksheet for details.

Which section of report that we are


b. Report items
going to identify the key for data
Please refer to "Item Description" worksheet for details.
Sorting order : ascending retrieving.
Section that we or descending
c. Printing Order separate in report

Section No Field Name Order


AAA 1 FFF Ascending
2 EEE Descending
BBB 1 KKK Ascending
2 CCC Ascending

Screen ID of screen that


Description of that screen, e.g.
d. Report Calling Screen calls for report creation
what is that screen ?
No Screen ID Description
1
2
3
4
5

e. Report Naming Convention *please follow TMAP Standard Naming Convention

No Item Description
1 Report File Name
2 Report Path
2/34
Phase DR Project Name Page 3/34
Block Name Function Name Created By
Document Name UISS Report Title Updated By

2. Report Layout
Report Template Report Types Screen File Direct Print
Paper Preview Signature
Report ID Report Name Form Type Paper Layout Printer Type Template Prov. by Applicatio Report Report Support # of
Size Business (Y/N) Type
Type User (Y/N) n (Y/N) Type (Y/N) Copies
XXXXX XXXXX A4 Pre-print Landscape Dot Matrix Fixed Y Online Transaction Y Excel Y Y 3 Hand Writing

These information obtained from


UR's Report List.

[Draw Report Layout HERE]


4/34
Phase DR Project Name Page 5/34
Block Name Function Name Created By
Document Name UISS-Report Title Updated By

3. Item Description
Data Source Attribute
No. Item Name Format Description
Table/File Name Field Name Type Len Justified

Identify data source of report


Attributes of each item on
1) Table/file name
report : format of data to be shown on
2) field name of data
1) Type : character, datetime, report
etc.
2) Length : how long (length)
the item will be shown on
report.
3) Justified : left, right, or
center
6/34
Phase DR Project Name Page 7/34
Block Name Multiple Record Function Name Created By
Document Name UISS-Report Flag Title Updated By

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
1 HEAD N 1 GIM 1 Data ID 1 Data ID = - BOIDT
a Get system constant data, 2 Value 2 - SBJMY

2 BODY
a List all Vendor Report Data and it's Katashiki. Y 1 BIRTVEN Vendor Data
1 Doc No 1 Project No = [User Input] Project No
table to be retrieved
2 Vendor Name 2 Vendor Name = [User Input] Vendor Name
3 Project
data toCode
be retrieved 3 Creation Date >= [User Input] ETD From
4 Group No <= [User Input] ETD To
5 Remark
b For each vendor data, list all katashiki. Y
CN: Only Group code with type 'S' will be displayed on report. 1 BIRTEXP Katashiki Quantity For
2 BOI Stock Group Master 1 Model Code 1 Project Code = [a] Project Code
2 Katashiki Quantity 2 Group Code = [a] Group Code

c For all combination of katashiki, Project Code and Group No Y


get all of its usage. 1 Export Formula Master Group Usage
SC: Quantity = Katashiki Quantity * Group Usage 1 Project Code 1 Model Code = [b] Model Code
2 Group Code 2 Project Code = [a] Project Code
3 Usage 3 Group Code = [a] Group Code
-If retrieval from more than 1
table, define clearly the join

d Sum Katashiki Quantity for each Katashiki Code and Doc No Y 1 [c] 1 Katashiki Qty
to get Katashiki Unit Quantity

3 SUMMARY

e Sub Total 'Quantity' Y 1 [d]


SC: Sum all 'Quantity' for each:
- Doc No

f Sub Total 'Unit Quantity'


SC: Sum all 'Unit Quantity' for each: -Sample Summary based on Y 1 [d]
certain key
- Doc No
Phase DR Project Name Page 8/34
Block Name Function Name Created By
Document Name UISS-Report Title Updated By

5. Operation Description

This is a free format page for write


down details design description of
the report
9/34
Phase DR Project Name Page 10/34
Block Name Function Name Created By
Document Name UISS-Report Title Updated By

6. Logging Message (File/DB)


Exception
NO. EVENT CAUSE TYPE MSG ID LOG MESSAGE USER ACTION
(Y/N)
Critical
Warning
Error
Info If "Y", it means there is "Screen Message"
Confirm corresponding to this logging message, and
screen needs to show it. What action that user needs to
On which event the log What is the cause/trigger of the Debug take when the log message
message happens ? log message ? happens ?
Please also write "Show [Corresponding Screen
Message] on screen" in ACTION.

Message ID : please follow the


naming convention defined in
Development Standard
13/02/2007
09/11/2006
ver 1.00
08/11/2006
Phase DR Project Name FISM ver 0.02 11/34
Page FSBT)Phannipa
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT) Rhose
Document Name UISS Report Title Updated ver 0.01 By FSBT)Phannipa

1. General Description

1. OBJECTIVE f. Report Generation Keys


To descript the layout and data source of Daily Receive/Supply Report.
Section No Field Description
2. REPORT INFORMATION Daily Receive/Supply 1 Source Part Sourcing (e.g. LSP, MSP,JSP or IMP).
Report 2 Part Type Part Type assosiated with the part.
a. General Information 3 Inventory Selected Inventory type to indicate report
Please refer to "Report Layout" worksheet for details. 4 Document Type Document Type ( INV,CN,DN,RCN,RDN)
5 Company Warehouse C Company Warehouse Code.(customer code)
b. Report items 6 Plant Code Plant Code.
Please refer to "Item Description" worksheet for details. 7 N/C Flag Cancle Flag
7 Withholding Tax Code Withholding Tax Code.
c. Printing Order 8 Accounted Accouted for Journal.
9 Supplier Code Supplier code ( valid if Account Type = 'AP')
Section No Field Name Order Customer Code Customer Code( valid if Account Type = 'AR')
Daily Part Recieving Report 1 Posting Date Ascending Supplier Code If Inventory Type = 'Recieve'
2 Receiving Date Ascending Customer Code If Inventory Type = 'Supply'
3 Doc No. Ascending 10 PDS No. Part Delivery Sheet Number. If Inventory Type
4 PDS No. Ascending = ' Supply'
Daily Part Supply Report 1 Posting Date Ascending 11 Part No. Part Number . Inventory Type = 'Supply'
2 Receiving Date Ascending 12 Document No. Document No.
3 Doc No. Ascending 13 Part Receive Date FromStarting Date of Part Receiving Date criteria.
4 PDS No. Ascending 14 Part Receive Date To Finishing Date of Part Receiving Date criteria.
15 Document Date From Starting Date of Document Date criteria.
d. Report Calling Screen 16 Document Date To Finishing Date of Document Date criteria.
17 Interface Date From Starting Date of Interface Date criteria.
No Screen ID Description 18 Interface Date To Finishing Date of Interface Date criteria.
1 WFIS0150 Daily Receive/ Supply Part.
2 Report Print Screen
3
4
###

e. Report Naming Convention *please follow TMAP-EM Standard Naming Convention

No Item Description
1 Report File Name Daily Part Receiving Report_YYYYMMDDHHMISS.xls
Daily Part Supplying Report_YYYYMMDDHHMISS.xls
2 Report Path
Phase DR Project Name FISM Page 12/34
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 26/10/2006 By FSBT)Phannipa
Document Name UISS Report Title Updated ver 0.01 By FSBT)Phannipa

2. Report Layout
Report Template Report Types Screen File Direct Print
Paper Preview Signature
Report ID Report Name Form Type Paper Layout Printer Type Template Prov. by Applicatio Report Report Support # of
Size Business (Y/N) Type
Type User (Y/N) n (Y/N) Type (Y/N) Copies
XXXXX Daily Receive/Supply R A3 Pre-print Landscape Laser Fixed N Online Transaction N Excel Y Y 1 Hand Writing

Header
will display every page

Header1
will display every page

Body

Footer display on
first page

Figure 1 Daily Part Receive Report Report Template

Header
will display every page

Header1
will display every page

Body

Footer display on
first page

Figure 2 Daily Part Supply Report Report Template


13/34
Phase DR Project Name FISM Page 14/34
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 26/10/2006 By FSBT)Phannipa
Document Name UISS-Report Title Updated ver 0.01 By a

3. Item Description
Data Source Attribute
No. Item Name Format Description
Table/File Name Field Name Type Len Justified
<HEADER>
1 Report Heading Char 40 Center X..40..X If Account Type is 'AP' ,Display "AP Invoice and Withholding Tax Report".
If Account Type is 'AR' ,Display "AR Invoice and Withholding Tax Report".
If Inventory Type is 'Recieve' ,Display "List of Daily Part Receive Report".
If Inventory Type is 'Supply' ,Display "List of Daily Part Supply Report".
2 Page System Page Left CC of TT CC : Current page , TT: Total gennerated page.

3 Date System Date Left DD/MM/YYYY HH:SS Date of printing report.


DD/MM/YYYY HH:MI:SS

<<Print Criteria>>
4 Source Char 3 Left X..3..X Part's sourcing eg. JSP,MSP or LSP.

5 Part Type TB_M_SYS_ TYPE_NAME Char 15 Left X..15..X Part Type Name assosiated with the part.
PARAMETER 80

6 Company W/H code Char 3 Left XXX Company Warehouse Code (e.g. TMT,STM). Same as Customer Code(eg. TMT1,STM1)
4 XXXX
6 Plant Name TB_M_CUST_PLANTPLANT_NAME Char 30 Left X..30..X Plant Name (retrieved by received Plant Code).
Receiving Plant 1 X Plant Code.
7 Supplier Code/Customer Code Char 6 Left X..6..X If inventory Type = 'Receive' > Supplier Code
4 XXXX If inventory Type = 'Supply' > Customer Code
Note incase of criteria was input inputed criteria should be displayed as. (eg. "TM*","1*")

8 Part No. Char 20 Left X..20..X Part Number (only for Inventory Type = 'Supply' )
Note incase of criteria was input inputed criteria should be displayed. (eg. "PA*","1*")
Posting Date
9 From Char 10 Left DD/MM/YYYY Starting date of Posting Date criteria.
10 To Char 10 Left DD/MM/YYYY Finishing date of Posting Date criteria.

Document Date
11 From Char 10 Left DD/MM/YYYY Starting date of Document Date criteria.
12 To Char 10 Left DD/MM/YYYY Finishing date of Document Date criteria.

Interface Date
13 From Char 10 Left DD/MM/YYYY Starting date of Interface Date criteria.
14 To Char 10 Left DD/MM/YYYY Finishing date of Interface Date criteria.

<BODY>
15 Document Type Char 3 Left XXX
TB_R_SUPP_INV_H DOC_TYPE 2 Center XX > For Inventory Type : 'Receive'
15/34
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 16/34
Page FSBT) Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

3. Item Description
Data Source Attribute
No. Item Name Format Description
Table/File Name Field Name Type Len Justified
TB_R_CUST_INV_H DOC_TYPE > For Inventory Type : 'Supply'

16 Document No Char 20 Left X..20..X Document Number.


TB_R_SUPP_INV_H DOC_NO X..20..X > For Inventory Type : 'Receive'

TB_R_CUST_INV_H DOC_NO DDBBYYMM999999 > For Inventory Type : 'Supply'

17 Document Ref. No. Char 15 Left X..15..X Reference Document Number for this Invoice.
TB_R_SUPP_INV_H REF_DOC_NO X..15..X > For Inventory Type : 'Receive'

TB_R_CUST_INV_H REF_DOC_NO DDBBYYMM999999 > For Inventory Type : 'Supply'

18 N/C Flag Char 1 Center X Cancel Flag (Domain: N - Normal and C Y - Cancel)
TB_M_SYSTEM_ TYPE_NAME 80 X..6..X
PARAMETER
TB_R_SUPP_INV_H CANCEL_ > For Inventory Type : 'Receive'
FLAG
TB_R_CUST_INV_H CANCEL_ > For Inventory Type : 'Supply'
FLAG
19 Document Date Char 10 Left DD/MM/YYYY Document Date
TB_R_SUPP_INV_H DOC_DT > For Inventory Type : 'Receive'
TB_R_CUST_INV_H DOC_DT > For Inventory Type : 'Supply'

20 PDS No. Char 15 Left X..15..X PDS Number


TB_R_SUPP_INV_D PDS_NO '-' > For Inventory Type : 'Receive'
TB_R_CUST_INV_D PDS_NO X..15..X > For Inventory Type : 'Supply'

21 Part Received Date Char 10 Left DD/MM/YYYY The date when the part has been received.
TB_R_SUPP_INV_D PART_REVEIV > For Inventory Type : 'Receive'
TB_R_SUPP_INV_H ED_DT
TB_R_CUST_INV_D PART_REVEIVChar 10 Left DD/MM/YYYY > For Inventory Type : 'Supply'
ED_DT

22 Posting Date Char 10 Left DD/MM/YYYY Date the journal was created or aggregated.
TB_R_SUPP_INV_H POST_DATE > For Inventory Type : 'Receive'
TB_R_AP_H POST_DT
TB_R_CUST_INV_H POST_DATE > For Inventory Type : 'Supply'
TB_R_AR_H POST_DT
23 Interface Date. Char 10 Left DD/MM/YYYY Date the Interface was sent, get from header id which have field format as show below
35 <FILENAME>_99999 where <FILENAME> is <FILEID>_YYYYMMDDHHMMSS_D
17/34
TB_R_SUPP_INV_H HEADER_ID > For Inventory Type : 'Receive'
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 18/34
Page FSBT) Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

3. Item Description
Data Source Attribute
No. Item Name Format Description
Table/File Name Field Name Type Len Justified
TB_R_CUST_INV_H HEADER_ID > For Inventory Type : 'Supply'
24 Company W/H Code Char 3 Center XXX Company Warehouse Code (TMT,STM). Same as Customer Code
TB_R_SUPP_INV_H COMPANY_ 4 XXXX > For Inventory Type : 'Receive'
WH_CD
CUSTOMER_
CD
TB_R_CUST_INV_H COMPANY_ > For Inventory Type : 'Supply'
WH_CD
CUSTOMER_
CD
25 Plant Char 1 Center X Plant Code (e.g. S= 'samrong',G = 'Gateway' etc.)
TB_R_SUPP_INV_H PLANT_CD > For Inventory Type : 'Receive'
CUSTOMER_
PLANT_CD
TB_R_CUST_INV_H PLANT_CD > For Inventory Type : 'Supply'
CUSTOMER_
PLANT_CD
26 Receiving Location Char 2 Left XX Receiving location or DOCK Code
TB_R_SUPP_INV_D DOCK_CD '-' > For Inventory Type : 'Receive'

TB_R_CUST_INV_D DOCK_CD XX > For Inventory Type : 'Supply'


CUST_DOCK_
CD
27 Order Type Char 1 Center X Order type (e.g. 1- Regular; 9 - Special Order )
TB_R_SUPP_INV_D ORDER_TYPE '-' > For Inventory Type : 'Receive'

TB_R_CUST_INV_D ORDER_TYPE X > For Inventory Type : 'Supply'

28 Reason Code
Char 1 Center X Reason or Usage Code (e.g. 2-Loss; 5-Export)
TB_R_SUPP_INV_D REASON_CD '-' > For Inventory Type : 'Receive'

TB_R_CUST_INV_D REASON_CD X > For Inventory Type : 'Supply'

29 Usage Code TB_M_SYSTEM_ TYPE_CODE 1 Center X Usage of Part in this case will be 'D' = Domestic.
PARAMETER 40

30 Part No. Part Number


TB_R_SUPP_INV_D PART_NUMBE '-' > For Inventory Type : 'Receive'
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 19/34
Page FSBT) Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

TB_R_CUST_INV_D PART_NUMBE X..20..X > For Inventory Type : 'Supply'

31 Part Name Char 30 left X..30..X Part Name


TB_R_SUPP_INV_D PART_NAME '-' > For Inventory Type : 'Receive'

TB_R_CUST_INV_D PART_NAME X..20..X > For Inventory Type : 'Supply'

32 Supplier Code/Customer Code Char 6 Left X..6..X Supplier Code or Customer Code corresponding to Inventory Type
TB_R_SUPP_INV_H SUPPLIER 4 X..4..X > For Inventory Type : 'Receive'
_CD
TB_R_CUST_INV_H CUSTOMER > For Inventory Type : 'Supply'
_CD
33 Oracle Account Code Char 5 Left X..5..X Use Oracle Account Code.
TB_M_SUPPLIER ORACLE_CD > For Inventory Type : 'Receive' - Supplier 's Oracle Account Code.

TB_M_CUSTOMER ORACLE_CD > For Inventory Type : 'Supply' - Customer 's Oracle Account Code.

34 QTY Number 13 Right 9..13..9 Part Quantity Note for Negative format use (9..7..9)
TB_R_SUPP_INV_D PART_QTY 7,0 0 > For Inventory Type : 'Receive'

TB_R_CUST_INV_D PART_QTY 9..7..9 > For Inventory Type : 'Supply'

35 Price Status Char 10 Left X..10..X Status of Price Domain: Final ,Temporary
TB_R_SUPP_INV_D PRICE_STS '-' > For Inventory Type : 'Receive'

TB_R_CUST_INV_D PRICE_STS
TB_M_SYSTEM_ TYPE_NAME Char 80 Left X..6..X > For Inventory Type : 'Supply'
PARAMETER
36 Per Unit Number 13,2 Right 9..13..9.ZZ Price of Part Per unit
TB_R_SUPP_INV_D BUYING_PRIC 0.00 > For Inventory Type : 'Receive'

TB_R_CUST_INV_D SELLING_PRI 9..13..9.ZZ > For Inventory Type : 'Supply'

37 Amount Number 13,2 Right 9..13..9.ZZ Amount = QTY * Per Unit Note Negative format use (9..16..9.ZZ)
16,2 0.00 > For Inventory Type : 'Receive'
9..16..9.ZZ > For Inventory Type : 'Supply'

<Grand Total>
38 Total QTY Number 7,0 Right 9..7..9 Summation of Part Quantity Note for Negative format use (9..7..9)

39 Total Amount Number 13,2 Right 9..13..9.ZZ Summation of Amount Note Negative format use (9..16..9.ZZ)
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 20/34
Page FSBT) Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 Page FSBT)21/34
Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
1 HEAD
a. Get system constant data, N 1 1 Page 1. Generate By Excel
2 Date

2 HEAD1
b. Get the 'Plant Name' according to Specific Plant Code N 1 TB_M_CUST_PLANT 1 Plant Name 1 Plant Code = [Input Parameter] Plant code.
1 TB_M_SYSTEM_PARAMETER 1 Part Type 1 Part Type = [X] TYPE_NAME where
: [X] [X] TYPE_CD = [Input Parameter] Part Type and
3 BODY [X] SYSTEM_CD = 'PART_TYPE'
If Inventory Type = 'Recieve'
c. List of Part Receive Information Y 1 TB_R_SUPP_INV_H >[A] 1 Business Screnario Code Like [Input Parameter]
2 TB_R_SUPP_INV_D >[B] Source_ [Input Parameter]Part Type%
3. TB_M_SUPPLIER >[C] Note For Part Type should be convert in formats below
4. TB_R_AP_H [D] Production > PRD
Export > EXP
Service > SVE SVC
C&A > CAA

1 Document Type 2 Document Type = [Input Parameter] Document Type

2 Document No. 3 Document No. = [Input Parameter] Document No.


Note
> If input in criteria.
Document No LIKE [Input Parameter] Document No.
> If more than one parameter
Document No. = [Input Parameter] Document No (1) OR
Document No. = [Input Parameter] Document No(2) OR ..
(More)

3 Ref Document No.


4 N/C Flag N/C Flag = [Input Parameter]Cancle Flag.

5 Document Date 4 Document Date. >= [Input Parameter] Document Date


From
<= [Input Parameter] Document Date
To
6 PDS No. 5 PDS No. = [Input Parameter] PDS No.

7 Part Received Date 6 Part Receive Date. >= [Input Parameter] Part Receive
Date From
<= [Input Parameter] Part Receive
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 Page FSBT)22/34
Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
Date To
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 Page FSBT)23/34
Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
8 Posting Date 7 Posting date = [D]. POST_DT where [A].DOC_NO =
[D].DOC_NO and >= [Input Parameter] Posting Date
and From <= [Input Parameter] Posting DateTo.

9 Interface Date 8 Interface Date. >= [Input Parameter] Interface Date


From
<= [Input Parameter] Interface Date
To

10 Company W/H Code 9 Company W/H Code = [Input Parameter] Company W/H
Code
Company W/H Code = [A] CUSTOMER_CD
[A]CUSTOMER_CD = [Input Parameter] Company W/H
code
11 Plant Code 10 Plant Code = [Input Parameter] Plant Code.

12 Receiving Location

13 Order Type

14 Reason Code

15 Usage Code

16 Part No 11 Part No = [Input Parameter] Part No.


Note
> If input in criteria.
Part No. LIKE [Input Parameter] Part No.
> If more than one parameter
Part No. = [Input Parameter] Part No. (1) OR
Part No. = [Input Parameter] Part No. (2) OR ..(More)

17 Part Name

18 Supplier Code 12 Supplier Code = [Input Parameter] Supplier Code


Note
> If input in criteria.
Supplier Code LIKE [Input Parameter] Supplier Code
> If more than one parameter
Supplier Code = [Input Parameter] Supplier Code (1) OR
Supplier Code = [Input Parameter] Supplier Code(2) OR ..
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 Page FSBT)24/34
Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
(More)
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 Page FSBT)25/34
Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
19 Oracle Account Code 13 Oracle Account Code = [C]ORACLE_CD where
[C]SUPPLIER_CD =[A]SUPPLIER_CD
20 Quantity

21 Price Status

22 Buying Price
13 Amount = Quantity * Buying Price

14 [A]Header ID = [B]Header ID

15 [A]Supplier Code = [C] Supplier Code


If Inventory Type = 'Supply'
c. List of Part Supply Information 1 TB_R_CUST_INV_H >[A] 1 Business Screnario Code Like [Input Parameter]
TB_R_CUST_INV_D >[B] Source_ [Input Parameter]Part Type%
3. TB_M_CUSTOMER >[C] Note For Part Type should be convert in formats below
4. TB_R_AR_H > [D] Production > PRD
5 TB_M_SYSTEM_PARAMETER Export > EXP
: [E] Service > SVE SVC
C&A > CAA
1 Document Type 2 Document Type = [Input Parameter] Document Type
If Document Type CN and DN Mark must equal 'Q' only

2 Document No. 3 Document No. = [Input Parameter] Document No.


Note
> If input in criteria.
Document No LIKE [Input Parameter] Document No.
> If more than one parameter
Document No. = [Input Parameter] Document No (1) OR
Document No. = [Input Parameter] Document No(2) OR ..
(More)
3 Ref Document No.

4 N/C Flag N/C flag = [E] TYPE_NAME where


[E] TYPE_CD = [Input ] Cancle Flag = [A]CANCLE_FLAG
[E] SYSTEM_CD = 'CANCEL_FLAG'

5 Document Date 4 Document Date. >= [Input Parameter] Document Date


From
<= [Input Parameter] Document Date
To
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 Page FSBT)26/34
Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 Page FSBT)27/34
Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
6 PDS No. 5 PDS No. = [Input Parameter] PDS No.
Note
> If input in criteria.
PDS No. LIKE [Input Parameter] PDS No.
> If more than one parameter
PDS No. = [Input Parameter] PDS No. (1) OR
PDS No. = [Input Parameter] PDS No. (2) OR ..(More)

7 Part Received Date 6 Part Receive Date. >= [Input Parameter] Part Receive
Date From
<= [Input Parameter] Part Receive
Date To

8 Posting Date 7 Posting date = [D] POST_DT where [A]DOC_NO = [D]


DOC_NO and
Posting Date. >= [Input Parameter] Posting Date From
<= [Input Parameter] Posting Date To

9 Interface Date 8 Interface Date. >= [Input Parameter] Interface Date


From
<= [Input Parameter] Interface Date To

10 Company W/H Code 9 Company W/H Code = [Input Parameter] Company W/H
Code
Company W/H Code = [A] CUSTOMER_CD
[A]CUSTOMER_CD = [Input Parameter] Company W/H
code
11 Plant Code 10 Plant Code = [Input Parameter] Plant Code.

12 Receiving Location

13 Order Type

14 Reason Code

15 Usage Code Usage Code = [E]TYPE_CD where


TYPE
16 Part No 11 Part No = [Input Parameter] Part No.
Note
> If input in criteria.
Part No. LIKE [Input Parameter] Part No.
13/02/2007
09/11/2006
ver 1.00 FSBT)Phannip
08/11/2006 a
Phase DR Project Name FISM ver 0.02 Page FSBT)28/34
Rhose
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT)Phannip
Document Name UISS-Report Title Updated ver 0.01 By a

4. Data Retrieval Description


No Group Name / Data Retrieval Flow MR No Table No Data Item No Condition / Remark
> If more than one parameter
Part No. = [Input Parameter] Part No. (1) OR
Part No. = [Input Parameter] Part No. (2) OR ..(More)
17 Part Name

18 Customer Code 12 Customer Code = [Input Parameter] Customer Code


Note
> If input in criteria.
Customer Code. LIKE [Input Parameter] Customer Code.
> If more than one parameter
Customer Code = [Input Parameter] Customer Code (1)
(or) Customer Code = [Input Parameter] Customer Code (2)
OR ..(More)

19 Oracle Account Code Oracle Account Code = [C]ORACLE_CD where


[C]CUSTOMER_CD =[A]CUSTOMER_CD

20 Quantity

21 Price Status Price Status = [E] TYPE_NAME where


[E] TYPE_CD = [Input Parameter] N/C flag and
[E] SYSTEM_CD = 'PRICE_STS'

22 Selling Price

14 Amount = Quantity * Selling Price


15 [A]Header ID = [B]Header ID
16 [A]Customer Code = [C] Customer Code

4 FOOTER

d. Created by N 1 GIM 1 User Name 1 User Name = Login User


02/04/2007
13/02/2007
09/11/2006
ver 1.00
08/11/2006 WeServ)Mike
Phase DR Project Name FISM ver 0.02 29/34
Page FSBT)Phannipa
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created '31/10/2006
26/10/2006 By FSBT)Phannipa
FSBT) Rhose
Document Name UISS-Report Title Updated ver 0.01 By FSBT)Phannipa

5. Operation Description

Description 1. Get Parameters


This function will be called with sending of parameters described eailier in General Description
"Report Generation Key".
Operation Overview
2. Create Report
START
Start 2.1 Connect to database
CONNECTED TO THE SEVER.
- Go step next step 2.2
Get Parameters CANNOT CONNECT TO SERVER.
- Log an error refer item No.1 in Logging Message Table.
- Return 'False' to 5.1 Report Print Screen
- Report not generated. Delete Lockfile
2.2 Open database connection
Receive/ Supply OPENED :
Receive
Supply - Go to next step 2.3
CANNOT OPENED :
- Log an error refer item No.2 in Logging Message Table.
Retrive List of - Return 'False' to5.1 Report Print Screen
Retrive List of
Daily Part Receive Report
Daily Part Supply Report ### - Report not generated. Delete Lockfile
2.3 Retrieve data
a. If Inventory Type = 'Recieve'
Retrieve report data from Supplier 's invoice described in Data Retrieval
Description in case of Inventory Type = 'Recieve'.

Note > Supplier's invoice which can be retrieved in this case include
>> Document Type = 'INV' and Cancel Flag = 'N'
>> Document Type = 'INV' and Cancel Flag = 'Y'
Generate Excel file
### If Inventory Type = 'Supply'
Retrieve report data from Customer 's invoice described in Data Retrieval
Description in case of Inventory Type = 'Supply'.
Note > Report Data which can be retrieved include :
>64000 >> Doument Type = 'INV' and Cancel Flag = 'N'
records? >> Doument Type = 'INV' and Cancel Flag = 'Y'
>> Doument Type = 'CN' and Mark Code = 'Q'
>> Document Type = 'DN' and Mark Code = 'Q'
>> Incase of Document Type are 'CN' with Cancel Flag 'N' and
Delete lock file END IN' or 'DN' with Cancel Flag = 'Y' the value contain in
Start Quantity and Amount of each part include in this document should
be displayed in negative format.
30/34
Phase DR Project Name FISM Page 31/34
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 26/10/2006 By FSBT)Phannipa
Document Name UISS-Report Title Updated ver 0.01 By FSBT)Phannipa

5. Operation Description

b. If No resulted data then


- Return 'False' to 5.1 Report Print Screen
Otherwise
- Go to next step 3

3. Generate Excel Report File

3.1 If Inventory Type = 'Recieve'


Generate Excel Report by using Daily Part Receive Report Template show in
Figure 1 of Report Layout.
Note
> Report header : List of Part Receive Report
> The 18th column will be "Supplier Code"
> Actual cost calculation use Buying Price
> Appendix 1 show example of Daily Part Receive Report generation.
###
If Inventory Type = 'Supply'
Generate Excel Report by using Daily Part Receive Report Template show in
Figure 2 of Report Layout.
Note
> Report header : List of Part Supply Report
> The 18th column will be "Customer Code"
> Actual cost calculation use Selling Price
> Appendix 2 show example of Daily Part Supply Report generation.

REMARK
>> If Record is greater than 64000 generate new file
>> If report is generated or error occurred during generation delete lock file
>> Log messages (1 to 6) depending on cause

3.2 After Excel report has been generate


> Generated report will be save to specific location see in Report Naming
Conversion
> Return 'True' to 5.1 Report Print Screen .
32/34
Phase DR Project Name FISM Page 33/34
Block Name Report Function Name 5.1.1 Daily Receive/Supply Report Created 26/10/2006 By FSBT)Phannipa
Document Name UISS-Report Title Updated ver 0.01 By FSBT)Phannipa

6. Logging Message (File/DB)


Exception
NO. EVENT CAUSE TYPE MSG ID LOG MESSAGE ACTION
(Y/N)
1 Connect to database server Cannot connect to database. Critical Database cannot be connected. N

2 Open database Cannot open database. Critical Cannot Connect to Database. N

1 Report Generated Finish report generation Successfully created report file (XLS). N

2 Exception No arguments is passed to batch No arguments were passed. Y


framework
3 Exception Incomplete arguments is passed to Invalid number of arguments were passed. Y
batch framework
4 Exception Failure in generation of report Unable to generate workbook (XLS). Y

5 Exception Failure in deletion of lock file Unable to delete report lock file {0} Y

6 Exception System Error System error occurred Y


34/34

You might also like