Before mappings hook

Use this hook to read additional data to construct the context message. The same can be achieved by using the Mapping Type "Function". In a Before Mappings hook you can read multiple values in one go or write more complex conditions. You cannot return a value.

Example

on case tcibd001.kitm
case tckitm.purchase:
        tm.tcibd001.description = “Purchased Item: “ & tcibd001.desc
        tm.tcibd001.readonly = “false”
        break
case tckitm.manufacture:
        tm.tcibd001.description = “Manufactured Item: “ & tcibd001.desc
        tm.tcibd001.readonly = “false”
        break
default:
        tm.tcibd001.description = tcibd001.desc
        tm.tcibd001.readonly = “true”
        break
endcase
This hook determines multiple values that can be used in the mappings.