Shimano 105 crankset to Sram etap derailleur

I’m planning to buy SRAM force upkit for my old Endurace bike. Trying to save by using the shimano crankset and brake caliper. I wonder if Shimano crankset will work perfectly to SRAM derailleur?

I wanted to get the Di2 but the frameset is not compatible with it.

It works but you will need to get 12 speed AXS compatible rings to make it work. Rotor makes 12 speed chain rings with the correct BDC to mount to a Shimano crankset. In the long run it didnt work for me because the Rotor rings would not work with an Ultegra crankset with a dual sided Stages power meter. If you dont want to deal with using Rotor rings then a Rival crankset with power meter is relatively inexpensive with a power meter and downright cheap without one