1.Functional Description
1.1Purpose
The main purpose of this Business Function is to find out if there is Available Quantity or not.
This function will find Location (LOCN) and Lot/Serial Number (LOTN) from F41021 table based on input values of Short Item Number (ITM),
Branch/Plant (MCU) and Unique Configured String ID (CFGSID), than will call B3100380 Business Function to calculate Available Quantity for specified
parameters. As soon as Available Quantity is greater than zero, this function will pass IsQuantityAvailable = 1 to the application, otherwise function will
pass IsQuantityAvailable = 0 to the application.
1.2Setup Notes and Prerequisites
1.3Special Logic
None.
2.Technical Specifications
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
ITMShort Item NumberIY
MCUCost CenterI Y
CFGSIDUnique Configuraton IDIY
EV01Is Quantity AvailableOY
SUPPSSuppress Error MessageIYValue of 1
DTAIError Message IDON
2.2Related Tables
Table Table Description
F41021Item Location File
F32941Configured String Master
2.3Related Business Functions
Source NameFunction Name
B3100380Calculate Quantity Available Shell
2.4 Processing
2.4.1 Assign value zero to following variables:
BF cIsQuantityAvailable = "0"
VA evt_cRecordFound_EV01 = "0"
2.4.2 Open Table
F41021.Open
2.4.3 Check if Table is Open
If SV File_IO_Status is equal to CO SUCCESS
F41021.Select
BF szCostCenter = TK Business Unit
BF szUniqueConfigurationID = TK Unique Configuration ID
While SV File_IO_Status is equal to CO SUCCESS And BF cIsQuantityAvailable is equal to
F41021.Fetch Next
VA evt_szLotSerialNumber_LOTN <- TK Lot/Serial Number
F41021 Calculate Quantity Available
BF szCostCenter -> szBranchPlant
VA evt_szLocation_LOCN -> szLocation
VA evt_szLotSerialNumber_LOTN -> szLotNumber
"1" -> cSuppressErrorMessages
VA evt_mnQuantityAvailable_QAVAL <- mnQuantityAvailable
"1" -> mnIndex
"4" -> mnKeys
"1.0000000" -> mnConversionFactor
2.4.7 Quit While loop as soon as Quantity Available is > 0
2.4.8 Check if any matching records were found
If VA evt_cRecordFound_EV01 is equal to
//
BF szErrorMessageID = "2838"
//
//
// Table could not be opened
//
BF szErrorMessageID = "078D"
//
// Do not pass the Error Message if cSuppressErrorMessage = 1
//
If BF cSuppressErrorMessage is not equal to "1"
D3201330 - F41021 Assure Availability by ITM, MCU, CSID
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnIdentifierShortItem | ITM | MATH_NUMERIC | OPT | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szCostCenter | MCU | char | OPT | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
cIsQuantityAvailable | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessage | SUPPS | char | OPT | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
szErrorMessageID | DTAI | char | OPT | NONE |
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
| ||||
szUniqueConfigurationID | CFGSID | char | OPT | NONE |
An identifier that represents a unique configuration. It is generated from an encryption algorithm. Regardless of the number of segments or
| ||||
szLotGroup | LOTGRP | char | OPT | NONE |
Lot Group is the name of a user defined list of allowed non-blank lot status codes. Entry of a Lot Group name in the Processing Option will
| ||||
szOrderType | DCTO | char | OPT | NONE |
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
|
None |
None |