Codeunit CCS DIS Mapping Codeunit Mgt.
codeunit 5100957 "CCS DIS Mapping Codeunit Mgt."
Properties
Name | Value |
---|---|
TableNo | CCS DIS Mapping Codeunit |
Methods
GetRecRef
public "CCS DIS Mapping Codeunit Mgt." GetRecRef(MappingCodeunit: Record "CCS DIS Mapping Codeunit"; var RecRef: RecordRef; var RepositoryCode: Code[20]): Boolean
Returns the current record for the Mapping Line, that executes the codeunit.
Changes on the record should be pushed to register at the end.
Use "CCS DIS Mapping Register Mgt." Codeunit and run "SetRecRef(RepositoryCode, RecRef);"
If the procedure is executed for any other repository but Table or RecordPool, no run time error will occur.
Parameters
Name | Type | Description |
---|---|---|
MappingCodeunit | Record "CCS DIS Mapping Codeunit" |
The codeunit as parameter to identify the Mapping Line. |
RecRef | RecordRef |
The current record as RecordRef. |
RepositoryCode | Code[20] |
The current repository code to push an eventually updated record into register. |
Return Value
Boolean
Returns true, if the record was opened.
GetRecRef
public "CCS DIS Mapping Codeunit Mgt." GetRecRef(MappingCodeunit: Record "CCS DIS Mapping Codeunit"; var RecRef: RecordRef): Boolean
Returns the current record for the Mapping Line, that executes the codeunit.
Changes on the record should be pushed to register at the end.
Use "CCS DIS Mapping Register Mgt." Codeunit and run "SetRecRef(RepositoryCode, RecRef);"
If the procedure is executed for any other repository but Table or RecordPool, no run time error will occur.
Parameters
Name | Type | Description |
---|---|---|
MappingCodeunit | Record "CCS DIS Mapping Codeunit" |
The codeunit as parameter to identify the Mapping Line. |
RecRef | RecordRef |
The current record as RecordRef. |
Return Value
Boolean
Returns true, if the record was opened.
OnBeforeCodeunitParameter
public "CCS DIS Mapping Codeunit Mgt." OnBeforeCodeunitParameter(var MappingCodeunit: Record "CCS DIS Mapping Codeunit"): None
Subscribe this event to implement your own codeunit parameters.
The event is fired right before the codeunit parameters are executed.
It does not provide a IsHandled parameter. Existing parameters will still be executed afterwards.
Warning
This method is pending obsolete. Use Codeunit Interface and Codeunit Parameter Enumeration 2.6
Parameters
Name | Type | Description |
---|---|---|
MappingCodeunit | Record "CCS DIS Mapping Codeunit" |
The mapping codeunit from the Codeunit.Run parameter. |
Return Value
None
SetRecRef
public "CCS DIS Mapping Codeunit Mgt." SetRecRef(MappingCodeunit: Record "CCS DIS Mapping Codeunit"; var RecRef: RecordRef): None
Set the current record for the Mapping Line to the register, that executes the codeunit.
If the procedure is executed for any other repository but Table or RecordPool, no run time error will occur.
Parameters
Name | Type | Description |
---|---|---|
MappingCodeunit | Record "CCS DIS Mapping Codeunit" |
The codeunit as parameter to identify the Mapping Line. |
RecRef | RecordRef |
The current record as RecordRef. |
Return Value
None
Events
OnAfterRunCodeunit
event "CCS DIS Mapping Codeunit Mgt." OnAfterRunCodeunit(MappingLine: Record "CCS DIS Mapping Line"; MappingCodeunit: Record "CCS DIS Mapping Codeunit"; RunResult: Boolean)
The event is fired after the codeunit was executed.
Parameters
Name | Type | Description |
---|---|---|
MappingLine | Record "CCS DIS Mapping Line" |
The mapping line the codeunit is configured. |
MappingCodeunit | Record "CCS DIS Mapping Codeunit" |
The mapping codeunit record that was executed. |
RunResult | Boolean |
If the field run result variable was set, this value contains a true/false result if the codeunit as executed without errors. |
Attributes
Name | Arguments |
---|---|
IntegrationEvent | False, False |
OnRunCodeunit
event "CCS DIS Mapping Codeunit Mgt." OnRunCodeunit(var MappingLine: Record "CCS DIS Mapping Line"; var MappingCodeunit: Record "CCS DIS Mapping Codeunit")
The event is fired right before the codeunit will be executed with Codeunit.Run(Id).
Mapping codeunit record settings, result or parameters (mapping codeunit as rec), are not yet checked.
Parameters
Name | Type | Description |
---|---|---|
MappingLine | Record "CCS DIS Mapping Line" |
The mapping line the codeunit will be executed for. |
MappingCodeunit | Record "CCS DIS Mapping Codeunit" |
The mapping codeunit record to be executed. |
Attributes
Name | Arguments |
---|---|
IntegrationEvent | False, False |