Set username by variable in printer device type
I'm struggling with the following problem at the moment:
we print out of SAP without any problems. Now we would like to send printouts to a queue server. To release the printouts at the printer itself, the person who printed has to go to the printer and identify by his company ID-Card. Then the printout is sent from queue server to the printer the person stands.
Sending spool request to the queue server is working fine. But to identify the person who has printed there sould be a field like "user" in the print request.
To realise this, I tried to edit the device type as described here: https://scn.sap.com/thread/1834105
That looks as follows on my system in the printer initialization:
#enter PJL mode and switch to PCL language
@PJL COMMENT User="$(User)" \r\n
@PJL ENTER LANGUAGE=PCL\r\n
#LaserJet Series II ECMA-94 Latin 1 character set
# disable perforation skip m ode
# SAPWIN data stream
The relevant line is line no. 3 "@PJL COMMENT User ="$(User)" \r\n". The variable "User" is created and can be seen also on the print order on print server and queue server. But it is alway empty. I also tried to use "$(BENUTZER)" instead of "$(USER)", but this also didn't worked.
But if I set for example my user instead of this variable it works fine. So, I assume, varible $(BENUTZER)/$(USER) does not exist on our SAP system or is not read out.
Is anyone there who can help me with this issue? Any ideas?
Thank you very much in advance.