F4802InsertBlankLine

F4802 Insert Blank Line

Minor Business Rule

Object Name: B4800050

Parent DLL: CMFG

Location: Client/Server

Language: C

Functional Description

Purpose

Insert a blank line into the Work Order Instruction table (F4802) and update all following records 
matching the key with incremented Line Number (LNIS).


Setup Notes and Prerequisites


Special Logic




Technical Specification



1.Initialize Error Message ID (EV01) field to a single blank character


2.Read the Work Order Instructions table (F4802) using Order Number (DOCO), Order Type (DCTO), 

Order Suffix (SFXO), Record Type (TYPR), and Line Number (LINS) as the keys.


a)If records exist:
If Add/Update Flag is equal to one (1).
Save fetched record in a structure to insert later.
Increment Line Number and Update the record.

Copy Blanks into fetched record's SRDS, ANM1, ANM2, and ANM3.

Insert the record.

End if.
If Add/Update Flag is equal to two (2).

Increment Fetched Record's Line Number (LINS = LINS + 1).
Update the record.

End if.

4. If no records found, Move Error ID ("0002") to DS Error Message ID (DTAI). 

       If DS Suppress Error Messages (EV01) is not equal to 1, Issue GBR error "0002"   (NULL).




^

Data Structure

D4800050 - F4802 Insert Blank Line

Parameter NameData ItemData TypeReq/OptI/O/Both
mnOrderNumberDOCOMATH_NUMERICNONENONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

cRecordTypeTYPRcharNONENONE

The detail specification record type. Record types are user defined. You can set them up on the Detail Specification Types form and use 
them to describe certain types of work order or engineering change order information.

szOrderTypeDCTOcharNONENONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

cSuppressErrorMessagesEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

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.

szOrderSuffixSFXOcharNONENONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

mnLineNumberLINSMATH_NUMERICNONENONE

The Line Number associated with Work Order text information.

cAddUpdateFlagEV01charNONENONE

1 = Add new record.
2 = Update existing record.

^

Related Functions

None

Related Tables

F4802 Work Order Instructions File