KVSCCEntity#
Fields#
| Name | Type | Note |
|---|---|---|
| ID | Guid | |
| Source Table | Integer | |
| Address Type | Option | Warning: Obsolete OptionMembers: 0,1,2,3,4,5,6,7,8,9 |
| Source No. | Code[20] | |
| Checked at | DateTime | |
| Checked | Boolean | |
| Request | Blob | |
| Response | Blob | |
| Result | Enum (KVSCCResult) | |
| Source Table Caption | Text[250] | FlowField |
| Name | Text[100] | |
| Address | Text[250] | |
| Zip | Code[20] | |
| City | Text[30] | |
| Country | Text[50] | |
| EntityType | Enum (KVSCCEntityType) | |
| Message 1 | Text[250] | |
| Message 2 | Text[250] | |
| Checked Address Type | Enum (KVSCCAddressType) | |
| Country/Region Code | Code[10] | |
| Address Hits | Integer | |
| Hit Type | Text[30] | |
| State | Text[30] | |
| Source System Id | Guid | |
| Source Sales Doc. Type | Enum Sales Document Type | |
| Source Purch. Doc. Type | Enum Purchase Document Type | |
| Source Service Doc. Type | Enum Service Document Type | |
| Source Service Contract Type | Enum Service Contract Type | |
| Source Code | Code[20] | |
| ResultBlob | Blob | |
| Provider | Enum (KVSCCInterface) |
Procedures#
SetMessage(Text) :#
Summary: Sets the message fields by splitting the provided message into two parts if necessary.
procedure SetMessage(MessagePar: Text):
Parameters:
MessagePar: The complete message to be set in the entity.
Remarks: This procedure divides the input message into two segments to fit within the defined field lengths. The first 250 characters are stored in "Message 1" and the next 250 characters in "Message 2".
GetMessage() : Text#
Summary: Retrieves the complete message by concatenating the two message fields.
procedure GetMessage(): Text
Returns: The full message as a single text string.
Remarks: This function combines the contents of "Message 1" and "Message 2" to reconstruct the original message.
ShowFile(Boolean) :#
Summary: ShowFile is used in order to show the content of the Request or Response field of this entity.
procedure ShowFile(ShowRequest: Boolean):
Parameters:
ShowRequest: Boolean parameter. If this parameter is activated, the request value is shown. Otherwise the response is shown.
FillFieldsFromSource(RecordRef) :#
Summary: FillFieldsFromSource fills the fields Name, Address, Zip, City, Country and EntityType from the source record referenced by Source Table and Source No.
procedure FillFieldsFromSource(SourcePar: RecordRef):
Parameters:
SourcePar: The record reference of the source record from which the fields are filled.
Remarks: This procedure reads the source record based on the Source Table and Source No. fields and fills the relevant fields in the sanction check entity accordingly.
FormatSourceDocumentType() : Text#
Summary: FormatSourceDocumentType returns the formatted source document type based on the source table.
procedure FormatSourceDocumentType(): Text
Returns: Text representation of the source document type.
Remarks: This procedure checks the source table and returns the corresponding document type as text. If the source table does not have a document type, it returns an empty string.
FormatAddressType() : Text#
Summary: FormatAddressType returns the formatted address type based on the source table and checked address type.
procedure FormatAddressType(): Text
Returns: Text representation of the address type.
Remarks: This procedure uses the source table and checked address type to return a human-readable description of the address type.
Events#
OnBeforeGetCountryRegionFromCountryRegionCode(Record KVSCCEntity, Code[10], Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeGetCountryRegionFromCountryRegionCode(var Entity: Record "KVSCCEntity"; var CountryRegionCode: Code[10]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSCCEntity", 'OnBeforeGetCountryRegionFromCountryRegionCode', '', false, false)]
local procedure DoSomethingOnBeforeGetCountryRegionFromCountryRegionCode(var Entity: Record "KVSCCEntity"; var CountryRegionCode: Code[10]; var IsHandled: Boolean)
begin
end;