In some countries the VIN number instead of the FIN number must be printed on external documents, e.g. an invoice in Point of Sale). For these purposes a routine has been written in which the FIN number is given after which it returns the matching VIN number. If the returned VIN number is put in a derived field, it can be printed on a document.
The 'MB_Check_MCCVIN$() routine can be used in reports or in the format stationary, see the example below.
PRTCHASS$='MB_Check_MCCVIN$("VIN", !1_CHASSIS, TRUE)
In this format example, the !1_CHASSIS field contains the FIN number of the vehicle. The routine returns the VIN number and puts it in the !0_PRTCHAS$ field which can then be printed on the header or continuation header of the invoice.
Note: In this case the !1_CHASSIS field is not changed itself like when doing the manual conversion VIN - FIN or the batch conversion VIN - FIN!
The other two parameters, which should be given to the routine, are explained below: