cancel
Showing results for 
Search instead for 
Did you mean: 

I have an "Command set ID" with value "A" in SPAD tansx with com. to transf

Former Member
0 Kudos

Hello

Does anyone knows how a device in "spad" transaction functions (in Unix)

Under Access method"L:Print Locally Using LP/LPR") I have an Command set ID with value "A" .

Under mentioned "command set" I have :

"command to transfer data " set to " /usr/bin/cat &F >/usr/sap/planning/REMINDER&N.txt". What does that means.

Does it mean any printout is copied to "/usr/sap/planning/REMINDER&N.txt" file? Also corrupted (not finished...) ones?

what is the name of file under "/usr/bin/cat ". Is it always the same? is it copied in same format (what

"&F >/" means?)?

Thx in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hai,

Command set id option in SAP helps to override the DEFAULT SAP parameter for the command that a print program should use to have a host spooler perform an output request.

Default parameter is rspo/host_spool/print.

You can specifically give a command to your printer through this option, COMMAND SET ID.

Here " /usr/bin/cat &F >/usr/sap/planning/REMINDER&N.txt" is the command which helps thr spooler to direct your output.

/usr/bin -- is the directory under which it has all the commands for UNIX.

/usr/bin/cat -- where 'cat' is a command, cat command reads one or more files and prints them to standard output. The operator > can be used to combine multiple files into one.

&F Name of the file to be printed (with path specification).

/usr/sap/planning/REMINDER&N.txt -- is where you can find your output.

You can even use /usr/bin/cp instead of usr/bin/cat here the former command copies to another file after the &F option.

You can use any type of commands, please check the below link.

Also you can use this command set option for Null printers were you dont need the printouts but only the spool. Here you can set the command as 'cp &F /dev/null' were the output is redireted to /dev/null path at the OS level.

http://help.sap.com/saphelp_nw04/helpdata/EN/d9/4a8eb751ea11d189570000e829fbbd/frameset.htm

Regards,

Yoganand.V

Former Member
0 Kudos

Hi,

After upgrade to ECC6, the "Command set ID" no longer works for me. I have used the options of &P &C, &p, &F and they don't seem to work. Also, I tried to review the link that you provided and it points me to the Spool home page. I could not find the options that are available. Would you mind send me the available options that are available in version ECC6 or the exact help page?

For some reasons, the values that I got are:

&P is term

&C is vt100

&F is "blank"

&p is "blank"

Thanks & Regards

Former Member
0 Kudos

Hai,

Please open the link and click on 'Parameter settings' on the left hand side pf the page.

The Command set id I use for my NULL Printers is 'cp &F /dev/null' this command helps me in forwarding the output requests to /dev/null at the OS level. I use this for the devices which produce output requests but no printouts, e.x., devices which are configured in background jobs.

Regards,

Yoganand.V

Former Member
0 Kudos

Hi,

We are currently working on an enhancement that requires an output device to place the file on an AL11 directory, the same as what has been discussed above.

I have tried using 'cp &F /local/data/interface/SID/Country/Folder/XXX' in the command set but still failed to have the copy of the output request in the desired location.

Can you please help advise what is lacking?

thanks!