F3111UpdateRelatedPOInfo

F3111 Update Related PO

Minor Business Rule

Object Name: B3101620

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
To update the Parts List table (F3111) with the related purchase order information once a purchase order has been generated for the item on the parts list.

1.2Setup Notes and Prerequisites


1.3Special Logic


2.Technical Specifications

2.1Processing 

vOpen Table F3111
vIf Open successful:
'd8Fetch Keyed on F3111 using Input UKID
'd8If Fetch successful:
'a7If Input Status (MTST) is not blank
'b7Copy Input MTST to F3111 MTST
'a7End If
'a7Copy Input RORN to F3111 RORN
'a7Copy Input RCTO to F3111 RCTO
'a7Copy Input RLLN to F3111 RLLN
'a7Call BSFN "Get Audit Info" and return User Name, Workstation, Date, and Time to F3111 related fields
'a7Update F3111
'd8Else 
'a7Return error "0002"  Record Invalid
'd8End If
vElse 
'd8Return error "3143"  File Cannot be Accessed
vEnd If

^

Data Structure

D3101620 - F3111 Update Related PO

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyIDInternalUKIDMATH_NUMERICREQINPUT

This field is a unique number used to identify a record in a file.

szRelatedPoSoNumberRORNcharREQINPUT

A number that identifies a secondary purchase order, sales order, or work order that is associated with the original order. This number is for 
informational purposes only.

szRelatedOrderTypeRCTOcharREQINPUT

A user defined code (system 00, type DT) that indicates the document type of the secondary or related order. For example, a purchase 
order might be document type OP and might have been created to fill a related work order with document type WO.

mnRelatedPoSoLineNoRLLNMATH_NUMERICREQINPUT

A number of the detail line on the related order for which the current order was created. For example, on a purchase order created to fill 
open sales orders, this is the line number of the sales order on which the item you are ordering appears.

szMaterialStatusCodeWoMTSTcharREQINPUT

A user defined code (31/MS) that identifies the current status of a particular component on the work order.

szCompanyKeyRelatedRKCOcharREQINPUT

The key company that is associated with the document number of the related order.

Related Functions

None

Related Tables

F3111 Work Order Parts List