Hi, I have this scenario; I have two smartforms, one of them is configured as portrait and the other one in landscape. Both are printed by the same program but unfortunately both are printed in portrait. The requirement is that for an specific stock movement we should print additional data that fits only in landscape but with the others we should use the portrait way and that's is why we have two smartforms. We achieve this changing the smartform to be issued at runtime by making an enhacement in program 'YBUS_M07DR';
if mseg-bwart = 'Z99'.
lf_formname = 'ZMYSMARTFORM_Z99'.
endif.
* determine smartform function module for invoice
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = lf_formname
* variant = ' '
* direct_call = ' '
importing fm_name = lf_fm_name
exceptions no_form = 1
no_function_module = 2
others = 3.
However when printing in the dot matrix the printer prints the smartform as portrait because it is configured as portrait.
Is it possible to make the printer to decide to change to landscape or portrait according to the smartform? Is there a better alternative?
Best regards