Functional Description
Purpose
This business function inserts Unedited Asset Master Transactions to the F1201Z1 record for
Interoperability. These records are the transactions that occurred in the F1201 Asset Master MBF (N1200010).
Setup Notes and Prerequisites
This function should only be used by the Asset Master MBF (N1200010).
Special Logic
Technical Specification
1.Init Error Message ID = " "
2.Init Error Code = '0'
3.If Action Code (ACTN) = 'A' / 'C' / 'D'
4. If Action Code (ACTN) = 'A'
5. Fetch from Asset MBF Cache using NUMB=Asset Item Number(NUMB) and Modified Flag='O'
using B1200260.
6. Map All F1201 Parameters from B1200260's Data Structure to F1201Z1.
7. Call B0000175 to retrieve next Transaction Number(EDTN).
8. Batch Number (EDBT) = "0"
9. Line Number (EDLN) = 2
10. Call B9800100 to retrieve Audit Information, User ID(EDUS), Wk
WorkstationID, Wk TimeUpdated, Wk DateUpdated.
11. Map the following into F1201Z1 and Insert.
12.
EDI User ID(EDUS) = User ID(EDUS)
EDI Batch Number (EDBT) = Batch Number (EDBT)
EDI Transaction Number (EDTN)= Transaction Number(EDTN)
TypeTransaction (TYTN) = Input Transaction Type
EDI_Translation Format (EDFT) = " "
EDI - Transmission Date (EDDT) = 0
Direction Indicator (DRIN) = '2'
EDI Line Number (EDLN) = Line Number(EDLN)
Number of Detail Lines (EDDL) = EDI Detail Lines(EDDL)
Process Result Flag (EDSP) = " "
Trading Partner ID (PNID) = " "
Action Code (TNAC) = "02"
Transaction Originator (TORG) = User ID(EDUS)
User ID (USER) = User ID(EDUS)
Program ID (PID) = Input Program ID
Work Station ID (JOBN) = Wk WorkstationID
Date Updated (UPMJ) = Wk DateUpdated
Time Of Day(TDAY) = Wk TimeUpdated
13.
14. End If
15. If Action Code = 'C'
16. Fetch from Asset MBF Cache using NUMB=Asset Item Number(NUMB) and
Modified Flag='O' using B1200260.
17. Map All F1201 Parameters from B1200260's Data Structure to F1201Z1.
18. Call B0000175 to retrieve next Transaction Number(EDTN).
19. Batch Number (EDBT) = "0"
20. Line Number (EDLN) = 1
21. Call B9800100 to retrieve Audit Information, User ID(EDUS), Wk
WorkstationID, Wk TimeUpdated, Wk DateUpdated.
22. Map the following into F1201Z1 and Insert
23.
EDI User ID(EDUS) = User ID(EDUS)
EDI Batch Number (EDBT) = Batch Number (EDBT)
EDI Transaction Number (EDTN)= Transaction Number(EDTN)
TypeTransaction (TYTN) = Input Transaction Type
EDI_Translation Format (EDFT) = " "
EDI - Transmission Date (EDDT) = 0
Direction Indicator (DRIN) = '2'
EDI Line Number (EDLN) = Line Number(EDLN)
Number of Detail Lines (EDDL) = EDI Detail Lines(EDDL)
Process Result Flag (EDSP) = " "
Trading Partner ID (PNID) = " "
Action Code (TNAC) = "UB"
Transaction Originator (TORG) = User ID(EDUS)
User ID (USER) = User ID(EDUS)
Program ID (PID) = Input Program ID
Work Station ID (JOBN) = Wk WorkstationID
Date Updated (UPMJ) = Wk DateUpdated
Time Of Day(TDAY) = Wk TimeUpdated
24.
25. Fetch from Asset MBF Cache using NUMB=Asset Item Number(NUMB) and
Modified Flag='N' using B1200260.
26. Map All F1201 Parameters from B1200260's Data Structure to F1201Z1.
27. Line Number (EDLN) = 2
28. Map the following into F1201Z1 and Insert
29.
EDI User ID(EDUS) = User ID(EDUS)
EDI Batch Number (EDBT) = Batch Number (EDBT)
EDI Transaction Number (EDTN)= Transaction Number(EDTN)
TypeTransaction (TYTN) = Input Transaction Type
EDI_Translation Format (EDFT) = " "
EDI - Transmission Date (EDDT) = 0
Direction Indicator (DRIN) = '2'
EDI Line Number (EDLN) = Line Number(EDLN)
Number of Detail Lines (EDDL) = EDI Detail Lines(EDDL)
Process Result Flag (EDSP) = " "
Trading Partner ID (PNID) = " "
Action Code (TNAC) = "UA"
Transaction Originator (TORG) = User ID(EDUS)
User ID (USER) = User ID(EDUS)
Program ID (PID) = Input Program ID
Work Station ID (JOBN) = Wk WorkstationID
Date Updated (UPMJ) = Wk DateUpdated
Time Of Day(TDAY) = Wk TimeUpdated
30.
31. End If
32. If Action Code (ACTN) = 'D'
33. Fetch from Asset MBF Cache using NUMB=Asset Item Number(NUMB) and
Modified Flag='O' using B1200260.
34. Map All F1201 Parameters from B1200260's Data Structure to F1201Z1.
35. Call B0000175 to retrieve next Transaction Number(EDTN).
36. Batch Number (EDBT) = "0"
37. Line Number (EDLN) = 2
38. Call B9800100 to retrieve Audit Information, User ID(EDUS), Wk
WorkstationID, Wk TimeUpdated, Wk DateUpdated.
39. Map the following into F1201Z1 and Insert.
40.
EDI User ID(EDUS) = User ID(EDUS)
EDI Batch Number (EDBT) = Batch Number (EDBT)
EDI Transaction Number (EDTN)= Transaction Number(EDTN)
TypeTransaction (TYTN) = Input Transaction Type
EDI_Translation Format (EDFT) = " "
EDI - Transmission Date (EDDT) = 0
Direction Indicator (DRIN) = '2'
EDI Line Number (EDLN) = Line Number(EDLN)
Number of Detail Lines (EDDL) = EDI Detail Lines(EDDL)
Process Result Flag (EDSP) = " "
Trading Partner ID (PNID) = " "
Action Code (TNAC) = "03"
Transaction Originator (TORG) = User ID(EDUS)
User ID (USER) = User ID(EDUS)
Program ID (PID) = Input Program ID
Work Station ID (JOBN) = Wk WorkstationID
Date Updated (UPMJ) = Wk DateUpdated
Time Of Day(TDAY) = Wk TimeUpdated
41.
42. End If
43.
44.Else
45. Set Error Message ID "0002"
46.End If
D1200250 - F1201Z1 Insert Unedited Asset Master Transactions
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cActionCode | ACTN | char | OPT | NONE |
A code that specifies the action that is performed. Valid values are: A Add C Change | ||||
szTypeTransaction | TYTN | char | OPT | NONE |
The qualifier used to identify a specific type of transaction. | ||||
szAssetMasterCacheName | JBNM | char | OPT | NONE |
This is the name of a job in the system. | ||||
mnAssetItemNumber | NUMB | MATH_NUMERIC | OPT | NONE |
An 8-digit number that uniquely identifies an asset. | ||||
mnEdiDetailLines | EDDL | MATH_NUMERIC | OPT | NONE |
The number of detail lines transmitted in an EDI transaction. This is the total number of lines on a per order basis, number of lines included
| ||||
szProgramId | PID | char | OPT | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
cErrorCode | ERRC | char | OPT | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
cSuppressErrorMessage | SUPPS | char | OPT | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
szErrorMessageID | DTAI | char | OPT | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
szEdiUserId | EDUS | char | OPT | NONE |
The source of the transaction. This can be a user ID, a workstation, the address of an external system, a node on a network, and so on. This
| ||||
szEdiBatchNumber | EDBT | char | OPT | NONE |
The number that the transmitter assigns to the batch. During batch processing, the system assigns a new batch number to the PeopleSoft
| ||||
szEdiTransactNumber | EDTN | char | OPT | NONE |
The number that an Electronic Data Interchange (EDI) transmitter assigns to a transaction. In a non-EDI environment, you can assign any
| ||||
mnEdiLineNumber | EDLN | MATH_NUMERIC | OPT | NONE |
This is the line number you assign when originating an EDI transaction. This number can represent an order line number (applicable for any
|
B0000175 Get Next Transaction Number | ||||
B0000176 Add Transaction To Subsystem Queue | ||||
B1200260 Cache Process Asset Master MBF | ||||
B9800100 Get Audit Information |
F1201Z1 Unedited Asset Master Transactions |