How to change Rotation distance in the Gcode on the X on Y axis ???

I want to be able to change the Rotation distance for X and Y axis in the Gcode, so I can compensate for ABS shrinkage.

How do you do it ???

There is no gcode to set the rotation_distance dynamically. In addition I would advise against it, since it is a setting that describes the hardware of your printer.
Such compensations belong to the slicer where you can easily scale your model according to your needs

With good slicers you can compensate shrinkage there:

PrusaSlicer: