CheckF4311ZRecordsForSupplier

Check F4311Z Records for Supplier Match

Minor Business Rule

Object Name: B4302040

Parent DLL: CDIST

Location: Client/Server

Language: C

Business Function Specification

Source NameB4302040DesignerKelly Huffman
Data Structure 
D4302040ProgrammerKelly Huffman
Function Name
CheckF4311ZRecordsForSupplierSystem Code43
Function Category
Function Use



1.Functional Description

1.1 Purpose

The purpose of this function is to search through the "XT4311Z1B" cache, which has already been initialized in the purchase order MBF (XT4311Z1).  If 
a detail record is found with the same supplier, delete that detail record from the cache by calling Clear The Work Files, else There is no detail record, 

delete the Header Record.

1.2Setup Notes and Prerequisites


This business function must be mapped with XT4311Z1.

1.3Special Logic


2.Technical Specifications


2.1Parameters:

Data Item Data Structure DescriptionI/ORequiredNotes
CTIDComputerIDIY

JOBSJobNumberIY

AN8SupplierNumberIY

LNIDLineNumberIY

SFXOOrderSuffixIY

EV01SupplierFoundOY


2.3Related Business Functions

Source NameFunction Name



2.4Processing 


/**************************************************************************

 *  Business Function:  CheckF4311ZRecordsForSupplier

 *

 *        Description:  Check F4311Z Records For Supplier Match

 *

 *         Parameters:

 *           LPBHVRCOM           lpBhvrCom    Business Function Communications

 *           LPVOID              lpVoid       Void Parameter - DO NOT USE!

 *           LPDSD4302040        lpDS         Parameter Data Structure Pointer  

 *

 *************************************************************************/


JDEBFRTN (ID) JDEBFWINAPI CheckF4311ZRecordsForSupplier (LPBHVRCOM lpBhvrCom,

                                                         LPVOID lpVoid,

                                                         LPDSD4302040 lpDS)  




















































































/**************************************************************************

 *   Function:  I4302040_InitializeCache   

 *      Notes:

 *

 *    Returns:

 *

 * Parameters:

 **************************************************************************/

int I4302040_InitializeCache (LPBHVRCOM         lpBhvrCom, 

                              LPVOID            lpVoid,

                              HUSER             hUser,

                              HCACHE            *lphB4302040Cache)







































































 /* end of I4302040_InitializeCache */


/**************************************************************************

 *   Function: I4302040_SearchTheCache

 *

 *      Notes:

 *

 *    Returns: 0     if error

 *             Other if success

 *

 * Parameters:

 **************************************************************************/

int I4302040_SearchTheCache (LPBHVRCOM         lpBhvrCom, 

                           LPVOID            lpVoid,

                           LPDSD4302040      lpDS,

                           HUSER             hUser,

                           HCACHE            hB4302040Cache)





































































Data Structure

D4302040 - Check F4311Z Records for Supplier Match

Parameter NameData ItemData TypeReq/OptI/O/Both
szComputerIDCTIDcharREQINPUT

mnJobnumberAJOBSMATH_NUMERICREQINPUT

The job number (work station ID) which executed the particular job.

mnAddressNumberAN8MATH_NUMERICREQINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnLineNumberLNIDMATH_NUMERICREQINPUT

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

szOrderSuffixSFXOcharREQINPUT

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.

cSupplierFoundEV01charREQOUTPUT

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

mnProcessIDPEIDMATH_NUMERICOPTNONE

A code that identifies the Inter-Process Communication ID.

mnTransactionIDTCIDMATH_NUMERICOPTNONE

Related Functions

None

Related Tables

None