Deductions & credits

all my stock transactions downloaded into Sch D and 8949.  I want them all in 4797.  how do i do that directly?

...or can i transfer from Sch d (8949) to 4797, (and then remove them from schedule D

Thanks.