Hello, eatraas,
First, you can make it much simpler thus:
pp = Format(datefield, "dd.mm.yyyy")
Second, SAP's internal date format is actually YYYYMMDD. Some of the RFC Function Modules do take date inputs in an external format, such as DD.MM.YYYY, but in truth, the external date format to use...