Before posting, have you made any efforts to find out answer to your query? Please search the forum or Google with the text "Sale Order to Credit Memo" so that you will find many times this has been discussed. Please go through the forum rules which you can see to your right screen and adhere to that. Being an old member of the forum, no need to stress the importance of adhering to SCN rules.
G. Lakshmipathi