cmd

1. list

Input Parameters:

Field name Description Type Size Mandatory
LOMS Name of LOMS Text 6 Yes
OPSYS OS name (HP-UX, Linux, OSF1, SINIX, Windows NT, SunOS, AIX, etc.) Text 10 Yes

Output Parameters:

Field name Description Type Size
OPSYS Name of the OS of the SAP NW application server instance where the command is executed (HP-UX, Linux, OSF1, SINIX, Windows NT, SunOS, AIX, etc.). Text 10
LCMD Logical command.
  • CANCEL: The associated real command is executed from the specified application server in case of job cancellation.
  • DQUERY: The associated real command is executed from the specified application server in case of device query.
  • JQUERY: The associated real command is executed from the specified application server in case of job query.
  • PATH: The associated real command string is placed in front of the command string of a CANCEL, DQUERY, JQUERY or SUBMIT command.
  • SUBMIT: The associated real command is executed from the specified application server in case of a print job submission to the OMS.
Text 6
CMD The real command executed from the associated SAP NW application server instance. Text 132

2. create

Input Parameters:

Field name Description Type Size Default Mandatory
OPSYS Name of the OS of the SAP NW application server instance where the command is executed (HP-UX, Linux, OSF1, SINIX, Windows NT, SunOS, AIX, etc.). Text 10 None Yes
LCMD Logical command.
  • CANCEL: The associated real command is executed from the specified application server in case of job cancellation.
  • DQUERY: The associated real command is executed from the specified application server in case of device query.
  • JQUERY: The associated real command is executed from the specified application server in case of job query.
  • PATH: The associated real command string is placed in front of the command string of a CANCEL, DQUERY, JQUERY or SUBMIT command.
  • SUBMIT: The associated real command is executed from the specified application server in case of a print job submission to the OMS.
Text 6 None Yes
CMD The real command executed from the associated SAP NW application server instance. Text 132 None Yes

3. modify

Input Parameters:

Field name Description Type Size Settable Mandatory
LOMS Name of LOMS Text 6 No Yes
OPSYS Name of the OS of the SAP NW application server instance where the command is executed (HP-UX, Linux, OSF1, SINIX, Windows NT, SunOS, AIX, etc.). Text 10 Yes No
LCMD CANCEL, DQUERY, JQUERY, SUBMIT, PATH Text 6 Yes No
CMD The real command executed from the associated SAP NW application server instance. Text 132 Yes No

4. delete

Input Parameters:

Field name Description Type Size Mandatory
LOMS LOMS name Text 6 Yes
OPSYS OS name (HP-UX, Linux, OSF1, SINIX, Windows NT, SunOS, AIX, etc.) Text 10 Yes
LCMD Logical command.
  • CANCEL: The associated real command is executed from the specified application server in case of job cancellation.
  • DQUERY: The associated real command is executed from the specified application server in case of device query.
  • JQUERY: The associated real command is executed from the specified application server in case of job query.
  • PATH: The associated real command string is placed in front of the command string of a CANCEL, DQUERY, JQUERY or SUBMIT command.
  • SUBMIT: The associated real command is executed from the specified application server in case of a print job submission to the OMS.
Text 6 Yes

Usage notes:

The CMD field describes a template for a command line to call an OMS command. The command line can be structured as required.

    Note:
  • Make sure to place the entry in front of the command template, if the entry is used in the path. Otherwise, the template can contain several commands, depending on the shell possibilities of the operating system where the command is executed.

Other SAP-specific replacement characters can also be used. The notation begins with a & character. If the command already contains a & character, then it needs to be written as &&. The following replacement parameters are defined:

&C Number of copies
&D Department of the recipient
&E Name of file with the print date (including path)
&F Name of file without path
&H / <x> / <y> <x> if host spool cover space required, <y> otherwise
&I Job name with DB ID
&J Job name without DB ID
&L Format type
&M Client of spool request owner
&m Client of spool request owner
&O (SAP)Name of spool request owner
&o (SAP)Name of print request owner
&P Name of external printer
&p Path name of output file
&R Name of recipient
&S Name of SAP printer
&T Title
&t Fax number
&U Host spool cover page required (X=yes, N=no)
&Y SAP priority (1-99). 1 is the highest priority
&N Spool request number
&n Output request number

Other parameters that are also available for the OMS command template:

&EI SAP spool ID
&EG Confirmation group
&ES SAP instance name for callback (if required, otherwise "-")
&ET Maximum buffer time for callback events
&EA Maximum number of buffered events
&EP Fax recipient (future addition). No native Fax support in SAP spool system.
&E1 SAP flag of LOMS
&E2 OMS flag of LOMS
&E3 SAP flag of ROMS
&E4 OMS flag of ROMS

An operating system-specific masking of special characters is necessary for the correct handling of command arguments:

UNIX

The characters \, ', " and $ are masked by \.

A separate \ is represented by \\.

Parameters should be bracketed with " characters, so that the special characters (including blank characters) are correctly transmitted. For example, '&T'.

Windows

The character " is masked by \.

All \ characters used before the " character are masked.

The character % is replaced by #.