You must pass a printer identification as most print requires a driver so a type of printer, if none defined in current user profile, use a generic printer (Look for with SPAD transaction) don't use alocal printer as LOCL as it may (so will) generate errors in background.
Regards,
Raymond