Free of Charge material

Hello,

I want to check for case where a material is given to customer as free of charge (compensation, sample) .
How can we treat this case? Is it mandatory to issue invoice with value to the customer? How to close the customer payment, since customer will not issue any payment as this is a compensation.