Functional Description
Purpose
This business function verifies that the Location Master (F4100) record exists and returns a pointer
to the Location Master Record. You can retrieve a record from F4100 using one of six different
indexes.
Setup Notes and Prerequisites
If a pointer to the record is returned, this pointer must be cleared in the application using the
BSFN FreePtrtoDataStructure.
The user passes to the business function the number of the index they want to use and the number of
key fields within that index that will be used.
1. MCU, LOCN
2. MCU, WSQP, LOCN
3. MCU, WSQQ, LOCN
4. MCU, WSQR, LOCN
5. MCU, CGRP
6. MCU, PZON
(if any) will be highlighted. This can be suppressed by turning on the "Suppress Error Message" flag.
Turn on the "Return Pointer" flag to have the business function return a pointer to the record.
Set the "Call Type" flag to a "1" to have the business function verify that the record exists. Set
it to "2" to have the business function verify that the record does not exist (ie. it returns an error
if a record is found).
Technical Specification
2.4Processing
Initialize the DS F4100Pointer to NULL.
Fetch the Location Master Record corresponding to the index and keys entered by the user.
If DS Call Type is equal to '1', return error messages.
If DS Suppress Error Message is not equal to '1', SetGBRError where error message is '3138' (
Invalid Location ) and the first field in the index is highlighted.
If Fetch is successful, return pointer and messages.
If DS Suppress Error Message is not equal to '1', SetGBRError where error message is
'2463' and the first field in the index is highlighted.
If DS Call Type is not equal to '2' and DS Return Pointer is equal to '1', return pointer to the
Location Master Record.
If Memory Allocation is successful, Assign DS F4100 Pointer = Address of Location
Master Record.
If Memory Allocation is not successful, return error messages.
equal to '1', SetGBRError where error message is
'4365' and first field in index is highlighted.
Returns:
If Call Type is equal to '1' and the fetch fails, return Error Message ID '3138' (Invalid
Location).
If Call Type is equal to '2' and the fetch is successful, return Error Message ID '2463'.
If Return Pointer is equal to '1', the fetch is successful, and the memory allocation is
successful, return the pointer to the data structure.
^
DS4100 - Verify And Get Location Master
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cReturnPointerFlag | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
cCallType | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
Special Input Expected
| ||||
szIndex | DTAI | char | NONE | NONE |
Special Input Expected
| ||||
szKeys | DTAI | char | NONE | NONE |
Special Input Expected
| ||||
szErrorMessageID | DTAI | char | NONE | 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
| ||||
idF4100Pointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
szBusinessUnit | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
mnPutAwaySequence | WSQP | MATH_NUMERIC | NONE | NONE |
A number that you assign to a location to determine its place in the putaway sequence. Putaway is the movement of inventory to storage
| ||||
mnReplenishmentSequence | WSQR | MATH_NUMERIC | NONE | NONE |
A number that you assign to a location to determine its place in the replenishment sequence. Replenishment is the movement of inventory
| ||||
mnPickSequence | WSQQ | MATH_NUMERIC | NONE | NONE |
A number that you assign to a location to determine its place in the picking sequence. Picking is the movement of inventory from storage to
| ||||
szLocationCharGroup | CGRP | char | NONE | NONE |
A code (system 46/type LC) that identifies a group of locations that share the same characteristics. A location characteristics group defines
| ||||
szPutAwayZone | PZON | char | NONE | NONE |
A code (system 46/type ZN) that identifies areas in the warehouse where goods are put away or stored. |
B4000460 Free Ptr To Data Structure |
F4100 Location Master |