F4943 Add Change Delete Shipment Pieces
Source NameN4900840
Data Structure D4900840A
Function NameF4943Add Change Delete Shipment PiecesSystem Code49
Function Category
Function Use
Revisions Log
DateProgrammerSAR NumberDescription
07/08/982233692Created.
11/03/982456749
Purpose
interface will perform the edits on the shipment piece information, then optionally perform the necessary updates to all of the shipment tables.
Constants.
Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
EV01Add Change Delete FlagIYes1 = Add 2 = Change 3 = Delete
EV01Edit ModeIYes'1' = Edit Mode '0' or ' ' = Update Mode. Edits are performed. If there are no errors, add change or delete the
piece based on the Add Change Delete Flag.
SHPNShipment NumberIYesThis is the Shipment Number.
RSSNRouting Step NumberIYesThis is the Shipment Routing Step Number.
OSEQSequence NumberIDependsThis is the Sequence Number. It is one of the key columns used when fetching a row from
the Shipment Pieces table.
PLTSSCC Number Tare Level IDependsThis is the SSCC Number Tare Level. It is one of the key columns used when fetching a
row from the Shipment Pieces table.
TRPKTare Pack IndicatorINo
CNIDContainer IDIDependsThis is the Container ID. It is one of the key columns used when fetching a row from the Shipment
Pieces table.
EQTYContainer CodeIDepends
GWEIGross WeightIDependsThis is the Gross Weight of the piece It will be updated to the Shipment Pieces table. If in Add
Mode, it will be added to shipment totals. In Change Mode, it will be subtracted from the previous piece weight and the difference will be added to the
shipment totals. Depending on the situation, either Gross Weight or Net Weight Change should be passed to this function.
WTEMWeight EmptyIDependsThis is the weight of an empty piece.
WGTSNet Weight ChangeIDependsThis is the Net Weight Change. It will be added to shipment totals. If in Add Mode, it will
be added to the Weight Empty. This total will be written to the Shipment Pieces table. If in Change Mode, it will be added to the previous weight. This
total will be updated to the shipment pieces table. Depending on the situation, either Gross Weight or Net Weight Change should be passed to this
function.
WTUMWeight UoMIYesThis is the Weight UoM
PIDProgram IdIYesThis is the Program Id.
HGTSShipment HeightINoThis is the piece height.
WTHSShipment WidthINoThis is the piece width.
LGTSShipment LengthINoThis is the piece length.
GTHSShipment GirthINoThis is the piece girth.
LUOMLinear UoMINo This is the linear UoM for the piece dimensions.
VCUDVolume Cubic DimensionsINoThis is cubic container space. It is added the shipment total. When a shipment is rated by volume
and this column is not equal to zeros in the shipment routing step table, it is used to rate the shipment.
CVUMCubic Volume UoMINoThis is the cubic volume.
REFQRef Number QualifierINoThis code identifies the type of reference number in the following field. For example, this could
specify that the reference number is an air waybill number.
REFNReference NumberINoThis is the reference number for this piece. This could be a box tracking number or air waybill
number, for instance.
SUPPSSuppress Error MessageINo'1' = Suppress Error Message
DTAIError Message IDONo
JOBNTransportation Job NumberINoThis should be passed only when the shipment is still in cache.
Related Tables
Table Table Description
None.
Related Business Functions
Source NameFunction Name
None.
Processing
The following table identifies table and data structure prefixes that are used for specific columns referred to later in this document
PrefixTable/Data StructureDescription
BFD4900840AF4943 Add Change Delete Shipment Pieces business function data structure.
SPF4943Shipment Pieces Table
IDF46091Container and Carton Codes data structure.
STD4900050F4215 Update Shipment Totals business functions data structure.
Initialize Variables
Set VA Type Of Update to 'A'.
Set VA Number of Pieces to '0'
Call the Get Audit Information (B9800100) to get date and time stamp information.
VA User Id<AD User Name
VA Date Updated<AD Date
VA Time Of Day<AP Time
VA Workstation ID<AD Workstation ID
Set VA Program ID to BF Program ID.
Fetch a row from the Shipment Routing Step table (F4941) based on BF Shipment Number to default weight and volume unit of measures and piece
counts.
If BF Add Change Delete Flag equal to 2 or 3,
BF Shipment Number>SP Shipment Number,
0>SP Route Number,
BF SSCC Number Tare Level>SP SSCC Number Tare Level,
BF Shipment Number>SP Shipment Number,
0> SP Route Number,
BF Container ID>SP SSCC Number Tare Level,
BF Shipment Number>SP Shipment Number,
0>SP Route Number,
BF Sequence Number>SP SSCC Number Tare Level,
VA Shipment Length<SP Shipment Length
VA Shipment Width<SP Shipment Width
VA Shipment Height<SP Shipment Height
VA Shipment Girth<SP Shipment Girth
VA Linear UoM<SP Linear UoM
VA Gross Weight<SP Gross Weight
VA Weight Empty<SP Weight Empty
VA Weight UoM<SP Weight UoM
VA Volume Cubic Dimensions <SP Volume Cubic Dimensions
VA Volume UoM<SP Volume UoM
VA Container ID<SP Container Code
VA SSCC Number Tare Level<SP SSCC Number Tare Level
VA Reference Number Qualifier<SP Reference Number Qualifier
VA Reference Number<SP Reference Number
If BF Error Message ID is equal to blanks,
Set VA Volume Cubic Dimensions = VA Volume Cubic Dimensions * -1.
Set VA Number of Pieces to 1.
Else
If it is not equal to 'V' and not equal to 'v',
If BF Weight UoM is not equal to blank,
If it is not equal to 'W' and not equal to 'w',
If BF Linear UoM is not equal to blank,
BF Shipment Number >Shipment Number
VA Business Unit<Business Unit
Fetch a row from the Container and Carton Codes table (F46091)
VA Business Unit>ID Business Unit
BF Container Code>ID Container Code
BF Shipment Width<ID Gross Width
BF Shipment Length<ID Gross Depth
BF Shipment Height<ID Gross Height
BF Linear UoM<ID Dimensions UoM
BF Volume Cubic Dimensions<ID Cubic Dimensions
BF UoM Cubic Volume <ID Unit of Measure Display
BF Weight Empty<ID Weight Empty
BF UoM Weight<ID UoM Weight
If BF Net Weight Change is greater than 0,
If BF Add Change Delete Flag = 1,
Set VA Gross Weight Difference to BF Gross Weight -VA Gross Weight.
BF Shipment Number>Shipment Number
If a row is not found,
Set VA Container Code to BF Container Code.
Set VA Shipment Length to BF Shipment Length.
Set VA Shipment Width to BF Shipment Width.
Set VA Shipment Height to BF Shipment Height.
Set VA Shipment Girth to BF Shipment Girth.
Set VA Linear UoM to BF Linear UoM.
Set VA Container ID to BF Container Code.
Set VA SSCC Number Tare Level to BF SSCC Number Tare Level.
Set VA Reference Number Qualifier to BF Reference Number Qualifier.
Set VA Reference Number to BF Reference Number.
VA Container Code
D4900840A - F4943 Add Update Delete Shipment Piece
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cAddChangeDeleteFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cEditMode | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
mnShipmentNumber | SHPN | MATH_NUMERIC | OPT | NONE |
A "next number" that uniquely identifies a shipment. | ||||
mnRoutingStepNumber | RSSN | MATH_NUMERIC | OPT | NONE |
This is the number assigned to a shipment routing step. The movement of a shipment from the origin to the final destination (ship to
| ||||
mnSequenceNumber | OSEQ | MATH_NUMERIC | OPT | NONE |
For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed.
For World, a sequence or
| ||||
szSSCCNumberTareLevel | PLT | char | OPT | NONE |
The tare level Serialized Shipping Container Code. Must conform to the UCC structure for SSCC numbers. | ||||
cTarePackIndicator | TRPK | char | OPT | NONE |
This internal field indicates whether a shipment piece contains a tare level or pack level SSCC. | ||||
szContainerID | CNID | char | OPT | NONE |
A code on the container or that you assign to the container in which the items on this purchase order or order line were shipped to you. You
| ||||
szContainerCode | EQTY | char | OPT | NONE |
A code (46/EQ) that identifies a storage container or a shipping carton. A storage container can be an open container where items are
| ||||
mnGrossWeight | GWEI | MATH_NUMERIC | OPT | NONE |
The gross weight of one unit of the item in this unit of measure, or the weight of an empty storage container or shipping carton. These values
| ||||
mnWeightEmpty | WTEM | MATH_NUMERIC | OPT | NONE |
The certified weight of this vehicle, including fuel, but excluding cargo. | ||||
mnNetWeightChange | WGTS | MATH_NUMERIC | OPT | NONE |
The shipment weight is qualified by a Weight Qualifier (WGQ) that identifies the type of weight. | ||||
szWeightUnitOfMeasure | WTUM | char | OPT | NONE |
The unit of measure that indicates the weight of an individual item. Typical weight units of measure are:
GM Gram
OZ Ounce
LB Pound
| ||||
szProgramId | PID | char | OPT | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
mnShipmentHeight | HGTS | MATH_NUMERIC | OPT | NONE |
The height of a shipment or shipment piece. | ||||
mnShipmentWidth | WTHS | MATH_NUMERIC | OPT | NONE |
The width of a shipment or shipment piece. | ||||
mnShipmentLength | LGTS | MATH_NUMERIC | OPT | NONE |
The length of a shipment or shipment piece. | ||||
mnShipmentGirth | GTHS | MATH_NUMERIC | OPT | NONE |
The girth of a shipment or shipment piece. | ||||
szUnitofMeasureLinear | LUOM | char | OPT | NONE |
The width, height, or length unit of measure for a vehicle. | ||||
mnVolumeCubicDimensions | VCUD | MATH_NUMERIC | OPT | NONE |
The numeric value of the cubic volume of this item - computed by the Item Master Revisions program. | ||||
szUnitofMeasureCubicVolume | CVUM | char | OPT | NONE |
A user defined code (00/UM) that identifies the unit of measure that the system uses to indicate volume for this item. You can specify cubes,
| ||||
szRefNumberQualifier | REFQ | char | OPT | NONE |
A code qualifying the Reference Number. Must conform to one of the accepted values for EDI X12 data element 128. | ||||
szReferenceNumber | REFN | char | OPT | NONE |
A Reference number or identification number as defined for a particular EDI transaction set or as specified by the Reference Number
| ||||
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
| ||||
mnTransportationJobNumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. |
None |
None |