Are you actually trying to prepare a return, including Form 4797, manually? I am not sure anyone would recommend that approach.
Regardless, if your gross sales price is $4,000 then that would be entered in columns (d) and (g). The $10,000 purchase price and accumulated depreciation would be entered in columns (e) and (f). Note that the foregoing assumes that there was no salvage value.