In most cases, you must specify the assigned format for the correct tray selection in the print job.
For example, if the printer was set to B6 in the manual tray, set the print job found inside the Init-Event of the SAP device type to B6. This would overdrive the original page setup.
<< /PageSize [363 516] /ImagingBBox null >> setpagedevice