F1201Z1InsertUneditedAssetMaster

F1201Z1 Insert Unedited Asset Master Transactions

Major Business Rule

Object Name: B1200250

Parent DLL: CFIN

Location: Client/Server

Language: C

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



Data Structure

D1200250 - F1201Z1 Insert Unedited Asset Master Transactions

Parameter NameData ItemData TypeReq/OptI/O/Both
cActionCodeACTNcharOPTNONE

A code that specifies the action that is performed. Valid values are: A Add C Change

szTypeTransactionTYTNcharOPTNONE

The qualifier used to identify a specific type of transaction.

szAssetMasterCacheNameJBNMcharOPTNONE

This is the name of a job in the system.

mnAssetItemNumberNUMBMATH_NUMERICOPTNONE

An 8-digit number that uniquely identifies an asset.

mnEdiDetailLinesEDDLMATH_NUMERICOPTNONE

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 
on an invoice, and so on.

szProgramIdPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

cErrorCodeERRCcharOPTNONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cSuppressErrorMessageSUPPScharOPTNONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharOPTNONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

szEdiUserIdEDUScharOPTNONE

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 
field helps identify both the transaction and its point of origin.

szEdiBatchNumberEDBTcharOPTNONE

The number that the transmitter assigns to the batch.  During batch processing, the system assigns a new batch number to the PeopleSoft 
transactions for each control (user) batch number it finds. 

szEdiTransactNumberEDTNcharOPTNONE

The number that an Electronic Data Interchange (EDI) transmitter assigns to a transaction. In a non-EDI environment, you can assign any 
number that is meaningful to you to identify a transaction within a batch. It can be the same as a J.D. Edwards document number.

mnEdiLineNumberEDLNMATH_NUMERICOPTNONE

This is the line number you assign when originating an EDI transaction. This number can represent an order line number (applicable for any 
order type), an invoice pay item, a journal entry line number, and so on.

Related Functions

B0000175 Get Next Transaction Number
B0000176 Add Transaction To Subsystem Queue
B1200260 Cache Process Asset Master MBF
B9800100 Get Audit Information

Related Tables

F1201Z1 Unedited Asset Master Transactions