F31122Z1WriteWOTimeTransactions

F31122Z1 Write WO Time Transactions Unedited Transaction

Major Business Rule

Object Name: B3102020

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This function will be called to write add, update or delete transactions to the Outbound Work Order 
Time Transactions Unedited Transaction Table (F31122Z1). If the transactions are written successfully 

to the table, the Outbound Processor UBE in the Subsystem which processed record exports will be 

invoked.


1.2Setup Notes and Prerequisites
This function will only be called by B3100640 to update outbound transactions for interoperability.

1.3Special Logic

None

2.4Processing 

Open Table
If success

  If cActionCode = Add or Update or Delete

    If((cActionCode = Add & idNewF31122Record != blank) or

       (cActionCode = Delete & idOldF31122Record != blank) or

       (cActionCode = Update & idNewF31122Record != blank &

        idOldF31122Record != blank))

      Call B9800100 to get audit info

      Call B0000175 to get next transaction number

      If success

        Assign common fields to F31122Z1

        Copy data to appropriate columns in F31122Z1

        Write to F31122Z1

        If success and cCallSubsystemUBE = 1

          Call B0000176 to add transaction to subsystem

        End If

      Else

        Error : Could not Retrieve Transaction Number 

      End If 

    Else

      Error : Null Pointer

    End If 

  Else

    Error : Action Code Invalid

  End If

Else

   Error : Open Table Failed

End If

Close Table


^

Data Structure

D3102020 - F31122Z1 Write WO Time Transactions Unedited Transaction

Parameter NameData ItemData TypeReq/OptI/O/Both
idNewF31122RecordGENLNGIDOPTNONE

General purpose ID variable.

idOldF31122RecordGENLN2IDOPTNONE

General purpose ID variable.

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.

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.

cCallSubsystemUBEEV01charOPTNONE

An option that specifies the type of processing for an event.

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).

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.

Related Functions

None

Related Tables

None