GetF3013NextPrimarySeq

Get F3013 Next Primary Sequence

Major Business Rule

Object Name: B3000810

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description
This business function will determine the next primary sequence number for ECO Parts List (F3013) 
record.


1Purpose
This business function will determine the next primary sequence number for ECO Parts List (F3013) 
record.



1.2Setup Notes and Prerequisites

The user passes to the business function the Order Number(DOCO).

1.3Special Logic

None.

2.Technical Specifications


2.4Processing 


1.0.  Retrieve rows from the ECO Parts List Table (F3013) by the Index "Document number, Primary 
Sequence, Related Sequence", using Document number(DOCO) passed as input parameter, to determine the Last 

Primary Sequence used by the Document number(DOCO). If  the ECO Parts list records do not exist for 

specified DOCO, set Last Primary Sequence to ZERO.


2.0.  Add 1 to Last Primary Sequence.  


3.0   Load Last Primary Sequence number into Output parameter.


Retrievals:

 1.  ECO Parts List Detail Table (F3013).

Returns:

1.  ECO Primary Sequence number for Document Number(DOCO).
2.  Return Status.




Checklist:


Business Function SVR(The Business Function SVR document can be found on 
in the shared folder NTSERV2.xls)

______Business Function Name

______Source file Name

______Description of what the function does

______Which programs use the function

______Authors name


    Object Librarian Check:

______Verify Related Functions List against header file
______Verify Related Tables List against header file

______Verify Business Function Data Structure in the header file against 

Business Function Parameter List

______"Check In" All the Business Function Parameter Lists


   All Business Functions must be run through Bounds Checker before checking them  in.

______Bounds Checker


Note:
Make sure to highlight the line and click on either 'Parameters' or 'Notes' button to get 
Function ID



^

Data Structure

D3000810 - Get F3013 Next Primary Sequence

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.

mnNextPrimarySequencePSQMATH_NUMERICNONENONE

cReturnStatusEV01charNONENONE

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

Related Functions

None

Related Tables

F3013 ECO Parts List Detail