Table "Ship-to Address"
Stores alternate shipping addresses for customers with location and shipping method settings.
Properties
| Name | Value |
|---|---|
| Caption | Ship-to Address |
| DataCaptionFields | 1,3,2 |
| LookupPageID | Page Microsoft.Sales.Customer."Ship-to Address List" |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Customer No." | Code[20] | Specifies the customer that this ship-to address belongs to. |
| Code | Code[10] | Specifies a unique code to identify this ship-to address for the customer. |
| Name | Text[100] | Specifies the name of the recipient or location for this ship-to address. |
| "Name 2" | Text[50] | Specifies additional name information for the ship-to address. |
| Address | Text[100] | Specifies the street address for shipping. |
| "Address 2" | Text[50] | Specifies additional address details for the shipping location. |
| City | Text[30] | Specifies the city for the shipping destination. |
| Contact | Text[100] | Specifies the contact person at the ship-to address. |
| "Phone No." | Text[30] | Specifies the telephone number for the ship-to address. |
| "Telex No." | Text[30] | Specifies the telex number for the ship-to address. |
| "Salesperson Code" | Code[20] | Specifies the salesperson responsible for orders to this ship-to address. |
| "Shipment Method Code" | Code[10] | Specifies the default shipment method for orders to this address. |
| "Shipping Agent Code" | Code[10] | Specifies the shipping agent responsible for deliveries to this address. |
| "Place of Export" | Code[20] | Specifies the place of export for customs purposes. |
| "Country/Region Code" | Code[10] | Specifies the country or region for the ship-to address. |
| "Last Date Modified" | Date | Indicates when this ship-to address record was last modified. |
| "Location Code" | Code[10] | Specifies the default inventory location for shipments to this address. |
| "Fax No." | Text[30] | Specifies the fax number for the ship-to address. |
| "Telex Answer Back" | Text[20] | Specifies the telex answer back code for the ship-to address. |
| GLN | Code[13] | Specifies the Global Location Number for this ship-to address. |
| "Post Code" | Code[20] | Specifies the postal code for the ship-to address. |
| County | Text[30] | Specifies the state, province, or county for the ship-to address. |
| "E-Mail" | Text[80] | Specifies the email address for the ship-to address. |
| "Home Page" | Text[255] | Specifies the website URL for the ship-to address. |
| "Tax Area Code" | Code[20] | Specifies the tax area code for calculating sales tax at this ship-to address. |
| "Tax Liable" | Boolean | Indicates whether sales to this ship-to address are subject to sales tax. |
| "Shipping Agent Service Code" | Code[10] | Specifies the shipping agent service level for deliveries to this address. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemCreatedByUserName | Text[50] | |
| SystemCreatedByFullName | Text[80] | |
| SystemModifiedByUserName | Text[50] | |
| SystemModifiedByFullName | Text[80] | |
| SystemRowVersion | BigInteger |
Methods
Caption
Generates a caption text for the ship-to address including customer and address information.
procedure Caption(): Text
Returns
| Type | Description |
|---|---|
| Text |
The formatted caption string. |
DisplayMap
Displays the ship-to address on an online map service.
procedure DisplayMap()
GetFilterCustNo
Gets the customer number from the current filter if a single value is specified.
procedure GetFilterCustNo(): Code[20]
Returns
| Type | Description |
|---|---|
| Code[20] |
The filtered customer number or empty if not applicable. |
Events
OnAfterLookupPostCode
Raised after looking up the post code.
[IntegrationEvent(False,False)]
local procedure OnAfterLookupPostCode(var ShipToAddress: Record "Ship-to Address"; var PostCodeRec: Record "Post Code"; xShipToAddress: Record "Ship-to Address")
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record. |
| PostCodeRec | Table Microsoft.Foundation.Address."Post Code" |
The post code record used in the lookup. |
| xShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The previous ship-to address record. |
OnAfterLookupCity
Raised after looking up the city.
[IntegrationEvent(False,False)]
local procedure OnAfterLookupCity(var ShipToAddress: Record "Ship-to Address"; var PostCodeRec: Record "Post Code"; xShipToAddress: Record "Ship-to Address")
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record. |
| PostCodeRec | Table Microsoft.Foundation.Address."Post Code" |
The post code record used in the lookup. |
| xShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The previous ship-to address record. |
OnAfterValidateCity
Raised after validating the city field.
[IntegrationEvent(False,False)]
local procedure OnAfterValidateCity(var ShipToAddress: Record "Ship-to Address"; var PostCode: Record "Post Code")
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record after validation. |
| PostCode | Table Microsoft.Foundation.Address."Post Code" |
The post code record used in validation. |
OnAfterValidatePostCode
Raised after validating the post code field.
[IntegrationEvent(False,False)]
local procedure OnAfterValidatePostCode(var ShipToAddress: Record "Ship-to Address"; var PostCode: Record "Post Code")
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record after validation. |
| PostCode | Table Microsoft.Foundation.Address."Post Code" |
The post code record used in validation. |
OnBeforeLookupCity
Raised before looking up the city.
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupCity(var ShipToAddress: Record "Ship-to Address"; var PostCodeRec: Record "Post Code")
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record. |
| PostCodeRec | Table Microsoft.Foundation.Address."Post Code" |
The post code record for the lookup. |
OnBeforeLookupPostCode
Raised before looking up the post code.
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupPostCode(var ShipToAddress: Record "Ship-to Address"; var PostCodeRec: Record "Post Code")
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record. |
| PostCodeRec | Table Microsoft.Foundation.Address."Post Code" |
The post code record for the lookup. |
OnBeforeValidateCity
Raised before validating the city field.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCity(var ShipToAddress: Record "Ship-to Address"; var PostCodeRec: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record. |
| PostCodeRec | Table Microsoft.Foundation.Address."Post Code" |
The post code record for validation. |
| CurrentFieldNo | Integer |
The current field number being validated. |
| IsHandled | Boolean |
Set to true to skip the default validation. |
OnBeforeValidateEmail
Raised before validating the email field.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateEmail(var ShiptoAddress: Record "Ship-to Address"; xShiptoAddress: Record "Ship-to Address"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShiptoAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record. |
| xShiptoAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The previous ship-to address record. |
| IsHandled | Boolean |
Set to true to skip the default validation. |
OnBeforeValidatePostCode
Raised before validating the post code field.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePostCode(var ShipToAddress: Record "Ship-to Address"; var PostCodeRec: Record "Post Code"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record. |
| PostCodeRec | Table Microsoft.Foundation.Address."Post Code" |
The post code record for validation. |
| CurrentFieldNo | Integer |
The current field number being validated. |
| IsHandled | Boolean |
Set to true to skip the default validation. |
OnBeforeGetFilterCustNo
Raised before retrieving the filtered customer number.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetFilterCustNo(var ShipToAddress: Record "Ship-to Address")
Parameters
| Name | Type | Description |
|---|---|---|
| ShipToAddress | Table Microsoft.Sales.Customer."Ship-to Address" |
The ship-to address record. |