Form 4797 is used to report the sale of business assets. Normally, it is generated while working in the self-employed business section of TurboTax, to report the sale of an asset used in a business.
If there were sales of business assets reported on your K-1 schedule for a partnership, you would have an entry in box 10. You just need to indicate that you have an entry in box 10 on your K-1 entry in TurboTax and answer the question in the program to have it reported properly on your tax return.