--Assign printer to documents select --* wrp.application_id, wrp.concurrent_program_id, decode(wrp.concurrent_program_id,'4','LPN Content','3','LPN','1','Material') "Type", wrp.level_type_id, decode(wrp.level_type_id,'10004','User','10003','Responsibility','10009','Format') "Level", wrp.level_value_id,decode(wrp.level_type_id, '10004', (select user_name from apps.fnd_user where user_id = wrp.level_value_id), '10003',(select responsibility_name from apps.fnd_responsibility_tl where responsibility_id =wrp.level_value_id), '10009',(select label_format_name from apps.wms_label_formats_v where label_format_id = wrp.level_value_id) ) "LevelValue" , wrp.printer_name, wrp.enabled_flag, wrp.default_printer_flag from apps.WSH_REPORT_PRINTERS wrp where 1=1 and application_id = 385 --and concurrent_p...