Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sap script

Former Member
0 Likes
517

What are control commands in Scripts?

1 ACCEPTED SOLUTION
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
482

Hi

new-page is the most frequently used control command.

Control command is the command which can stops the normal processing and sent the control to the desired place.

Regards,

Sreeram

4 REPLIES 4
Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
483

Hi

new-page is the most frequently used control command.

Control command is the command which can stops the normal processing and sent the control to the desired place.

Regards,

Sreeram

Read only

Former Member
0 Likes
482

Hi pinky,

We have Protect and endprotect.

The command line in the editor must be as follows:

/: PRINT-CONTROL xxxxx

or

/: PRINT-CONTROL 'xxxxx'

where xxxxx stands for the five-character name of the print control.

Example:

/: PRINT-CONTROL ZM100

The complete printer command normally resides in the print control.

If characters belonging to the print command follow after the print control in the text (only useful for the HPL2 printer driver for PCL-5 printers), the text line following after the PRINT-CONTROL command should begin with an equals sign (=) in the format column.

Example:

/: PRINT-CONTROL SESCP = *c5G

If you do not use the equals sign, a space character is inserted between the print control SESCP and the character *c5G.

*****Rewards some points .

Rgds,

P.Naganjana Reddy

Read only

Former Member
0 Likes
482

Hi,

Some Important Control Commands are,

NEW-PAGE

PROTECT …… ENDPROTECT

NEW-WINDOW

DEFINE

SET DATE MASK

SET TIME MASK

TOP …. ENDTOP

BOTTOM …. ENDBOTTOM

IF …. ENDIF

Regards,

Padmam.

Read only

Former Member
0 Likes
482

SAP Printer commands in SAPScripts

The command line in the editor must be as follows:

/: PRINT-CONTROL xxxxx

or

/: PRINT-CONTROL 'xxxxx'

where xxxxx stands for the five-character name of the print control.

Example:

/: PRINT-CONTROL ZM100

The complete printer command normally resides in the print control.

If characters belonging to the print command follow after the print control in the text (only useful for the HPL2 printer driver for PCL-5 printers), the text line following after the PRINT-CONTROL command should begin with an equals sign (=) in the format column.

Example:

/: PRINT-CONTROL SESCP = *c5G

If you do not use the equals sign, a space character is inserted between the print control SESCP and the character *c5G.