I've been trying to generate XSF spool with VF03 and I am not able to achieve it.
I created a copy of RLB_INVOICE and changed as follow in its 'FORM processing' just after 'PERFORM set_print_param'
ls_composer_param-xsfcmode = 'X'.
ls_composer_param-xsf = 'X'.
ls_composer_param-xsfoutmode = 'S'.
ls_composer_param-xsfformat = space.
Can anyone please reply what the cause could be? Upon commenting the above mentioned lines, the print preview appears, however with such code in effect it does not generate spool which can be reviewed with SP01.
I tried modifying copy of RLB_INVOICE to use SAPScript instead of Smartforms with VF03. And I noticed WRITE_FORM did not write anything with the specified element.