SAP Credit Memo (T-code VF01) is created on the basis of credit memo request (T-code: Va01). Credit memo request is generated when you have to pay to the customer. (Excess bill or damages or change in the price).